Hi David,
> select ?s ?p ?o where {
> graph ?g1 { ?g <http://xmlns.com/foaf/0.1/maker>
> <http://www.brunni.de/foaf.rdf#me> }
> graph ?g { ?s :p1 ?o .
> ?s :p2 ?o .}
> }
So we'd have to do (assuming all graph metadata are stored in the same graph):
select ?s ?p ?o where {
graph ?g1 { ?g <http://xmlns.com/foaf/0.1/maker>
<http://www.brunni.de/foaf.rdf#me> .
?g2 <http://xmlns.com/foaf/0.1/maker>
<http://www.brunni.de/foaf.rdf#me> .
}
graph ?g { ?s :p1 ?o .}
graph ?g2 { ?s :p2 ?o .}
}
That's what I was planning for – not nice, but I could live with that.
Or does that query imply ?g != ?g2 ? This would not get us the results
where both triples happen to be in the same named graph, which would
be a problem…
Carsten