The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

RDF::RDB2RDF::R2RML - map relational database to RDF using R2RML

SYNOPSIS

 my $mapper = RDF::RDB2RDF::R2RML->new($r2rml);
 print $mapper->process_turtle($dbh);

DESCRIPTION

This class offers support for W3C R2RML, based on the 24 March 2011 working draft. It does not yet support the "ref" stuff for generating triples based on foreign keys.

This is a subclass of RDF::RDB2RDF::Simple. Differences noted below...

Constructor

  • new($r2rml)>>

    A single parameter is expected, this can either be an R2RML document as a Turtle string, or an RDF::Trine::Model containing R2RML data. If a Turtle string, then the namespaces from it are also kept.

Methods

  • process_turtle($dbh, %options)

    The mapping is included as an R2RML comment at the top of the Turtle. Passing no_r2rml => 1 can disable that feature.

SEE ALSO

RDF::Trine, RDF::RDB2RDF, RDF::RDB2RDF::Simple.

http://perlrdf.org/.

http://www.w3.org/TR/2011/WD-r2rml-20110324/.

AUTHOR

Toby Inkster <tobyink@cpan.org>.

COPYRIGHT

Copyright 2011 Toby Inkster

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 303:

Unterminated C< ... > sequence