Wednesday, November 24, 2004

New FOAF Property : foaf:hasPersonalProfileDocument

While there exists a way, in FOAF, to say "There is a Personal Profile Document that has a primary topic of XXXX Person", there doesn't seem to be a way to say an inverse.

I wanted to say "Person XXXX has a Personal Profile Document at http://www.example.org/foaf/392j92j3".

There is a foaf:primaryTopic property, but there isn't an inverse. Also, it's domain is foaf:Document, which is too broad. I really want to link a foaf:Person to a foaf:PersonalProfileDocument.

So I've embedded the following RDF into all the Flickr FOAF:


<rdf:Property rdf:about="http://xmlns.com/foaf/0.1/hasPersonalProfileDocument">
<rdfs:domain rdf:resource="http://xmlns.com/foaf/0.1/Person" />
<rdfs:range rdf:resource="http://xmlns.com/foaf/0.1/PersonalProfileDocument" />
</rdf:Property>


Thoughts?
Post a Comment

Disclaimer

I'm probably required to say that the views expressed in this blog are my own, and do not necessarily reflect those of my employer. Also, except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License, and code samples are licensed under the BSD License.