Jakob Voß > RDF-Dumper-0.3 > RDF::Dumper

Download:
RDF-Dumper-0.3.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.3   Source  

NAME ^

RDF::Dumper - Dump RDF data objects

VERSION ^

version 0.3

SYNOPSIS ^

  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 );

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.

syntax highlighting: