Hi Ivan, Thanks a lot for your great support and for those fixes. BTW, when do you plan to announce the official VOS 5.0.4? Regarding limit 1 offset 2, I am not sure I fully understand what you mean.
For me: limit 1 => first row limit 1 offset 0 => first row limit 1 offset 1 => first row limit 1 offset 2 => second row So the following query > sparql select distinct ?g where {graph ?g {?s ?p ?o}} order by (?g) > limit 1 offset 2; should return the second row (if there are at least 2 rows in result set, of course). What do you think? Pierre 2008/2/7, Ivan Mikhailov <imikhai...@openlinksw.com>: > 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 > > > > >