Closed dthume closed 3 years ago
in shacl we write in sh:property [ sh:node ex:children; sh:path rdfs;label; ] ex: children rdf:type sh:shape; [ sh:path property(if any); ] ]
Weird, I completely missed this ticket so far. Yes you are right the example is incorrect. I have created a branch to fix this
https://github.com/w3c/shacl/tree/fixed-path-example
and now only need to find someone who is allowed to review this so that it can get merged in...
The Advanced Features Note provides an example usage of path expressions:
equating it to the SPARQL graph pattern:
However the value of
sh:nodes
in the example (ex:children
) is a constant term expression which - according to the note - should evaluate to the term, whereas in the given example it appears to itself be applied in a similar way to thesh:path
. The "Evaluation of Path Expressions" definition doesn't suggest any special handling for sh:nodes in this case, and the "Example Shapes Graph" shown just below the table at the beginning of section 6 usessh:filterShape
withsh:nodes
in (what appears to be) the manner I would expect from the definition. Obviously it wouldn't really make sense to have:vs
So is this just an incorrect example in the note? or have I misunderstood the definition?