Skip to content

Commit a355688

Browse files
committed
Extend sh:nodeByExpression description
1 parent 401f7c2 commit a355688

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

shacl12-core/index.html

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6672,8 +6672,24 @@ <h4>sh:nodeByExpression</h4>
66726672
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.
66736673
</p>
66746674
<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 <a href="#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>
66776693
as an <a>IRI expression</a> that evaluates to a set containing the same <a>node shape</a>.
66786694
</p>
66796695
<p>

0 commit comments

Comments
 (0)