-
Notifications
You must be signed in to change notification settings - Fork 64
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
datatypes validation & CLI error messages #71
Comments
Hi @rapw3k For issue2: I know it looks like defining So after expanding the graph, the literal I haven't tested it, but I think you can fix this problem by removing |
Looking again at your explanation of issue1:
Looks like this is a bug in Astrea's shape generation, I believe the correct output should use a NodeShape, like this:
Is there a way we can submit a bug report to their software? |
Thanks a lot @ashleysommer for all the information. But getting a bit into the reason behind. As you said the GeoSPARQL ontology does not define geo:wktLiteral to be a subclass of rdfs:Literal. I.e. there is no geo:wktLiteral rdfs:subClassOf rdfs:Literal triple ....
|
Hi @rapw3k
This is interesting, and I actually didn't know that. I wonder what that means for datatype validation in pySHACL. For example, |
I think I can do:
I'll do some testing. |
Hi @rapw3k |
Hi @ashleysommer
Thanks a lot for the hints.
Following issue #70, using the following inputs:
The shape is here: https://raw.githubusercontent.com/rapw3k/DEMETER/master/models/SHACL/demeterAgriProfile-SHACL.ttl
The example data graph is here: https://box.psnc.pl/f/c95eb51962/?raw=1
Issue 1
I checked those erros in the shapefile of property shapes without sh:path. These were generated automatically for owl:disjointwith statements, which translate it into the statements below (https://astrea.linkeddata.es/documentation.html).
I understand this is not correct, so I can just remove the statement of type and it works.
An issue, however, with the command line is that I didnt get information of the error, so I didnt know what was happening. The error i got is runtime error (MacOS) as below:
issue 2
I fixed the shape, accessible in the same location above, and tried adding the target ontology into the mix with the -e option.
The target ontology is available here: https://raw.githubusercontent.com/rapw3k/DEMETER/master/models/cross-domain.ttl
Now, I get a validation error:
This is because the data graph says that:
However, the ontology says that asWKT has range wktLiteral and it is a subproperty of hasSerialization, which has range rdfs:Literal (see extracts below). Additionally, the ontology defines wktLiteral as a Datatype (and according to spec Each instance of rdfs:Datatype is a subclass of rdfs:Literal). So, I dont really understand why the validation error?
The text was updated successfully, but these errors were encountered: