W3C home > Mailing lists > Public > public-rdb2rdf-comments@w3.org > September 2011

Re: implementation announcement

From: Toby Inkster <tai@g5n.co.uk>
Date: Sat, 24 Sep 2011 11:32:11 +0100
To: Michael Hausenblas <michael.hausenblas@deri.org>
Cc: public-rdb2rdf-comments@w3.org
Message-ID: <20110924113211.21e8344f@miranda.g5n.co.uk>
On Fri, 23 Sep 2011 08:55:18 +0100
Michael Hausenblas <michael.hausenblas@deri.org> wrote:

> Good to hear from you again ;)

I've not had much time to hack on Semantic Web stuff for the last six
months or so.

> This is great stuff, indeed! When I saw it a week ago or so on
> Twitter I added it to our implementations page [1] - please let me
> know if you want to have details changed, there ...
> [1] http://www.w3.org/2001/sw/rdb2rdf/wiki/Implementations

RDF::RDB2RDF::Simple doesn't implement Direct Mapping. It does the same
sort of thing as R2RML, but uses a nested array/object structure (i.e.
JSON-like) to express the mapping, rather than expressing it in RDF.

For example, this R2RML mapping:

    rr:logicalTable [ rr:tableName "EMP" ];
    rr:subjectMap [
        rr:template "http://data.example.com/employee/{EMPNO}";
        rr:class ex:Employee;
    rr:predicateObjectMap [
        rr:predicate ex:name;
        rr:objectMap [ rr:column "ENAME" ];

Would be expressed as this:

  "EMP": {
    "about": "http://data.example.com/employee/{EMPNO}",
    "typeof": "http://example.com/Employee",
    "columns": {
      "ENAME": { "property": "http://example.com/name" }

There's a fuller example here:

The one major feature that RDF::RDB2RDF::Simple offers which R2RML does
not, is it allows you to have columns in your database which store RDF
as a text blob, and add that RDF to the output graph. There's an
example of such a database here:


Toby A Inkster
Received on Saturday, 24 September 2011 10:31:33 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:45:16 UTC