ANN: RDF::Query::Client 0.02

Darren Chamberlain dlc at sevenroot.org
Sat Nov 14 15:29:22 CET 2009


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)


More information about the Dev mailing list