Open mthl opened 4 years ago
The spec requires sh:equals to be IRI properties, i.e. paths are not supported. See "The values of sh:equals in a shape are IRIs." at
https://www.w3.org/TR/shacl/#EqualsConstraintComponent
To express such cases you'd need to revert to SHACL-SPARQL.
Thanks for your explanation, that was my understanding of the standard too. I will try to use SHACL-SPARQL then.
I am not familiar with the W3C process for proposing an evolution of the spec, but is there a chance that the working group could consider adding this “feature”? If yes what can I do to help?
If you are after some free-flowing discussion related to SHACL then the official place is (the mailing list of) https://www.w3.org/community/shacl/
Other than that, I believe we can leave this ticket here open as a feature request or placeholder for future consideration.
I have subscribed to the public-shacl@w3.org mailing-list, thanks.
Hello,
I am trying to express the equality between two nested values inside property paths connected with one specific property
http:resp
, but fail to express it in SHACL as shown in the following snippets:Here is the shapes graph I wrote
and the following data graph
with SHACL reference implementation (1.3.1-SNAPSHOT) I get the following report
which means that it is not possible to use a SHACL property path as the range of the
sh:equals
property. Is there a way to express an equivalent constraint in SHACL?Would it make sense for the
sh:equals
property to have the same range definition thansh:path
?Thanks