semi-automatic generation of r2rml mappings
DESCRIPTION
Semi-automatic Generation of R2RML Mappings. Vânia Maria P. Vidal Marco A. Casanova Luís Eufrasio T. Neto. R2RML (RDB to RDF Mapping Language). W3C recommendation language for expressing customized mappings from RDBs to RDF datasets. R2RML. R2RML refers to logical tables - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/1.jpg)
Semi-automatic Generation of R2RML Mappings
Vânia Maria P. Vidal
Marco A. Casanova
Luís Eufrasio T. Neto
![Page 2: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/2.jpg)
R2RML (RDB to RDF Mapping Language)
W3C recommendation language for expressing customized mappings from
RDBs to RDF datasets
![Page 3: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/3.jpg)
R2RML
• R2RML refers to logical tables
• A logical table can be:– a base table;– a view; or– a valid SQL Query (called “R2RML view”)
![Page 4: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/4.jpg)
Mapping Process
A 3-Steps Process for RDB-to-RDF mapping creation
![Page 5: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/5.jpg)
Process Steps
![Page 6: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/6.jpg)
Correspondence Assertions
• CA specify the mapping: Relational Schema -> Target Ontology Schema
• Three types:– Class Correspondence Assertion (CCA)– Object Property Correspondence Assertion
(OCA)– Datatype Property Correspondence Assertion
(DCA)
![Page 7: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/7.jpg)
Class Correspondence Assertion
• Matches a class and a relation schema
• An expression of one of the following forms:
– Ψ: C R[A1,...,An] – Ψ: C R[A1,...,An]
• Example:– CCA1: foaf:Person Persons_Rel[perID]
![Page 8: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/8.jpg)
Object Property Correspondence Assertion
• Matches an object property with paths (list of foreign keys) of a relation schema
• An expression of one of the following forms:
– Ψ: O R / – Ψ: O R / NULL
• Example:– OCA1: conf:hasAffiliation Persons_Rel /
[hasPerson, hasOrganization]
![Page 9: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/9.jpg)
Datatype Property Correspondence Assertion
• Matches a datatype property with attributes or paths of a relation schema
• An expression of one of the following forms:– Ψ: P R / A – Ψ: P R / {A1,...,An}– Ψ: P R / / B – Ψ: P R / / {B1,...,Bn}
• Example:– DCA1: foaf:name Persons_Rel / firstName
![Page 10: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/10.jpg)
Running Example
![Page 11: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/11.jpg)
Source Relational Database
![Page 12: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/12.jpg)
Target Ontology
![Page 13: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/13.jpg)
Correspondence Assertions
![Page 14: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/14.jpg)
Correspondence Assertions
![Page 15: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/15.jpg)
Exported Ontology
![Page 16: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/16.jpg)
Views Schema
![Page 17: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/17.jpg)
RBA (R2RML By Assertions)
A tool that simplifies the task of generating and deploying
customized R2RML mappings
![Page 18: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/18.jpg)
R2RML By Assertions
• 3-Level Architecture:– EO: models the RDF View exported– VS: set of Relational Views
• Definition of SQL mappings• Definition of R2RML mappings
– S: source database schema
![Page 19: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/19.jpg)
R2RML By Assertions
• Main Components:– GUI: configure/load the schemas and
definition of correspondence assertions– GEO: Generate Exported Ontology– GVS: Generate Views Schema– GM-R2RML: Generate Mapping R2RML
![Page 20: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/20.jpg)
R2RML By Assertions
• Main Components:
![Page 21: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/21.jpg)
R2RML By Assertions
• Building Assertions:
![Page 22: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/22.jpg)
R2RML By Assertions
• Exported Ontology:
![Page 23: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/23.jpg)
R2RML By Assertions
• SQL Views:
![Page 24: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/24.jpg)
R2RML By Assertions
• R2RML Mapping:
![Page 25: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/25.jpg)
R2RML By Assertions
• R2RML Mapping:
![Page 26: Semi-automatic Generation of R2RML Mappings](https://reader036.vdocuments.mx/reader036/viewer/2022062802/56814498550346895db13eac/html5/thumbnails/26.jpg)
R2RML By Assertions
• R2RML Mapping: