Extracting ordering information from order by in a construct statement

Hi,

There doesn't seem to be anyway to create a SPARQL construct statement 
like the following:

construct {?s :comesafter previous(?s)}
where {?s rdf:type :Person . ?s :lastName ?lastname}
order by asc(?lastname)

similarly with things like:
first(?s) - returns the first ?s
next(?s) - returns the next ?s
last(?s) - returns the last ?s

I had made a similar post on:
http://answers.semanticweb.com/questions/12902/extracting-ordering-information-from-order-by-in-a-construct-statement

but I did not get anything that would work or seem remotely efficient.  
If this is the case, why have order by in a construct statement at all 
if one cannot capture this information as triples?

Thanks! - Erich

Received on Wednesday, 17 October 2012 13:54:25 UTC