Skip to content

Commit e630b05

Browse files
committed
adds ContextMapping to the algebraic syntax, and adds a clarification about the initial context mapping
1 parent 17aa63f commit e630b05

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
@@ -8596,6 +8596,9 @@ <h3>Algebraic Syntax</h3>
85968596
is an algebraic query expression.
85978597
<div class="issue" data-number="231">Do we really need both of the previous two points?</div>
85988598
</li>
8599+
<li id="defn_absContextMapping">
8600+
<a href="#defn_absContextMapping" class="absOp">ContextMapping</a>
8601+
is an algebraic query expression.</li>
85998602
<li id="defn_absPath">
86008603
<a href="#defn_absPath" class="absOp">Path</a>(|x|, |ppe|, |y|)
86018604
is an algebraic query expression if
@@ -9204,7 +9207,7 @@ <h5>Translate Graph Patterns</h5>
92049207
</blockquote>
92059208
<pre class="code nohighlight">
92069209
Let FS := the empty set
9207-
Let <var>G</var> := the empty pattern, a basic graph pattern which is the empty set.
9210+
Let <var>G</var> := <a href="#defn_absContextMapping" class="absOp">ContextMapping</a>
92089211

92099212
For each element <var>E</var> in the sequence of elements in the GroupGraphPattern
92109213

@@ -10656,9 +10659,10 @@ <h5>Sample</h5>
1065610659
<h3>Evaluation Semantics</h3>
1065710660
<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
1065810661
respect to a <a href="#sparqlDataset">dataset</a> |D| having <a href="#defn_ActiveGraph">active graph</a> |G|
10659-
in correlation with solution mapping <var>μ<sub>ctx</sub></var>.
10660-
The active graph is initially the default
10661-
graph of |D|. Further symbols used in the following definitions are:</p>
10662+
in correlation with solution mapping <var>μ<sub>ctx</sub></var>.</p>
10663+
<p>The active graph is initially the default graph of |D| and
10664+
<var>μ<sub>ctx</sub></var> is initially the empty solution mapping <var>μ<sub>0</sub></var>.</p>
10665+
<p>Further symbols used in the following definitions are:</p>
1066210666
<ul>
1066310667
<li>|P|, <var>P<sub>1</sub></var>, <var>P<sub>2</sub></var> : graph patterns</li>
1066410668
<li>|L| : a solution sequence</li>
@@ -10679,6 +10683,10 @@ <h3>Evaluation Semantics</h3>
1067910683
<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>
1068010684
<p>See section <a href="#PropertyPathPatterns">Property Path Patterns</a></p>
1068110685
</div>
10686+
<div class="defn">
10687+
<p><b>Definition: <span id="defn_evalContextMapping">Evaluation of ContextMapping</span></b></p>
10688+
<p><a href="#defn_eval" class="evalFct">eval</a>( |D|(|G|), <a href="#defn_absContextMapping" class="absOp">ContextMapping</a>, <var>μ<sub>ctx</sub></var> ) = multiset that contains only <var>μ<sub>ctx</sub></var>, with a multiplicity of 1</p>
10689+
</div>
1068210690
<div class="defn">
1068310691
<p><b>Definition: <span id="defn_evalFilter">Evaluation of Filter</span></b></p>
1068410692
<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)