Hostname: page-component-74656f9884-2dmjx Total loading time: 0 Render date: 2026-11-07T00:02:53.919Z Has data issue: false hasContentIssue false

Survey of directly mapping SQL databases to the Semantic Web

Published online by Cambridge University Press:  01 December 2011

Juan F. Sequeda*
Affiliation:
Department of Computer Sciences, The University of Texas at Austin, Austin, TX, USA; e-mail: jsequeda@cs.utexas.edu, hamid@cs.utexas.edu, miranker@cs.utexas.edu
Syed Hamid Tirmizi*
Affiliation:
Department of Computer Sciences, The University of Texas at Austin, Austin, TX, USA; e-mail: jsequeda@cs.utexas.edu, hamid@cs.utexas.edu, miranker@cs.utexas.edu
Oscar Corcho*
Affiliation:
Ontology Engineering Group, Universidad Politecnica de Madrid, Madrid, Spain; e-mail: ocorcho@fi.upm.es
Daniel P. Miranker*
Affiliation:
Department of Computer Sciences, The University of Texas at Austin, Austin, TX, USA; e-mail: jsequeda@cs.utexas.edu, hamid@cs.utexas.edu, miranker@cs.utexas.edu
Rights & Permissions [Opens in a new window]

Abstract

The Semantic Web anticipates integrated access to a large number of information sources on the Internet represented as Resource Description Framework (RDF). Given the large number of websites that are backed by SQL databases, methods that automate the translation of those databases to RDF are crucial. One approach, taken by a number of researchers, is to directly map the SQL schema to an equivalent Web Ontology Language (OWL) or RDF Schema representation, which in turn, implies an RDF representation for the relational data. This paper reviews this research, and derives a consolidated, overarching set of translation rules expressible as a stratified Datalog program. We present all the possible key combinations in an SQL schema and consider their implied semantic properties. We review the approaches and characterize them with respect to the scope of their coverage of SQL constructs.

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 2011
Figure 0

Figure 1 Direct Mapping of a Relational Database to the Semantic Web

Figure 1

Figure 2 Relational Database to Ontology Mapping

Figure 2

Figure 3 Example of University's relational database

Figure 3

Figure 4 SQL-DDL and Ontology for Course and Dept

Figure 4

Figure 5 SQL-DDL and Ontology for Person and Student

Figure 5

Figure 6 SQL-DDL and Ontology for Order and Order Item

Figure 6

Figure 7 Evolution of SQL-DDL

Figure 7

Figure 8 Layer Cake Correspondence between SQL and the Semantic Web

Figure 8

Figure 9 Resource Description Framework (RDF) and RDF Schema (RDFS) example

Figure 9

Figure 10 Schema of a University Database

Figure 10

Figure 11 Parts of an ontology corresponding to the SQL schema in Figure 10, developed by a domain expert. The ontology is presented in Web Ontology Language Abstract Syntax

Figure 11

Table 1 Summary of Relational Database direct mapping to RDFS and OWL

Figure 12

Table 2 Example of a simple database for Books

Figure 13

Table 3 Example of a database in 1NF

Figure 14

Figure 12 Ontology derived from database in 1NF from Table 3

Figure 15

Table 4 Example of a database in 2NF

Figure 16

Figure 13 Ontology derived from database in 2NF from Table 4

Figure 17

Table 5 Example of a database in 2NF

Figure 18

Figure 14 The tree describes the complete space of relations when all possible combinations of primary and foreign keys are considered

Figure 19

Figure 15 SQL-DDL of Person table and Dept table

Figure 20

Figure 16 SQL-DDL of two tables that share the same primary key and for one of the tables, the primary key is the foreign key

Figure 21

Figure 17 Ontological inheritance relationship

Figure 22

Figure 18 SQL-DDL of two tables that share the same primary key

Figure 23

Figure 19 Inheritance structure from Astrova's (2004) key equality, data overlap and attribute disjointedness case

Figure 24

Figure 20 SQL-DDL showing key equality, data disjointedness and attribute overlap

Figure 25

Figure 21 Inheritance structure from Astrova's (2004) key equality, data disjointedness and attribute overlap case

Figure 26

Figure 22 Inheritance structure from Astrova's (2004) key equality, data overlap and attribute overlap case

Figure 27

Figure 23 SQL-DDL of the n-ary relationship Offer

Figure 28

Figure 24 Ontological representation of an n-ary relationship Offer based on the general rule

Figure 29

Figure 25 Ontological representation of the n-ary relationship Offer following Li et al.'s (2005) rule

Figure 30

Table 6 Rules that apply to each of the 10

Figure 31

Table 7 Some common SQL data types and corresponding XML Schema types recommended for OWL

Figure 32

Table 8 Classes identified from the relational schema by applying Rule Set 2

Figure 33

Table 9 Some object properties identified from the relational schema by applying Rule Sets 3 and 4. An object property P implies the existence of an inverse property P′. Due to lack of space, we explicitly specify the inverse property only for the first property

Figure 34

Table 10 Some datatype properties identified from the relational schema by applying Rule Set 5

Figure 35

Figure 26 Parts of an ontology corresponding to the University Database, produced automatically by applying the rules on the given SQL-DDL. The output format is Web Ontology Language Abstract Syntax

Figure 36

Table 11 Output of each direct mapping approach given a Source Input

Figure 37

Table 12 Ontological output of each direct mapping approach given the SQL input

Figure 38

Table 13 RDFS/OWL constructs that are outputted by each direct mapping approach