AutoMap4OBDA: Automated generation of R2RML mappings for OBDA

Preview:

Citation preview

Álvaro Sicilia* & German Nemirovski**

* ARC Enginyeria i Arquitectura La Salle,Universitat Ramon Llull, Barcelona, Spainasicilia@salleurl.edu

** Business and Computer Science,Albstadt-Sigmaringen-University of Applied Sciences, Albstadt, Germanynemirovskij@hs-albsig.de

AutoMap4OBDA: Automated Generation of R2RML

Mappings for OBDA

20th International Conference on Knowledge

Engineering and Knowledge Management

19-23 November 2016, Bologna, Italy

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

Introduction

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

Introduction

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

Introduction

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

<mapping> a rr:TriplesMap;

rr:logicalTable

[ rr:sqlQuery "SELECT id FROM building"];

rr:subjectMap

[ rr:template ".../building/{id}";

rr:class ex:Building

].

<mapping> a rr:TriplesMap;

rr:logicalTable

[ rr:sqlQuery "SELECT id FROM building

WHERE use = 'Office'"];

rr:subjectMap

[ rr:template ".../officebuilding/{id}";

rr:class ex:OfficeBuilding

].

Introduction

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

AutoMap4OBDA

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

AutoMap4OBDA

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

AutoMap4OBDA

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

AutoMap4OBDA

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

AutoMap4OBDA

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

AutoMap4OBDA

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

AutoMap4OBDA

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

AutoMap4OBDA

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

AutoMap4OBDA

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

𝐻 𝐼𝐷 :9.32

Max. class name length: 11

AutoMap4OBDA

𝐻 𝑈𝑠𝑒 : 4.12 𝐻 𝐴𝑑𝑑𝑟𝑒𝑠𝑠 : 2.15

𝐻 𝑂𝑛𝑡𝑜𝑙𝑜𝑔𝑦 : 5.31

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

AutoMap4OBDA

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

AutoMap4OBDA

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

AutoMap4OBDA

{∅}

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

AutoMap4OBDA

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

AutoMap4OBDA

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

AutoMap4OBDA

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

AutoMap4OBDA

<mapping> a rr:TriplesMap;

rr:logicalTable [

rr:sqlQuery "SELECT a.id, d.id FROM

building AS a INNER JOIN Block AS b ON

a.fkBlock=b.id INNER JOIN District AS c ON

b.fkDistrict=c.id INNER JOIN City AS d ON

c.fkCity=d.id"];

rr:subjectMap

[ rr:template ".../building/{a.id}";

rr:class ex:Building

].

rr:predicateObjectMap [

rr:predicate ex:hasCity;

rr:template ".../city/{d.id}" ].

...

<mapping1> a rr:TriplesMap;

rr:logicalTable [

rr:sqlQuery "SELECT id FROM building"];

rr:subjectMap [

rr:template ".../building/{id}";

rr:class ex:Building ].

rr:predicateObjectMap [

rr:predicate ex:hasRoom;

rr:template ".../room/{id}" ].

<mapping2> a rr:TriplesMap;

rr:logicalTable

[ rr:sqlQuery "SELECT id FROM building"];

rr:subjectMap

[ rr:template ".../room/{id}";

rr:class ex:Room ].

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

<mapping2> a rr:TriplesMap;

rr:logicalTable[rr:sqlQuery "SELECT id,use FROM building"];

rr:subjectMap [

rr:template ".../building/{id}"; rr:class ex:Building].

rr:predicateObjectMap [ rr:predicate ex:hasUse;

rr:template ".../use/{use}" ].

rr:predicateObjectMap [rr:predicate ex:use;

rr:column "{use}" ].

AutoMap4OBDA

<mapping3> a rr:TriplesMap;

rr:logicalTable [rr:sqlQuery "SELECT id FROM building"];

rr:subjectMap [

rr:template ".../district/{id}"; rr:class ex:District].

<mapping4> a rr:TriplesMap;

rr:logicalTable [rr:sqlQuery "SELECT use FROM building"];

rr:subjectMap [

rr:template ".../use/{use}"; rr:class ex:Use].

rr:predicateObjectMap [rr:predicate ex:use;

rr:column "{use}" ].

<mapping1> a rr:TriplesMap;

rr:logicalTable [rr:sqlQuery "SELECT id FROM building"];

rr:subjectMap [

rr:template ".../building/{id}"; rr:class ex:Building].

rr:predicateObjectMap [ rr:predicate ex:hasDistrict;

rr:template ".../district/{id}" ].

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

AutoMap4OBDA

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

Evaluation

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

Evaluation

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

Evaluation

Scenarios B.OX IncM. ontop MIRR. COMA D2RQ AM4O

Adjusted namingCMT 0.76 0.45 0.28 0.28 0.48 0.31 0.56

Conference 0.51 0.53 0.26 0.27 0.36 0.26 0.56

SIGKDD 0.86 0.76 0.38 0.30 0.66 0.38 0.86

RestructuredCMT 0.41 0.44 0.14 0.17 0.38 0.14 0.41

Conference 0.41 0.41 0.13 0.23 0.31 0.21 0.54

SIGKDD 0.52 0.38 0.21 0.11 0.41 0.28 0.72

Combined case SIGKDD 0.48 0.38 0.21 0.11 0.28 0.28 0.62

Missing FK Conference 0.33 0.41 - 0.17 0.21 0.18 0.49

Denormalized CMT 0.44 0.40 0.20 0.22 - 0.20 0.52

GeoData Classic Rel 0.13 0.08 - - - 0.06 0.44

Oil&Gas domain User Queries 0.00 0.00 0.00 0.00 - 0.00 0.00

Atomic 0.14 0.12 0.10 0.00 0.00 0.08 0.23

Target ontology: CMT

Conference 0.20 0.35 0.10 0.00 0.00 0.10 0.15

SIGKDD 0.33 0.33 0.19 0.00 0.14 0.19 0.38

Target ontology: Conference

CMT 0.20 0.34 0.05 0.00 0.05 0.05 0.39

SIGKDD 0.13 0.30 0.09 0.00 0.04 0.09 0.17

Target ontology: SIGKDD

CMT 0.51 0.57 0.19 0.00 0.24 0.26 0.41

Conference 0.24 0.44 0.13 0.00 0.09 0.14 0.19

Average of the tests 0.36 0.37 0.15 0.10 0.20 0.18 0.43

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

Evaluation

Scenarios B.OX IncM. ontop MIRR. COMA D2RQ AM4O

Adjusted namingCMT 0.76 0.45 0.28 0.28 0.48 0.31 0.56

Conference 0.51 0.53 0.26 0.27 0.36 0.26 0.56

SIGKDD 0.86 0.76 0.38 0.30 0.66 0.38 0.86

RestructuredCMT 0.41 0.44 0.14 0.17 0.38 0.14 0.41

Conference 0.41 0.41 0.13 0.23 0.31 0.21 0.54

SIGKDD 0.52 0.38 0.21 0.11 0.41 0.28 0.72

Combined case SIGKDD 0.48 0.38 0.21 0.11 0.28 0.28 0.62

Missing FK Conference 0.33 0.41 - 0.17 0.21 0.18 0.49

Denormalized CMT 0.44 0.40 0.20 0.22 - 0.20 0.52

GeoData Classic Rel 0.13 0.08 - - - 0.06 0.44

Oil&Gas domain User Queries 0.00 0.00 0.00 0.00 - 0.00 0.00

Atomic 0.14 0.12 0.10 0.00 0.00 0.08 0.23

Target ontology: CMT

Conference 0.20 0.35 0.10 0.00 0.00 0.10 0.15

SIGKDD 0.33 0.33 0.19 0.00 0.14 0.19 0.38

Target ontology: Conference

CMT 0.20 0.34 0.05 0.00 0.05 0.05 0.39

SIGKDD 0.13 0.30 0.09 0.00 0.04 0.09 0.17

Target ontology: SIGKDD

CMT 0.51 0.57 0.19 0.00 0.24 0.26 0.41

Conference 0.24 0.44 0.13 0.00 0.09 0.14 0.19

Average of the tests 0.36 0.37 0.15 0.10 0.20 0.18 0.43

=

=

==

=

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

Evaluation

Scenarios B.OX IncM. ontop MIRR. COMA D2RQ AM4O

Adjusted namingCMT 0.76 0.45 0.28 0.28 0.48 0.31 0.56

Conference 0.51 0.53 0.26 0.27 0.36 0.26 0.56

SIGKDD 0.86 0.76 0.38 0.30 0.66 0.38 0.86

RestructuredCMT 0.41 0.44 0.14 0.17 0.38 0.14 0.41

Conference 0.41 0.41 0.13 0.23 0.31 0.21 0.54

SIGKDD 0.52 0.38 0.21 0.11 0.41 0.28 0.72

Combined case SIGKDD 0.48 0.38 0.21 0.11 0.28 0.28 0.62

Missing FK Conference 0.33 0.41 - 0.17 0.21 0.18 0.49

Denormalized CMT 0.44 0.40 0.20 0.22 - 0.20 0.52

GeoData Classic Rel 0.13 0.08 - - - 0.06 0.44

Oil&Gas domain User Queries 0.00 0.00 0.00 0.00 - 0.00 0.00

Atomic 0.14 0.12 0.10 0.00 0.00 0.08 0.23

Target ontology: CMT

Conference 0.20 0.35 0.10 0.00 0.00 0.10 0.15

SIGKDD 0.33 0.33 0.19 0.00 0.14 0.19 0.38

Target ontology: Conference

CMT 0.20 0.34 0.05 0.00 0.05 0.05 0.39

SIGKDD 0.13 0.30 0.09 0.00 0.04 0.09 0.17

Target ontology: SIGKDD

CMT 0.51 0.57 0.19 0.00 0.24 0.26 0.41

Conference 0.24 0.44 0.13 0.00 0.09 0.14 0.19

Average of the tests 0.36 0.37 0.15 0.10 0.20 0.18 0.43

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

Evaluation

Scenarios B.OX IncM. ontop MIRR. COMA D2RQ AM4O

Adjusted namingCMT 0.76 0.45 0.28 0.28 0.48 0.31 0.56

Conference 0.51 0.53 0.26 0.27 0.36 0.26 0.56

SIGKDD 0.86 0.76 0.38 0.30 0.66 0.38 0.86

RestructuredCMT 0.41 0.44 0.14 0.17 0.38 0.14 0.41

Conference 0.41 0.41 0.13 0.23 0.31 0.21 0.54

SIGKDD 0.52 0.38 0.21 0.11 0.41 0.28 0.72

Combined case SIGKDD 0.48 0.38 0.21 0.11 0.28 0.28 0.62

Missing FK Conference 0.33 0.41 - 0.17 0.21 0.18 0.49

Denormalized CMT 0.44 0.40 0.20 0.22 - 0.20 0.52

GeoData Classic Rel 0.13 0.08 - - - 0.06 0.44

Oil&Gas domain User Queries 0.00 0.00 0.00 0.00 - 0.00 0.00

Atomic 0.14 0.12 0.10 0.00 0.00 0.08 0.23

Target ontology: CMT

Conference 0.20 0.35 0.10 0.00 0.00 0.10 0.15

SIGKDD 0.33 0.33 0.19 0.00 0.14 0.19 0.38

Target ontology: Conference

CMT 0.20 0.34 0.05 0.00 0.05 0.05 0.39

SIGKDD 0.13 0.30 0.09 0.00 0.04 0.09 0.17

Target ontology: SIGKDD

CMT 0.51 0.57 0.19 0.00 0.24 0.26 0.41

Conference 0.24 0.44 0.13 0.00 0.09 0.14 0.19

Average of the tests 0.36 0.37 0.15 0.10 0.20 0.18 0.43

<mapping> a rr:TriplesMap;

rr:logicalTable

[ rr:sqlQuery "SELECT pipnpdidpipe FROM pipline WHERE

pipmedium = 'Oil'"];

rr:subjectMap

[ rr:template ".../ oilpipeline/{pipnpdidpipe}";

rr:class npd:OilPipeline ].

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

Evaluation

Scenarios B.OX IncM. ontop MIRR. COMA D2RQ AM4O

Adjusted namingCMT 0.76 0.45 0.28 0.28 0.48 0.31 0.56

Conference 0.51 0.53 0.26 0.27 0.36 0.26 0.56

SIGKDD 0.86 0.76 0.38 0.30 0.66 0.38 0.86

RestructuredCMT 0.41 0.44 0.14 0.17 0.38 0.14 0.41

Conference 0.41 0.41 0.13 0.23 0.31 0.21 0.54

SIGKDD 0.52 0.38 0.21 0.11 0.41 0.28 0.72

Combined case SIGKDD 0.48 0.38 0.21 0.11 0.28 0.28 0.62

Missing FK Conference 0.33 0.41 - 0.17 0.21 0.18 0.49

Denormalized CMT 0.44 0.40 0.20 0.22 - 0.20 0.52

GeoData Classic Rel 0.13 0.08 - - - 0.06 0.44

Oil&Gas domain User Queries 0.00 0.00 0.00 0.00 - 0.00 0.00

Atomic 0.14 0.12 0.10 0.00 0.00 0.08 0.23

Target ontology: CMT

Conference 0.20 0.35 0.10 0.00 0.00 0.10 0.15

SIGKDD 0.33 0.33 0.19 0.00 0.14 0.19 0.38

Target ontology: Conference

CMT 0.20 0.34 0.05 0.00 0.05 0.05 0.39

SIGKDD 0.13 0.30 0.09 0.00 0.04 0.09 0.17

Target ontology: SIGKDD

CMT 0.51 0.57 0.19 0.00 0.24 0.26 0.41

Conference 0.24 0.44 0.13 0.00 0.09 0.14 0.19

Average of the tests 0.36 0.37 0.15 0.10 0.20 0.18 0.43

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

Evaluation

Scenarios B.OX IncM. ontop MIRR. COMA D2RQ AM4O

Adjusted namingCMT 0.76 0.45 0.28 0.28 0.48 0.31 0.56

Conference 0.51 0.53 0.26 0.27 0.36 0.26 0.56

SIGKDD 0.86 0.76 0.38 0.30 0.66 0.38 0.86

RestructuredCMT 0.41 0.44 0.14 0.17 0.38 0.14 0.41

Conference 0.41 0.41 0.13 0.23 0.31 0.21 0.54

SIGKDD 0.52 0.38 0.21 0.11 0.41 0.28 0.72

Combined case SIGKDD 0.48 0.38 0.21 0.11 0.28 0.28 0.62

Missing FK Conference 0.33 0.41 - 0.17 0.21 0.18 0.49

Denormalized CMT 0.44 0.40 0.20 0.22 - 0.20 0.52

GeoData Classic Rel 0.13 0.08 - - - 0.06 0.44

Oil&Gas domain User Queries 0.00 0.00 0.00 0.00 - 0.00 0.00

Atomic 0.14 0.12 0.10 0.00 0.00 0.08 0.23

Target ontology: CMT

Conference 0.20 0.35 0.10 0.00 0.00 0.10 0.15

SIGKDD 0.33 0.33 0.19 0.00 0.14 0.19 0.38

Target ontology: Conference

CMT 0.20 0.34 0.05 0.00 0.05 0.05 0.39

SIGKDD 0.13 0.30 0.09 0.00 0.04 0.09 0.17

Target ontology: SIGKDD

CMT 0.51 0.57 0.19 0.00 0.24 0.26 0.41

Conference 0.24 0.44 0.13 0.00 0.09 0.14 0.19

Average of the tests 0.36 0.37 0.15 0.10 0.20 0.18 0.43

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

Evaluation

ScenariosNumber of

tables

Number of

records

Number of

ontology classes

Avg Execution

time (s)

Adjusted naming

CMT 48 9,153 31 6.05

Conference 66 12,508 60 57.96

SIGKDD 58 6,677 50 9.14

Restructured

CMT 32 5,386 31 4.42

Conference 30 6,270 60 4.16

SIGKDD 22 4,352 50 2.42

Combined case SIGKDD 22 4,352 50 2.33

Missing FK Conference 30 6,270 60 3.04

Denormalized CMT 30 5,762 31 4.45

GeoData Classic Rel 38 26,904 51 24.30

Oil&Gas domainUser Queries 70 257,784 344 465.74

Atomic 70 257,784 344 434.40

Target ontology: CMTConference 32 5,386 60 2.94

SIGKDD 32 5,386 50 2.59

Target ontology: ConferenceCMT 30 6,270 31 2.17

SIGKDD 30 6,270 50 2.73

Target ontology: SIGKDDCMT 22 4,352 31 1.60

Conference 22 4,352 60 2.68

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

Conclusions

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

Conclusions

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

Future work

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge Engineering and Knowledge Management | 19-23 November 2016 | Bologna, Italy

References

Álvaro Sicilia* & German Nemirovski*** ARC Enginyeria i Arquitectura La Salle,Universitat Ramon Llull, Barcelona, Spainasicilia@salleurl.edu

** Business and Computer Science,Albstadt-Sigmaringen-University of Applied Sciences, Albstadt, Germanynemirovskij@hs-albsig.de

AutoMap4OBDA: Automated Generation of R2RML Mappings for OBDA

20th International Conference on Knowledge

Engineering and Knowledge Management

19-23 November 2016, Bologna, Italy

Questions?