Disjunctive datalog
Open Access
- 1 September 1997
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Database Systems
- Vol. 22 (3) , 364-418
- https://doi.org/10.1145/261124.261126
Abstract
We consider disjunctive Datalog, a powerful database query language based on disjunctive logic programming. Briefly, disjunctive Datalog is a variant of Datalog where disjunctions may appear in the rule heads; advanced versions also allow for negation in the bodies which can be handled according to a semantics for negation in disjunctive logic programming. In particular, we investigate three different semantics for disjunctive Datalog: the minimal model semantics the perfect model semantics, and the stable model semantics. For each of these semantics, the expressive power and complexity are studied. We show that the possibility variants of these semantics express the same set of queries. In fact, they precisely capture the complexity class Σ P 2 . Thus, unless the Polynomial Hierarchy collapses, disjunctive Datalog is more expressive that normal logic programming with negation. These results are not only of theoretical interest; we demonstrate that problems relevant in practice such as computing the optimal tour value in the Traveling Salesman Problem and eigenvector computations can be handled in disjunctive Datalog, but not Datalog with negation (unless the Polynomial Hierarchy collapses). In addition, we study modularity properties of disjunctive Datalog and investigate syntactic restrictions of the formalisms.Keywords
This publication has 57 references indexed in Scilit:
- Implementing deductive databases by mixed integer programmingACM Transactions on Database Systems, 1996
- The expressive power of partial models for disjunctive deductive databasesPublished by Springer Nature ,1996
- Modular stratification and magic sets for Datalog programs with negationJournal of the ACM, 1994
- Logic programming and knowledge representationThe Journal of Logic Programming, 1994
- Why not negation by fixpoint?Journal of Computer and System Sciences, 1991
- Generalized Closed World Assumption is II02-CompleteInformation Processing Letters, 1990
- Decidability and definability with circumscriptionAnnals of Pure and Applied Logic, 1987
- Horn clause queries and generalizationsThe Journal of Logic Programming, 1985
- The relational model of data and cylindric algebrasJournal of Computer and System Sciences, 1984
- Structure and complexity of relational queriesJournal of Computer and System Sciences, 1982