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

Literals in ntriples not unicode escaped

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Jena 2.10.1
    • Fix Version/s: Jena 2.11.0
    • Component/s: ARQ, Jena, RDF API
    • Labels:
      None
    • Environment:

      everywhere

      Description

      Unicode escaped characters like "\u005A" are string of 1 character and should be rendered as such when file encoding is UTF8 . Serializing ntriples, this is working for such escaped characters residing in URIs, but when used in literals the escaping is ignored. Thus, in literals "\u005A" is written as a string of 6 characters rather than a string of one, while in URIs there is 1 character.

      Using e. G. 'RDFDataMgr.write(System.out, model, Lang.TURTLE) the same model results as expected, though. The problem just arises when using NTriples .

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                andy Andy Seaborne
                Reporter:
                dr0i dr0i
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: