W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > October to December 2006

scoping set for the graph selector variable of a GRAPH pattern

From: Fred Zemke <fred.zemke@oracle.com>
Date: Fri, 10 Nov 2006 11:01:04 -0800
Message-ID: <4554CC70.2060205@oracle.com>
To: public-rdf-dawg@w3.org

In Perez et.al. "Semantics of SPARQL" Definition 3.9
item (3) second dashed bullet, I think it is saying that the
value of a graph selector variable in a GRAPH pattern
does not need to be in the scoping set; rather, it needs to
be among the names of named graphs.  I agree with this position.

For example

SELECT { GRAPH ?g { 'Tom' <loves> 'Mary' } }

the query asks which graphs know that Tom loves Mary.
I do not believe there is any requirement for the value of
?g to be in the scoping set, that is, the RDF terms of the
default graph, which in this particular query will default to
some system default graph.  I see no reason to demand that
?g must be mapped to some term in the default RDF graph.
I see no reason to expect that the default RDF graph is
even aware of the two named graphs <g1> and <g2>.

Of course if ?g was also constrained by appearing in some basic
graph pattern, then the constraints on pattern matching the BGP
would also come into play and ?g would need to match a term
of the graph in which the BGP is evaluated.

Received on Friday, 10 November 2006 19:02:01 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:00:52 UTC