- From: Lee Feigenbaum <lee@thefigtrees.net>
- Date: Mon, 31 Aug 2009 06:06:58 -0400
- To: Mirko <idonthaveenoughinformation@googlemail.com>
- CC: public-sparql-dev@w3.org
SELECT DISTINCT should be unrelated to ORDER BY, which in turn should be unrelated to the graphs that comprise the default graph in your RDF dataset. If you are seeing a problem, perhaps you should contact the maintainers/supporters of your specific SPARQL implementation. Lee Mirko wrote: > Hi, > I wonder how to solve this. I have the following query: > > SELECT ?labelValue FROM :graphA FROM :graphB > WHERE { > ?post :contains :givenTag . > ?post :contains ?tag . > ?tag :label ?labelValue . > ?post :created ?date > } > ORDER BY DESC (?date) > LIMIT 10 > > Now, I would like to have only distinct ?labelValues as results. > Unfortunately, in my case SELECT DISTINCT messes up the order when > selecting from several graphs. > > How could I make the results (?labelValue) of the above query distinct > while keeping the order? > > Thanks, > Mirko > >
Received on Monday, 31 August 2009 10:07:46 UTC