A simple PHP library for 4Store

I was recently playing with 4store, the new RDF-store engine by Steve Harris / Garlik, after having used 3store for a few years in a previous project.
As I don't want to use the HTTP server right now, but need to manage data input / query in PHP, I wrote a tiny lib that you can get here. It provides methods to import and delete graphs, as well as running SPARQL queries, and eventually outputs results with the requested content-type (XML, JSON or text). Then, adding graphs and querying data can be simply done as follows:

$s = new FStore('demo');
$s->import('http://rdfs.org/sioc/ns');
$s->query("select ?s where { <http://rdfs.org/sioc/ns#Item> ?s ?o }");
$s->delete('http://rdfs.org/sioc/ns');