On Thu, Oct 31, 2013 at 11:08 AM, Maria Jackson <maria.jackson....@gmail.com> wrote: > select ?x ?a ?b ?c ?d ?e ?f where { > graph ?r { > ?x ?y <CountryZ> > } > graph ?r1{ > ?x ?y <CountryZ1> > } > ?r <saidBy> Tia ; > > <saidOn> ?b ; > <saidAt> ?c ; > <confidence> ?d ; > <comment> ?e . > ?r1 <saidBy> Astrid. > } > Is the above query to retrieve a person who is linked to two different > countries correct?
Yes, if you've represented information in the way that I've described, this query would succeed if there's a graph ?r1 that Astrid said that contains the triple `?x ?y <CountryZ1>` and there's a graph ?r that Tia said that contains the triple `?x ?y <CountryZ>` _and_ which has all the other metadata, too (i.e., saidOn, saidAt, confidence, and comment). //JT -- Joshua Taylor, http://www.cs.rpi.edu/~tayloj/