Hey Andy

Me and one of my colleagues are once again having a debate about the 
interpretation of SPARQL datasets which you may be able to clear up.

Assuming the following dataset created with a SPARQL Update:

INSERT DATA
{
<ex:default> <ex:default> <ex:default> .
GRAPH <ex:from> { <ex:from> <ex:from> <ex:from> }
GRAPH <ex:named> { <ex:named> <ex:named> <ex:named> }
GRAPH <ex:other> { <ex:other> <ex:other> <ex:other> }
}

Now given the query:

SELECT * FROM <ex:from> { GRAPH <ex:named> { ?s ?p ?o } }

What should be the result?

I was expected to see a single row with the triple from <ex:named> but ARQ 
gives back no results.

Maybe this is just a case of me mis-interpreting the SPARQL spec but I'd like 
to get an answer from a definitive source.  My interpretation is that if you 
have a FROM without any FROM NAMED you are setting the default graph explicitly 
but leaving the named graphs to be all named graphs in the store.

Cheers,

Rob


Reply via email to