Re: CONSTRUCT ... ORDER BY

2018-03-29 Thread Martynas Jusevičius
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?
>
>


Re: CONSTRUCT ... ORDER BY

2018-03-29 Thread Laura Morales
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?
 


Re: CONSTRUCT ... ORDER BY

2018-03-29 Thread Lorenz Buehmann
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?