[ 
https://issues.apache.org/jira/browse/JENA-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14245991#comment-14245991
 ] 

ASF subversion and git services commented on JENA-828:
------------------------------------------------------

Commit 932528b1ebb2cfb93dbc9046b179c6993743fc80 in jena's branch 
refs/heads/master from [~andy.seaborne]
[ https://git-wip-us.apache.org/repos/asf?p=jena.git;h=932528b ]

JENA-828 : Sorting of literals for RDF 1.1

> Handling strings for RDF 1.1 in SPARQL
> --------------------------------------
>
>                 Key: JENA-828
>                 URL: https://issues.apache.org/jira/browse/JENA-828
>             Project: Apache Jena
>          Issue Type: Task
>          Components: ARQ
>    Affects Versions: Jena 2.12.1
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to