A little FOAF Extension: PreferredOnlineAccount
Today I wrote up a little extension to FOAF which enabled Agents to figure out which OnlineAccount is a PreferredOnlineAccount. Nothing big but important to route strangers to my preferred communication channel by pointing to my preferred jabber account. Agents (like my OnlineAccountDOA) may use SPARQL to find the preferred account:
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX foafx: <http://b4mad.net/ns/foafx/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?sha1sum ?id ?url
WHERE {
?account a foafx:PreferredOnlineAccount .
?account foaf:accountName ?id .
?account foaf:accountServiceHomepage ?url .
?person foaf:holdsAccount ?account .
?person foaf:mbox_sha1sum ?sha1sum .
?person foaf:nick ?nick .
FILTER ( str(?url) = "http://www.jabber.org/network/"^^xsd:string
&& str(?nick) = "[GNU]"^^xsd:string )
}
UPDATE: I have done some more work on extending FOAF, this work can be found at my FOAFX homepage. Feel free to comment on this!
About this entry
You’re currently reading “A little FOAF Extension: PreferredOnlineAccount,” an entry on B:\datenbrei
- Published:
- 2005-10-10, 18° 37' by goern+
- Category:
- B4mad, jabber/XMPP, projects, semantic web, technology
- Tags:
-
B4mad blogging bluetooth coding comments desktop Events foaf general blogging GNU Debian/Linux IBM jabber/XMPP Java Kerberos macish MacOSX mobile Mono/C# mtb music my bookmarks openafs OS philosophy Photographie photos podcasting projects Python semantic web sioc technology Travel web 2.0 webservices wireless WordPress
- Action: