-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can one sparql constraint generate multiple violations in pySHACL? #240
Comments
Hi @habdirad |
Hi @habdirad
See my gist for exactly the PySHACL code I am running: |
Thank you @ashleysommer. I was using version 0.23. 0 inadvertently. Updating to 0.26.0 fixed this issue. Apologies for the false alarm. |
Hello all,
I am experimenting with pySHACL and comparing validation outputs against the topquadrant's validator.
Issue/Question:
I have some sparql constraints that check a parent node against the child nodes in a graph. I noticed that pySHACL returns only one of the offending childs in the violation report. Can one sparql constraint generate multiple violations in pySHACL?
Reproducible example:
the following example should generate 3 violations (one for each person) but only returns one (only for ex:John).
graph:
shapes:
script:
output showing 1 violation from pySHACL:
'Validation Report\nConforms: False\nResults (1):\nConstraint Violation in SPARQLConstraintComponent (http://www.w3.org/ns/shacl#SPARQLConstraintComponent):\n\tSeverity: sh:Violation\n\tSource Shape: schema1:family-familyname\n\tFocus Node: ex:JuniorFamily\n\tResult Path: schema1:CorrectfamilyName\n\tSource Constraint: schema1:onefamilyname\n\tMessage: http://example.org/ns#JuniorFamily http://example.org/ns#John\n'
output from Topquadrant's validator showing 3 violations:
The text was updated successfully, but these errors were encountered: