-
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
sh:closed in a property shape is inconsistent with other implementations #171
Comments
Thanks for this. Quite possibly this is incorrect right now. The code is looping over the focus nodes, while I believe it needs to loop over the value nodes. And the test suite only covers the case of using sh:closed in node shapes, not property shapes. |
The validation report that the old playground creates is a bit funky. I've added
And here is the validation report.
What is funky is that the blank node representing "John" isn't included. The spec doesn't really say anything about what the sh:focusNode should be for sh:closed. When used in a node shape this isn't really an issue since the focus node and the value node are the same, so overriding the typical In general I think it would make more sense to only allow node shapes to be closed, but I assume that that would break backwards compatibility if we change it in SHACL 1.2. |
#171: closed validator now iterates over value nodes instead of focus…
Considering the following example:
I would assume to mean that for every ex:Person that ex:knows someone then that someone can only have the predicate ex:name.
So the following should be true:
The Zazuko SHACL Playground seems to agree with me https://s.zazuko.com/spVG6w and so does the old https://shacl.org/playground/.
When using the version 1.4.3 of the SHACL TopBraid API I get the following validation report:
The text was updated successfully, but these errors were encountered: