[redland-dev] order by on dates

Dave Beckett dave.beckett at bristol.ac.uk
Tue Jun 7 17:21:11 BST 2005


On Mon, 2005-06-06 at 23:57 +0200, Danny Ayers wrote:
> On 6/6/05, Gregory Williams <greg at evilfunhouse.com> wrote:
> 
> > I'm pretty sure the latest rasqal supports the grammar for sorting,
> > but the internals don't do anything with that information.
> > 
> > http://librdf.org/rasqal/RELEASE.html says:
> > 
> > > (Note: the query engine does not support sorting amongst other
> > > recently added SPARQL features)
> 
> Ah, thanks. That was the something obvious I'd missed ;-)

I guess you'll be happy to know that I added an initial sorting
implementation in the query engine CVS this morning.  Sorting is
performed on all results in memory (so don't try that with huge results)
and it's with stringy compares so integer 10 collates less
than integer 2 since "10" < "2", i.e. like RDQL.  Fixing that is
piles of detail.   So date sorting might work if you stick to
a normalised form such as without timezones.

Dave




More information about the redland-dev mailing list