Open miroli opened 2 years ago
Oh, so I finally found issue #18 and learned that I had to add a owl:Ontology ;
to the importing graph. However, I'm now faced with a new problem. I get this error message when running the same command above with the modified import triple.
Validator feature is not implemented: SPARQL Constraint text has $shapesGraph in it, but Shapes Graph is not currently supported. If your use-case requires this feature, open an Issue on the pyshacl github page.
Hi @miroli Thanks for your issue report.
PySHACL does not officially support the DASH Extensions. It is not part of the original W3C SHACL Standard Specification. It is published as a draft ontology and is subject to change.
Case in point; many DASH features used to work fine in PySHACL, but recently the addition of ClosedByTypesConstraintComponent
, a SPARQLValidator definition that uses $shapesGraph
querying, that is not supported by PySHACL.
It is possible that DASH will work with PySHACL again in the future (eg, if PySHACL gets the ability to query the $shapesGraph
, or if DASH ontology validators change again).
Thanks for taking the time to clear that up!
I'm working on implementing DASH and SHACL. I'd be interested in writing an 'extension' of some sort for pySHACL to validate, but I have no idea whether the project can support that?
Hi @KeironO
Can you please clarify what you are asking?
The DASH SHACL Extensions are already implemented in SHACL, that is how they work.
PySHACL does support some DASH SHACL Extensions, because they are simply custom SHACL Shapes, there is no need to add extra extension code to PySHACL in order to validate the DASH Extensions (aside from the missing feature for ClosedByTypesConstraintComponent
as described above).
I realize there's a high probability that I've misunderstood something basic here, but I can't seem to make extensions work. Here's a toy example. I expected this to produce a validation result for the
ex:author
property since it's not declared in either shape, but the DASH rules aren't applied.data.ttl
shape.ttl
Command: