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
a referenced <a>node expression</a> is used to dynamically compute the set of <a>node shapes</a> to which each <a>value node</a> must conform.
6673
6673
</p>
6674
6674
<p>
6675
-
Note that `sh:node` and `sh:nodeByExpression` exhibit the same behavior when given a <a>value</a> that is an <a>IRI</a> of a <a>node shape</a>.
6676
-
In this case, `sh:node` directly validates against the specified <a>node shape</a>, whereas `sh:nodeByExpression` interprets the <a>IRI</a>
6675
+
There are three key differences between <code>sh:nodeByExpression</code> and <ahref="#NodeConstraintComponent"><code>sh:node</code></a>:
6676
+
<ol>
6677
+
<li>
6678
+
<code>sh:nodeByExpression</code> references a <a>node expression</a> instead of a fixed <a>node shape</a> as <code>sh:node</code> does.
6679
+
</li>
6680
+
<li>
6681
+
<code>sh:nodeByExpression</code> cannot reference a <a>node shape</a> that is a <a>blank node</a> as a value like <code>sh:node</code> can,
6682
+
as a <a>blank node</a> would be interpreted as a <a>node expression</a>.
6683
+
</li>
6684
+
<li>
6685
+
<a>Results</a> generated by <code>sh:nodeByExpression</code> additionally include a value for `sh:sourceConstraint`.
6686
+
</li>
6687
+
6688
+
</ol>
6689
+
</p>
6690
+
<p>
6691
+
Note that <code>sh:node</code> and <code>sh:nodeByExpression</code> exhibit the same behavior when given a <a>value</a> that is an <a>IRI</a> of a <a>node shape</a>.
6692
+
In this case, <code>sh:node</code> directly validates against the specified <a>node shape</a>, whereas <code>sh:nodeByExpression</code> interprets the <a>IRI</a>
6677
6693
as an <a>IRI expression</a> that evaluates to a set containing the same <a>node shape</a>.
0 commit comments