Presumably it's the Turtle pretty printer.

"riot--stream=ttl rdf_list.ttl" works while
"riot--stream=pretty rdf_list.ttl" does not.

Could you raise a JIRA please?

    Thanks
    Andy


On 12/05/2021 16:23, Martynas Jusevičius wrote:
N-Triples/N-Quads serialization does not exhibit this problem -- the
example is round-tripped fine.

On Wed, May 12, 2021 at 11:23 AM Martynas Jusevičius
<marty...@atomgraph.com> wrote:

Hi,

I'm wondering why ARQ (3.15.0) is turning URIs in an rdf:List into
blank nodes? I know bnodes are usually used in lists, but in this case
it's not what I expect.

Command:

sparql --data rdf_list.ttl --query identity.rq

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> .

identity.rq:

CONSTRUCT WHERE { ?s ?p ?o }

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>
) .

Martynas
atomgraph.com

Reply via email to