W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > April to June 2011

description of WITH

From: Paul Gearon <pgearon@revelytix.com>
Date: Tue, 3 May 2011 10:58:34 -0400
Message-ID: <BANLkTi=ebyLwFhEtuO4-ToiezWF3bZBBRg@mail.gmail.com>
To: SPARQL Working Group <public-rdf-dawg@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:46 GMT