Skip to content
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:HasValueConstraintComponent fails on multiple property paths #282

Open
robert-david opened this issue May 8, 2020 · 1 comment
Open

Comments

@robert-david
Copy link

The example below fails although it should pass because the sh:hasValue constraint is satisfied at least once (1 to n). Note that it also fails if other values besides ex:Stanford exist as end nodes for the property path (as it would be if the shape was closed).

prefix sh: http://www.w3.org/ns/shacl#
prefix ex: http://example.org/

ex:ExampleShape
a sh:NodeShape ;
sh:targetNode ex:Alice ;
sh:property [
sh:path (ex:alumniOf ex:name) ;
sh:hasValue ex:Stanford
] .

ex:Alice ex:name "Alice" ;
ex:alumniOf ex:node ;
ex:alumniOf ex:otherNode .
ex:node ex:name ex:Stanford .
ex:otherNode ex:name ex:Stanford .

@labra
Copy link
Member

labra commented May 8, 2020

Thanks for reporting it. I think you are right.

I reproduced the example with RDFShape here. I also created another issue at the SHACL-s implementation repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants