Martynas Jusevičius created JENA-2104:
-----------------------------------------

             Summary: Turtle pretty printer assumes bnodes in rdf:List
                 Key: JENA-2104
                 URL: https://issues.apache.org/jira/browse/JENA-2104
             Project: Apache Jena
          Issue Type: Bug
          Components: RIOT
    Affects Versions: Jena 3.15.0
            Reporter: Martynas Jusevičius


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:
{code}
<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> .
{code}

Result:
{code}
<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>
) .
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to