> The query: SELECT ?p ?o WHERE { ex:id1 ?p ?o } gives me all triples
> width subject ex:id1. My question is, is it possible to expand this
> query, to get all triples width subject ex:id2, too?
of course it is:
SELECT ?p ?oWHERE { { ex:id1 ?p ?o. } UNION { ex:id2 ?p ?o. } }
See http://www.w3.org/TR/rdf-sparql-query/#alternatives for a reference on
UNION and SPARQL in general ...
regards
SD
--
Sebastian Dietzold - Department of Computer Science; University of Leipzig
Tel/Fax: +49 341 97 323-66/-29 http://bis.uni-leipzig.de/SebastianDietzold