RDF-API and same predicate statements

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 06:07:46 UTC