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?
>
>

Reply via email to