description of WITH

The previous text for the use of WITH was previously:

That is, the GroupGraphPattern in the WHERE clause will be matched
against the dataset described by explicit USING or USING NAMED
clauses, if specified, and against the graph store otherwise. Any
graph name specified in a WITH clause will - for evaluating the WHERE
clause - refer to either the default graph of that explicitly defined
dataset, or to the default graph of the graph store, respectively (in
the absence of USING or USING NAMED clauses).


This was unclear for me, since an explicitly defined dataset
(described with the USING/USING NAMED keywords) will already have a
default graph if there are USING keywords present. So I would like to
propose calling out the various scenarios:


That is, the GroupGraphPattern in the WHERE clause will be matched
against the dataset described by explicit USING or USING NAMED
clauses, if specified, and against the graph store otherwise. Any
graph name specified in a WITH clause will - for evaluating the WHERE
clause - refer to the default graph to be used in the absence of USING
or USING NAMED clauses. In the presence of one or more graphs referred
to in USING clauses, the default graph will be the merge of these
graphs, meaning that the graph in a WITH clause will be ignored while
evaluating the WHERE clause. If there is no USING clause, but there is
one of more USING NAMED clauses, then the dataset will include a
default graph specified by the WITH clause, if present, or an empty
graph otherwise.



Paul Gearon

Received on Tuesday, 3 May 2011 14:59:02 UTC