Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider allowing sh:name and sh:description on NodeShapes #209

Open
danielbeeke opened this issue Jan 2, 2025 · 1 comment
Open

Consider allowing sh:name and sh:description on NodeShapes #209

danielbeeke opened this issue Jan 2, 2025 · 1 comment
Labels
Core For SHACL 1.2 Core spec

Comments

@danielbeeke
Copy link

Currently the SHACL spec states that sh:name and sh:description may be used on Property shapes. It does not state this for NodeShapes.

This is the quote:

If present, tools SHOULD prefer those locally specified labels over globally specified labels at the rdf:Property itself.

(link)

Could it be considered adding to the spec that sh:name and sh:description can also be used on NodeShapes?

The use case is that a system containing NodeShapes might want to display the shapes with a local name and description.

@HolgerKnublauch
Copy link
Contributor

The role of node shapes is similar to classes, and the implicit target pattern aligns node shapes with classes. We have several customers that wanted to use skos:prefLabel and skos:definition instead of rdfs:label and rdfs:comment for their classes. If present, those should be preferred over the rdfs defaults. Given that these (skos:) are already established properties, there is the argument that it's not the business of SHACL to generate yet another pair of properties for that purpose.

With property shapes the situation was different because the intent was to use these names/descriptions for the use of the property (not the property shape).

@HolgerKnublauch HolgerKnublauch transferred this issue from w3c/shacl Jan 20, 2025
@HolgerKnublauch HolgerKnublauch added the Core For SHACL 1.2 Core spec label Jan 20, 2025
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

No branches or pull requests

2 participants