Hi! I've encountered a snag which I'd like your help to solve.
What I must be able to produce are XML/RDF that looks like this snippet: <_4:Message> <_4:bodyList rdf:parseType="Collection"> <_5:DeleteProperty> <_5:object> <_3:Person rdf:about="http://foo.example.com#1234"> <_3:nickName>one</_3:nickName> </_3:Person> </_5:object> </_5:DeleteProperty> <_5:DeleteProperty> <_5:object> <_3:Person rdf:about="http://foo.example.com#1234"> <_3:nickName>two</_3:nickName> </_3:Person> </_5:object> </_5:DeleteProperty> </_4:bodyList> </_4:Message> What this represents is a set of operations where the order between them are important. In this case all the operations are on the same object that does not have to always be the case. Now, what I have been using up until now, when creating the RDF/XML stuff are code that looks like this: def graph(formar="pretty-xml") store = ConjunctiveGraph() for t in self.triple(): store.add(t) return store.serialize(format=format) But this doesn't work in the above mention case because I can not using this function make the serializer realize that it should not treat the two references to "#1234" as referring to the same object in this graph. What it comes out as is this: <_4:Message> <_4:bodyList rdf:parseType="Collection"> <_5:DeleteProperty> <_5:object> <_3:Person rdf:about="http://foo.example.com#1234"> <_3:nickName>one</_3:nickName> <_3:nickName>two</_3:nickName> </_3:Person> </_5:object> </_5:DeleteProperty> <_5:DeleteProperty> <_5:object rdf:resource="http://foo.example.com#1234"/> </_5:DeleteProperty> </_4:bodyList> </_4:Message> Which is not the same thing. Are there other means of serializing, using rdflib, to RDF/XML which would allow me to produce the RDF/XML I need ? -- Roland _______________________________________________ Dev mailing list Dev@rdflib.net http://rdflib.net/mailman/listinfo/dev