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

ResultSetReaderJSON does not accept "lang"+"datatype" on the same literal.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Jena 3.7.0
    • Jena 3.8.0
    • None
    • None

    Description

      Reported by Philip Coates by email date 2018-06-08 on dev@.

      Example:

      {
        "xml:lang" : "en" ,
        "datatype" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#langString" ,
        "type" : "literal" ,
        "value" : "phototaxis"
      }
      

      The "datatype" is not needed because "xml:lang" implies it. The RDF specs recommend that daatypes are not added when there is a language tag.

      Jena can be lenient and accept this when "datatype" is rdf:langString (anything else is incorrect).

      For reference: "datatype" xsd:string isn't necessary either but is accepted (it happens from RDF 1.0 systems).

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: