From: Peter B. <pb...@xs...> - 2005-05-31 20:15:33
|
Hi, Another question: I'm loading a model from an RDF/XML file that contains blank nodes identified by rdf:nodeID="A...". On loading the file into a dbmodel I notice the blank nodes are being duplicated: for each set of triples using the nodeID A... I get a second set of triples using bNode... Eg. if my file contains <rdf:Description rdf:about="http://www.chi.knaw.nl/editor/annotationset"> <j.1:hasAnnotationTypes rdf:nodeID="A3"/> ... </rdf:Description> <rdf:Description rdf:nodeID="A3"> <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq"/> <rdf:_1 rdf:resource="..."/> </rdf:Description> I would expect there to be a triple: Resource("http://www.chi.knaw.nl/editor/annotationset") Resource("http://www.chi.knaw.nl/editor/hasAnnotationTypes") bNode("A3") but there is also: Resource("http://www.chi.knaw.nl/editor/annotationset") Resource("http://www.chi.knaw.nl/editor/hasAnnotationTypes") bNode("bNode4") Similarly, I would expect bNode("A3") Resource("http://www.w3.org/1999/02/22-rdf-syntax-ns#type") Resource("http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq") but there is also: bNode("bNode4") Resource("http://www.w3.org/1999/02/22-rdf-syntax-ns#type") Resource("http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq") etc. This makes my models larger than they need to be, and plays havoc with my queries. Anyone has a suggestion on why it should occur, and on how to avoid it? Thanks again, Peter |