Hello everybody!
I have a question regarding serialization formats, especially the handling of bnodes. Let's assume I have the following RDF:
<?xml version='1.0'?>
<rdf:RDF xmlns:rdf="
http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:foaf="
http://xmlns.com/foaf/0.1/">
<foaf:Person rdf:about="uri">
<foaf:name>me</foaf:name>
<foaf:knows>
<foaf:Person>
<foaf:name>friend</foaf:nick>
</foaf:Person>
</foaf:knows>
</foaf:Person>
</rdf:RDF>
I can parse this RDF with ARC2, but when trying to serialize it again, I get the following:
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="
http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:foaf="
http://xmlns.com/foaf/0.1/">
<foaf:Person rdf:about="uri">
<foaf:name>me</foaf:name>
<foaf:knows rdf:nodeID="arc4007b2"/>
</foaf:Person>
<foaf:Person rdf:nodeID="arc4007b2">
<foaf:name>friend</foaf:name>
</foaf:Person>
</rdf:RDF>
While I agree that those two are semantically the same, I find the nested structure of the input easier to read. My question is whether there is any way to configure the serializer in such a way that it will also output a nested structure or if there are alternative serializers?!
Thanks in advance for your relies!
Lukas