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

Comments on SPARQL: Querying the Dataset

From: Jagannathan Srinivasan <jagannathan.srinivasan@oracle.com>
Date: Tue, 30 Aug 2005 15:01:08 -0400
Message-ID: <4314ACF4.8020308@oracle.com>
To: public-rdf-dawg-comments@w3.org
CC: jags Srinivasan <Jagannathan.Srinivasan@oracle.com>

Hi,

I have a question regarding section 8.3 Restricting by Bound Variables:

Is the specification in WHERE clause order-independent? Specifically, 
can I reverse the
order (as shown below as compared to the example in the document ) and 
still get the same result?

PREFIX  data:  <http://example.org/foaf/>
PREFIX  foaf:  <http://xmlns.com/foaf/0.1/>
PREFIX  rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
PREFIX  rdfs:  <http://www.w3.org/2000/01/rdf-schema#>

SELECT ?mbox ?nick ?ppd
WHERE
{
  GRAPH ?ppd
  {
      ?w foaf:mbox ?mbox ;
         foaf:nick ?nick 
  } .
  GRAPH data:aliceFoaf
  {
    ?alice foaf:mbox <mailto:alice@work.example> ;
           foaf:knows ?whom .
    ?whom  foaf:mbox ?mbox ;
           rdfs:seeAlso ?ppd .
    ?ppd  a foaf:PersonalProfileDocument .
  } 
} 

Thanks,

Jags
Received on Wednesday, 31 August 2005 06:35:31 GMT

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