whit wrote: > I'm trying to do a match like so: > > select distinct ?person > where { > ?person foaf:knows ?a . > ?person foaf:knows ?b . > } > > in plain terms, I want all people who know both ?a and ?b . My query > work if I include just a single pattern (ala ?person foaf:knows ?a or > ?person foaf:knows ?b) but fails if both pattern are present despite > triples representing persons knowing ?a and ?b.
Looks right to me (assuming you bound ?a and ?b). Does it behave differently without 'distinct'? I recommend writing this into a test case if you can. Then we'll all have exactly the same code to run, and we can put it in the suite so it gets run on every future version of rdflib. _______________________________________________ Dev mailing list Dev@rdflib.net http://rdflib.net/mailman/listinfo/dev