philwilson.org

FOAFlicious 0.1

07 January, 2005

FOAFlicious is an application for generating a FOAF file from your del.icio.us inbox.

FOAFlicious is written in Groovy, and can be seen in action on http://philwilson.org:8180/foaflicious/foaflicious.groovy (hopefully this URL will become better in time).

This is the first time I’ve ever used Groovy and so far I’ve not been able to configure it to accept URL parameters (answers on a postcard please) so it’s currently hardcoded to return a FOAF file based on my del.icio.us inbox, here’s looking at v0.2 🙂

The del.icio.us inbox facility is currently turned off except for the list of subscriptions so it currently works by masses of screen-scraping. As soon as the inbox comes back it should be able to switch to using the del.icio.us API (probably using David Czarnecki’s delicious-java API).

Currently it uses the del.icio.us page for each user listed in your inbox to extract a user’s real name and homepage, then looks at their homepage to see if they have a FOAF autodiscovery link, and if so includes it in a <rdfs:seeAlso rdf:resource="blah"/> block.

The (terrible) code is available on http://philwilson.org/projects/foaflicious/foaflicious-0.1.groovy. it was only written in a couple of hours, so no abuse please 🙂 In order to run it you’ll need the Groovy libraries, commons-httpclient, commons-logging and JTidy.

If you want to stay notified about this project, it has its own feed.

For reasons of my own sanity, you can add comments and questions about this over here.

See other posts tagged with general and all posts made in January 2005.