SlashFoaf
From FOAF
A common FoafProject FAQ is "can we adapt the Slash system (eg. as used as Slashdot to expose FOAF data. This page documents our attempts to do just this.
* for a patch to add FOAF to Slashcode R_2_3_113 see sf.net slashcode patch tracker * for a draft add-on from Alessio, see rdfweb-dev msg
Some notes from Alessio Bragadini:
The Friend/Foe mechanism uses a plugin named "Zoo". A plugin for Slash is a script, some libraries, some templates and maybe some database tables. For Zoo the script is called zoo.pl and you can call it with parameters for different actions or even output in RSS format. For example http://slashdot.org/zoo.pl?op=friends http://slashdot.org/zoo.pl?op=fans&content_type=rss (http://slashdot.org/my/friends is just a Apache alias to the real URL An "op=" parameter maps to a subroutine inside zoo.pl so I am thinking to a foaf subroutine mapping op=foaf and spitting out text/xml. I say op=foaf rather than content_type=foaf (as similar to =rss) because it seems to me that the FOAF output is fixed (a list of friends) rather than dependent on the parameter provided. It seems to be that a query like http://slashdot.org/zoo.pl?op=foes&content_type=foaf would not make much sense - correct me if I'm wrong. The target is to have a http://slashdot.org/zoo.pl?op=foaf mappable to http://slashdot.org/my/foaf
Notes on getting Slash installed:
* Get Apache and mod_perl running OK first * ensure you have all the Perl packages listed in Bundle::Slash
You need to stick with Apache 1.X (not Apache 2!) because mod_perl for Apache 2 is not stable and some modules have not been ported yet.
Perl package notes:
* Email::Valid failed a test (mxcheck? hard to tell given the way perl tests are structured)
