Tests for smooshing

Damian Steer pldms at m...
Sun Aug 25 17:25:19 UTC 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

These two cases came up while I've been writing an rdf
browser. Wondered what the various smooshing apps did with them.

First case: adding two documents

<rdf:RDF>
<Person>
<mbox rdf:resource="mailto:a at e..." />
</Person>
<Person>
<mbox rdf:resource="mailto:b at e..." />
</Person>
</rdf:RDF>

<rdf:RDF>
<Person>
<mbox rdf:resource="mailto:a at e..." />
<mbox rdf:resource="mailto:b at e..." />
</Person>
<rdf:RDF>

Should result in one person, but I'm not sure all smooshers will.

Second case: when identifiers collide

<rdf:RDF>
<Person>
<mbox rdf:resource="mailto:a at e..." />
</Person>
<Person rdf:about="http://example.com/a">
<mbox rdf:resource="mailto:a at e..." />
</Person>
<rdf:RDF>

Not sure what the resulting graph should be here. It's (maybe) clearer
with:

<rdf:RDF>
<Person rdf:about="http://example.com/b">
<mbox rdf:resource="mailto:a at e..." />
</Person>
<Person rdf:about="http://example.com/a">
<mbox rdf:resource="mailto:a at e..." />
</Person>
</rdf:RDF>

I've seen a couple of instances where Person nodes have been given
URIs and wondered what happened to that information when smooshed.

You can combine these two cases:

<rdf:RDF>
<Person rdf:about="http://example.com/b">
<mbox rdf:resource="mailto:a at e..." />
</Person>
<Person rdf:about="http://example.com/a">
<name>a</name>
</Person>
</rdf:RDF>

<rdf:RDF>
<Person rdf:about="http://example.com/a">
<mbox rdf:resource="mailto:a at e..." />
</Person>
</rdf:RDF>

With unpleasant consequences...

Enjoy,

Damian

PS One thing I thought of for the second case is not smooshing, but
using daml:sameIndividualAs (or somesuch)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <http://www.gnupg.org/>

iD8DBQE9aRL/AyLCB+mTtykRApBnAKCyrKLPqRik/IJWI8hfkdaWO0NK4wCg0LAW
C6g1hKaYbSUkokc76rKmzaw=
=izxy
-----END PGP SIGNATURE-----




More information about the foaf-dev mailing list