ANN: RDF::Query::Client 0.02

Alberto Attilio Reggiori alberto at asemantics.com
Sun Nov 15 19:47:12 CET 2009


Hi

long time ago I wrote a DBD::Rdfstore wrapping some SPARQL engine -  
just feel free to grab code and adapt it from CPAN

hope this help

...

Alberto

On 14 Nov 2009, at 15:29, Darren Chamberlain <dlc at sevenroot.org> wrote:

> On Fri, Nov 13, 2009 at 19:42, Toby Inkster <mail at tobyinkster.co.uk>  
> wrote:
>> http://search.cpan.org/~tobyink/RDF-Query-Client/
>>
>> RDF::Query-like interface for remote SPARQL endpoints using SPARQL
>> Protocol 1.0.
>
> Though I have no immediate need for it, I'd really like to see a DBD
> wrapper for this:
>
>  use DBI;
>
>  my $dbh = DBI->connect('dbi:SPARQL:http://example.com/sparql');
>  my $sth = $dbh->prepare('SELECT * WHERE {?s ?p ?o. ?o ?p ?s.}');
>
>  $sth->execute;
>  while (my $r = $sth->fetchrow_hashref) {
>      print $r->{'s'};
>  }
>
> etc
>
> -- 
> (darren)
> _______________________________________________
> Dev mailing list
> Dev at lists.perlrdf.org
> http://lists.perlrdf.org/listinfo/dev


More information about the Dev mailing list