Difference between Direct Mapping and R2RML
Asked Answered
S

2

5

I've tried to figure out what's differences between the two rdb2rdf mapping languages Direct Mapping and R2RML are.

I understand that booth languages generate RDF files that stand for a virtual RDF graph - which can be accessed via SPARQL.

So what's the point in having two W3C languages/standards doing the same!?

Solfa answered 4/1, 2016 at 15:33 Comment(0)
C
7

The two standards don't do the same.

Direct Mapping is a default, convention-based algorithm to convert relational data into RDF graphs. It defines how tables, primary keys, relationships, etc. are converted.

On the other hand R2RML is a language, with which you can create your own mappings, including Direct Mapping. As examples it gives you various ways to construct URLs, map tables to RDF classes or map custom SQL SELECT statements instead of tables.

R2RML defines a relaxed variant of the Direct Mapping intended as a default mapping for further customization.

So, R2RML actually includes a definition of Direct Mapping. Implementing tools can generate mappings from existing database, which can be further adjusted.

Cespitose answered 4/1, 2016 at 21:40 Comment(0)
D
1

RDB to RDF mapping tools like D2RQ and SPIDER use a language to provide online mapping from a relational database to RDF, which means data are converted to RDF on the fly. Data can be converted directly without any user customization or users should specify the columns and the mapping predicates accordingly. The former is called directed mapping which is usually used for simple RDB databases, but for a relational database with complex structure, R2RML language is used for mapping.

Dine answered 5/1, 2016 at 23:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.