Datalog rewritability of Disjunctive Datalog programs and non-Horn ontologies

We study the problem of rewriting a Disjunctive Datalog program into an equivalent plain Datalog program (i.e., one that entails the same facts for every dataset). We show that a Disjunctive Datalog program is Datalog rewritable if and only if it can be rewritten into a linear program (i.e., having at most one IDB body atom in each rule), thus providing a novel characterisation of Datalog rewritability in terms of linearisability. Motivated by this result, we propose the class of markable programs, which extends both Datalog and linear Disjunctive Datalog and admits Datalog rewritings of polynomial size. We show that our results can be seamlessly applied to ontological reasoning and identify two classes of non-Horn ontologies that admit Datalog rewritings of polynomial and exponential size, respectively. Finally, we shift our attention to conjunctive query answering and extend our results to the problem of computing a rewriting of a Disjunctive Datalog program that yields the same answers to a given query w.r.t. arbitrary data. Our empirical results suggest that a fair number of non-Horn ontologies are Datalog rewritable and that query answering over such ontologies becomes feasible using a Datalog engine.

[1]  Diego Calvanese,et al.  The Description Logic Handbook: Theory, Implementation, and Applications , 2003, Description Logic Handbook.

[2]  Tomás Feder,et al.  The Computational Structure of Monotone Monadic SNP and Constraint Satisfaction: A Study through Datalog and Group Theory , 1999, SIAM J. Comput..

[3]  Adrian Walker,et al.  Towards a Theory of Declarative Knowledge , 1988, Foundations of Deductive Databases and Logic Programming..

[4]  Maurizio Proie ' Iti THE LOOP ABSORPTION AND THE GENERALIZATION STRATEGIES FOR THE DEVELOPMENT OF LOGIC PROGRAMS AND PARTIAL DEDUCTION , 1993 .

[5]  Giorgos Stoilos,et al.  Query Extensions and Incremental Query Rewriting for OWL 2 QL Ontologies , 2014, Journal on Data Semantics.

[6]  Georg Gottlob,et al.  On the Complexity of Single-Rule Datalog Queries , 1999, LPAR.

[7]  Barry Bishop,et al.  OWLIM: A family of scalable semantic repositories , 2011, Semantic Web.

[8]  Luigi Palopoli,et al.  More on tractable disjunctive Datalog , 2000, J. Log. Program..

[9]  Maurizio Lenzerini,et al.  Datalog and Description Logics: Expressive Power , 1997, APPIA-GULP-PRODE.

[10]  Luigi Palopoli,et al.  Reasoning with Minimal Models: Efficient Algorithms and Applications. , 1994, KR 1994.

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

[12]  Stephen A. Cook,et al.  An observation on time-storage trade off , 1973, J. Comput. Syst. Sci..

[13]  Stijn Heymans,et al.  Tractable Reasoning with DL-Programs over Datalog-rewritable Description Logics , 2010, ECAI.

[14]  Bijan Parsia,et al.  From Wine to Water: Optimizing Description Logic Reasoning for Nominals , 2006, KR.

[15]  Hisao Tamaki,et al.  Unfold/Fold Transformation of Logic Programs , 1984, ICLP.

[16]  Boris Motik,et al.  OWL 2: The next step for OWL , 2008, J. Web Semant..

[17]  Yavor Nenov,et al.  Pay-As-You-Go OWL Query Answering Using a Triple Store , 2014, AAAI.

[18]  Manolis Gergatsoulis,et al.  Unfold/fold Transformations for Disjunctive Logic Programs , 1997, Inf. Process. Lett..

[19]  Ian Horrocks,et al.  Framework for an Automated Comparison of Description Logic Reasoners , 2006, SEMWEB.

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

[21]  Bernardo Cuenca Grau,et al.  Sufficient Conditions for First-Order and Datalog Rewritability in ELU , 2013, Description Logics.

[22]  Wolfgang Faber,et al.  The DLV system for knowledge representation and reasoning , 2002, TOCL.

[23]  Harald Ganzinger,et al.  Resolution Theorem Proving , 2001, Handbook of Automated Reasoning.

[24]  Andreas Pieris,et al.  The Impact of Disjunction on Query Answering Under Guarded-Based Existential Rules , 2013, Description Logics.

[25]  Sergio Greco,et al.  Binding Propagation Techniques for the Optimization of Bound Disjunctive Queries , 2003, IEEE Trans. Knowl. Data Eng..

[26]  Jürgen Dix,et al.  Reducing Disjunctive to Non-Disjunctive Semantics by Shift-Operations , 1996, Fundam. Informaticae.

[27]  Yan Zhang,et al.  First-Order Expressibility and Boundedness of Disjunctive Logic Programs , 2013, IJCAI.

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

[29]  Giorgos Stoilos,et al.  Optimising Resolution-Based Rewriting Algorithms for DL Ontologies , 2013, Description Logics.

[30]  M. Gelfond,et al.  Disjunctive Defaults , 1991 .

[31]  Sebastian Rudolph,et al.  Type-elimination-based reasoning for the description logic SHIQbs using decision diagrams and disjunctive datalog , 2012, Log. Methods Comput. Sci..

[32]  Thom W. Frühwirth,et al.  Linear-Logic Based Analysis of Constraint Handling Rules with Disjunction , 2013, TOCL.

[33]  Boris Motik,et al.  Computing Datalog Rewritings Beyond Horn Ontologies , 2013, IJCAI.

[34]  Sebastian Rudolph,et al.  Complexities of Horn Description Logics , 2013, TOCL.

[35]  Georg Gottlob,et al.  Complexity and expressive power of logic programming , 1997, Proceedings of Computational Complexity. Twelfth Annual IEEE Conference.

[36]  Martin Gebser,et al.  Engineering an Incremental ASP Solver , 2008, ICLP.

[37]  Yavor Nenov,et al.  Parallel Materialisation of Datalog Programs in Centralised, Main-Memory RDF Systems , 2014, AAAI.

[38]  Rina Dechter,et al.  Propositional semantics for disjunctive logic programs , 1994, Annals of Mathematics and Artificial Intelligence.

[39]  J. A. Robinson,et al.  Automatic Deduction with Hyper-Resolution , 1983 .

[40]  David Maier,et al.  Magic sets and other strange ways to implement logic programs (extended abstract) , 1985, PODS '86.

[41]  Li Ma,et al.  Towards a Complete OWL Ontology Benchmark , 2006, ESWC.

[42]  Robert E. Tarjan,et al.  A Linear-Time Algorithm for Testing the Truth of Certain Quantified Boolean Formulas , 1979, Inf. Process. Lett..

[43]  Jeffrey D. Ullman,et al.  Principles of Database and Knowledge-Base Systems, Volume II , 1988, Principles of computer science series.

[44]  Carsten Lutz,et al.  Ontology-Based Data Access: A Study through Disjunctive Datalog, CSP, and MMSNP , 2014, ACM Trans. Database Syst..

[45]  Yavor Nenov,et al.  Computing Datalog Rewritings for Disjunctive Datalog Programs and Description Logic Ontologies , 2014, RR.

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

[47]  Boris Motik,et al.  Reasoning in Description Logics by a Reduction to Disjunctive Datalog , 2007, Journal of Automated Reasoning.

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

[49]  Fang Wei,et al.  Foundations of Rule-Based Query Answering , 2007 .

[50]  Giorgio Orsi,et al.  Optimizing query answering under ontological constraints , 2011, Proc. VLDB Endow..

[51]  Carsten Lutz,et al.  Non-Uniform Data Complexity of Query Answering in Description Logics , 2012, Description Logics.

[52]  Zhe Wu,et al.  Implementing an Inference Engine for RDFS/OWL Constructs and User-Defined Rules in Oracle , 2008, 2008 IEEE 24th International Conference on Data Engineering.

[53]  Wolfgang Faber,et al.  Manifold Answer-Set Programs and Their Applications , 2011, Logic Programming, Knowledge Representation, and Nonmonotonic Reasoning.

[54]  Jeffrey D. Uuman Principles of database and knowledge- base systems , 1989 .

[55]  Boris Motik,et al.  Reasoning in description logics using resolution and deductive databases , 2006 .

[56]  Georg Gottlob,et al.  Disjunctive datalog , 1997, TODS.

[57]  Manolis Gergatsoulis,et al.  Linearisability on datalog programs , 2003, Theor. Comput. Sci..

[58]  Diego Calvanese,et al.  The description logic handbook: theory , 2003 .

[59]  Yavor Nenov,et al.  Datalog Rewritability of Disjunctive Datalog Programs and its Applications to Ontology Reasoning , 2014, AAAI.

[60]  Ian Horrocks,et al.  Practical Reasoning for Very Expressive Description Logics , 2000, Log. J. IGPL.

[61]  Georg Gottlob,et al.  On the Complexity of Ontological Reasoning under Disjunctive Existential Rules , 2012, MFCS.

[62]  Mario Alviano,et al.  Magic Sets for disjunctive Datalog programs , 2012, Artif. Intell..

[63]  Riccardo Rosati,et al.  Improving Query Answering over DL-Lite Ontologies , 2010, KR.

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

[65]  Bernardo Cuenca Grau,et al.  Computing Horn Rewritings of Description Logics Ontologies , 2015, IJCAI.