- From: RDF Data Shapes Working Group Issue Tracker <sysbot+tracker@w3.org>
- Date: Tue, 28 Apr 2015 00:38:22 +0000
- To: public-data-shapes-wg@w3.org
shapes-ISSUE-48 (scope-of-shape): How do we limit the scope for a shape? [SHACL Spec]
http://www.w3.org/2014/data-shapes/track/issues/48
Raised by: Michel Dumontier
On product: SHACL Spec
It would be useful to specify the limit the scope of a shape to some expression, minimally to a specified type, predicate and/or value expression, or some combination thereof.
consider the following example, where we use 'sh:scope' to express that the property constraint (there is exactly 1 :reportedBy whose value type is foaf:Person) applies to all instances of :Issue in the graph.
:IssueShape
a sh:Shape;
sh:scope [
sh:property rdf:type;
sh:valueType :Issue .
],
sh:property [
sh:predicate :reportedBy ;
sh:valueType foaf:Person ;
sh:minCount 1 ;
sh:maxCount 1 ;
] .
Received on Tuesday, 28 April 2015 00:38:23 UTC