modules/rdf/r2rml.zzm

rdf-r2rml-0.0.2 documentation

Package

Name
rdf-r2rml
Version
0.0.2
Uploaded
2026-06-15 23:16:49
Repository
https://github.com/tobyink/zuzu-rdf-r2rml
Dependencies
Metadata
zuzu-distribution.json
Archive
Download .tar.gz

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_NS

    The R2RML namespace IRI.

Classes

  • R2RMLProcessor

    Construct with new R2RMLProcessor(dbh: dbh).

    • materialize(mapping, into := null, parser := null, base := "")

      Materializes an R2RML mapping into into when 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.