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