|
ABSTRACT
This paper surveys and compares various strategies for processing logic queries in relational databases. The survey and comparison is limited to the case of Horn Clauses with evaluable predicates but without function symbols. The paper is organized in three parts. In the first part, we introduce the main concepts and definitions. In the second, we describe the various strategies. For each strategy, we give its main characteristics, its application range and a detailed description. We also give an example of a query evaluation. The third part of the paper compares the strategies on performance grounds. We first present a set of sample rules and queries which are used for the performance comparisons, and then we characterize the data. Finally, we give an analytical solution for each query/rule system. Cost curves are plotted for specific configurations of the data.
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.
 |
Afrati et al 86
|
Foto Afrati , Christos Papadimitriou , George Papageorgiou , Athena Roussou , Yehoshua Sagiv , Jeffrey D Ullman, Convergence of sideways query evaluation, Proceedings of the fifth ACM SIGACT-SIGMOD symposium on Principles of database systems, p.24-30, March 24-26, 1986, Cambridge, Massachusetts, United States
[doi> 10.1145/6012.15400]
|
 |
Aho and Ullman 79
|
|
 |
Apt and Van Emden 82
|
|
| |
Bancilhon 85
|
"Nmve Evaluation of Recurslvely Defined Relations," F Bancllhon, m On Knowledge Base Management Systems - Integrating Database and AI Systems, Bro&e and Mylopoulo,, Eds , Sprsnger-Verlag
|
| |
Bancilhon 85a
|
"A Note on the Performance of Rule Based Systems," F Banellhon, MCC Techmcal Report DB-022-85, 1985
|
 |
Bancilhon et al 86
|
Francois Bancilhon , David Maier , Yehoshua Sagiv , Jeffrey D Ullman, Magic sets and other strange ways to implement logic programs (extended abstract), Proceedings of the fifth ACM SIGACT-SIGMOD symposium on Principles of database systems, p.1-15, March 24-26, 1986, Cambridge, Massachusetts, United States
[doi> 10.1145/6012.15399]
|
| |
Bancilhon et al 86a
|
"Magic Sets Algorithms and Examples," F Bancflhon, D Miner, Y Saglv and J Ullman, Unpubhshed Manuscr,pt, 1986
|
| |
Bancilhon and Ramakrishnan 86
|
"Performance Evaluatmn of Data Intensive Logxc Programs," F Bancllhon and R Ramakrrshnan,Unpubhshed Manuscrtlat, March 1986
|
| |
Bayer 85
|
"Query Evaluatmn and Reeursmn m Deductive Database Systems," R Bayer, Unpttbhshed Manuserspt, 1985
|
| |
Chang 81
|
'#On the Eva|uatlon of Queries Contalmng Derived Relations m Relational Databases," C Chang, In Advances m Data Base Theory, Vol l, H GaUa#r~, J Mmker and J M Nicolas, Plenum Pre#6, New York, 1981, pp 235-260
|
| |
Dayal et al 85
|
"PROBE- a Research Project m Knowledge-Oriented Database Systems Prehmmary Analysis," U Dayal, A Buchmann, D Goldhlrsch, S Hefler, F Manola, J Orenstem and A Rosenthal, Teehmcal Report, CCA-85-03, July 1985
|
| |
Delobel 86
|
"Bases de Donnees et Bases de Connmssauces Une Approche Systemxque a l'Atde d'une Algebre Matnclelle des Relations," C Delobel Jonrnees Francophones, Grenoble, January 1986
|
| |
Dietrich and Warren 85
|
"Dynamic Programming Strategms for the Evaluatmn of Recursive Queries," S W Dietrich and DS Warren, Unpubhshed Report, 1985
|
 |
Gallaire et al 84
|
|
 |
Gardarin and Maindreville 85
|
|
| |
Han and Lu 86
|
|
 |
Henschen and Naqvi 84
|
|
| |
Kifer and Lozinskii 85
|
"Query Opttmlzatmn m Logxc Databases," M Kffer and E Lozmskn, T#ehmcal R#port, SUNY at Stonybrook, June 1985
|
| |
Laskowski 84
|
"Compdmg Recurmve Axtoms m First Order Databases," K Laskowskl, Masters Thesss, Northwestern Unwers,ty, 198#
|
| |
Lozinskii 83
|
"A Problem-Oriented Inferentml Database System," E Lozlnskn, Tech Report 83-17, The Hebrew Unwersdy of Jerusalem, May 1983
|
| |
Lozinskii 85
|
"Evaluating Quertes m Deductive Databases by Generating," E Lozmskn, Proc 11th Internatwnal Joint Conference on Artsfiesal Intelhgenee, 1985
|
| |
Lozinskii 85a
|
"Inference by Generating and Structuring of Deduetwe Databases," E Lozmskn, Unpnbhshed Manuscr:pt, 1985
|
| |
Marque-Pucheu 83
|
"Algebraic Structure of Answers m a Recurslve Logic Database," G Marque-Pueheu, To appear m Acta Informahea
|
| |
Marque-Pucheu et al 84
|
"Interfacing Prolog and Relatmnal Database Management Systems," G Marque-Pueheu, J Martm-Gallausaux and G Jomter, tn New Apphcattons of Databases, Gardarm and Gelenbe Eds, Aeadem,e Press, London, 1984
|
| |
McKay and Shapiro 81
|
"Using Active Connectmn Graphs for Reasomng wtth Reeurslve Rules," D McKay and S Shapiro, Proc 7th Internat, onal Josnt Conference on Artsfictal Intelhgenee, 1981
|
| |
Morris et al 86
|
|
| |
Naqvi and Fishman 81
|
"An Improved Compdmg Techmque for First Order Databases," Sham#m A Naqvx and Darnel H Ftshman, Proe Formal Bases for Databases, Toulouse, October 1981
|
| |
Naqvi and Henschen 83
|
"Synthesmng Least F#xed Point Queues into Non-reeurs#ve Iterat#ve Programs," S Naqw and L Hensehen, Proe 9th International Joint Conference on Art#fic,al Intelhgence, Karlsruhe, 1983
|
| |
Reiter 78
|
"Deductive Questxon Answenng on Relatmnal Data Base," R Re#ter, In Logic and Data Bases, H Galla#re and J Mmker Piehum Press, New York, 1978, pp 1#9-177
|
| |
Rohmer and Lescoeur 85
|
"La Methode Alexandre une solution pour tralter les axlomes recurmfs dons les bases de donnees deductives ," Colloque Reeonnass- 8anee de Forme8 et Intelhoenee Art,ficselle, Grenoble, November 1985
|
| |
Rosenthal et al 85
|
"Traversal Recurslon A Practical Approach to Supporting Recurmve Apphcat,ons," A Rosenthal, S Heller, U Dayal, F Manola, Unpubhshed Report, CCA, December 1985
|
 |
Sacca and Zaniolo 86a
|
|
| |
Sacca and Zaniolo 86b
|
"Implementing Recurslve Logic Quenes with Function Symbols,"Unpublished Manuaer,pt, Aprd 1986
|
| |
Sagiv and Ullman 84
|
|
| |
Shapiro and McKay 80
|
"Inference wath Recurslve Rules," S Shapiro and D McKay, Proc 1st Annual Nat, onal Conference on Art,fie,at Intelhgence, August, 1980
|
| |
Shapiro et al 82
|
"Bi-Dlrectmnal Inference," S Shapiro, J Martins and D McKay, Proe #th Annual Conference of the Cogs,tire Science Society, Ann Arbor, Mtehtgan, 1982
|
| |
Tarski 55
|
"A LatUce Theoret,cal FL#pomt Theorem and its Apphcatmns" A Tarskb Paesfie Journal of Mathematscs 5, 1955, pp 285-309
|
| |
Ullman 85
|
"implementatmn of Logical Query Languages for Databases," J Ullman, TOLD, Vol 10, No 8, pp #89-821, 1985
|
| |
Ullman and Van Gelder 85
|
"Testing Apphcabfllty of Top-Down Capture Rules," J Ullman and A Van Gelder, Teehmcal Report, Stanford Unwerstty, STAN- CS-85-10# 6, 1985
|
 |
Van Emden and Kowalski 76
|
|
| |
Valduriez and Boral 86
|
"Evaluatmn of Recurslve Quenes Using Join In&ces," P Valdunez and H Boral, Proe Fsrst Intl Conference on Ezpert Database Systems, Charleston, 1986
|
| |
Vieille 85
|
"On Handhng Recurslvely Defined Virtual Relatmns m Deductive Databases," L Vlellle, Unpubhshed Report, ECRC, Mumeh
|
| |
Vieille 86
|
"Recursive axmms in Deductive Databases The Query/Subquery Approach," L Vleflle, Proc First Intl Conference on Ezpert Database Systems, Charleston, 1986
|
| |
Zaniolo 85
|
"The Representation and Deductive Retrieval of Complex Objects," C Zamolo, Proe 11th Int Conference on Very Large Data Bases, Stockholm, September 1985
|
| |
Zaniolo 86
|
"Safety and Compllatmn of Non-Reeurmve Horn Clauses," C Zamolo Proe F, rst Intl Conference on Ezpert Database Systems, Charleston, 1986
|
CITED BY 173
|
|
Jiawei Han , Ling Liu , Zhaohui Xie, LogicBase: a deductive database system prototype, Proceedings of the third international conference on Information and knowledge management, p.226-233, November 29-December 02, 1994, Gaithersburg, Maryland, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Stavros Cosmadakis , Haim Gaifman , Paris Kanellakis , Moshe Vardi, Decidable optimization problems for database logic programs, Proceedings of the twentieth annual ACM symposium on Theory of computing, p.477-490, May 02-04, 1988, Chicago, Illinois, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
A. Marchetti-Spaccamella , A. Pelaggi , D. Sacca, Worst-case complexity analysis of methods for logic query implementation, Proceedings of the sixth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.294-301, March 23-25, 1987, San Diego, California, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
G. Grahne , S. Sippu , E. Soisalon-Soininen, Efficient evaluation for a subset of recursive queries, Proceedings of the sixth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.284-293, March 23-25, 1987, San Diego, California, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Adam L. Buchsbaum , Paris C. Kanellakis , Jeffrey S. Vitter, A data structure for arc insertion and regular path finding, Proceedings of the first annual ACM-SIAM symposium on Discrete algorithms, p.22-31, January 22-24, 1990, San Francisco, California, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Yun-Wu Huang , Ning Jing , Elke A. Rundensteiner, Effective graph clustering for path queries in digital map databases, Proceedings of the fifth international conference on Information and knowledge management, p.215-222, November 12-16, 1996, Rockville, Maryland, United States
|
|
|
C. Beeri , P. Kanellakis , F. Bancilhon , R. Ramakrishnan, Bounds on the propagation of selection into logic programs, Proceedings of the sixth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.214-226, March 23-25, 1987, San Diego, California, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Byeong-Mo Chang , Kwang-Moo Choe , Roberto Giacobazzi, Abstract filters: improving bottom-up execution of logic programs by two-phase abstract interpretation, Proceedings of the 1994 ACM symposium on Applied computing, p.388-393, March 06-08, 1994, Phoenix, Arizona, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Colin Bell , Anil Nerode , Raymond T. Ng , V. S. Subrahmanian, Implementing deductive databases by linear programming, Proceedings of the eleventh ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.283-292, June 02-05, 1992, San Diego, California, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
D. Chimenti , R. Gamboa , R. Krishnamurthy , S. Naqvi , S. Tsur , C. Zaniolo, The LDL System Prototype, IEEE Transactions on Knowledge and Data Engineering, v.2 n.1, p.76-90, March 1990
|
|
|
|
|
|
|
|
|
S. S. B. Shi , E. Stokes , D. Byrne , C. F. Corn , D. Bachmann , T. Jones, An enterprise directory solution with DB2, IBM Systems Journal, v.39 n.2, p.360-383, April 2000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Foto Afrati , Theodore Andronikos , Vassia Pavlaki , Eugenie Foustoucos , Irène Guessarian, From CTL to datalog, Proceedings of the Paris C. Kanellakis memorial workshop on Principles of computing & knowledge: Paris C. Kanellakis memorial workshop on the occasion of his 50th birthday, p.72-85, June 08-08, 2003, San Diego, California, USA
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Loredana Afanasiev , Torsten Grust , Maarten Marx , Jan Rittinger , Jens Teubner, Recursion in XQuery: put your distributivity safety belt on, Proceedings of the 12th International Conference on Extending Database Technology: Advances in Database Technology, March 24-26, 2009, Saint Petersburg, Russia
|
|
|
|
|