Closed ajnelson-nist closed 3 months ago
Hi @ajnelson-nist Sorry I thought I already responded to this one.
You're right, this is intentional and it is consistent with the sh:node
specification. It seems like the spec deliberately has different behaviour for sh:node
than sh:property
.
Thank you for confirming.
I have a question that I suspect will be quick to confirm.
If I have a node shape that links another node shape with
sh:node
; the linking shape has no severity specified (so defaulting tosh:Violation
); and the linked shape has a severity specified; should the linking node shape produce a validation result when the linked node shape does?For example, given this ontology+data graph:
and given this shapes graph:
My naïve expectation yesterday was
sh:node
would behave likesh:property
- i.e., if the linked property shape triggered a violation, the entire node shape wouldn't fail, and the only result that came back would have severity as specified in the property shape. So from the above ontology+data graph, I expected only ash:Info
result pertaining toex:Thing-2
.My expectations ran into this result instead:
On a fresh re-read, this seems consistent with the
sh:node
specification section.If this does indeed seem consistent with the spec, please feel free to close this issue as resolved, no other action needed.