Catmandu-RDF
    
    
  
  
  
view release on metacpan or search on metacpan
Changelog for Catmandu-RDF
0.32  2017-08-29 13:23:32 CEST
  - Fixing SPARQL examples with latest RDF::LDF
  - Better support for streaming RDF input
  - Adding a --speed option to the Catmandu::Importer::RDF
0.31  2016-04-13 10:24:55 CEST
  - Fix test failure caused by RDF::NS (#29)
0.30  2016-04-03 13:30:18 CEST
  - increase RDF::LDF version (#28)
0.29  2016-03-30 14:28:27 CEST
  - provide caching support for HTTP access
0.28  2015-11-25 11:35:42 CET
  - streaming export in NTriples format by default (issue #25)
0.27  2015-05-30 14:15:45 CEST
  - added sparql file option (issue #19)
0.26  2015-05-21 10:38:12 CEST
  - added support of Linked Data Fragments
0.25  2015-03-27 13:53:59 CET
  - support streaming of NTriple data
0.24  2015-03-09 13:20:23 CET
  - added support of SPARQL
  - fixed some unit tests
  - rewrote aref_query fix
0.23  2014-12-11 16:41:22 CET
  - fix bnode mapping bug
  - simplify calling syntax of aref_query fix
t/exporter.t view on Meta::CPAN
[] <http://example.com/predicate2> [] .
RDF
is $exporter->count, 1, 'count is always one';
$file = "";
$exporter = $pkg->new(file => \$file);
$exporter->add( { _id => '<x:subject>', foaf_knows => { foaf_name => 'alice' } } );
is $file, <<NTRIPLES, 'streaming ntriples by default';
<x:subject> <http://xmlns.com/foaf/0.1/knows> _:b1 .
_:b1 <http://xmlns.com/foaf/0.1/name> "alice" .
NTRIPLES
$exporter->add( { _id => '<x:subject>', foaf_knows => { foaf_name => 'alice' } } );
$exporter->commit;
is scalar(split "\n", $file), 4, 'keep blank nodes separated';
is $exporter->count, 2, 'count is 2';
( run in 0.761 second using v1.01-cache-2.11-cpan-5dc5da66d9d )