- From: Heiko Paulheim <paulheim@ke.tu-darmstadt.de>
- Date: Thu, 27 Oct 2011 17:17:51 +0200
- To: semantic-web@w3.org
Dear RDF experts, I have a question concerning the equivalence of rdf:Bags. Given the following RDF/XML document: <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Bag rdf:about="http://foo.bar/myBooks"> <rdf:li rdf:resource="http://foo.bar/ABook"/> <rdf:li rdf:resource="http://foo.bar/AnotherBook"/> </rdf:Bag> </rdf:RDF> Converting it to triples using the W3C RDF validator [1] yields http://foo.bar/myBooks http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag http://foo.bar/myBooks http://www.w3.org/1999/02/22-rdf-syntax-ns#_1 http://foo.bar/ABook http://foo.bar/myBooks http://www.w3.org/1999/02/22-rdf-syntax-ns#_2 http://foo.bar/AnotherBook Now, switching the order of the two <rdf:li ...> elements and running the validator again yields http://foo.bar/myBooks http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag http://foo.bar/myBooks http://www.w3.org/1999/02/22-rdf-syntax-ns#_1 http://foo.bar/AnotherBook http://foo.bar/myBooks http://www.w3.org/1999/02/22-rdf-syntax-ns#_2 http://foo.bar/ABook As far as I understand the graph equality definition given at [2], these two graphs are different, assuming that rdf#_1 and rdf#_2 are two different predicates. How does that go together with the idea that an rdf:Bag is unordered? I am sure that I am missing a trivial point here, so I would be happy if someone could give me a hint. Best regards, Heiko. [1] http://www.w3.org/RDF/Validator/ [2] http://www.w3.org/TR/2004/REC-rdf-concepts-20040210/#section-graph-equality
Received on Thursday, 27 October 2011 15:18:25 UTC