Deal with multiple ways of specifying a sh:PropertyShape #7

Open
opened 2024-03-25 10:37:02 +00:00 by jsheunis · 0 comments
jsheunis commented 2024-03-25 10:37:02 +00:00 (Migrated from github.com)

See: https://www.w3.org/TR/shacl/#property-shapes

A sh:PropertyShape could be inferered from the fact that a property, with multiple attributes, is specified for a given NodeShape, or a separate sh:PropertyShape could be provided explicitly.

ex:ExampleNodeShapeWithPropertyShapes
	a sh:NodeShape ;
	sh:property [
		sh:path ex:email ;
		sh:name "e-mail" ;
		sh:description "We need at least one email value" ;
		sh:minCount 1 ;
	] ;
	sh:property [
		sh:path (ex:knows ex:email) ;
		sh:name "Friend's e-mail" ;
		sh:description "We need at least one email for everyone you know" ;
		sh:minCount 1 ;
	] .
	
ex:ExamplePropertyShape
	a sh:PropertyShape ;
	sh:path ex:email ;
	sh:description "We need at least one email value" ;
	sh:minCount 1 .

Code should resolve both of them to a common syntax for further use.

See: https://www.w3.org/TR/shacl/#property-shapes A `sh:PropertyShape` could be inferered from the fact that a `property`, with multiple attributes, is specified for a given `NodeShape`, or a separate `sh:PropertyShape` could be provided explicitly. ```ttl ex:ExampleNodeShapeWithPropertyShapes a sh:NodeShape ; sh:property [ sh:path ex:email ; sh:name "e-mail" ; sh:description "We need at least one email value" ; sh:minCount 1 ; ] ; sh:property [ sh:path (ex:knows ex:email) ; sh:name "Friend's e-mail" ; sh:description "We need at least one email for everyone you know" ; sh:minCount 1 ; ] . ex:ExamplePropertyShape a sh:PropertyShape ; sh:path ex:email ; sh:description "We need at least one email value" ; sh:minCount 1 . ``` Code should resolve both of them to a common syntax for further use.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
orinoco/shacl-vue#7
No description provided.