hi!

does Redland RDF elmininate duplicate statements in models?

the rdf spec says that a graph is a set of statements, and the definition of graph equality in 6.3 seems to, at least, require that cardinality of identical statements in a graph is irrelevant.

also, the Redland NEWS claims:

2004-08-03 Redland Version 0.9.18 Released
* Check that duplicate statements are not added to models



so it would seem to me that it would be a bug if i were able to add duplicate statements...

well, look what i just exported from a Redland model:

<?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="uri:foo">
    <ns0:bar xmlns:ns0="uri:" rdf:resource="uri:baz"/>
  </rdf:Description>
  <rdf:Description rdf:about="uri:foo">
    <ns0:bar xmlns:ns0="uri:" rdf:resource="uri:baz"/>
  </rdf:Description>
  <rdf:Description rdf:about="uri:foo">
    <ns0:bar xmlns:ns0="uri:" rdf:resource="uri:baz"/>
  </rdf:Description>
  <rdf:Description rdf:about="uri:baz">
    <ns0:bar xmlns:ns0="uri:" rdf:datatype="uri:int">42</ns0:bar>
  </rdf:Description>
  <rdf:Description rdf:about="uri:baz">
    <ns0:bar xmlns:ns0="uri:">i am the literal</ns0:bar>
  </rdf:Description>
</rdf:RDF>


this is with "rdfxml" serializer. (interestingly, the "rdfxml-abbrev" serializer eliminates the duplicates)

is this a bug?
or do i need to use some special options to switch on duplicate elimination?

regards,
michael

--
"Before you can think out of the box, you have to start with a box."
 -- Twyla Tharp

_______________________________________________
redland-dev mailing list
[email protected]
http://lists.librdf.org/mailman/listinfo/redland-dev

Reply via email to