Pigsty – a Firefox extension for RDF galleries

A pigsty at the city farm in St Werburg's, Bristol
In preparation for sparqlcamp I spent far too much time playing with a Firefox extension to show RDF information about photos, which I’ve called pigsty party in hommage to the rather better piggy bank extension. I had a terrible time actually writing it – very slow indeed to develop, but the power of Firefox made it worthwhile, I think. Or, at least you can see some of the potential of it, though the result is a terrible old hack, borrowing heavily from the Sage RSS reader in particular.
The idea was to try and show how the results of Sparql queries (for example; they could just be ordinary RDF files) might be usefully displayed to the user in a way that really showed the advantages of RDF (assuming there are any šŸ˜‰ I’ve been using Sage a lot and I like the way you can get images in the feeds via the html. I like Flickr (and flickrfox) a lot too but I’m certainly not going to try to put my 10000+ photos on their site.
A fair few people have being putting RDF data about images on their sites – especially depiction data, location data, dates and thumbnails. After a Guinness-fuelled meeting at the Foaf workshop in Galway last year, Morten Frederiksen, Greg Williams and I have more or less have the same kinds of information available in similar formats: scene is set for a distributed Flickr thingy. Tags are fashionable, so what the hell… šŸ™‚
So some groundwork for something like that was the aim. Of course there are plenty of different ways of creating something like this – some sort of distributed query combining the results from several sources into one html page is another tack, and it looks as if we’ll try something like that out of Sparqling days too.
A Firefox extension is another way. The Pigsty Firefox extension finds gallery files in this format or this format linked from foaffiles which the extension finds using the foaf autodiscovery from html method. More detail is on the Pigsty homepage.
Having found the feeds you can view then with their images and metadata, and also filter the metadata for people, places, dates and tags. Some screenshots are available. Really, the feeds need to be latest photos from each source for it to be an interesting, updating dataset.
This is one to throw away, but I hope it makes some sort of sense. It’s fairly easy to extend – I’ve made some headway into displaying iCalendar RDF files but I’m having some issues with datatypes at the moment. I’d quite like to see what conferences and meetings my friends were going to and then save the events as iCalendar locally.
Many thanks to Jim Ley for providing updated versions of his javascript RDF parser on request. I think using the inbuilt RDF features of Firefox might also be an option, although I don’t know how up to date they are for the current RDF syntax.
The main issue I can see with Pigsty (apart from general usability issues) is that processing the RDF files rapidly gets too tiring for the application and you get ‘a script in this page is causing firefox to run slowly’.
Another interesting area for more work is to investigate how to use SKOS tags rather than dc:subject tags (dc:subject are just strings; SKOS tags have an associated uri and can have more structure). The really interesting stuff here is how to reuse tags from friends or events, but this occurs in the authoring area rather than display. We also need Creative Commons and authoring properties to make this stuff realy useful.
Comments welcome – mail me (libby@asemantics.com) – comments are switched off in the blog.