Skip to content

Commit af992cd

Browse files
#314: Clarified role of active graph
1 parent 18ed27d commit af992cd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

shacl12-core/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2411,7 +2411,7 @@ <h2>Node Expressions</h2>
24112411
<ul>
24122412
<li><code>expr</code> is a <a>node expression</a> in a <a>shapes graph</a>.
24132413
During evaluation, the engine can access <a>triples</a> related to <code>expr</code> in the <a>shapes graph</a>.</li>
2414-
<li><code>activeGraph</code> is a <a>graph</a>, called the <dfn>active graph</dfn>.</li>
2414+
<li><code>activeGraph</code> is a <a>graph</a>, called the <dfn>active graph</dfn>. This is the default query graph for the evaluation of the node expression.</li>
24152415
<li><code>focusNode</code> is a <a>node</a>, called the <dfn>input focus node</dfn>. This variable may have no value.</li>
24162416
<li><code>scope</code> is a map from <a href="https://www.w3.org/TR/sparql12-query/#defn_QueryVariable">variable names</a> to individual <a>nodes</a>.
24172417
The empty map is written as <code>{}</code>.

shacl12-sparql/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ <h3>Terminology</h3>
408408
<dfn data-cite="shacl12-core#dfn-function-name" data-lt="node expression function name">function name</dfn>,
409409
<dfn data-cite="shacl12-core#dfn-key-parameter" data-lt="key parameter">key parameter</dfn>,
410410
<dfn data-cite="shacl12-core#dfn-output-nodes" data-lt="output nodes">output nodes</dfn>,
411+
<dfn data-cite="shacl12-core#dfn-active-graph" data-lt="active graph">active graph</dfn>,
411412
<dfn data-cite="shacl12-core#dfn-conform" data-lt="conform|conforms">conform</dfn>,
412413
<dfn data-cite="shacl12-core#dfn-failure" data-lt="failure|failures">failure</dfn>,
413414
<dfn data-cite="shacl12-core#dfn-shacl-instance" data-lt="shacl instance">SHACL instance</dfn>,
@@ -1229,7 +1230,7 @@ <h3>Select Expressions</h3>
12291230
<div class="def-header">EVALUATION OF SELECT EXPRESSIONS</div>
12301231
<p>
12311232
The <a>output nodes</a> of a <a>select expression</a> are the list <code>resultNodes</code> consisting of exactly the bindings of the (only)
1232-
variable that is projected from the SELECT clause.
1233+
variable that is projected from the SELECT clause when the query is evaluated against the <a>active graph</a>.
12331234
The value of <code>focusNode</code> is <a>pre-bound</a> as the value of the SPARQL variable <code>this</code>.
12341235
The value of each scope variable is <a>pre-bound</a> as a SPARQL variable with the same name and value.
12351236
A <a>failure</a> is produced when one of the scope variables is called <code>this</code>.
@@ -1342,7 +1343,8 @@ <h3>SPARQL Expr Expressions</h3>
13421343
<div class="def-header">EVALUATION OF SPARQL EXPR EXPRESSIONS</div>
13431344
<p>
13441345
The <a>output nodes</a> of an <a>SPARQL expr expression</a> are the list <code>resultNodes</code> consisting of exactly the bindings of the (only)
1345-
variable that is projected from the SELECT clause of the <code>select</code> query as defined <a href="#syntax-rule-SPARQLExprExpression-template">above</a>.
1346+
variable that is projected from the SELECT clause of the <code>select</code> query as defined <a href="#syntax-rule-SPARQLExprExpression-template">above</a>
1347+
when the query is evaluated against the <a>active graph</a>.
13461348
The value of <code>focusNode</code> is <a>pre-bound</a> as the value of the SPARQL variable <code>this</code>.
13471349
The value of each scope variable is <a>pre-bound</a> as a SPARQL variable with the same name and value.
13481350
A <a>failure</a> is produced when one of the scope variables is called <code>this</code>.

0 commit comments

Comments
 (0)