nichtich/RDF-Dumper — pull request #2 by tobyink (2012-06-25 16:16:16+00:00)
Title: export changes

This switches from Exporter.pm to Sub::Exporter (which slightly changes the syntax for configuring the serializer within the import method) in order to add the following extra features...

First: you can rename the exported function:

use RDF::Dumper rdfdump => { -as => 'dumprdf' };

Second: you can export the function multiple times with different configurations:

use RDF::Dumper
rdfdump => { -as => 'dumpttl', format => 'Turtle' },
rdfdump => { -as => 'dumpxml', format => 'RDFXML' };

Third: adds an extra exported function "Dumper" which works like rdfdump, but falls back to using Data::Dumper.

use RDF::Dumper -dd;
print Dumper($model, $statement, $hashref, $moose_object);