Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (13 sloc) 0.782 kb

RDF::Dumper is a Perl module to stringify RDF data objects in readable form, which is handy for debugging and logging. Actually, the module is just a handy wrapper on RDF::Trine::Serializer. You can use it like this:

use RDF::Dumper;
print rdfdump( $rdf_object );

# configure serializer (as singleton)
use RDF::Dumper 'rdfxml', namespaces => { ... };

print rdfdump( $rdf );               # use serializer created on import

print rdfdump( $serializer, $rdf );  # use another serializer

By the way, strings with RDF in some serialization are not considered as RDF data objects, but strings that first need to be parsed to get RDF data.

Feel free to submit patches, comments, and issues and/or fork this module at

Jump to Line
Something went wrong with that request. Please try again.