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
Can be used to query the shapes graph as in <code>GRAPH $shapesGraph { ... }</code>.
1083
-
If the shapes graph is a named graph in the same dataset as the data graph then it is the <a>IRI</a> of the shapes graph in the dataset.
1084
-
Not all SHACL-SPARQL processors need to support this variable.
1085
-
Processors that do not support the variable <code>shapesGraph</code> MUST report a <a>failure</a> if they encounter a query that references this variable.
1086
-
Use of <code>GRAPH $shapesGraph { ... }</code> should be handled with extreme caution.
1087
-
It may result in constraints that are not interoperable across different SHACL-SPARQL processors and that may not run on remote RDF datasets.
<spandata-syntax-rule="parameter-name-VARNAME">Every <a>parameter name</a> is a valid <adata-cite="sparql12-query/#rVARNAME">SPARQL VARNAME</a>.</span>
1287
-
<spandata-syntax-rule="parameter-name-not-in"><a>Parameter names</a> must not be one of the following: <code>this</code>, <code>shapesGraph</code>, <code>currentShape</code>, <code>path</code>, <code>PATH</code>, <code>value</code>.</span>
1257
+
<spandata-syntax-rule="parameter-name-not-in"><a>Parameter names</a> must not be one of the following: <code>this</code>, <code>path</code>, <code>PATH</code>, <code>value</code>.</span>
1288
1258
<spandata-syntax-rule="parameter-name-unique">A constraint component where two or more <a>parameter declarations</a> use the same <a>parameter names</a> is <a>ill-formed</a>.</span>
1289
1259
</p>
1290
1260
<pclass="syntax">
@@ -1584,9 +1554,8 @@ <h3>Validation with SPARQL-based Constraint Components</h3>
1584
1554
</li>
1585
1555
</ul>
1586
1556
<p>
1587
-
The SPARQL query executions above MUST <a>pre-bind</a> the variables
1588
-
<code>this</code> and, if supported, <code>shapesGraph</code> and <code>currentShape</code>
1589
-
as described in <ahref="#sparql-constraints-prebound"></a>.
1557
+
The SPARQL query executions above MUST <a>pre-bind</a> the variable
1558
+
<code>this</code> as described in <ahref="#sparql-constraints-prebound"></a>.
1590
1559
In addition, each <a>value</a> of a <a>parameter</a> of the <a>constraint component</a> in the <a>constraint</a>
1591
1560
MUST be <a>pre-bound</a> as a variable that has the <a>parameter name</a> as its name.
1592
1561
</p>
@@ -2014,7 +1983,7 @@ <h2>Pre-binding of Variables in SPARQL Queries</h2>
2014
1983
SHACL-SPARQL processors MUST report a <a>failure</a> when it is operating on a <a>shapes graph</a>
2015
1984
that contains SHACL-SPARQL queries (via <code>sh:select</code> and <code>sh:ask</code>) that violate any of these restrictions.
2016
1985
Note that the term <em>potentially pre-bound variables</em> includes the variables <code>this</code>,
The following query expresses a potential SPARQL-based validator for <adata-cite="shacl12-core#InConstraintComponent">sh:in</a>.
2283
-
</p>
2284
-
<divclass="def def-sparql">
2285
-
<divclass="def-header">POTENTIAL DEFINITION IN SPARQL (Must evaluate to true for each value node $value)</div>
2286
-
<preclass="def-sparql-body">
2287
-
ASK {
2288
-
GRAPH $shapesGraph {
2289
-
$in (rdf:rest*)/rdf:first $value .
2290
-
}
2291
2245
}</pre>
2292
2246
</div>
2293
2247
</section>
@@ -2335,6 +2289,7 @@ <h2>Changes between SHACL 1.0 SPARQL and SHACL 1.2 SPARQL Extensions</h2>
2335
2289
<li>Added support for <a>annotation properties</a>, see <ahref="https://github.com/w3c/data-shapes/issues/327">Issue 327</a></li>
2336
2290
<li>Added the <a>node expression function</a><ahref="#SPARQLExprExpression"><code>sh:SPARQLExprExpression</code></a>, see <ahref="https://github.com/w3c/data-shapes/issues/315">Issue 315</a></li>
2337
2291
<li>Clarified that VALUES clauses are only disallowed when they mention <ahref="#pre-binding">pre-bound variables</a> and removed the restriction on sub-SELECTs, see <ahref="https://github.com/w3c/data-shapes/issues/159">Issue 159</a></li>
2292
+
<li>Removed support for the optional pre-bound variables <code>shapesGraph</code> and <code>currentShape</code>, see <ahref="https://github.com/w3c/data-shapes/issues/426">Issue 426</a></li>
0 commit comments