-
Notifications
You must be signed in to change notification settings - Fork 166
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
SHACL: More descriptive message when a shape is both a sh:NodeShape and a sh:PropertyShape #4289
Comments
Looks like the exception is thrown when a SHACL shape has a Eg.
Doesn't work, but simply removing the |
Arguably this is not a bug, since, according to the SHACL ontology (https://github.com/w3c/data-shapes/blob/gh-pages/shacl/shacl.ttl), sh:name is only a property of a sh:PropertyShape While the DCAT-AP shacl file uses it on sh:NodeShape ... It would be nice to have a bit more logging on which subject/shape the SHACL sail is failing (in this particular case: all nodeshapes), and/or to simply ignore sh:name and sh:description on NodeShapes |
Improved logging would be nice. |
Might also be nice to have a "skip invalid shapes" option. |
I’m going to handle this by improving the error message. If I can I will try to add some kind of backwards tracing to log the reason for a shape being both a node shape and a property shape. I won’t introduce a way to skip invalid shapes at the moment. |
Discussed in #4287
Originally posted by volkerjaenisch November 19, 2022
Dear RDF4J Users!
Currently we am implementing SHACL for an OpenData portal (http://datenadler.de).
We are Python programmers so we planed to go with pySHACL. But our Plan B is RDF4J which we are currently using as our backend.
Testing our Plan B we stumbled over the following exception of RDF4J reading a SHAPE file.
Can someone please explain what is going wrong.
The shape file comes from the EU
https://github.com/SEMICeu/DCAT-AP/blob/master/releases/2.1.1/dcat-ap_2.1.1_shacl_shapes.ttl
pySHACL reads and uses this file with no complains. I also checked graphDB (to make sure my RDF4J is installed correctly) with the exact same outcome.
Any help appreciated
Cheers,
Volker
The text was updated successfully, but these errors were encountered: