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');
I've just fixed some configuration problems on this Debian box (sid), which made my website and other hosted services (SIOC browser, foafmap ...) unavailable since yesterday. Trouble came from apache2.2 and libapache2-mod-php5, so I switched back to Apache 2.0.
Sorry for those that were looking for something here !
Based on Leigh Dodds idea about FOAF Bulletin Board RDF Export, I wrote some scripts that transform SIOC Wiki pages into RDF description:
I've just added support for Relationship vocabulary in PHOAF, so that the knows() method now recognise all Relationship properties (as they are subproperties of foaf:knows()).
I was wondering how such subproperties and inferencing could be handled in
I've updated PHOAF so that it now includes RAP 0.9.3, especially for bugfixes as I don't use SPARQL in the library. I've also added a few methods I forgot to implement before, as getHomepage(), plus the usual bugfixes.
PHOAF v0.2 can be downloaded here.
Quelques nouveautés software ces derniers temps:
After reading this tutorial by Ian Davis about parsing FOAF files with PHP - which is also a good introduction to RDF and FOAF -, I started to write a PHP5 library to easilly retrieve informations from FOAF files.
The goal of PHOAF is to provide a set of functions to get information from a FOAF file without any knowledge about FOAF or RDF.
Eg:
RAP est une API PHP permettant de manipuler simplement un modèle RDF. En plus de RDF, RDFS et OWL, plusieurs vocabulaires sont référencés, dont FOAF, DublinCore ou encore vCard.
Si vous souhaitez que seuls les admins puissent éditer les tags sous Gregarius, il suffit de rajouter le test suivant à la ligne 19 du fichier themes/default/item.php
Avant:
[<span id="ta<?= rss_item_id(); ?>"> <a href="#" onclick="_et(<?= rss_item_id(); ?>); return false;"> <?= LBL_TAG_EDIT ?></a></span>]
Après: