perl

Moyles-proof code

April 11th, 2004  |  Published in perl, python

While the rest of the UK was enjoying a Good Friday lie-in, I dragged myself into Yalding House (home of BBC Radio 1) at 7.30am. I was there to see our new text message system get its first live broadcast use on the Chris Moyles show in a preview of the Ten Hour Takeover.

Read the rest of this entry »

“Most Popular Entries” sidebar

April 1st, 2003  |  Published in perl, rss

Noticing the variety in popularity amongst the different topics that the pieces on this site cover, I added a “Most Popular Entries” sidebar to keep track of what people are reading. This is done with a simple application of Apache::ParseLog, XML::RSS, movabletype’s XML-RPC interface and a movabletype plugin.

Read the rest of this entry »

Lightning talk on RDF and the Semantic Web

March 14th, 2003  |  Published in perl, rdf, talks

Last night I gave a lightning talk at the london.pm techmeet that attempted to explain as simply as possible what RDF and the Semantic Web are, and how you can start playing with them with perl.

Read the rest of this entry »

Triplequerying CPAN implementation

January 15th, 2003  |  Published in perl, rdf, sql

Today I discovered that a new module, Triplestore.pm, has appeared on CPAN. To my surprise, my triplequerying algorithm is cited at the end of the documentation. Looking through the code, it’s not directly built on the sample code I provided. The implementation looks way cleaner, and has many more features beyond querying. I’m overjoyed to have had some part in this.

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).

Read the rest of this entry »

Generating RDF from Movable Type keywords

December 30th, 2002  |  Published in perl, rdf

Having created RDF summaries for each Movable Type entry, I wanted a way to add extra triples to that RDF. For a first go, it seems reasonable to make any triple that can be added to an entry have that entry as its subject, so I used a shorthand (no subject, namespace-abbreviated) syntax inspired by N-Triples and wrote an MT global filter plugin (src) to transform it into RDF/XML.

Read the rest of this entry »

Simple dumb RDF parser script for perl

September 29th, 2002  |  Published in perl, rdf, sql

As with the ruby rdf parser, this runs XSLT over your RDF/XML to make ntriples then parses those. It spits out mysql insert statements ready for querying with my rdf sql query stuff.

rdfparse-perl.tar.gz

Read the rest of this entry »

To bots about gatebot

August 26th, 2002  |  Published in bots, java, perl, rest

A mail to the bots list about a web-to-IRC gateway.

Read the rest of this entry »

Triple Querying with SQL

August 20th, 2002  |  Published in perl, php, rdf, sql

A simple algorithm for translating rdfdb-style queries into SQL to query a triple store with a very simple schema. A perl and a PHP implementation is provided.