Data functions, datalog and negation
- 1 June 1988
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGMOD Record
- Vol. 17 (3) , 143-153
- https://doi.org/10.1145/971701.50218
Abstract
Datalog is extended to incorporate single-valued “data functions”, which correspond to attributes in semantic models, and which may be base (user-specified) or derived (computed). Both conventional and stratified datalog are considered. Under the extension, a datalog program may not be consistent, because a derived function symbol may evaluate to something which is not a function. Consistency is shown to be undecidable, and is decidable in a number of restricted cases. A syntactic restriction, panwise consistency , is shown to guarantee consistency. The framework developed here can also be used to incorporate single-valued data functions into the Complex Object Language (COL), which supports deductive capabilities, complex database objects, and set-valued data functions. There is a natural correspondence between the extended datalog introduced here, and the usual datalog with functional dependencies. For families Φ and Γ of dependencies and a family of datalog programs Λ, the Φ-Γ implication problem for Λ asks, given sets F ⊆ Φ and G ⊆ Γ and a program P in Λ, whether for all inputs I, I @@@@ F implies P(I) @@@@ G. The FD-FD implication problem is undecidable for datalog, and the TGD-EGD implication problem is decidable for stratified datalog. Also, the Ø-MVD problem is undecidable (and hence also the MVD-preservation problem).Keywords
This publication has 15 references indexed in Scilit:
- Equivalence and optimization of relational transactionsJournal of the ACM, 1988
- IFO: a formal semantic database modelACM Transactions on Database Systems, 1987
- Semantic database modeling: survey, applications, and research issuesACM Computing Surveys, 1987
- Logic programming with setsPublished by Association for Computing Machinery (ACM) ,1987
- A calculus for complex objectsPublished by Association for Computing Machinery (ACM) ,1985
- Incomplete Information in Relational DatabasesJournal of the ACM, 1984
- An implementation technique for database query languagesACM Transactions on Database Systems, 1982
- Database description with SDMACM Transactions on Database Systems, 1981
- The functional data model and the data languages DAPLEXACM Transactions on Database Systems, 1981
- Testing implications of data dependenciesACM Transactions on Database Systems, 1979