Hello Pierre, All 4 queries are now fixed in commercial version of Virtuoso and fixes are on their way to the Virtuoso Open Source snapshot.
The only note is that > sparql select distinct ?g where {graph ?g {?s ?p ?o}} order by (?g) > limit 1 offset 2; should actually return nothing. http://www.w3.org/TR/rdf-sparql-query/#modOffset says that "An OFFSET of zero has no effect", so "limit 1 offset 0" should return the first row of the 'unlimited' result set, "limit 1 offset 0" should return second row out of two and "limit 1 offset 2" is after end of result set. Best Regards, Ivan Mikhailov, OpenLink Software. On Tue, 2008-02-05 at 17:23 +0100, Pierre De Wilde wrote: > After a fresh installation of VOS 5.0.4, I ran the following queries: > > > 1. OK > sparql select distinct ?g where {graph ?g {?s ?p ?o}} order by (?g); > Result: > http://localhost:8890/DAV > http://www.openlinksw.com/schemas/virtrdf# > > > 2. NOK: name is repeated > sparql select ?g count(?g) where {graph ?g {?s ?p ?o}} order by (?g); > Result: > http://localhost:8890/DAV > 2125 > http://localhost:8890/DAV > 895 > > > 3. NOK: should be http://localhost:8890/DAV > sparql select distinct ?g where {graph ?g {?s ?p ?o}} order by (?g) > limit 1; > > Result: > http://www.openlinksw.com/schemas/virtrdf# > > > 4. NOK: should be http://www.openlinksw.com/schemas/virtrdf# > sparql select distinct ?g where {graph ?g {?s ?p ?o}} order by (?g) > limit 1 offset 2; > Result: > - > > > Pierre >