W3C home > Mailing lists > Public > public-lod@w3.org > February 2012

Re: Metadata about single triples

From: Carsten Keßler <carsten.kessler@uni-muenster.de>
Date: Thu, 23 Feb 2012 22:09:03 +0100
Message-ID: <CANqMnYMz2zEsoo8ZY9c2R84aq=4FOZLkXvpp2rnmwCoSOw9dOw@mail.gmail.com>
To: David Booth <david@dbooth.org>
Cc: Michael Brunnbauer <brunni@netestate.de>, public-lod@w3.org, Chad Hendrix <hendrix@un.org>
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
Received on Thursday, 23 February 2012 21:09:31 UTC

This archive was generated by hypermail 2.3.1 : Sunday, 31 March 2013 14:24:37 UTC