-
Notifications
You must be signed in to change notification settings - Fork 38
Closed
Labels
CoreFor SHACL 1.2 Core specFor SHACL 1.2 Core spec
Milestone
Description
Pleas consider this shape, as mentioned in issue zazuko/rdf-validate-shacl#140
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <http://schema.org/> .
@prefix ex: <http://example.com/> .
ex:PersonAddressShape
a sh:NodeShape ;
sh:targetClass schema:Person ;
sh:property ex:age .
ex:minCount a sh:PropertyShape ;
sh:minCount 1 .
ex:age a sh:PropertyShape ;
sh:path schema:age ;
sh:and ( ex:minCount ) .
It seems logical to be able to reuse parts of property shapes like this but this is invalid SHACL, because ex:minCount
does not have a sh:path
On the other hand TopBraid's SHACL implementation does support this construct as one would expect.
Should the definition of property shape be relaxed?
Metadata
Metadata
Assignees
Labels
CoreFor SHACL 1.2 Core specFor SHACL 1.2 Core spec