Skip to content

issue-723/724: Further cosmetic edits related to dirLangString#756

Open
HolgerKnublauch wants to merge 1 commit intogh-pagesfrom
issue-723-edits
Open

issue-723/724: Further cosmetic edits related to dirLangString#756
HolgerKnublauch wants to merge 1 commit intogh-pagesfrom
issue-723-edits

Conversation

@HolgerKnublauch
Copy link
Copy Markdown
Contributor

Also turned the value range of sh:closed into an enum

Also turned the value range of sh:closed into an enum
Copy link
Copy Markdown
Member

@TallTed TallTed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small punctuation changes, and a couple of / replaced with , rdf:.

<div class="diagram-class-properties-section">
<div><a href="#deactivated">sh:deactivated</a> : xsd:boolean</div>
<div><a href="#message">sh:message</a> : text</div>
<div><a href="#message">sh:message</a> : xsd:string, rdf:dirLangString/langString or rdf:HTML</div>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<div><a href="#message">sh:message</a> : xsd:string, rdf:dirLangString/langString or rdf:HTML</div>
<div><a href="#message">sh:message</a> : xsd:string, rdf:dirLangString, rdf:langString, or rdf:HTML</div>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did that intentionally because otherwise it was too wide for the box. That's exactly the problem here, and why I went with "text" earlier.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too wide for the box depends on the active viewport, the available viewport, the user-set base font size, and other factors. Just let it flow to a second (or third, or more) line.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's what I'm now seeing in the PR preview, which is displaying in dark mode for unknown reasons --

Screen Shot 2026-02-04 at 01 12 12 PM

Note that the sh:Shape has a sh:message that wraps, even with your /.

If exact presentation matters, the diagram should be an immutable image ... but even then, various user- or device-based settings, preferences, etc., may change what the user actually sees.

Better we be precise with our language, naming, etc., and figure out presentation challenges later — optimally with decisions that optimize presentation throughout our document(s).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is how it looks for me
image
and you see the sh:description barely fits in the property shape box, and that was after I have added a few pixels.

Yes, all this is very fragile and perhaps of questionable value because it's just a small subset of features anyway. There are various unresolved/proposed additions related to bringing in different tools but they are appear stalled. Unless someone has sufficient time to truly fix this diagram, I would tend to just discard it completely.

<div><a href="#name">sh:name</a> : xsd:string or rdf:dirLangString or rdf:langString</div>
<div><a href="#description">sh:description</a> : text</div>
<div><a href="#name">sh:name</a> : xsd:string or rdf:dirLangString/langString</div>
<div><a href="#description">sh:description</a> : xsd:string, rdf:dirLangString/langString or rdf:HTML</div>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<div><a href="#description">sh:description</a> : xsd:string, rdf:dirLangString/langString or rdf:HTML</div>
<div><a href="#description">sh:description</a> : xsd:string, rdf:dirLangString, rdf:langString, or rdf:HTML</div>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should just delete the "UML" diagram altogether and move it to some other overview document.

@afs
Copy link
Copy Markdown
Contributor

afs commented Feb 15, 2026

From the discussions between RDF WG and i18n WG,

w3c/rdf-concepts#265 (comment)
and specifically:
w3c/rdf-concepts#265 (comment)

it may not be necessary to include rdf:HTML (unless SHACL wants to).

@HolgerKnublauch
Copy link
Copy Markdown
Contributor Author

From the discussions between RDF WG and i18n WG,

w3c/rdf-concepts#265 (comment) and specifically: w3c/rdf-concepts#265 (comment)

it may not be necessary to include rdf:HTML (unless SHACL wants to).

Thanks. This would have to be applied to a separate PR than this here, which is entirely cosmetic.

But I think allowing rdf:HTML in sh:message makes sense from a user perspective, as it gives more freedom in rendering hyperlinks, bullet lists etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Core For SHACL 1.2 Core spec

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants