SEMICeu / DCAT-AP

This is the issue tracker for the maintenance of DCAT-AP
https://joinup.ec.europa.eu/solution/dcat-application-profile-data-portals-europe
76 stars 24 forks source link

sh:name on sh:NodeShape #245

Closed barthanssens closed 3 months ago

barthanssens commented 1 year ago

From the discussion on https://github.com/eclipse/rdf4j/discussions/4287

Looks like DCAT AP 2.1.1 SHACL sets a property sh:name on the sh:NodeShape, while SHACL says that the rdfs:domain of sh:name is sh:PropertyShape.

So it makes subjects of class NodeShape into a PropertyShape class as well (which in turn isn't actually violation any constraints, but it breaks at least RDF4J and maybe some other tools)

It would be useful if SHACL would also allow this property on sh:NodeShape.

barthanssens commented 1 year ago

See response of W3C SHACL: https://github.com/w3c/data-shapes/issues/145 (seems like rdfs:label and rdfs:comment could be used)