SlideShare a Scribd company logo
1 of 24
MIRROR: Automatic R2RML Mapping
Generation from Relational
Databases
Luciano
Frontino de
Medeiros
Freddy Priyatna
Oscar Corcho
The 15th International Conference on Web Engineering
June 25th, 2015
Rotterdam, the Netherlands
Outline
1. Background & Motivation
2. Patterns Extraction
3. Mappings Generation
4. Experimentation
5. Conclusion
2
RDB2RDF
3
● Two worlds
o Relational Database (RDB) for storing information
 rows, tables
o Resource Description Framework (RDF) for sharing
information
 triples, graphs
● RDB2RDF and W3C
Direct Mapping
● Table URIs
o <ex.com/Student>
● Row nodes
o <Student/ID=10>
● Row type triples
o <Student/ID=10> <rdf:type> Student
● Literal triples
o <Sport/ID=110> <Sport#Description> “Tennis”.
● Reference triples
o <Student_Sport/ID_Student=10;ID_Sport=110> <Student_Sport#ref-ID_Student>
<Student/ID=10> .
4
http://www.w3.org/TR/rdb-direct-mapping/
Direct Mapping Example
Student
ID
(PK)
FirstName LastName
10 Venus Williams
11 Fernando Alonso
12 David Villa
Sport
ID
(PK)
Description
110 Tennis
111 Football
112 Formula1
Student_Sport
ID_Student
(PFK)
ID_Sport
(PFK)
10 110
11 111
11 112
12 111
5
<Student/ID=11>
<Student>
11
Fernando Alonso
rdf:type
<Student/ID>
<Student/LastName>
<Student/FirstName>
R2RML
● Customized mappings
● Triples Map
o Logical Table
o Subject Map
o Predicate Object Map
 Predicate Map
 Object Map
 Reference Object Map
● Term Map
o constant
o column
o template
6
http://www.w3.org/TR/r2rml/
R2RML Example
Student
ID
(PK)
FirstName LastName
10 Venus Williams
11 Fernando Alonso
12 David Villa
7
<Estudiante/11>
<Estudiante>
Fernando Alonso
rdf:type
ex:fullName
<#TriplesMap1>
rr:logicalTable [ rr:tableName "Student" ];
rr:subjectMap [
rr:template "http://data.example.com/Estudiante/{ID}";
rr:class ex:Estudiante;
];
rr:predicateObjectMap [
rr:predicate ex:fullName;
rr:objectMap [ rr:template "{FirstName} {LastName}" ];
].
Background: M-N Relationship
Expected Triples
Student
ID
(PK)
FirstName LastName
10 Venus Williams
11 Fernando Alonso
12 David Villa
Sport
ID
(PK)
Description
110 Tennis
111 Football
112 Formula1
Student_Sport
ID_Student
(PFK)
ID_Sport
(PFK)
10 110
11 111
11 112
12 111
8
<Student/ID=11>
<Sport/ID=111>
<Sport/ID=112>
<Student#hasSport>
<Student#hasSport>
Background: 1-N Relationship
Expected Triples
Student
ID
(PK)
FirstName LastName
10 Venus Williams
11 Fernando Alonso
12 David Villa
Sport
ID
(PK)
Description
110 Tennis
111 Football
112 Formula1
Student_Sport
ID_Student
(PFK)
ID_Sport
(PFK)
10 110
11 111
11 112
12 111
Contact
CID
(PK)
SID
(FK)
Email
1 10 venus@hotmail.com
2 10 venus@gmail.com
3 11 fernando@yahoo.com
4 12 david@msn.com
9
<Student/ID=10>
<Contact/ID=2>
<Student#hasContact> <Contact/ID=1>
<Student#hasContact>
Background: IsA Relationship
Expected Triples
Student
ID
(PFK)
FirstName LastName
10 Venus Williams
11 Fernando Alonso
12 David Villa
Sport
ID
(PK)
Description
110 Tennis
111 Football
112 Formula1
Student_Sport
ID_Student
(PFK)
ID_Sport
(PFK)
10 110
11 111
11 112
12 111
Person
ID
(PK)
SSN
10 1234510
11 1234511
12 1234512
10
<Student/ID=10>
1234510
rdf:type
<Student#SSN>
<Person>
Goal
● To automatically generate R2RML mappings
that:
o simulate DM rules
o encodes relationship in database
11
PINKEL, Christoph, et al.
RODI: A Benchmark for Automatic Mapping Generation in
Relational-to-Ontology Data Integration.
Extended Semantic Web Conference 2015
MIRROR: Overview
1. Extraction of tables and its relationship
2. Mappings generation
12
Pruning Relationship
Types
1 2 3 4 5 6 7 8
Parent (Mand, 1) (Mand, 1) (Mand, 1) (Mand, 1) (Mand, N) (Mand, N) (Mand, N) (Mand, N)
Child (Mand, 1) (Mand, N) (Opt,1) (Opt, N) (Mand, 1) (Mand, N) (Opt,1) (Opt, N)
9 10 11 12 13 14 15 16
Parent (Opt, 1) (Opt, 1) (Opt, 1) (Opt, 1) (Opt, N) (Opt, N) (Opt, N) (Opt, N)
Child (Mand, 1) (Mand, N) (Opt,1) (Opt, N) (Mand, 1) (Mand, N) (Opt,1) (Opt, N)
Reflexive Property
● 2 = 5
● 3 = 9
● 4 = 13
● 7 = 10
● 8 = 14
● 12 = 15
13
Primary key is not null
and unique
Correspondences between
models
14
Mappings Generation
15
Implementation & Experimentation
● Implementation
o https://github.com/oeg-upm/MIRROR
o morph-RDB integration
 https://github.com/oeg-upm/morph-rdb
o Any R2RML engine
● Goal
o 1st set mappings -> DM triples
o 2nd mappings -> relationship triples
● Dataset
o W3C DM Testcases
 26 databases (D000 - D025)
o Extension of D011
 1-N
 M-N relationship
 ISA relationship 16
D011 Extension
● 1-N
o Student - Contact
● IsA
o Student - Person
17
D011: Generated Mappings
1st Set -> DM Triples
18
D011 Outputs
DM
19
MIRROR + morph-RDB
D011: Generated Mappings
2nd Set -> M-N Relationship
20
<Sport/110> <SportHasStudent> <Student/10> .
<Sport/111> <SportHasStudent> <Student/11> .
<Sport/111> <SportHasStudent> <Student/12> .
<Sport/112> <SportHasStudent> <Student/11> .
D011 Extension: Generated Mappings
2nd Set -> 1-N Relationship
<Student/10> <StudenthasContact> <Contact/1> .
<Student/10> <StudenthasContact> <Contact/2> .
<Student/11> <StudenthasContact> <Contact/3> .
<Student/12> <StudenthasContact> <Contact/4> .
21
D011 Extension: Generated Mappings
2nd Set -> IsA & inherited properties
<Student/10> <rdf:type> <Person> .
<Student/10> <Student#ssn> 1234510 .
<Student/11> <rdf:type> <Person> .
<Student/11> <Student#ssn> 1234511 .
<Student/12> <rdf:type> <Person> .
<Student/12> <Student#ssn> 1234512 . 22
Conclusion
● R2RML Mappings Generator
o Implemented as MIRROR
o Integrated with morph-RDB
● 2 Sets of Generated Mappings
o Direct Mapping Triples
o Encoded Relationship in a Database Schema
● Evaluation
o Direct Mapping Test Cases
o Extension of D011
23
MIRROR: Automatic R2RML Mapping
Generation from Relational
Databases
Luciano
Frontino de
Medeiros
Freddy Priyatna
Oscar Corcho

More Related Content

Similar to (Semantic Web Technologies and Applications track) "MIRROR: Automatic R2RML Mapping Generation from Relational Databases" - Luciano Frontino De Medeiros, Freddy Priyatna and Oscar Corcho

Entity Summarization with User Feedback (ESWC 2020)
Entity Summarization with User Feedback (ESWC 2020)Entity Summarization with User Feedback (ESWC 2020)
Entity Summarization with User Feedback (ESWC 2020)Qingxia Liu
 
Tips And Tricks For Bioinformatics Software Engineering
Tips And Tricks For Bioinformatics Software EngineeringTips And Tricks For Bioinformatics Software Engineering
Tips And Tricks For Bioinformatics Software Engineeringjtdudley
 
Notes on data-intensive processing with Hadoop Mapreduce
Notes on data-intensive processing with Hadoop MapreduceNotes on data-intensive processing with Hadoop Mapreduce
Notes on data-intensive processing with Hadoop MapreduceEvert Lammerts
 
A Study of the Similarities of Entity Embeddings Learned from Different Aspec...
A Study of the Similarities of Entity Embeddings Learned from Different Aspec...A Study of the Similarities of Entity Embeddings Learned from Different Aspec...
A Study of the Similarities of Entity Embeddings Learned from Different Aspec...GUANGYUAN PIAO
 
Introduction to Data Science and Analytics
Introduction to Data Science and AnalyticsIntroduction to Data Science and Analytics
Introduction to Data Science and AnalyticsSrinath Perera
 
Wso2datasciencesummerschool20151 150714180825-lva1-app6892
Wso2datasciencesummerschool20151 150714180825-lva1-app6892Wso2datasciencesummerschool20151 150714180825-lva1-app6892
Wso2datasciencesummerschool20151 150714180825-lva1-app6892WSO2
 
Introduction to data science
Introduction to data scienceIntroduction to data science
Introduction to data scienceSampath Kumar
 
A Workload-Aware Middleware for Storing Massive RDF Graphs into NoSQL Databases
A Workload-Aware Middleware for Storing Massive RDF Graphs into NoSQL DatabasesA Workload-Aware Middleware for Storing Massive RDF Graphs into NoSQL Databases
A Workload-Aware Middleware for Storing Massive RDF Graphs into NoSQL DatabasesLuiz Henrique Zambom Santana
 
Wimmics Overview 2021
Wimmics Overview 2021Wimmics Overview 2021
Wimmics Overview 2021Fabien Gandon
 
NERD meets NIF: Lifting NLP Extraction Results to the Linked Data Cloud
NERD meets NIF:  Lifting NLP Extraction Results to the Linked Data CloudNERD meets NIF:  Lifting NLP Extraction Results to the Linked Data Cloud
NERD meets NIF: Lifting NLP Extraction Results to the Linked Data CloudGiuseppe Rizzo
 
Concurrent Stream Processing
Concurrent Stream ProcessingConcurrent Stream Processing
Concurrent Stream ProcessingAlex Miller
 
Stream Execution with Clojure and Fork/join
Stream Execution with Clojure and Fork/joinStream Execution with Clojure and Fork/join
Stream Execution with Clojure and Fork/joinAlex Miller
 
Enhancing Entity Linking by Combining NER Models
Enhancing Entity Linking by Combining NER ModelsEnhancing Entity Linking by Combining NER Models
Enhancing Entity Linking by Combining NER ModelsJulien PLU
 
Apache SystemML Optimizer and Runtime techniques by Arvind Surve and Matthias...
Apache SystemML Optimizer and Runtime techniques by Arvind Surve and Matthias...Apache SystemML Optimizer and Runtime techniques by Arvind Surve and Matthias...
Apache SystemML Optimizer and Runtime techniques by Arvind Surve and Matthias...Arvind Surve
 
Apache SystemML Optimizer and Runtime techniques by Arvind Surve and Matthias...
Apache SystemML Optimizer and Runtime techniques by Arvind Surve and Matthias...Apache SystemML Optimizer and Runtime techniques by Arvind Surve and Matthias...
Apache SystemML Optimizer and Runtime techniques by Arvind Surve and Matthias...Arvind Surve
 
Data Science with R for Java Developers
Data Science with R for Java DevelopersData Science with R for Java Developers
Data Science with R for Java DevelopersNLJUG
 

Similar to (Semantic Web Technologies and Applications track) "MIRROR: Automatic R2RML Mapping Generation from Relational Databases" - Luciano Frontino De Medeiros, Freddy Priyatna and Oscar Corcho (20)

Entity Summarization with User Feedback (ESWC 2020)
Entity Summarization with User Feedback (ESWC 2020)Entity Summarization with User Feedback (ESWC 2020)
Entity Summarization with User Feedback (ESWC 2020)
 
Tips And Tricks For Bioinformatics Software Engineering
Tips And Tricks For Bioinformatics Software EngineeringTips And Tricks For Bioinformatics Software Engineering
Tips And Tricks For Bioinformatics Software Engineering
 
Notes on data-intensive processing with Hadoop Mapreduce
Notes on data-intensive processing with Hadoop MapreduceNotes on data-intensive processing with Hadoop Mapreduce
Notes on data-intensive processing with Hadoop Mapreduce
 
Hadoop.mapreduce
Hadoop.mapreduceHadoop.mapreduce
Hadoop.mapreduce
 
Data science with Perl & Raku
Data science with Perl & RakuData science with Perl & Raku
Data science with Perl & Raku
 
A Study of the Similarities of Entity Embeddings Learned from Different Aspec...
A Study of the Similarities of Entity Embeddings Learned from Different Aspec...A Study of the Similarities of Entity Embeddings Learned from Different Aspec...
A Study of the Similarities of Entity Embeddings Learned from Different Aspec...
 
Introduction to Data Science and Analytics
Introduction to Data Science and AnalyticsIntroduction to Data Science and Analytics
Introduction to Data Science and Analytics
 
Wso2datasciencesummerschool20151 150714180825-lva1-app6892
Wso2datasciencesummerschool20151 150714180825-lva1-app6892Wso2datasciencesummerschool20151 150714180825-lva1-app6892
Wso2datasciencesummerschool20151 150714180825-lva1-app6892
 
Introduction to data science
Introduction to data scienceIntroduction to data science
Introduction to data science
 
A Workload-Aware Middleware for Storing Massive RDF Graphs into NoSQL Databases
A Workload-Aware Middleware for Storing Massive RDF Graphs into NoSQL DatabasesA Workload-Aware Middleware for Storing Massive RDF Graphs into NoSQL Databases
A Workload-Aware Middleware for Storing Massive RDF Graphs into NoSQL Databases
 
Wimmics Overview 2021
Wimmics Overview 2021Wimmics Overview 2021
Wimmics Overview 2021
 
NERD meets NIF: Lifting NLP Extraction Results to the Linked Data Cloud
NERD meets NIF:  Lifting NLP Extraction Results to the Linked Data CloudNERD meets NIF:  Lifting NLP Extraction Results to the Linked Data Cloud
NERD meets NIF: Lifting NLP Extraction Results to the Linked Data Cloud
 
inteSearch: An Intelligent Linked Data Information Access Framework
inteSearch: An Intelligent Linked Data Information Access FrameworkinteSearch: An Intelligent Linked Data Information Access Framework
inteSearch: An Intelligent Linked Data Information Access Framework
 
Concurrent Stream Processing
Concurrent Stream ProcessingConcurrent Stream Processing
Concurrent Stream Processing
 
Stream Execution with Clojure and Fork/join
Stream Execution with Clojure and Fork/joinStream Execution with Clojure and Fork/join
Stream Execution with Clojure and Fork/join
 
Cloud accounting software uk
Cloud accounting software ukCloud accounting software uk
Cloud accounting software uk
 
Enhancing Entity Linking by Combining NER Models
Enhancing Entity Linking by Combining NER ModelsEnhancing Entity Linking by Combining NER Models
Enhancing Entity Linking by Combining NER Models
 
Apache SystemML Optimizer and Runtime techniques by Arvind Surve and Matthias...
Apache SystemML Optimizer and Runtime techniques by Arvind Surve and Matthias...Apache SystemML Optimizer and Runtime techniques by Arvind Surve and Matthias...
Apache SystemML Optimizer and Runtime techniques by Arvind Surve and Matthias...
 
Apache SystemML Optimizer and Runtime techniques by Arvind Surve and Matthias...
Apache SystemML Optimizer and Runtime techniques by Arvind Surve and Matthias...Apache SystemML Optimizer and Runtime techniques by Arvind Surve and Matthias...
Apache SystemML Optimizer and Runtime techniques by Arvind Surve and Matthias...
 
Data Science with R for Java Developers
Data Science with R for Java DevelopersData Science with R for Java Developers
Data Science with R for Java Developers
 

More from icwe2015

Mikkonen liquid-sw-icwe2015
Mikkonen liquid-sw-icwe2015Mikkonen liquid-sw-icwe2015
Mikkonen liquid-sw-icwe2015icwe2015
 
(Web User Interfaces track) "Getting the Query Right: User Interface Design o...
(Web User Interfaces track) "Getting the Query Right: User Interface Design o...(Web User Interfaces track) "Getting the Query Right: User Interface Design o...
(Web User Interfaces track) "Getting the Query Right: User Interface Design o...icwe2015
 
(Web Application Design track) "Two Factor Authentication Made Easy" - Alex Q...
(Web Application Design track) "Two Factor Authentication Made Easy" - Alex Q...(Web Application Design track) "Two Factor Authentication Made Easy" - Alex Q...
(Web Application Design track) "Two Factor Authentication Made Easy" - Alex Q...icwe2015
 
(Linked Data Development and Exploitation track) "YQL as a Platform for Linke...
(Linked Data Development and Exploitation track) "YQL as a Platform for Linke...(Linked Data Development and Exploitation track) "YQL as a Platform for Linke...
(Linked Data Development and Exploitation track) "YQL as a Platform for Linke...icwe2015
 
(Linked Data Interfaces and Querying track) "SUMMA: A Common API for Linked D...
(Linked Data Interfaces and Querying track) "SUMMA: A Common API for Linked D...(Linked Data Interfaces and Querying track) "SUMMA: A Common API for Linked D...
(Linked Data Interfaces and Querying track) "SUMMA: A Common API for Linked D...icwe2015
 
(Linked Data Development and Exploitation track) "Generating the Semantic Sna...
(Linked Data Development and Exploitation track) "Generating the Semantic Sna...(Linked Data Development and Exploitation track) "Generating the Semantic Sna...
(Linked Data Development and Exploitation track) "Generating the Semantic Sna...icwe2015
 
(Industry track) "Interactive networks for digital cultural heritage collecti...
(Industry track) "Interactive networks for digital cultural heritage collecti...(Industry track) "Interactive networks for digital cultural heritage collecti...
(Industry track) "Interactive networks for digital cultural heritage collecti...icwe2015
 
(SoWeMine Workshop) "#nowplaying on #Spotify: Leveraging Spotify Information ...
(SoWeMine Workshop) "#nowplaying on #Spotify: Leveraging Spotify Information ...(SoWeMine Workshop) "#nowplaying on #Spotify: Leveraging Spotify Information ...
(SoWeMine Workshop) "#nowplaying on #Spotify: Leveraging Spotify Information ...icwe2015
 
(Mobile Web Applications track) "Mobile-IDM: A Design Method for Modeling the...
(Mobile Web Applications track) "Mobile-IDM: A Design Method for Modeling the...(Mobile Web Applications track) "Mobile-IDM: A Design Method for Modeling the...
(Mobile Web Applications track) "Mobile-IDM: A Design Method for Modeling the...icwe2015
 
(Linked Data Development and Exploitation track) "Curtains Up! Lights, Camera...
(Linked Data Development and Exploitation track) "Curtains Up! Lights, Camera...(Linked Data Development and Exploitation track) "Curtains Up! Lights, Camera...
(Linked Data Development and Exploitation track) "Curtains Up! Lights, Camera...icwe2015
 
(Mobile Web Applications track) "Profiling User Activities with Minimal Traff...
(Mobile Web Applications track) "Profiling User Activities with Minimal Traff...(Mobile Web Applications track) "Profiling User Activities with Minimal Traff...
(Mobile Web Applications track) "Profiling User Activities with Minimal Traff...icwe2015
 
(SoWeMine Workshop) "Retrieving Relevant and Interesting Tweets during Live T...
(SoWeMine Workshop) "Retrieving Relevant and Interesting Tweets during Live T...(SoWeMine Workshop) "Retrieving Relevant and Interesting Tweets during Live T...
(SoWeMine Workshop) "Retrieving Relevant and Interesting Tweets during Live T...icwe2015
 
(NLPIT Workshop) (Keynote) Nathan Schneider - “Hacking a Way Through the Twit...
(NLPIT Workshop) (Keynote) Nathan Schneider - “Hacking a Way Through the Twit...(NLPIT Workshop) (Keynote) Nathan Schneider - “Hacking a Way Through the Twit...
(NLPIT Workshop) (Keynote) Nathan Schneider - “Hacking a Way Through the Twit...icwe2015
 
(PEWET Workshop) (Keynote) Vincenzo De Florio - “Fractally-organized Connecti...
(PEWET Workshop) (Keynote) Vincenzo De Florio - “Fractally-organized Connecti...(PEWET Workshop) (Keynote) Vincenzo De Florio - “Fractally-organized Connecti...
(PEWET Workshop) (Keynote) Vincenzo De Florio - “Fractally-organized Connecti...icwe2015
 
(Web Application Design track) "Liquid Stream Processing across Web Browsers ...
(Web Application Design track) "Liquid Stream Processing across Web Browsers ...(Web Application Design track) "Liquid Stream Processing across Web Browsers ...
(Web Application Design track) "Liquid Stream Processing across Web Browsers ...icwe2015
 
(Web Composition and Mashups track) "REST Web Service Description for Graph-B...
(Web Composition and Mashups track) "REST Web Service Description for Graph-B...(Web Composition and Mashups track) "REST Web Service Description for Graph-B...
(Web Composition and Mashups track) "REST Web Service Description for Graph-B...icwe2015
 
(Semantic Web Technologies and Applications track) "A Quantitative Comparison...
(Semantic Web Technologies and Applications track) "A Quantitative Comparison...(Semantic Web Technologies and Applications track) "A Quantitative Comparison...
(Semantic Web Technologies and Applications track) "A Quantitative Comparison...icwe2015
 
(Keynote) Peter Mika - “Making the Web Searchable”
(Keynote) Peter Mika - “Making the Web Searchable”(Keynote) Peter Mika - “Making the Web Searchable”
(Keynote) Peter Mika - “Making the Web Searchable”icwe2015
 
(Keynote) Mike Thelwall - “Sentiment Strength Detection for Social Media Text...
(Keynote) Mike Thelwall - “Sentiment Strength Detection for Social Media Text...(Keynote) Mike Thelwall - “Sentiment Strength Detection for Social Media Text...
(Keynote) Mike Thelwall - “Sentiment Strength Detection for Social Media Text...icwe2015
 

More from icwe2015 (19)

Mikkonen liquid-sw-icwe2015
Mikkonen liquid-sw-icwe2015Mikkonen liquid-sw-icwe2015
Mikkonen liquid-sw-icwe2015
 
(Web User Interfaces track) "Getting the Query Right: User Interface Design o...
(Web User Interfaces track) "Getting the Query Right: User Interface Design o...(Web User Interfaces track) "Getting the Query Right: User Interface Design o...
(Web User Interfaces track) "Getting the Query Right: User Interface Design o...
 
(Web Application Design track) "Two Factor Authentication Made Easy" - Alex Q...
(Web Application Design track) "Two Factor Authentication Made Easy" - Alex Q...(Web Application Design track) "Two Factor Authentication Made Easy" - Alex Q...
(Web Application Design track) "Two Factor Authentication Made Easy" - Alex Q...
 
(Linked Data Development and Exploitation track) "YQL as a Platform for Linke...
(Linked Data Development and Exploitation track) "YQL as a Platform for Linke...(Linked Data Development and Exploitation track) "YQL as a Platform for Linke...
(Linked Data Development and Exploitation track) "YQL as a Platform for Linke...
 
(Linked Data Interfaces and Querying track) "SUMMA: A Common API for Linked D...
(Linked Data Interfaces and Querying track) "SUMMA: A Common API for Linked D...(Linked Data Interfaces and Querying track) "SUMMA: A Common API for Linked D...
(Linked Data Interfaces and Querying track) "SUMMA: A Common API for Linked D...
 
(Linked Data Development and Exploitation track) "Generating the Semantic Sna...
(Linked Data Development and Exploitation track) "Generating the Semantic Sna...(Linked Data Development and Exploitation track) "Generating the Semantic Sna...
(Linked Data Development and Exploitation track) "Generating the Semantic Sna...
 
(Industry track) "Interactive networks for digital cultural heritage collecti...
(Industry track) "Interactive networks for digital cultural heritage collecti...(Industry track) "Interactive networks for digital cultural heritage collecti...
(Industry track) "Interactive networks for digital cultural heritage collecti...
 
(SoWeMine Workshop) "#nowplaying on #Spotify: Leveraging Spotify Information ...
(SoWeMine Workshop) "#nowplaying on #Spotify: Leveraging Spotify Information ...(SoWeMine Workshop) "#nowplaying on #Spotify: Leveraging Spotify Information ...
(SoWeMine Workshop) "#nowplaying on #Spotify: Leveraging Spotify Information ...
 
(Mobile Web Applications track) "Mobile-IDM: A Design Method for Modeling the...
(Mobile Web Applications track) "Mobile-IDM: A Design Method for Modeling the...(Mobile Web Applications track) "Mobile-IDM: A Design Method for Modeling the...
(Mobile Web Applications track) "Mobile-IDM: A Design Method for Modeling the...
 
(Linked Data Development and Exploitation track) "Curtains Up! Lights, Camera...
(Linked Data Development and Exploitation track) "Curtains Up! Lights, Camera...(Linked Data Development and Exploitation track) "Curtains Up! Lights, Camera...
(Linked Data Development and Exploitation track) "Curtains Up! Lights, Camera...
 
(Mobile Web Applications track) "Profiling User Activities with Minimal Traff...
(Mobile Web Applications track) "Profiling User Activities with Minimal Traff...(Mobile Web Applications track) "Profiling User Activities with Minimal Traff...
(Mobile Web Applications track) "Profiling User Activities with Minimal Traff...
 
(SoWeMine Workshop) "Retrieving Relevant and Interesting Tweets during Live T...
(SoWeMine Workshop) "Retrieving Relevant and Interesting Tweets during Live T...(SoWeMine Workshop) "Retrieving Relevant and Interesting Tweets during Live T...
(SoWeMine Workshop) "Retrieving Relevant and Interesting Tweets during Live T...
 
(NLPIT Workshop) (Keynote) Nathan Schneider - “Hacking a Way Through the Twit...
(NLPIT Workshop) (Keynote) Nathan Schneider - “Hacking a Way Through the Twit...(NLPIT Workshop) (Keynote) Nathan Schneider - “Hacking a Way Through the Twit...
(NLPIT Workshop) (Keynote) Nathan Schneider - “Hacking a Way Through the Twit...
 
(PEWET Workshop) (Keynote) Vincenzo De Florio - “Fractally-organized Connecti...
(PEWET Workshop) (Keynote) Vincenzo De Florio - “Fractally-organized Connecti...(PEWET Workshop) (Keynote) Vincenzo De Florio - “Fractally-organized Connecti...
(PEWET Workshop) (Keynote) Vincenzo De Florio - “Fractally-organized Connecti...
 
(Web Application Design track) "Liquid Stream Processing across Web Browsers ...
(Web Application Design track) "Liquid Stream Processing across Web Browsers ...(Web Application Design track) "Liquid Stream Processing across Web Browsers ...
(Web Application Design track) "Liquid Stream Processing across Web Browsers ...
 
(Web Composition and Mashups track) "REST Web Service Description for Graph-B...
(Web Composition and Mashups track) "REST Web Service Description for Graph-B...(Web Composition and Mashups track) "REST Web Service Description for Graph-B...
(Web Composition and Mashups track) "REST Web Service Description for Graph-B...
 
(Semantic Web Technologies and Applications track) "A Quantitative Comparison...
(Semantic Web Technologies and Applications track) "A Quantitative Comparison...(Semantic Web Technologies and Applications track) "A Quantitative Comparison...
(Semantic Web Technologies and Applications track) "A Quantitative Comparison...
 
(Keynote) Peter Mika - “Making the Web Searchable”
(Keynote) Peter Mika - “Making the Web Searchable”(Keynote) Peter Mika - “Making the Web Searchable”
(Keynote) Peter Mika - “Making the Web Searchable”
 
(Keynote) Mike Thelwall - “Sentiment Strength Detection for Social Media Text...
(Keynote) Mike Thelwall - “Sentiment Strength Detection for Social Media Text...(Keynote) Mike Thelwall - “Sentiment Strength Detection for Social Media Text...
(Keynote) Mike Thelwall - “Sentiment Strength Detection for Social Media Text...
 

Recently uploaded

Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...
Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...
Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...meghakumariji156
 
一比一原版田纳西大学毕业证如何办理
一比一原版田纳西大学毕业证如何办理一比一原版田纳西大学毕业证如何办理
一比一原版田纳西大学毕业证如何办理F
 
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrStory Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrHenryBriggs2
 
Local Call Girls in Seoni 9332606886 HOT & SEXY Models beautiful and charmin...
Local Call Girls in Seoni  9332606886 HOT & SEXY Models beautiful and charmin...Local Call Girls in Seoni  9332606886 HOT & SEXY Models beautiful and charmin...
Local Call Girls in Seoni 9332606886 HOT & SEXY Models beautiful and charmin...kumargunjan9515
 
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...APNIC
 
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime BalliaBallia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Balliameghakumariji156
 
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
20240507 QFM013 Machine Intelligence Reading List April 2024.pdfMatthew Sinclair
 
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查ydyuyu
 
Best SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency DallasBest SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency DallasDigicorns Technologies
 
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi EscortsIndian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi EscortsMonica Sydney
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdfMatthew Sinclair
 
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...gajnagarg
 
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency""Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency"growthgrids
 
一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理F
 
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu DhabiAbu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu DhabiMonica Sydney
 
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样ayvbos
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdfMatthew Sinclair
 
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac RoomVip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Roommeghakumariji156
 
Meaning of On page SEO & its process in detail.
Meaning of On page SEO & its process in detail.Meaning of On page SEO & its process in detail.
Meaning of On page SEO & its process in detail.krishnachandrapal52
 
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样ayvbos
 

Recently uploaded (20)

Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...
Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...
Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...
 
一比一原版田纳西大学毕业证如何办理
一比一原版田纳西大学毕业证如何办理一比一原版田纳西大学毕业证如何办理
一比一原版田纳西大学毕业证如何办理
 
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrStory Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
 
Local Call Girls in Seoni 9332606886 HOT & SEXY Models beautiful and charmin...
Local Call Girls in Seoni  9332606886 HOT & SEXY Models beautiful and charmin...Local Call Girls in Seoni  9332606886 HOT & SEXY Models beautiful and charmin...
Local Call Girls in Seoni 9332606886 HOT & SEXY Models beautiful and charmin...
 
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
 
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime BalliaBallia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
 
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
 
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
 
Best SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency DallasBest SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency Dallas
 
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi EscortsIndian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf
 
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
 
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency""Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
 
一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理
 
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu DhabiAbu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
 
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
 
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac RoomVip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
 
Meaning of On page SEO & its process in detail.
Meaning of On page SEO & its process in detail.Meaning of On page SEO & its process in detail.
Meaning of On page SEO & its process in detail.
 
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
 

(Semantic Web Technologies and Applications track) "MIRROR: Automatic R2RML Mapping Generation from Relational Databases" - Luciano Frontino De Medeiros, Freddy Priyatna and Oscar Corcho

  • 1. MIRROR: Automatic R2RML Mapping Generation from Relational Databases Luciano Frontino de Medeiros Freddy Priyatna Oscar Corcho The 15th International Conference on Web Engineering June 25th, 2015 Rotterdam, the Netherlands
  • 2. Outline 1. Background & Motivation 2. Patterns Extraction 3. Mappings Generation 4. Experimentation 5. Conclusion 2
  • 3. RDB2RDF 3 ● Two worlds o Relational Database (RDB) for storing information  rows, tables o Resource Description Framework (RDF) for sharing information  triples, graphs ● RDB2RDF and W3C
  • 4. Direct Mapping ● Table URIs o <ex.com/Student> ● Row nodes o <Student/ID=10> ● Row type triples o <Student/ID=10> <rdf:type> Student ● Literal triples o <Sport/ID=110> <Sport#Description> “Tennis”. ● Reference triples o <Student_Sport/ID_Student=10;ID_Sport=110> <Student_Sport#ref-ID_Student> <Student/ID=10> . 4 http://www.w3.org/TR/rdb-direct-mapping/
  • 5. Direct Mapping Example Student ID (PK) FirstName LastName 10 Venus Williams 11 Fernando Alonso 12 David Villa Sport ID (PK) Description 110 Tennis 111 Football 112 Formula1 Student_Sport ID_Student (PFK) ID_Sport (PFK) 10 110 11 111 11 112 12 111 5 <Student/ID=11> <Student> 11 Fernando Alonso rdf:type <Student/ID> <Student/LastName> <Student/FirstName>
  • 6. R2RML ● Customized mappings ● Triples Map o Logical Table o Subject Map o Predicate Object Map  Predicate Map  Object Map  Reference Object Map ● Term Map o constant o column o template 6 http://www.w3.org/TR/r2rml/
  • 7. R2RML Example Student ID (PK) FirstName LastName 10 Venus Williams 11 Fernando Alonso 12 David Villa 7 <Estudiante/11> <Estudiante> Fernando Alonso rdf:type ex:fullName <#TriplesMap1> rr:logicalTable [ rr:tableName "Student" ]; rr:subjectMap [ rr:template "http://data.example.com/Estudiante/{ID}"; rr:class ex:Estudiante; ]; rr:predicateObjectMap [ rr:predicate ex:fullName; rr:objectMap [ rr:template "{FirstName} {LastName}" ]; ].
  • 8. Background: M-N Relationship Expected Triples Student ID (PK) FirstName LastName 10 Venus Williams 11 Fernando Alonso 12 David Villa Sport ID (PK) Description 110 Tennis 111 Football 112 Formula1 Student_Sport ID_Student (PFK) ID_Sport (PFK) 10 110 11 111 11 112 12 111 8 <Student/ID=11> <Sport/ID=111> <Sport/ID=112> <Student#hasSport> <Student#hasSport>
  • 9. Background: 1-N Relationship Expected Triples Student ID (PK) FirstName LastName 10 Venus Williams 11 Fernando Alonso 12 David Villa Sport ID (PK) Description 110 Tennis 111 Football 112 Formula1 Student_Sport ID_Student (PFK) ID_Sport (PFK) 10 110 11 111 11 112 12 111 Contact CID (PK) SID (FK) Email 1 10 venus@hotmail.com 2 10 venus@gmail.com 3 11 fernando@yahoo.com 4 12 david@msn.com 9 <Student/ID=10> <Contact/ID=2> <Student#hasContact> <Contact/ID=1> <Student#hasContact>
  • 10. Background: IsA Relationship Expected Triples Student ID (PFK) FirstName LastName 10 Venus Williams 11 Fernando Alonso 12 David Villa Sport ID (PK) Description 110 Tennis 111 Football 112 Formula1 Student_Sport ID_Student (PFK) ID_Sport (PFK) 10 110 11 111 11 112 12 111 Person ID (PK) SSN 10 1234510 11 1234511 12 1234512 10 <Student/ID=10> 1234510 rdf:type <Student#SSN> <Person>
  • 11. Goal ● To automatically generate R2RML mappings that: o simulate DM rules o encodes relationship in database 11 PINKEL, Christoph, et al. RODI: A Benchmark for Automatic Mapping Generation in Relational-to-Ontology Data Integration. Extended Semantic Web Conference 2015
  • 12. MIRROR: Overview 1. Extraction of tables and its relationship 2. Mappings generation 12
  • 13. Pruning Relationship Types 1 2 3 4 5 6 7 8 Parent (Mand, 1) (Mand, 1) (Mand, 1) (Mand, 1) (Mand, N) (Mand, N) (Mand, N) (Mand, N) Child (Mand, 1) (Mand, N) (Opt,1) (Opt, N) (Mand, 1) (Mand, N) (Opt,1) (Opt, N) 9 10 11 12 13 14 15 16 Parent (Opt, 1) (Opt, 1) (Opt, 1) (Opt, 1) (Opt, N) (Opt, N) (Opt, N) (Opt, N) Child (Mand, 1) (Mand, N) (Opt,1) (Opt, N) (Mand, 1) (Mand, N) (Opt,1) (Opt, N) Reflexive Property ● 2 = 5 ● 3 = 9 ● 4 = 13 ● 7 = 10 ● 8 = 14 ● 12 = 15 13 Primary key is not null and unique
  • 16. Implementation & Experimentation ● Implementation o https://github.com/oeg-upm/MIRROR o morph-RDB integration  https://github.com/oeg-upm/morph-rdb o Any R2RML engine ● Goal o 1st set mappings -> DM triples o 2nd mappings -> relationship triples ● Dataset o W3C DM Testcases  26 databases (D000 - D025) o Extension of D011  1-N  M-N relationship  ISA relationship 16
  • 17. D011 Extension ● 1-N o Student - Contact ● IsA o Student - Person 17
  • 18. D011: Generated Mappings 1st Set -> DM Triples 18
  • 20. D011: Generated Mappings 2nd Set -> M-N Relationship 20 <Sport/110> <SportHasStudent> <Student/10> . <Sport/111> <SportHasStudent> <Student/11> . <Sport/111> <SportHasStudent> <Student/12> . <Sport/112> <SportHasStudent> <Student/11> .
  • 21. D011 Extension: Generated Mappings 2nd Set -> 1-N Relationship <Student/10> <StudenthasContact> <Contact/1> . <Student/10> <StudenthasContact> <Contact/2> . <Student/11> <StudenthasContact> <Contact/3> . <Student/12> <StudenthasContact> <Contact/4> . 21
  • 22. D011 Extension: Generated Mappings 2nd Set -> IsA & inherited properties <Student/10> <rdf:type> <Person> . <Student/10> <Student#ssn> 1234510 . <Student/11> <rdf:type> <Person> . <Student/11> <Student#ssn> 1234511 . <Student/12> <rdf:type> <Person> . <Student/12> <Student#ssn> 1234512 . 22
  • 23. Conclusion ● R2RML Mappings Generator o Implemented as MIRROR o Integrated with morph-RDB ● 2 Sets of Generated Mappings o Direct Mapping Triples o Encoded Relationship in a Database Schema ● Evaluation o Direct Mapping Test Cases o Extension of D011 23
  • 24. MIRROR: Automatic R2RML Mapping Generation from Relational Databases Luciano Frontino de Medeiros Freddy Priyatna Oscar Corcho