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

SHACL - RSX target shape bug when using sh:or #2632

Closed
hmottestad opened this issue Nov 4, 2020 · 0 comments · Fixed by #2633 or #2636
Closed

SHACL - RSX target shape bug when using sh:or #2632

hmottestad opened this issue Nov 4, 2020 · 0 comments · Fixed by #2633 or #2636
Assignees
Labels
🐞 bug issue is a bug 📦 SHACL affects the SHACL validator
Milestone

Comments

@hmottestad
Copy link
Contributor

Shape:

ex:shape1
	a sh:NodeShape ;
	rsx:targetShape [
	        sh:property [
        		sh:path ex:info ;
        		sh:or ([ dash:hasValueIn ("blue") ; ] [ dash:hasValueIn ("green") ; ] [ dash:hasValueIn ("red") ; ]) ;
        	]
	];

	sh:property [
	   sh:path ex:info2 ;
	   sh:minCount 1;
	]
	 .

The following should match the rsx:targetShape and be considered invalid since it is not valid according to the sh:minCount restriction:

ex:a ex:b ex:validPerson1  .
@hmottestad hmottestad self-assigned this Nov 4, 2020
@hmottestad hmottestad added 🐞 bug issue is a bug 📦 SHACL affects the SHACL validator labels Nov 4, 2020
@hmottestad hmottestad added this to the 3.4.4 milestone Nov 4, 2020
hmottestad added a commit that referenced this issue Nov 4, 2020
Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
hmottestad added a commit that referenced this issue Nov 6, 2020
GH-2632 rsx:targetShape bug when using sh:or or sh:and
hmottestad added a commit that referenced this issue Nov 8, 2020
Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
@hmottestad hmottestad mentioned this issue Nov 8, 2020
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug issue is a bug 📦 SHACL affects the SHACL validator
Projects
None yet
1 participant