Closed MiguelAraCo closed 6 years ago
See https://www.w3.org/TR/shacl/#value-nodes, the value nodes of a property shape are the nodes that can be reached by following the sh:path from the focus node. In other words, TargetNode is not a value node but a focus node.
But focus nodes are validated against constraints too, aren't they? Or are they only validated if the shape is a sh:NodeShape
?
I saw an example somewhere in the test suite which had something like this:
<NodeShape>
sh:targetNode <TargetNode> ;
sh:hasValue <TargetNode> .
Yes, if the shape is a node shape then the value nodes = the focus nodes, forming a set of 1 always.
Ok, that makes perfect sense. Thanks!
If we have the following model:
Is both
<TargetNode>
and_:b1
value nodes? Should the processor produce a result because<TargetNode>
doesn't have the required class?