rdb2rdf, an overview of r2rml and direct mapping

32
OEG’s Data Integration Group RDB2RDF WorkdistributedunderthelicenseCreativeCommonsAttribution- Noncommercial-Share Alike 3.0 Boris Villazón-Terrazas Facultad de Informática, Universidad Politécnica de Madrid Campus de Montegancedo sn, 28660 Boadilla del Monte, Madrid http://www.oeg-upm.net [email protected] Phone: 34.91.3366605, Fax: 34.91.3524819 Slides available at: http://www.slideshare.net/boricles/ Acknowledgements: W3C RDB2RDF group members, Freddy Priyatna, and Jean Paul Calbimonte.

Upload: boris-villazon-terrazas

Post on 04-Dec-2014

2.313 views

Category:

Education


3 download

DESCRIPTION

 

TRANSCRIPT

Page 1: RDB2RDF, an overview of R2RML and Direct Mapping

OEG’s Data Integration Group RDB2RDF

WorkdistributedunderthelicenseCreativeCommonsAttribution-Noncommercial-Share Alike 3.0

Boris Villazón-Terrazas Facultad de Informática, Universidad Politécnica de Madrid

Campus de Montegancedo sn, 28660 Boadilla del Monte, Madrid http://www.oeg-upm.net

[email protected] Phone: 34.91.3366605, Fax: 34.91.3524819

Slides available at: http://www.slideshare.net/boricles/

Acknowledgements: W3C RDB2RDF group members, Freddy Priyatna, and Jean Paul Calbimonte.

Page 2: RDB2RDF, an overview of R2RML and Direct Mapping

ToC

•  Motivation •  Direct Mapping •  R2RML •  Morph / ODEMapster

2

Page 3: RDB2RDF, an overview of R2RML and Direct Mapping

A Survey of Current Approaches for Mapping of Relational Databases to RDF

3

A Survey of Current Approaches for Mapping of Relational Databases to RDF, Satya S. Sahoo, Wolfgang Halb, Sebastian Hellmann, Kingsley Idehen, Ted Thibodeau Jr, Sören Auer, Juan Sequeda, Ahmed Ezzat, 2009. (See http://www.w3.org/2005/Incubator/rdb2rdf/RDB2RDF_SurveyReport.pdf.)

Page 4: RDB2RDF, an overview of R2RML and Direct Mapping

•  A majority of dynamic Web content is backed by relational databases (RDB), and so are many enterprise systems.

•  W3C RDB2RDF Working Group •  R2RML: RDB to RDF Mapping Language - http://www.w3.org/2001/sw/rdb2rdf/r2rml/ •  Direct Mapping - http://www.w3.org/TR/rdb-direct-mapping/ •  R2RML and Direct Mapping Test Cases - http://www.w3.org/2001/sw/rdb2rdf/test-cases/ •  RDB2RDF Implementation Report - http://www.w3.org/2001/sw/rdb2rdf/implementation-

report/

RDB2RDF

4

transformation description

transformation engine

Page 5: RDB2RDF, an overview of R2RML and Direct Mapping

Access the RDF data in different ways

•  The consumer of the RDF Graph (virtual or materialized)

5

Use Cases and Requirements for Mapping Relational Databases to RDF http://www.w3.org/2001/sw/rdb2rdf/use-cases/

Page 6: RDB2RDF, an overview of R2RML and Direct Mapping

Direct Mapping

•  The direct mapping defines an RDF Graph representation of the data in an RDB. The direct mapping takes as input an RDB (data and schema), and generates an RDF graph that is called the direct graph.

6

Page 7: RDB2RDF, an overview of R2RML and Direct Mapping

Direct Mapping - example

7

Page 8: RDB2RDF, an overview of R2RML and Direct Mapping

R2RML

•  A language for expressing customized mappings from RDB to RDF datasets.

•  R2RML mappings are themselves expressed as RDF graphs and written down in Turtle syntax.

8

Page 9: RDB2RDF, an overview of R2RML and Direct Mapping

R2RML - Overview

9

Page 10: RDB2RDF, an overview of R2RML and Direct Mapping

R2RML - Overview

10

Page 11: RDB2RDF, an overview of R2RML and Direct Mapping

R2RML - example I - input

11

Page 12: RDB2RDF, an overview of R2RML and Direct Mapping

R2RML - example I - mapping

12

Page 13: RDB2RDF, an overview of R2RML and Direct Mapping

R2RML – example I - output

13

Page 14: RDB2RDF, an overview of R2RML and Direct Mapping

R2RML – example II - input

14

Page 15: RDB2RDF, an overview of R2RML and Direct Mapping

R2RML - example II - mapping

15

Page 16: RDB2RDF, an overview of R2RML and Direct Mapping

R2RML – example II - output

16

Page 17: RDB2RDF, an overview of R2RML and Direct Mapping

R2RML - example III - input

17

Page 18: RDB2RDF, an overview of R2RML and Direct Mapping

R2RML - example III - mapping

18

Page 19: RDB2RDF, an overview of R2RML and Direct Mapping

19

Page 20: RDB2RDF, an overview of R2RML and Direct Mapping

R2RML - example III - output

20

Page 21: RDB2RDF, an overview of R2RML and Direct Mapping

R2RML - example IV - input

21

Page 22: RDB2RDF, an overview of R2RML and Direct Mapping

R2RML - example IV - mapping

22

Page 23: RDB2RDF, an overview of R2RML and Direct Mapping

23

Page 24: RDB2RDF, an overview of R2RML and Direct Mapping

R2RML - example IV - output

24

Page 25: RDB2RDF, an overview of R2RML and Direct Mapping

Morph / ODEMapster - database

25

Page 26: RDB2RDF, an overview of R2RML and Direct Mapping

mapping

26

Page 27: RDB2RDF, an overview of R2RML and Direct Mapping

27

Page 28: RDB2RDF, an overview of R2RML and Direct Mapping

Upload to an RDF store - Fuseki

28

Page 29: RDB2RDF, an overview of R2RML and Direct Mapping

29

Page 30: RDB2RDF, an overview of R2RML and Direct Mapping

•  http://code.google.com/p/oeg-obdi/

•  https://github.com/jpcik/morph

•  https://github.com/boricles/morph

• 

30

RDB2RDF Implementation Report. Boris Villazón-Terrazas, Michael Hausenblas. http://www.w3.org/2001/sw/rdb2rdf/implementation-report/

Page 31: RDB2RDF, an overview of R2RML and Direct Mapping
Page 32: RDB2RDF, an overview of R2RML and Direct Mapping

OEG’s Data Integration Group RDB2RDF

WorkdistributedunderthelicenseCreativeCommonsAttribution-Noncommercial-Share Alike 3.0

Boris Villazón-Terrazas Facultad de Informática, Universidad Politécnica de Madrid

Campus de Montegancedo sn, 28660 Boadilla del Monte, Madrid http://www.oeg-upm.net

[email protected] Phone: 34.91.3366605, Fax: 34.91.3524819

Slides available at: http://www.slideshare.net/boricles/

Acknowledgements: W3C RDB2RDF group members, Freddy Priyatna, and Jean Paul Calbimonte.