AtteanX-Store-LDF

 view release on metacpan or  search on metacpan

demo/test.pl  view on Meta::CPAN

use v5.14;
use Attean;
use Attean::RDF qw(iri blank literal);
use AtteanX::Store::LDF;

my $uri   = 'http://fragments.dbpedia.org/2014/en';
my $store = Attean->get_store('LDF')->new(start_url => $uri);

my $num  = $store->count_triples(iri('http://example.org/UNEXPECTED'));

warn "num: $num";

my $iter = $store->get_triples(iri('http://example.org/UNEXPECTED'));

while (my $triple = $iter->next) {
 say $triple->subject->ntriples_string .
   " " .
   $triple->predicate->ntriples_string . 
   " " .
   $triple->object->ntriples_string  .
   " .";
}



( run in 2.031 seconds using v1.01-cache-2.11-cpan-b16cb0d3907 )