Toby Inkster > RDF-RDB2RDF > RDF::RDB2RDF::DirectMapping

Download:
RDF-RDB2RDF-0.008.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.008   Source  

NAME ^

RDF::RDB2RDF::DirectMapping - map relational database to RDF directly

SYNOPSIS ^

 my $mapper = RDF::RDB2RDF->new('DirectMapping',
   prefix => 'http://example.net/data/');
 print $mapper->process_turtle($dbh);

DESCRIPTION ^

This module makes it stupidly easy to dump a relational SQL database as an RDF graph, but at the cost of flexibility. Other than providing a base prefix for class, property and instance URIs, all mapping is done automatically, with very little other configuration at all.

This class offers support for the W3C Direct Mapping, based on the 29 May 2012 working draft.

Constructor

The prefix defaults to the empty string - i.e. relative URIs.

Three extra options are supported: rdfs which controls whether extra Tbox statements are included in the mapping; warn_sql carps statements to STDERR whenever the database is queried (useful for debugging); ignore_tables specifies tables to ignore (match::simple is used, so the value of ignore_tables can be a string, regexp, coderef, or an arrayref of all of the above).

Methods

COMPLIANCE AND COMPATIBILITY ^

This implementation should be mostly compliant with the Direct Mapping specification, with the following provisos:

Other quirks are database-specific:

BUGS ^

Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=RDF-RDB2RDF.

SEE ALSO ^

RDF::Trine, RDF::RDB2RDF, RDF::RDB2RDF::DirectMapping::Store.

http://www.perlrdf.org/.

http://www.w3.org/TR/2012/WD-rdb-direct-mapping-20120529/.

AUTHOR ^

Toby Inkster <tobyink@cpan.org>.

COPYRIGHT ^

Copyright 2011-2013 Toby Inkster.

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

DISCLAIMER OF WARRANTIES ^

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

syntax highlighting: