Static analysis in datalog extensions
- 1 September 2001
- journal article
- Published by Association for Computing Machinery (ACM) in Journal of the ACM
- Vol. 48 (5) , 971-1012
- https://doi.org/10.1145/502102.502104
Abstract
We consider the problems of containment, equivalence, satisfiability and query-reachability for datalog programs with negation. These problems are important for optimizing datalog programs. We show that both query-reachability and satisfiability are decidable for programs with stratified negation provided that negation is applied only to EDB predicates or that all EDB predicates are unary. In the latter case, we show that equivalence is also decidable. The algorithms we present can also be used to push constraints from a given query to the EDB predicates. In showing our decidability results we describe a powerful tool, the query-tree, which is used for several optimization problems for datalog programs. Finally, we show that satisfiability is undecidable for datalog programs with unary IDB predicates, stratified negation and the interpreted predicate ≠.Keywords
This publication has 6 references indexed in Scilit:
- Speeding up inferences using relevance reasoning: a formalism and algorithmsArtificial Intelligence, 1997
- Information integration using logical viewsPublished by Springer Nature ,1997
- Magic conditionsACM Transactions on Database Systems, 1996
- Equivalence of Datalog queries is undecidableThe Journal of Logic Programming, 1993
- Parallel complexity of logical query programsAlgorithmica, 1988
- Optimizing Datalog ProgramsPublished by Elsevier ,1988