Comments (4)
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,
- Schema.org Shapes file owl:imports DASH shapes file
- DASH Shapes file owl:imports shacl.ttl
- shacl.ttl (on line 15) creates a
sh:declare
node, with sh:namespace being a string literal, not anxsd:anyURI
- DASH Shapes file owl:imports TOSH Shapes file
- TOSH Shapes file declares a
SPARQLFunction
that references prefixes, including the brokensh
prefix declaration fromshacl.ttl
- This results in this ConstraintLoad error showing.
So its definitely a bug in the shacl.ttl file
I went to report the issue, but someone else actually recently found the same error:
w3c/data-shapes#125
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.
from pyshacl.
@James-Hudson3010 A fix for this is in PySHACL v0.13.2
from pyshacl.
Confirmed. (I am curious why it seemed to work with the pySHACL CLI tool)
from pyshacl.
Its because you didn't enable advanced mode, or owl imports on the cli invocation.
The error is introduced from the SHACL Ontology file, which is imported from the DASH Shapes file, which is only imported if you have owl imports enabled. (--imports
in the cli tool).
Secondly, the error is triggered by a SPARQLFunction
, those are only used when Advanced Mode is enabled (-a
in the cli tool).
So it would've shown the same error if you executed the CLI tool like this:
pyshacl -s ./schema_org_validation.ttl -a --imports ./test_data.ttl
from pyshacl.
Related Issues (20)
- CI fails on pyduktape HOT 5
- [Discussion] Pinned vs loose requirements, application vs library use cases HOT 5
- SPARQL ASK rule incorrectly passing HOT 7
- Can the prettytable dependency be upgraded to major version 3? HOT 1
- Generating SHACL-SPARQL shapes in RDFLib HOT 2
- Shacl does not seem to work on rdflib.Dataset() HOT 1
- Unable to see the validation result in pyshacl HOT 2
- How to ensure subject is not a sh:BlankNode when validating a owl:Class in an ontology? HOT 4
- owl:imports for data graph is hardcoded to false HOT 2
- pySHACL uses deprecated API `pkg_resources` HOT 4
- Trouble with qualified value shape HOT 6
- Failed to catch violations with properties that are not defined HOT 8
- Is a shape (whether node or property) restricted to one instance of sh:not? HOT 5
- Multiple sh:nots causing strange validation results HOT 2
- Multiple sh:xones on one sh:NodeShape grouping member shapes causing unexpected validation results
- `sh:entailment` and `pyshacl --advanced` HOT 1
- `sh:severity` on shapes linked by `sh:node` HOT 2
- `_evaluation_path` length is not configurable HOT 3
- [Discussion] Higher performance "remote" validation
- Difference between PySHACL and TopBraid SHACL API HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyshacl.