Or output to .nt and sort the file externally (unix sort with "--key" - which 
only works when the sort order can be derived from subject, predicate and/or 
object).

Cheers, Joachim

> -----Ursprüngliche Nachricht-----
> Von: Martynas Jusevičius [mailto:marty...@atomgraph.com]
> Gesendet: Donnerstag, 29. März 2018 09:41
> An: users@jena.apache.org
> Betreff: Re: CONSTRUCT ... ORDER BY
> 
> Yes, SELECT.
> 
> Or you can use rdf:List to store an ordered list.
> On Thu, 29 Mar 2018 at 09.02, Laura Morales <laure...@mail.com> wrote:
> 
> > OK, makes sense.
> > Is there no way however to return a sorted list of triples? Only SELECT
> > can return sorted results?
> >
> >
> >
> >
> > Sent: Thursday, March 29, 2018 at 8:47 AM
> > From: "Lorenz Buehmann" <buehm...@informatik.uni-leipzig.de>
> > To: users@jena.apache.org
> > Subject: Re: CONSTRUCT ... ORDER BY
> > Nothing - by specification, CONSTRUCT returns an RDF graph which in fact
> > is a *set* of triples. Set -> unordered
> >
> >
> > On 29.03.2018 07:47, Laura Morales wrote:
> > > I'm running this query
> > >
> > >
> > > CONSTRUCT { ?sbj ex:property ?obj }
> > > FROM <...>
> > > WHERE {
> > > ?sbj a [] ;
> > > ex:property ?obj .
> > > }
> > > ORDER BY ?obj
> > >
> > >
> > > but the results are not returned sorted. Actually, it looks like the
> > results are sorted by ?sbj instead. What am I doing wrong?
> >
> >

Reply via email to