Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Jena 3.15.0
-
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> ) .