- From: Stefan Decker <stefan@DB.Stanford.EDU>
- Date: Thu, 23 Dec 1999 11:01:41 -0800
- To: www-rdf-interest@w3.org
Hi,
XML does not allow multiple occurences of the
same attribute in an element (thats the reason your second examples does
not work...)
So
<rdf:Description rdf:about="http://www.agfa.com/a"
a:b="c"
a:b="d"/>
can not work, because a:b ocures twice (already XML-parser delete one
attribute).
The serizalization is wrong, it should use a bag or separate elements.
CU,
Stefan
At 12:07 PM 12/23/99 +0100, JOS.DEROO.JD@belgium.agfa.com wrote:
>Sergey,
>
>We start with the following (hypothetical) statements:
><?xml version="1.0"?>
><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> xmlns:r="http://www.agfa.com/x#">
><rdf:Description about="http://www.agfa.com/a" r:b="c"/>
><rdf:Description about="http://www.agfa.com/a" r:b="d"/>
></rdf:RDF>
>
>After running ParseAndSerialize we get :
><?xml version='1.0' encoding='ISO-8859-1'?>
><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> xmlns:a="http://www.agfa.com/x#">
><rdf:Description rdf:about="http://www.agfa.com/a"
> a:b="c"
> a:b="d"/>
></rdf:RDF>
>
>Running ParseAndSerialize on this model we get:
><?xml version='1.0' encoding='ISO-8859-1'?>
><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> xmlns:a="http://www.agfa.com/x#">
><rdf:Description rdf:about="http://www.agfa.com/a"
> a:b="c"/>
></rdf:RDF>
>
>So we loose a statement and get a different model.
>
>On the other hand, the following example is OK:
><?xml version='1.0' encoding='ISO-8859-1'?>
><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> xmlns:a="http://www.agfa.com/x#">
><rdf:Description rdf:about="http://www.agfa.com/a">
> <a:b rdf:resource="http://c"/>
> <a:b rdf:resource="http://d"/>
></rdf:Description>
></rdf:RDF>
>
>What can we think about that?
>
>With kind regards and best wishes,
>Jos De Roo --- Agfa
Received on Thursday, 23 December 1999 14:05:54 UTC