Details
-
Task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Jena 2.12.1
-
None
Description
RDF 1.1 defines simple literals and simple literals to be the same (literals with datatype xsd:string). This affects the sorting, where the SPARQL 1.1 spec says simple literals sort before datatype literals.
Best compatibility is to make sorting: xsd:string < all other datatypes with same lexical form.
ARQ also defines ordering between any two RDF terms in a stable, predictable way based on lexical form first, then simple literals < lang literals < datatypes by URI. This is not covered by the SPARQL spec
For RDF 1.1 this becomes
- Order by lexical form
- Order by xsd:string < language literals.
- Order by language literals, base don language tag (case-insensitive, then case senstive).
- Datatypes by URI string
A language literal has datatype rdf:langStirng but also has a non-empty language tag.