W3C home > Mailing lists > Public > www-rdf-interest@w3.org > December 1999

RDF-API and same predicate statements

From: <JOS.DEROO.JD@belgium.agfa.com>
Date: Thu, 23 Dec 1999 12:07:56 +0100
To: " - *melnik@db.stanford.edu" <melnik@db.stanford.edu>
Cc: " - *www-rdf-interest@w3.org" <www-rdf-interest@w3.org>
Message-Id: <0006800018470414000002L042*@MHS>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:51:42 GMT