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

When using a triple quote delimiter on string data in TTL, if the string ends in the same quote character as the delimiter a RIOT exception is thrown.

    XMLWordPrintableJSON

    Details

    • Type: Question
    • Status: Closed
    • Priority: Minor
    • Resolution: Information Provided
    • Affects Version/s: Jena 3.8.0
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      When using a triple quote delimiter on string data in TTL, if the string ends in the same quote character as the delimiter a RIOT exception is thrown.  For example, 

      @prefix eg: <http://example.com#> .
      @prefix xs: <http://www.w3.org/2001/XMLSchema#> .
      [eg:name """Doe, Joe "Joey""""^^xs:string ;

      ]

      When calling model.read() with this TTL, this exception is thrown:

      org.apache.jena.riot.RiotException: [line: 5, col: 1 ] Broken token (newline): ^^xs:string ;

       

      See this illustrated in the attached code example, JenaRiotBug.groovy

      Note this affects both single and double quote triple-quote delimiters

        Attachments

        1. JenaRiotBug.groovy
          2 kB
          Rick Spates

          Activity

            People

            • Assignee:
              andy Andy Seaborne
              Reporter:
              rspates Rick Spates
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: