Retrieving FOAF informations with PHP

After reading this tutorial by Ian Davis about parsing FOAF files with PHP - which is also a good introduction to RDF and FOAF -, I started to write a PHP5 library to easilly retrieve informations from FOAF files.

The goal of PHOAF is to provide a set of functions to get information from a FOAF file without any knowledge about FOAF or RDF.

Eg:

$foaf = new FOAFProfile("http://mywebsite/profile.rdf"); $me = $foaf->root(); echo $me->getName() . " knows " . $sizeof($me->knows()) . " people";

It still needs some documentation, code cleaning and so on, but information about the project can be found on its gna.org homepage, and you can download a first package here.

A first app using it will be online soon, in the next 2 weeks I hope, and updates of the library will occur at the same time.

Comments

Leave a Reply

You must be logged in to post a comment.