Comments on SPARQL: Querying the Dataset

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 UTC