Doing this query SPARQL
select ?s ?p ?o
WHERE
{
GRAPH <graph_url> {
?s ?p ?o
}
}
ORDER BY DESC(?s) DESC(lang(?o) = "it") DESC(lang(?o) = "en") ?o
I order each element in the graph_url, such that given two element rdf of the same type I have first the element with attribute value "it" and then the elements with attribute values "en".
However if I apply a CONSTRUCT over it
CONSTRUCT { ?s ?p ?o }
WHERE
{
GRAPH <graph_url> {
?s ?p ?o
}
}
ORDER BY DESC(?s) DESC(lang(?o) = "it") DESC(lang(?o) = "en") ?o
I loose this order. I found out that CONSTRUCT doesn't mantain the order given by ORDER BY.
There is a way to construct an rdf with construct such that the graph resulted is ordered?