WWW::Metaweb

WWW::Metaweb is a Perl interface to the Metaweb database via MQL.
Download

WWW::Metaweb Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Hayden Stainsby
  • Publisher web site:
  • http://search.cpan.org/~hds/WWW-Metaweb-0.02/lib/WWW/Metaweb/JSONLikePerl.pm

WWW::Metaweb Tags


WWW::Metaweb Description

WWW::Metaweb is a Perl interface to the Metaweb database via MQL. WWW::Metaweb is a Perl interface to the Metaweb database via MQL.SYNOPSIS use strict; use WWW::Metaweb; my $mh = WWW::Metaweb->connect( username => $u, password => $p, server => 'www.freebase.com', auth_uri => '/api/account/login', read_uri => '/api/service/mqlread', write_uri => '/api/service/mqlwrite', trans_uri => '/api/trans', pretty_json => 1 ); my $query = { '/type/object/creator' => undef, cover_appearances => , created_by => [], id => undef, name => 'Nico Minoru', type => '/comic_books/comic_book_character' };The easy way: my $result = $mh->read($query, 'json'); print $result;The complicated way: $mh->add_query('read', $query); $mh->send_envelope('read') or die $WWW::Metaweb::errstr; my $result = $mh->result('read', 'json'); print $result . "n"; Requirements: · Perl


WWW::Metaweb Related Software