|
ABSTRACT
The expressive power of pure deductive database languages, such as DATALOG and stratified DATALOGS, is limited in a sense that some useful queries such as functions involving aggregation are not definable in these languages. Our concern in this paper is to provide a uniform logic framework for deductive databases with greater expressive power. It has been shown that with a linear ordering on the domain of the database, the expressive power of some database languages can be enhanced so that some functions involving aggregation can be defined. Yet, a direct implementation of the linear ordering in deductive database languages may seem unintuitive, and may not be very efficient to use in practice. We propose a logic for deductive databases which employs the notion of “identifying each tuple in a relation”. Through the use of these tuple-identifications, different linear orderings are defined as a result. This intuitively explains the reason why our logic has greater expressive power. The proposed logic language is non-deterministu in nature. However, non-determinism is not the real reason for the enhanced expressive power. A deterministic subset of the programs in this language is computational complete in the sense that it defines all the computable deterministic queries. Although the problem of deciding whether a program is in this subset is in general undecidable, we do provide a rather general sufficient test for identifying such programs. Also discussed in this paper is an extended notion of queries which allows both the input and the output of a query to contain interpreted constants of an infinite domain. We show that extended queries involving aggregation can also be defined in the language.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
AB88
|
S Ablteboul and C Been On the power of languages for the mampulatlon of complex objects Manuscmpt, 1988
|
| |
ABW88
|
|
 |
AV87
|
|
 |
AV88
|
|
 |
BR86
|
|
| |
Ce76
|
D D Chamberhn and et al Sequel 2 a umfied approach to data definition, mampulatlon, and control IBM Journal of ReseaT ch, 20(6) 560-575, November 1976
|
| |
CH80
|
A K Chandra and D Harel Computable queries for relatmnal databases Journal of Computer and b~lstem Sciences, 21(2) 156-178, October 1980
|
| |
CH82
|
A K Chandra and D Harel Structure and complexity of relational queries Journal of Computer and System Sczences, 25(1) 99-128, August 1982
|
| |
CH85
|
A K Chandra and Harel Horn clause queries and generahzatlons Journal of Log,c ProgTammzng, 1 1-15, 1985
|
 |
Cha81
|
|
 |
Cha88
|
|
| |
Che88
|
L Chen Extenmon of datalog with aggregate functions IV 3ournees bases de Donnees Avancees, 1988
|
| |
Dah87
|
|
| |
GL88
|
M Gelfond and V Lffschltz The stable model semantics for logic programnung Proceedzngs of the F,fth Logzc Programmmg Symposzum, 1070-1080, 1988
|
 |
HS89
|
R. Hull , J. Su, Untyped sets, invention, and computable queries, Proceedings of the eighth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.347-359, March 1989, Philadelphia, Pennsylvania, United States
[doi> 10.1145/73721.73755]
|
 |
Imm86
|
|
| |
KL85
|
M Klfer and E L Lozmskl Query optzmzzatzon ,n deduct,re databases Technical Report 85/16, Computer Science, SUNY at Stony Brook, Stony Brook, NY 11794, 1985
|
| |
KL86
|
M Klfer and E L Lomnskl A framework for an efficzent zmplementatzon of deductwe databases Techmcal Report 86/4, Computer Science, SUNY at Stony Brook, Stony Brook, NY 11794, February 1986
|
 |
Klu82
|
|
 |
KP88
|
|
 |
OOM87
|
|
| |
Prz88a
|
|
| |
Prz88b
|
|
| |
RBK88
|
R Ramaknshnan, C Been, and R Knshnamurthy Optimizing exlstentml Datalog queries 1988 Draft
|
| |
Rei83
|
R Relter Towards a logical reconstructmn of relatmnal database theory In M L Brodle, J Mylopoulos, and J Schnudt, editors, On Conceptual Modelhng Perspectzves from Artzfic,al Intelhgence, Databases and ProgTamm~ng Languages, Spnnger-Verlag, 1983
|
| |
Saz80
|
V Sazonov Polynomml computability and recursxvlt:v m fimte dommns Elektromsche Informat,onverarbe~tung und Kybernetzk, 16 319-323, 1980
|
| |
She90
|
Y Sheng The expressive power of deduchve database languages with tuplexdentlficatmns 1990 m preparation
|
| |
Ull82
|
J D Ullman Pmnczples of Database Systems Computer Scmnce Press, second edltmn, 1982
|
 |
Var82
|
|
| |
VG88
|
|
| |
VGRS88
|
A Van Gelder, K A Ross, and ~I S Schhpf Well-founded semantzcs for general logic progTams Techmcal Report UCSC-CRL-88-16, Umverslty of Calfforma, Santa Cruz, Umversity of Cahforma, Santa Cruz, CA 95064, March 1988
|
| |
Zan86
|
C Zamolo Safety and compflatmn ofnonrecurslve horn clauses Proceedings of o} the 1st Ezpert Database Conf , 1986
|
|