Ajax and Sparql

As part of the Gargonza experiment Damian Steer and I hacked togther a bit of javascript that takes a SPARQL query, passes it to a url that can produce results from it (e.g. Joseki) and then parses the resulting XML into an array of rows, each of which is a dictionary of results keyed off the variable name.
I use it for my cross-searching image database demo and Damian’s got it working over some TV data, both using Joseki.
I mention it now because Damian’s updated the code for the latest version of the SPARQL resultset format.
p.s. it needs some hacking to make it work with IE, sorry.