RDF::Dumper - Dump RDF data objects
version 0.2
use RDF::Dumper; print rdfdump( $rdf_object ); # Data::Dumper-compatible version use RDF::Dumper qw(Dumper); # just like rdfdump, but falls back print Dumper($object); # to Data::Dumper for non-RDF things # Custom serializer use RDF::Dumper rdfdump => { format => 'rdfxml', namespaces => \%ns }; print rdfdump( $rdf ); # use serializer created on import print rdfdump( $serializer, $rdf ); # use another serializer # Multiple imports use RDF::Dumper rdfdump => { -as => 'dump_nt', format => 'ntriples' }, rdfdump => { -as => 'dump_xml', format => 'rdfxml', namespaces => \%ns }; print dump_nt( $rdf ); print dump_xml( $rdf );
Exports function 'rdfdump' to serialize RDF data objects given as instances of RDF::Trine::Model, RDF::Trine::Iterator, RDF::Trine::Statement, RDF::Trine::Store, or RDF::Trine::Graph. See RDF::Trine::Serializer for details on RDF serializers. By default RDF is serialized as RDF/Turtle.
Jakob Voss
This software is copyright (c) 2012 by Jakob Voss.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install RDF::Dumper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDF::Dumper
CPAN shell
perl -MCPAN -e shell install RDF::Dumper
For more information on module installation, please visit the detailed CPAN module installation guide.