You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: shacl12-core/index.html
+31Lines changed: 31 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -586,6 +586,9 @@ <h3>Terminology</h3>
586
586
<div>
587
587
The <dfndata-lt="type|types|SHACL type">SHACL types</dfn> of an <a>RDF term</a> in an <a>RDF graph</a> is the set of its <a>values</a> for <code>rdf:type</code> in the
588
588
<a>graph</a> as well as the <a>SHACL superclasses</a> of these <a>values</a> in the <a>graph</a>.
589
+
Note that some SHACL implementations can be parameterized so that the <code>rdfs:subClassOf</code> triples
590
+
that determine the <a>SHACL subclasses</a> may be queried from the <a>shapes graph</a> in addition to the <a>data graph</a>.
Note that the <code>rdfs:subClassOf</code> triples may be queried from the <a>shapes graph</a>
1553
+
(see <ahref="#subClassOfInShapesGraph"></a>) in which case the <code>rdfs:subClassOf</code> triple
1554
+
from the example above would not be required to be in the <a>data graph</a>.
1555
+
</p>
1548
1556
1549
1557
</section>
1550
1558
@@ -2717,6 +2725,27 @@ <h3>Data Graph</h3>
2717
2725
several related ontologies, pass all of them to the SHACL processor (together or one by one), do not rely on <code>owl:imports</code> links.
2718
2726
</p>
2719
2727
</section>
2728
+
2729
+
<sectionid="subClassOfInShapesGraph">
2730
+
<h3>Graph for rdfs:subClassOf Triples</h3>
2731
+
<p>
2732
+
Some features of SHACL (such as
2733
+
<ahref="#ClassConstraintComponent"></a>,
2734
+
<ahref="#targetClass"></a>, and
2735
+
<ahref="#implicit-targetClass"></a>) rely on the notion
2736
+
of <a>SHACL type</a> to determine whether a <a>node</a> is a <a>SHACL instance</a> of a given class.
2737
+
By default, this is determined by looking up <code>rdfs:subClassOf</code> and <code>rdf:type</code><a>triples</a>
2738
+
in the <a>data graph</a>.
2739
+
However, this is insufficient in some cases, as <code>rdfs:subClassOf</code> triples are often stored as part
2740
+
of the class and/or shape definitions and not the instance data.
2741
+
</p>
2742
+
<p>
2743
+
SHACL processors SHOULD offer a parameter <code>subClassOfInShapesGraph</code> that, if set to <code>true</code>,
2744
+
should alter the definition of <a>SHACL Type</a> so that the <code>rdfs:subClassOf</code> triples are queried
2745
+
from the <a>shapes graph</a> in addition to the <a>data graph</a>.
2746
+
The <code>rdf:type</code> triples are always expected to be in the <a>data graph</a>.
2747
+
</p>
2748
+
</section>
2720
2749
2721
2750
<sectionid="sh-shapes-graph">
2722
2751
<h3>Linking to shapes graphs (sh:shapesGraph)</h3>
@@ -7936,9 +7965,11 @@ <h2>Changes between SHACL 1.0 Core and SHACL 1.2 Core</h2>
7936
7965
<li>Moved SPARQL-based validators from Core to an Appendix of SHACL-SPARQL; see <ahref="https://github.com/w3c/data-shapes/issues/271">Issue 271</a></li>
7937
7966
<li>Added the new constraint component <ahref="#ExpressionConstraintComponent"><code>sh:expression</code></a>; see <ahref="https://github.com/w3c/data-shapes/issues/357">Issue 357</a></li>
7938
7967
<li>Added the new constraint component <ahref="#NodeByExpressionConstraintComponent"><code>sh:nodeByExpression</code></a>, see <ahref="https://github.com/w3c/data-shapes/issues/408">Issue 408</a></li>
7968
+
<li>Added new <ahref="#core-components-list">List constraint components</a>, see <ahref="https://github.com/w3c/data-shapes/issues/391">Issue 391</a> and <ahref="https://github.com/w3c/data-shapes/issues/414">Issue 414</a></li>
7939
7969
<li>Added the new value <code>sh:ByTypes</code> for <ahref="#ClosedConstraintComponent"><code>sh:closed</code></a>; see <ahref="https://github.com/w3c/data-shapes/issues/172">Issue 172</a></li>
7940
7970
<li>The values of <ahref="#ClassConstraintComponent"><code>sh:class</code></a> and <ahref="#DatatypeConstraintComponent"><code>sh:datatype</code></a> can now also be lists, indicating a union of choices; see <ahref="https://github.com/w3c/data-shapes/issues/160">Issue 160</a></li>
7941
7971
<li>Added the new constraint component <ahref="#ReifierShapeShapeConstraintComponent"><code>sh:ReifierShape</code></a>; see <ahref="https://github.com/w3c/data-shapes/issues/300">Issue 300</a></li>
7972
+
<li>Added parameter <ahref="#subClassOfInShapesGraph"></a> to look up rdfs:subClassOf triples in the union of the shapes graph and the data graph; see <ahref="https://github.com/w3c/data-shapes/issues/185">Issue 185</a></li>
0 commit comments