Rules and Ontology Based Data Access

In OBDA an ontology defines a high level global vocabulary for user queries, and such vocabulary is mapped to (typically relational) databases. Extending this paradigm with rules, e.g., expressed in SWRL or RIF, boosts the expressivity of the model and the reasoning ability to take into account features such as recursion and n-ary predicates. We consider evaluation of SPARQL queries under rules with linear recursion, which in principle is carried out by a 2-phase translation to SQL: (1) The SPARQL query, together with the RIF/SWRL rules, and the mappings is translated to a Datalog program, possibly with linear recursion; (2) The Datalog program is converted to SQL by using recursive common table expressions. Since a naive implementation of this translation generates inefficient SQL code, we propose several optimisations to make the approach scalable. We implement and evaluate the techniques presented here in the Ontop system. To the best of our knowledge, this results in the first system supporting all of the following W3C standards: the OWL 2 QL ontology language, R2RML mappings, SWRL rules with linear recursion, and SPARQL queries. The preliminary but encouraging experimental results on the NPD benchmark show that our approach is scalable, provided optimisations are applied.

[1]  Carsten Lutz,et al.  The Combined Approach to Ontology-Based Data Access , 2011, IJCAI.

[2]  Diego Calvanese,et al.  Tractable Reasoning and Efficient Query Answering in Description Logics: The DL-Lite Family , 2007, Journal of Automated Reasoning.

[3]  Axel Polleres,et al.  From SPARQL to rules (and back) , 2007, WWW '07.

[4]  Guohui Xiao,et al.  Tractable Queries for Lightweight Description Logics , 2013, IJCAI.

[5]  Diego Calvanese,et al.  Ontologies and Databases: The DL-Lite Approach , 2009, Reasoning Web.

[6]  Thomas Eiter,et al.  Query Rewriting for Horn-SHIQ Plus Rules , 2012, AAAI.

[7]  J. Lloyd Foundations of Logic Programming , 1984, Symbolic Computation.

[8]  Alfred V. Aho,et al.  Universality of data retrieval languages , 1979, POPL.

[9]  Diego Calvanese,et al.  High Performance Query Answering over DL-Lite Ontologies , 2012, KR.

[10]  Michael Kifer,et al.  A Guide to the Basic Logic Dialect for Rule Interchange on the Web , 2010, IEEE Transactions on Knowledge and Data Engineering.

[11]  J. W. Lloyd,et al.  Foundations of logic programming; (2nd extended ed.) , 1987 .

[12]  Boris Motik,et al.  Tractable query answering and rewriting under description logic constraints , 2010, J. Appl. Log..

[13]  Axel Polleres,et al.  On the relation between SPARQL1.1 and Answer Set Programming , 2013, J. Appl. Non Class. Logics.

[14]  Michael Zakharyaschev,et al.  Ontology-Based Data Access: Ontop of Databases , 2013, SEMWEB.

[15]  Lora Aroyo,et al.  The Semantic Web – ISWC 2013 , 2013, Lecture Notes in Computer Science.

[16]  Mariano Rodriguez-Muro,et al.  Efficient SPARQL-to-SQL with R2RML mappings , 2015, J. Web Semant..

[17]  Diego Calvanese,et al.  The DL-Lite Family and Relations , 2009, J. Artif. Intell. Res..

[18]  Diego Calvanese,et al.  Dependencies: Making Ontology Based Data Access work in practice , 2011 .

[19]  Michael Kifer,et al.  RIF Overview (Second Edition) , 2013 .

[20]  Diego Calvanese,et al.  Linking Data to Ontologies , 2008, J. Data Semant..