An Approach for Generation of SPARQL Query from SQL Algebra based Transformation Rules of RDB to Ontology

Semantic web is a web of linked RDF data that can exchange and reuse data allowing for more use of traditional web documents. However, the huge amount of data on the web are still formed and stored in relational databases (RDBs), such data cannot be used directly via the Semantic Web. Consequently, construction of ontology (Semantic Web -side) from relational schema and data (RDBs side) and querying of constructed ontology semantically are fundamental challenges for the development and integration of the Semantic Web from the data source (i.e. database). This paper proposes an approach for providing a formulated operation rules to express semantic queries against structured graph ontology in the relational query language SQL. This approach applied by rewriting SPARQL queries over generated ontology (i.e. RDF triples) corresponding to advantages of SQL relational algebra operation queries in RDBs and performed by two phases. The first phase focused on proposing and improving rules of extracting ontology directly from the important concepts in the relational database with considering database containing null-values to avoid data losses during the transformation process. The generated ontology represented in the form of OWL-RDFS/RDF triples to ensure its availability at Semantic Web, thus help semantic query engines to answer more queries. Furthermore, the first phase providing additional rules to generate the Internationalized Resource Identifiers (IRIs) for RDB schema and data. In the second phase, we proposed a set of rules inspired by fundamental operations of relational algebra (SQL algebra) for rewrit ing a relational algebra for SPARQL over RDBs that represented in RDF triples. In other words, translating SQL relational algebra operation queries into equivalent graph semantic queries (SPARQL). The proposed approach is demonstrated with examples, validated, implemented and compared with existing approach methods. The effectiveness of the proposed approach is evaluated by experimental results.

[1]  E. Prud hommeaux,et al.  SPARQL query language for RDF , 2011 .

[2]  Dan Brickley,et al.  Rdf vocabulary description language 1.0 : Rdf schema , 2004 .

[3]  Diego Calvanese,et al.  Evaluating SPARQL-to-SQL Translation in Ontop , 2013, ORE.

[4]  Soon Ae Chun,et al.  Toward the Semantic Deep Web , 2008, Computer.

[5]  Gerald Reif,et al.  A comparison of RDB-to-RDF mapping languages , 2011, I-Semantics '11.

[6]  Hyun Jung Lee,et al.  DB Schema Based Ontology Construction for Efficient RDB Query , 2012, ACIIDS.

[7]  Jing Li,et al.  Automatic Generation of Ontology Based on Database , 2011 .

[8]  Guandong Xu,et al.  An Approach for Mapping Relational Database into Ontology , 2015, 2015 12th Web Information System and Application Conference (WISA).

[9]  Marco A. Casanova,et al.  RDB2RDF: A relational to RDF plug‐in for Eclipse , 2013, Softw. Pract. Exp..

[10]  Rahman Khan,et al.  Semantic - Based Querying Using Ontology in Relational Database of Library Management System , 2011 .

[11]  Guandong Xu,et al.  Integration mapping rules: Transforming relational database to semantic web ontology , 2016 .

[12]  Shichao Zhang,et al.  Mapping between Relational Database Schema and OWL Ontology for Deep Annotation , 2006, 2006 IEEE/WIC/ACM International Conference on Web Intelligence (WI 2006 Main Conference Proceedings)(WI'06).

[13]  Jens Lehmann,et al.  Triplify: light-weight linked data publication from relational databases , 2009, WWW '09.

[14]  Yuzhong Qu,et al.  Discovering Simple Mappings Between Relational Database Schemas and Ontologies , 2007, ISWC/ASWC.

[15]  N. Korda,et al.  Rule-Based Transformation of SQL Relational Databases to OWL Ontologies , 2007 .

[16]  Irina Astrova,et al.  Reverse Engineering of Relational Databases to Ontologies , 2004, ESWS.

[17]  Mitesh Patel,et al.  Accessing the deep web , 2007, CACM.

[18]  Anand Ranganathan,et al.  Information retrieval from relational databases using semantic queries , 2006, CIKM '06.

[19]  Guandong Xu,et al.  An Approach for Automatically Generating R2RML-Based Direct Mapping from Relational Databases , 2016, ICYCSEE.

[20]  Richard Cyganiak,et al.  A relational algebra for SPARQL , 2005 .

[21]  Christian Bizer,et al.  D2R Server - Publishing Relational Databases on the Semantic Web , 2004 .

[22]  Arvind Malhotra,et al.  XML Schema Part 2: Datatypes Second Edition , 2004 .

[23]  Raphael Volz,et al.  Migrating data-intensive web sites into the Semantic Web , 2002, SAC '02.

[24]  Xiaodong Zhu,et al.  Research on the Rules of Mapping from Relational Model to OWL , 2006, OWLED.

[25]  Jincai Yang,et al.  Towards Integration Rules of Mapping from Relational Databases to Semantic Web Ontology , 2010, 2010 International Conference on Web Information Systems and Mining.

[26]  Bernardo Cuenca Grau,et al.  OWL 2 Web Ontology Language: Profiles , 2009 .

[27]  James A. Hendler,et al.  The Semantic Web" in Scientific American , 2001 .

[28]  Man Li,et al.  Learning ontology from relational database , 2005, 2005 International Conference on Machine Learning and Cybernetics.

[29]  Olegas Vasilecas,et al.  On Approach for Enterprise Ontology Transformation into Conceptual Model , 2006 .