Latest from Picdiary

January 3rd, 2003  |  Published in perl, photos, rdf, rss

New in the right-hand sidebar on the site front page is a little lineup of the 3 latest pictures from picdiary, my photos website. This is created by parsing the RDF in the latest photo collection RSS feed and extracting rss:title, dc:date and foaf:thumbnail information via an MT plugin (src).

The code uses RDF::Core::Parser from CPAN, which is a nice simple RDF parser that works much like SAX does for XML. You register an Assert callback with the parser which gets called once for each RDF statement found in the RDF it parses.

A very satisfying hack. RDF and HTTP makes this stuff so easy.

Comments are closed.