Allows having a global order on the results even if it's unspecified by SPARQL. This ordering is likely to change in the future (addition of proper support of other datatypes...).pull/190/head
parent
6dffbe09ad
commit
581ee0e7af
@ -0,0 +1,3 @@ |
|||||||
|
SELECT ?o WHERE { |
||||||
|
VALUES ?o { 4.0 "v" "u"@en "a" "d"@de "c"@en "b" "foo"^^<http://example.com/h> 1 "2021-30-30"^^<http://www.w3.org/2001/XMLSchema#date> "2020-30-29T00:00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> d } |
||||||
|
} ORDER BY ?o |
@ -0,0 +1,66 @@ |
|||||||
|
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
||||||
|
@prefix rs: <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> . |
||||||
|
|
||||||
|
[] rdf:type rs:ResultSet ; |
||||||
|
rs:resultVariable |
||||||
|
"o" ; |
||||||
|
rs:solution [ rs:binding [ rs:value -1e3 ; |
||||||
|
rs:variable "o" |
||||||
|
] ; |
||||||
|
rs:index 1 |
||||||
|
] ; |
||||||
|
rs:solution [ rs:binding [ rs:value 1 ; |
||||||
|
rs:variable "o" |
||||||
|
] ; |
||||||
|
rs:index 2 |
||||||
|
] ; |
||||||
|
rs:solution [ rs:binding [ rs:value "2020-30-29T00:00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; |
||||||
|
rs:variable "o" |
||||||
|
] ; |
||||||
|
rs:index 3 |
||||||
|
] ; |
||||||
|
rs:solution [ rs:binding [ rs:value "2021-30-30"^^<http://www.w3.org/2001/XMLSchema#date> ; |
||||||
|
rs:variable "o" |
||||||
|
] ; |
||||||
|
rs:index 4 |
||||||
|
] ; |
||||||
|
rs:solution [ rs:binding [ rs:value 4.0 ; |
||||||
|
rs:variable "o" |
||||||
|
] ; |
||||||
|
rs:index 5 |
||||||
|
] ; |
||||||
|
rs:solution [ rs:binding [ rs:value "a" ; |
||||||
|
rs:variable "o" |
||||||
|
] ; |
||||||
|
rs:index 6 |
||||||
|
] ; |
||||||
|
rs:solution [ rs:binding [ rs:value "b" ; |
||||||
|
rs:variable "o" |
||||||
|
] ; |
||||||
|
rs:index 7 |
||||||
|
] ; |
||||||
|
rs:solution [ rs:binding [ rs:value "c"@en ; |
||||||
|
rs:variable "o" |
||||||
|
] ; |
||||||
|
rs:index 8 |
||||||
|
] ; |
||||||
|
rs:solution [ rs:binding [ rs:value "d"@de ; |
||||||
|
rs:variable "o" |
||||||
|
] ; |
||||||
|
rs:index 9 |
||||||
|
] ; |
||||||
|
rs:solution [ rs:binding [ rs:value "foo"^^<http://example.com/h> ; |
||||||
|
rs:variable "o" |
||||||
|
] ; |
||||||
|
rs:index 10 |
||||||
|
] ; |
||||||
|
rs:solution [ rs:binding [ rs:value "u"@en ; |
||||||
|
rs:variable "o" |
||||||
|
] ; |
||||||
|
rs:index 11 |
||||||
|
] ; |
||||||
|
rs:solution [ rs:binding [ rs:value "v" ; |
||||||
|
rs:variable "o" |
||||||
|
] ; |
||||||
|
rs:index 12 |
||||||
|
] . |
Loading…
Reference in new issue