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:[email protected]] > Gesendet: Donnerstag, 29. März 2018 09:41 > An: [email protected] > 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 <[email protected]> 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" <[email protected]> > > To: [email protected] > > 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? > > > >
