W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > February 2005

Question/Comment on FROM and WITH

From: Geoff Chappell <geoff@sover.net>
Date: Tue, 22 Feb 2005 11:10:02 -0500
To: <public-rdf-dawg-comments@w3.org>
Message-ID: <019f01c518f8$f7b334c0$6401a8c0@gsclaptop>

Are graph labels lost when assembling a background graph with WITH clause?
E.g. what would I get for this query?

SELECT ?src
WITH <http://example.org/foaf/aliceFoaf> <http://example.org/foaf/bobFoaf> 
WHERE
  GRAPH ?src
  {
    ( ?x ?y ?z )
  }

and what about this one - will it return any results?

SELECT ?x
FROM <http://example.org/foaf/aliceFoaf> 
WHERE
    ( ?x ?y ?z )


If the graph labels are maintained, I see no distinction between FROM and
WITH. If they're not, then example queries such as in 8.1 and 8.2 are pretty
confusing and I'd suggest using explicit FROM/WITH.

Geoff
Received on Tuesday, 22 February 2005 16:10:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:47 GMT