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
+12-4Lines changed: 12 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1964,13 +1964,21 @@ <h4>Declaring Messages for a Shape</h4>
1964
1964
<h4>Deactivating a Shape</h4>
1965
1965
<pclass="syntax">
1966
1966
<spandata-syntax-rule="deactivated-maxCount">Shapes can have at most one value for the property <code>sh:deactivated</code>.</span>
1967
-
<spandata-syntax-rule="deactivated-datatype">The value of <code>sh:deactivated</code> in a shape must be either <code>true</code> or <code>false</code>.</span>
1967
+
<spandata-syntax-rule="deactivated-datatype">The value of <code>sh:deactivated</code> in a shape is a <a>node expression</a>
1968
+
that must have either <code>true</code> or <code>false</code> as the (only) <a>output node</a>.</span>
1968
1969
</p>
1969
1970
<p>
1970
-
A shape that has the <a>value</a><code>true</code> for the property <code>sh:deactivated</code> is called <dfndata-lt="deactivate">deactivated</dfn>.
1971
+
Let <code>expr</code> be the <a>value</a> of <code>sh:deactivated</code> in a <a>shape</a>.
1972
+
If <code>evalExpr(expr, <a>data graph</a>, <a>focus node</a>, {})</code> produces <code>true</code> as its only
1973
+
<a>output node</a>, the shape is called <dfndata-lt="deactivate">deactivated</dfn>.
1971
1974
All RDF terms <a>conform</a> to a deactivated shape.
1972
1975
</p>
1973
1976
<p><em>The remainder of this section is informative.</em></p>
1977
+
<p>
1978
+
In SHACL Core, the only valid values for <code>sh:deactivated</code> are the
Use cases of this feature include shape reuse and debugging.
1976
1984
In scenarios where shapes from other graphs or files are imported into a given <a>shapes graph</a>,
@@ -2399,7 +2407,7 @@ <h2>Node Expressions</h2>
2399
2407
<li>At <ahref="#property-shapes"><code>sh:values</code> and <code>sh:defaultValue</code></a> to derive the value nodes of a property shape.</li>
2400
2408
<li>At <ahref="#targetNode"><code>sh:targetNode</code></a> to dynamically compute the targets of a shape.</li>
2401
2409
<li>At <ahref="#ExpressionConstraintComponent"><code>sh:expression</code></a> to validate nodes against a condition.</li>
2402
-
<li>At <ahref="#deactivated"><code>sh:deactivated</code></a> to deactivate certain shapes under specific conditions.<spanclass="todo">TODO: This change needs to be made still, see ISSUE 338.</span></li>
2410
+
<li>At <ahref="#deactivated"><code>sh:deactivated</code></a> to deactivate certain shapes under specific conditions.</li>
2403
2411
</ul>
2404
2412
<p>
2405
2413
Readers who are only interested in SHACL Core can typically skip this section.
<h2>Changes between SHACL 1.0 Core and SHACL 1.2 Core</h2>
6592
6600
<ul>
6593
-
<li>Introduced <a>node expressions</a> as an extension point to dynamically compute lists of nodes. Generalized <code>sh:targetNode</code> and <code>sh:defaultValue</code>, and introduced <code>sh:values</code> to support node expressions.</li>
6601
+
<li>Introduced <a>node expressions</a> as an extension point to dynamically compute lists of nodes. Generalized <code>sh:targetNode</code>, <code>sh:deactivated</code> and <code>sh:defaultValue</code>, and introduced <code>sh:values</code> to support node expressions.</li>
6594
6602
<li>Added the new constraint component <ahref="#SingleLineConstraintComponent"><code>sh:singleLine</code></a>, see <ahref="https://github.com/w3c/data-shapes/issues/177">Issue 177</a></li>
6595
6603
<li>Added the new class <ahref="#ShapeClass"><code>sh:ShapeClass</code></a> for implicit class targets, see <ahref="https://github.com/w3c/data-shapes/issues/212">Issue 212</a></li>
6596
6604
<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>
0 commit comments