GRAPH does not imply retrieving deleted data in storage, which would be too dangerous for security. There may be some systems where you can enable this, but this is non-standard.
However, in the SPARQL 1.1 Update, there is a LOAD keyword that does this, although you can write:
LOAD <uri>
Which will take the graph to the repository so you can write:
PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema
Provide bindings for? graph into the LOAD statement set, and then run the original query.
NB in ββsome systems, for example. 4store you need to enable LOAD, this is not allowed by default, so check the documentation in the store you are using.
Steve harris
source share