Skip to content

Commit 0773d54

Browse files
#164: Added hint on execution order for sh:and and sh:or (#366)
I didn't do sh:xone because that's much less clear, and also much less used.
1 parent 0e39d9f commit 0773d54

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shacl12-core/index.html

+4
Original file line numberDiff line numberDiff line change
@@ -4707,6 +4707,8 @@ <h4>sh:and</h4>
47074707
<p>
47084708
Note that although <code>sh:and</code> has a <a>SHACL list</a> of shapes as its value,
47094709
the order of those shapes does not impact the validation results.
4710+
For implementations that use shortcut evaluation semantics, the order may impact the efficiency of validation.
4711+
It is recommended to put earlier in the list constraints that are easier to evaluate, or are more likely to fail.
47104712
</p>
47114713
<p>
47124714
The following example illustrates the use of <code>sh:and</code> in a shape to specify the condition
@@ -4853,6 +4855,8 @@ <h4>sh:or</h4>
48534855
<p>
48544856
Note that although <code>sh:or</code> has a <a>SHACL list</a> of shapes as its value,
48554857
the order of those shapes does not impact the validation results.
4858+
For implementations that use shortcut evaluation semantics, the order may impact the efficiency of validation.
4859+
It is recommended to put earlier in the list constraints that are easier to evaluate, or are more likely to succeed.
48564860
</p>
48574861
<p>
48584862
The following example illustrates the use of <code>sh:or</code> in a shape to specify the condition

0 commit comments

Comments
 (0)