NAME
rdf/r2rml - R2RML materialisation for rdf stores.
SYNOPSIS
from rdf/r2rml import r2rml_materialize;
from rdf/store import RDFStore;
from std/db import DB;
let dbh := DB.temp();
let store := RDFStore.temp();
store.install_schema();
r2rml_materialize( dbh, mapping_turtle, into: store );
DESCRIPTION
This module implements the W3C R2RML mapping vocabulary for generating RDF quads from a std/db database handle. Mapping input may be supplied as pre-parsed RDF quads or as an RDF serialization parsed by a parser object. When no parser is supplied, Turtle is used.
EXPORTS
Constants
R2RML_NSThe R2RML namespace IRI.
Classes
R2RMLProcessorConstruct with
new R2RMLProcessor(dbh: dbh).materialize(mapping, into := null, parser := null, base := "")Materializes an R2RML mapping into
intowhen supplied, otherwise returns an array of generated quads.
Functions
r2rml_parse_mapping(mapping, parser := null, String base := "")Returns mapping RDF quads from either an array of quads or serialized RDF text.
r2rml_materialize(dbh, mapping, ... options)Convenience wrapper around
R2RMLProcessor.materialize.
COPYRIGHT AND LICENCE
rdf/r2rml is copyright Toby Inkster.
It is free software; you may redistribute it and/or modify it under the terms of either the Artistic License 1.0 or the GNU General Public License version 2.