Skip to content

Commit 366e0d3

Browse files
committed
adapts the doc about possible queries to cover the fix for #376
1 parent 60e842d commit 366e0d3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/doc/queries.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ <h2>Source Assignments</h2>
8181
<li>The <code>WHERE</code> clause of the query must not contain any other <code>VALUES</code> clause.</li>
8282
</ul>
8383
<p>
84-
Given such a query, HeFQUIN rewrites the query pattern of the query by applying the solution mappings of the <code>VALUES</code> clause to the <code>SERVICE</code> clauses and, then, removing the <code>VALUES</code> clause. If the <code>VALUES</code> clause contains multiple solution mappings, then the group of <code>SERVICE</code> clauses is copied for each of these solution mappings, and the resulting groups are combined via <code>UNION</code>.
84+
Given such a query, HeFQUIN rewrites the query pattern of the query by applying the solution mappings of the <code>VALUES</code> clause to the <code>SERVICE</code> clauses and, then, removing the <code>VALUES</code> clause. If the <code>VALUES</code> clause contains multiple solution mappings, then the group of <code>SERVICE</code> clauses is copied for each of these solution mappings, and the resulting groups are combined via <code>UNION</code>. Additionally, in any of the two cases (just one solution mapping in the <code>VALUES</code> clause or multiple), <code>BIND</code> clauses are added to still capture the bindings for the variables of the <code>VALUES</code> clause.
8585
</p>
8686
<p>
8787
As an example, consider the following query.
@@ -105,11 +105,15 @@ <h2>Source Assignments</h2>
105105
{
106106
SERVICE ex:endpoint1 { .. some pattern (that neither mentions ?s1 nor ?s2) .. }
107107
SERVICE ex:endpoint2 { .. also some pattern (that also doesn't mention ?s1 or ?s2) .. }
108+
BIND (?s1 AS ex:endpoint1)
109+
BIND (?s2 AS ex:endpoint2)
108110
}
109111
UNION
110112
{
111113
SERVICE ex:endpoint1 { .. some pattern (that neither mentions ?s1 nor ?s2) .. }
112114
SERVICE ex:endpoint3 { .. also some pattern (that also doesn't mention ?s1 or ?s2) .. }
115+
BIND (?s1 AS ex:endpoint1)
116+
BIND (?s2 AS ex:endpoint3)
113117
}
114118
}</code></pre>
115119

0 commit comments

Comments
 (0)