-
Notifications
You must be signed in to change notification settings - Fork 65
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
ConstraintLoadError: sh:namespace value must be an RDF Literal with type xsd:anyURI. #61
Comments
Ok, after some digging it seems this error is actually coming from the SHACL ontology file here: https://www.w3.org/ns/shacl.ttl Normally that file is used in concept.. it is listed as a prefix at the top of every SHACL shape file, but its normally not imported. However in this case,
So its definitely a bug in the shacl.ttl file Looks like the bug is not able to be fixed in shacl.ttl for historical reasons, so I will have to put a workaround in PySHACL. |
@James-Hudson3010 A fix for this is in PySHACL v0.13.2 |
Confirmed. (I am curious why it seemed to work with the pySHACL CLI tool) |
Its because you didn't enable advanced mode, or owl imports on the cli invocation. So it would've shown the same error if you executed the CLI tool like this:
|
This may be related to the changes made for #59
Using the script below and the SHACL from http://datashapes.org/schema.ttl, I get the following error:
However, running pyshacl from the command line, appears to work correctly.
(I am not include the schema.org schema, hence the validation error)
Python script:
Archive.zip
The text was updated successfully, but these errors were encountered: