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

Turtle pretty printer assumes bnodes in rdf:List

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Jena 3.15.0
    • Jena 4.1.0
    • RIOT
    • None

    Description

      Turtle/Trig pretty printer does not round-trip URIs in rdf:List and turns them into blank nodes.

      Command:
      riot--stream=pretty rdf_list.ttl

      rdf_list.ttl:

      <http://s> <http://p> <http://s#content1> .
      <http://s#content1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#first>
      <http://first> .
      <http://s#content1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest>
      <http://s#content2> .
      <http://s#content2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#first>
      "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>second</p></div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>
      .
      <http://s#content2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest>
      <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
      

      Result:

      <http://s>  <http://p>  ( <http://first> "<div
      xmlns=\"http://www.w3.org/1999/xhtml\"><p>second</p></div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>
      ) .
      

      Attachments

        Activity

          People

            andy Andy Seaborne
            graphity Martynas Jusevičius
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: