Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-828

Handling strings for RDF 1.1 in SPARQL

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Jena 2.12.1
    • Jena 2.13.0
    • ARQ
    • 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

      1. Order by lexical form
      2. Order by xsd:string < language literals.
      3. Order by language literals, base don language tag (case-insensitive, then case senstive).
      4. Datatypes by URI string

      A language literal has datatype rdf:langStirng but also has a non-empty language tag.

      Attachments

        Issue Links

          Activity

            People

              andy Andy Seaborne
              andy Andy Seaborne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: