- From: jo walsh <jo@abduction.org>
- Date: Tue, 23 Sep 2003 21:32:30 +0100 (BST)
- To: www-rdf-rules@w3.org
hello, i have a homegrown perl RESTful RDF API which is rather like joseki, but meant for model-annotation[0]. past versions of it have had specific common queries hardcoded, with variables in a GET query string to be dropped into the slots of SquishQL queries (more homegrown perl). - i'd like to be able to GET the RDF graphs corresponding to arbitrary SquishQL results, returned as XML, just like in http://www.joseki.org/protocol.html But I'm banging my head against being able to change the tabular data that i get back from Squish, into bucket-o-triples form, programmatically. e.g. in my existing code i wind up doing things like this: my $q = qq( SELECT ?pred, ?object WHERE ('$id' ?pred ?object) ); my @bits = $self->rdf->query($q); @bits = map { [$id, $_->[0],$_->[1]] } @bits; (then the array of arrays goes straight into a serialiser...) am i making myself clear, re, being able to map back the tabular data into the graph without intervention? i wonder how joseki does this, with RDQL i wonder if there's a better way - also i'd like to be able to cache the queries inside the model, and refer to them with URIs... i thought this was a kludgy idea until i read the HTTP POST section of that joseki protocol doc... perhaps it still is... i would wind up describing the API inside the triplestore. yours, confused, metazool [0] http://mutemap.openmute.org/doc/mesh.html partial doc... -- "Common sense won't tell you. We have to tell each other." -DNA
Received on Tuesday, 23 September 2003 16:32:33 UTC