Skip to content

Commit 853a268

Browse files
committed
Updates from reviews
1 parent 4730d14 commit 853a268

File tree

1 file changed

+27
-21
lines changed

1 file changed

+27
-21
lines changed

spec/index.html

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10631,7 +10631,7 @@ <h4>Syntax Restriction</h4>
1063110631
</table>
1063210632
<div class="note">
1063310633
<p>
10634-
This restriction means that <a href="#defn_valuesinsertion">values inserted</a>
10634+
This restriction means that inserted values
1063510635
do not conflict with values assigned to variables within the pattern.
1063610636
</p>
1063710637
<p>
@@ -10654,13 +10654,14 @@ <h4>Remapping</h4>
1065410654
<div class="defn">
1065510655
<b>Definition: <span id="defn_projmap">Projection Expression Variable Remapping</span></b>
1065610656
<p>
10657-
For a projection algebra operation #sparqlProjection `Project(A, PV)` acting on algreg express `A` and with set of variables `PV`, define
10658-
a partial mapping `F` from
10659-
`<a href="#sparqlQueryVariables">V</a>`,
10660-
the set of all variables, to `V` where:
10657+
For a <a href="#sparqlProjection">projection algebra operation</a>
10658+
`Project(A, PV)` acting on algebra expression `A` and with set of variables `PV`,
10659+
define a mapping `F` from `V`,
10660+
<a href="#sparqlQueryVariables">the set of all variables</a>,
10661+
to `V` where:
1066110662
</p>
10662-
<pre>F(v) = v1 if v is in PV, where v1 is a fresh variable
10663-
F(v) = v if v is not in PV</pre>
10663+
<pre>F(v) = v1 if v is not in PV, where v1 is a fresh variable
10664+
F(v) = v if v is in PV</pre>
1066410665
<p>
1066510666
Define the Projection Expression Variable Remapping `ProjectMap(P, PV)`
1066610667
</p>
@@ -10678,15 +10679,15 @@ <h4>Remapping</h4>
1067810679
<div class="defn">
1067910680
<b>Definition: <span id="defn_varrename">Variable Remapping</span></b>
1068010681
<p>
10681-
For any algebra expression `X`, define the Variable Remapping `PrjMap(X)`
10682+
For any algebra expression `X`, define the Variable Remapping `PrjMap(X)`
1068210683
of algebra expression `X`:
1068310684
</p>
1068410685
<pre>PrjMap(X) = replace all project operations Project(P, PV)
10685-
with ProjectMap(P, PV) for each projection in X.</pre>
10686+
with ProjectMap(Project(A, PV), PV) for each projection in X.</pre>
1068610687
</div>
1068710688
<p>
1068810689
The outcome of `PrjMap` is independent of the order of replacement
10689-
(e.g. bottom-up or top-down).
10690+
(whether "bottom-up" or "top-down") order.
1069010691
Replacements may happen several times, depending on recursive order
1069110692
but each time a replacement is made, the variable not used anywhere else.
1069210693
</p>
@@ -10719,6 +10720,7 @@ <h4>Values Insertion</h4>
1071910720
being the current binding of the enclosing filter.
1072010721
</p>
1072110722
</div>
10723+
<p class="ednote">Need to define `BindingInScope`</p>
1072210724
</div>
1072310725

1072410726
<div class="defn">
@@ -10727,13 +10729,14 @@ <h4>Values Insertion</h4>
1072710729
<p>
1072810730
During <a href="#sparqlQuery">translation to the SPARQL algebra</a>
1072910731
</p>
10732+
<p class="ednote">Define putting in the `BindingInScope` operator</p>
1073010733
<pre>
10731-
Replace each occurence of `Y` in X where `Y` is one of
10734+
Replace each occurence of Y where Y is one of
1073210735
<a href="#sparqlTranslateBasicGraphPatterns">Basic Graph Pattern</a>,
10733-
<a href="#sparqlTranslatePathExpressions">Property Path Expression</a>,
10734-
<a href="#sparqlTranslateGraphPatterns">`Graph(Var, pattern)`</a>,
10736+
<a href="#sparqlTranslatePathPatterns">Property Path Patterns</a>,
10737+
<a href="#sparqlTranslateGraphPatterns">Graph(Var, pattern)</a>,
1073510738
<a href="#https://www.w3.org/TR/sparql12-query/#sparqlTranslateGraphPatterns">Inline Data</a>
10736-
with `join(Y, BindingInScope())`.</pre>
10739+
with join(Y, BindingInScope()).</pre>
1073710740
</div>
1073810741
<div class="note">
1073910742
c.f. section <a href="#sparqlTranslateGraphPatterns">Translate Graph Patterns</a>
@@ -10755,18 +10758,18 @@ <h4>Values Insertion</h4>
1075510758
</p>
1075610759
<div class="defn">
1075710760
<div>
10758-
<b>Definition: <span id="defn_valuesinsertion">Values Insertion</span></b>
10761+
<b>Definition: <span id="defn_insertvalues">Insert Values</span></b>
1075910762
<p>
10760-
Define the Values Insertion function `ValuesInsert(X, μ)`
10763+
Define the function `InsertValues(X, μ)`
1076110764
</p>
1076210765
<pre>Let Table(μ) = { μ } and multiplicity( μ | Table(μ) = { μ } ) = 1
1076310766

10764-
Replace each occurence of `Y` in X where `Y` is one of
10767+
Replace each occurence of Y in X where Y is one of
1076510768
<a href="#sparqlTranslateBasicGraphPatterns">Basic Graph Pattern</a>,
10766-
<a href="#sparqlTranslatePathExpressions">Property Path Expression</a>,
10767-
<a href="#sparqlTranslateGraphPatterns">`Graph(Var, pattern)`</a>,
10769+
<a href="#sparqlTranslatePathPatterns">Property Path Patterns</a>,
10770+
<a href="#sparqlTranslateGraphPatterns">Graph(Var, pattern)</a>,
1076810771
<a href="#https://www.w3.org/TR/sparql12-query/#sparqlTranslateGraphPatterns">Inline Data</a>
10769-
with `join(Y, Table(μ))`.</pre>
10772+
with join(Y, Table(μ)).</pre>
1077010773

1077110774
</div>
1077210775
</div>
@@ -10780,8 +10783,11 @@ <h4>Evaluation of EXISTS</h4>
1078010783
Let `μ` be the current solution mapping for a filter, and `X` a graph pattern,
1078110784
define the Evaluation of Exists `exists(X)`
1078210785
</p>
10786+
<p class="ednote">
10787+
@@ Set up the current row for `BindingdInScope`.
10788+
</p>
1078310789
<pre>exists(X) = true
10784-
if eval( D(G), ValuesInScope(PrjMap(X)), μ)
10790+
if eval( D(G), μ)
1078510791
is a non-empty solution sequence.
1078610792
exists(X) = false otherwise</pre>
1078710793
</div>

0 commit comments

Comments
 (0)