- From: Kevin Smathers <kevin.smathers@hp.com>
- Date: Mon, 17 Nov 2003 13:40:47 -0800
- To: SIMILE public list <www-rdf-dspace@w3.org>
Hi all,
Andy and I have been working on implementing the Joseki client WebAPI in
Perl to facilitate loading and querying the data models we've been
creating. After some debugging I have a working implementation of
several commands checked in to CVS, together with a test script for
anyone who is interested in using this tool.
The Perl source can be found in simile CVS under simile/tools/perlrdf.
Currently the following commands seem to be working (assuming they have
been enabled in the Joseki configuration):
queryModel( $model, $language, $script);
addToModel( $model, $rdfdoc);
pingModel( $model);
simpleQueryModel( $model, $language, $script);
options( $model);
getModel( $model);
Results from each function are returned in a Joseki::Result object,
which is basically a wrapper around an RDF::Model stored into an
RDF::Memory storage object, together with the objects needed to query
the model.
Cheers,
-kls
--
========================================================
Kevin Smathers kevin.smathers@hp.com
Hewlett-Packard kevin@ank.com
Palo Alto Research Lab
1501 Page Mill Rd. 650-857-4477 work
M/S 1135 650-852-8186 fax
Palo Alto, CA 94304 510-247-1031 home
========================================================
use "Standard::Disclaimer";
carp("This message was printed on 100% recycled bits.");
Received on Monday, 17 November 2003 16:43:21 UTC