[redland-dev] Handling rdf:seq with redland
Sebastian Faubel
Sebastian.Faubel at student.fh-nuernberg.de
Wed Sep 26 22:29:24 BST 2007
Hi there,
i've tried to figure it out my self, but how do i construct a
rdf:seq/rdf:bag statement using the redland api?
also every statements i assert are serialized "flat", like this:
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="local:sequence">
<ns0:seq xmlns:ns0="rdf:" rdf:resource="local:test1"/>
</rdf:Description>
<rdf:Description rdf:about="local:sequence">
<ns0:seq xmlns:ns0="rdf:" rdf:resource="local:test2"/>
</rdf:Description>
</rdf:RDF>
but how do i tell the serializer to nest relations regarding one
subject? like this:
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="local:sequence">
<ns0:seq xmlns:ns0="rdf:" rdf:resource="local:test1"/>
<ns0:seq xmlns:ns0="rdf:" rdf:resource="local:test2"/>
</rdf:Description>
</rdf:RDF>
sorry for the stupid questions..
~sebastian
More information about the redland-dev
mailing list