NAME
RDF::Dumper - Dump RDF data objects
VERSION
version 0.3
SYNOPSIS
use
RDF::Dumper;
rdfdump(
$rdf_object
);
# Data::Dumper-compatible version
Dumper(
$object
);
# to Data::Dumper for non-RDF things
# Custom serializer
rdfdump(
$rdf
);
# use serializer created on import
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
};
dump_nt(
$rdf
);
dump_xml(
$rdf
);
DESCRIPTION
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.
AUTHOR
Jakob Voß
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Jakob Voß.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.