Hello Martynas

many thanks for the swift response.

When you say:
> You can do post-processing to sort them the way you want

are there tools to help me with this within fuseki and jena, or am I
going to have to write my own sorting implementation on the output
stream?

thank you
mark

On Thu, 27 Feb 2014 14:34:49 +0100
Martynas Jusevičius <[email protected]> wrote:

> Mark,
> 
> if you are using DESCRIBE or CONSTRUCT queries then the result you get
> is a Model. And a model is a set of statements which is not ordered.
> You can do post-processing to sort them the way you want, e.g. when
> you are presenting data to the user.
> 
> Martynas
> 
> On Thu, Feb 27, 2014 at 2:29 PM, mark <[email protected]> wrote:
> > Hello
> >
> > SPARQL and fuseki support results ordering using the 'order by'
> > statements.
> >
> > Fuseki implement the ordering of results for SELECT queries
> > in exactly the way I expect.
> >
> > However, if I put the same WHERE clause into a CONSTRUCT query
> > (output="text") the results I get back are not ordered in a way I
> > expect at all.
> >
> > The results appear to be consistently ordered for identical tdb
> > content but any change to the tdb appears to lead to changes in
> > ordering of the .ttl output.
> >
> > I do not see how this may be controlled or managed.  I tripped over
> > this, it came as something of a surprise to me.
> >
> > Is there a way to control the ordering of output via CONSTRUCT so
> > that it is handled in the same way as for SELECT?
> >
> > This would be a very useful feature for me.
> >
> > many thanks
> >
> > mark

Reply via email to