Skip to content

Commit 1b85976

Browse files
authored
Merge pull request #319 from w3c/Issue302_Step2
adds ContextMapping to the algebraic syntax
2 parents 65f3781 + 6d14906 commit 1b85976

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

spec/index.html

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8603,6 +8603,9 @@ <h3>Algebraic Syntax</h3>
86038603
is an algebraic query expression.
86048604
<div class="issue" data-number="231">Do we really need both of the previous two points?</div>
86058605
</li>
8606+
<li id="defn_absContextSolution">
8607+
<a href="#defn_absContextSolution" class="absOp">ContextSolution</a>
8608+
is an algebraic query expression.</li>
86068609
<li id="defn_absPath">
86078610
<a href="#defn_absPath" class="absOp">Path</a>(|x|, |ppe|, |y|)
86088611
is an algebraic query expression if
@@ -9211,7 +9214,7 @@ <h5>Translate Graph Patterns</h5>
92119214
</blockquote>
92129215
<pre class="code nohighlight">
92139216
Let FS := the empty set
9214-
Let <var>G</var> := the empty pattern, a basic graph pattern which is the empty set.
9217+
Let <var>G</var> := <a href="#defn_absContextSolution" class="absOp">ContextSolution</a>
92159218

92169219
For each element <var>E</var> in the sequence of elements in the GroupGraphPattern
92179220

@@ -10664,9 +10667,10 @@ <h5>Sample</h5>
1066410667
<h3>Evaluation Semantics</h3>
1066510668
<p id="defn_eval">We define <a href="#defn_eval" class="evalFct">eval</a>(|D|(|G|), |A|, <var>μ<sub>ctx</sub></var>) as the evaluation of an <a href="#defn_AlgebraicQueryExpression">algebraic query expression</a> |A| with
1066610669
respect to a <a href="#sparqlDataset">dataset</a> |D| having <a href="#defn_ActiveGraph">active graph</a> |G|
10667-
in correlation with solution mapping <var>μ<sub>ctx</sub></var>.
10668-
The active graph is initially the default
10669-
graph of |D|. Further symbols used in the following definitions are:</p>
10670+
in correlation with solution mapping <var>μ<sub>ctx</sub></var>.</p>
10671+
<p>The active graph is initially the default graph of |D| and
10672+
<var>μ<sub>ctx</sub></var> is initially the empty solution mapping <var>μ<sub>0</sub></var>.</p>
10673+
<p>Further symbols used in the following definitions are:</p>
1067010674
<ul>
1067110675
<li>|P|, <var>P<sub>1</sub></var>, <var>P<sub>2</sub></var> : graph patterns</li>
1067210676
<li>|L| : a solution sequence</li>
@@ -10687,6 +10691,10 @@ <h3>Evaluation Semantics</h3>
1068710691
<p><a href="#defn_eval" class="evalFct">eval</a>( |D|(|G|), <a href="#defn_absPath" class="absOp">Path</a>(|X|, |path|, |Y|), <var>μ<sub>ctx</sub></var> ) = multiset of solution mappings</p>
1068810692
<p>See section <a href="#PropertyPathPatterns">Property Path Patterns</a></p>
1068910693
</div>
10694+
<div class="defn">
10695+
<p><b>Definition: <span id="defn_evalContextSolution">Evaluation of ContextSolution</span></b></p>
10696+
<p><a href="#defn_eval" class="evalFct">eval</a>( |D|(|G|), <a href="#defn_absContextSolution" class="absOp">ContextSolution</a>, <var>μ<sub>ctx</sub></var> ) = multiset that contains only <var>μ<sub>ctx</sub></var>, with a multiplicity of 1</p>
10697+
</div>
1069010698
<div class="defn">
1069110699
<p><b>Definition: <span id="defn_evalFilter">Evaluation of Filter</span></b></p>
1069210700
<p><a href="#defn_eval" class="evalFct">eval</a>( |D|(|G|), <a href="#defn_absFilter" class="absOp">Filter</a>(|F|, |P|), <var>μ<sub>ctx</sub></var> ) = <a href="#defn_algFilter" class="algFct">Filter</a>( |F|, <a href="#defn_eval" class="evalFct">eval</a>(|D|(|G|), |P|, <var>μ<sub>ctx</sub></var>), |D|, |G| )</p>

0 commit comments

Comments
 (0)