Abstract
There is a collection of database applications (such as real time control) which may be best accomplished using collections of triggers. The paradigm in which an initial action recursively triggers dependent actions is often called forward chaining. In addition, database support for large knowledge bases requires at least a simple inferencing capability. When a retrieve command cannot be satisfied using only stored data, a data manager must determine if a rule in the knowledge base can be used to reformulate the query. In this way, one works from the desired data toward database facts which must be ascertained using backward chaining.
In this paper we show how forward chaining and backward chaining can both be supported by simple extensions to a relational query language. Moreover, we demonstrate extensions to a conventional lock manager which will efficiently implement the new constructs. Lastly, the extensions to support backtracking are described.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
Astrahan, M. et. al., “System R; A Relational Approach to Data”, ACM–TODS, June 1976.
/ Buneman, P. and Clemons, E., “Efficiently Monitoring Relational Databases”, ACM-TODS, June 1979.
Brodie, M., and Jarke, M., “On Integrating Logic Programming and Data Bases”, Proc. 1st International Conference on Expert Data Base Systems, Kiowah, S.C., Oct 1984.
Cheng, J. et. al., “IBM Database 2 Performance: Design, Implementation and Tuning”, IBM Systems Journal, February 1984.
Clocksin, W. and Mellish, C., Programming in Prolog, Springer–Verlag, Berlin, Germany, 1981.
/ Chang, C. and Walker, A, A., “PROSQL: A Prolog Programming Interface with SQL/DS”, Proc. 1st International Conference on Expert Data Bases, Kiowah, S.C., Oct 1984.
/ Eswaren, K., “A General Purpose Trigger Subsystem and Its Inclusion in a Relational Data Base System”, RJ 1833, IBM Research, San Jose, Ca., July 1975.
Forgy, C., “OPS5 User’s Manual”, Technical Report No. CMU-CS-81-135, Carnegie-Mellon University, 1981.
Gray, J., “Notes on Data Base Operating Systems”, RJ 2254, IBM Research, San Jose, Ca., August 1978.
Hewitt, C., “Planner: A Language for Proving Theorems in Robots”, Proc. 1971 Internation Joint Conference on Artificial Intelligence, 1971.
Ioannides, Y., et al., “Enhancing INGRES with Deductive Power”, Proceedings of the 1st International Workshop on Expert Database Systems, Kiowah SC, October 1984.
Jarke M, Clifford J, Vassiliou Y, “An Optimizing PROLOG Front-end to a Relational Query System”, Proceedings ACM- SIGMOD Conference, Boston, Ma, 296–306, 1984.
/ Missicoff, M. and Wiederhold, G, G., “Toward a Unified Approach for Expert and Data Base Systems”, Proc. 1st International Conference on Expert Data Base Systems, Kiowah, S.C., Oct. 1984.
Roussopoulos N, “View Indexing in Relational Databases”, ACM Transactions on Database Systems, 7: 2, 258–290, 1982.
Relational Technology, Inc., INGRES Version 3.0 Reference Manual, December 1984.
Stonebraker, M., et al., “The Design and Implementation of INGRES,” ACM Trans. Database Systems, 1, 3, September 1976.
Sciore, E. and Warren, D.S, D.S., “Toward an Integrated Database- Prolog System”, Proc. 1st International Conference on Expert Data Bases, Kiowah, S.C., Oct 1984.
Ullman, J., “Implementation of Logical Query Languages for Databases”, ACM Transactions on Database Systems, Vol. 10., No. 3, pp. 289–321, 1985
Warren, D.H.D., “Efficient Processing of Interactive Relational Database Queries Expressed in Logic”, Proc. of the Seventh International Conference on Very Large Data Bases, Cannes, France, pp. 272–281, 1981.
Date, C.J., An Introduction to Databases Systems, 3rd ed., Addison-Wesley, Reading, MA, 1981.
DeWitt, D.J., “DIRECT — A Multiprocessor Organization for Supporting Relational Database Management Systems”, IEEE Transactions on Computers, June 1979, pp. 395–406.
Forgy, C., “OPS5 User’s Manual”, Technical Report No. CMU-CS-81-135, Carnegie-Mellon University, 1981.
Goldberg, A. and D. Robson, Smalltalk-80: The Language and its Implementation, Addison-Wesley, 1983.
Guttman, A. and M. Stonebraker, “Using a Relational Database Management System for Computer Aided Design Data”, IEEE Database Engineering, Vol. 5, No. 2, June, 1982.
Hagmann, R., “Preferred classes: a proposal for faster Smalltalk-80 execution”, in Smalltalk-80: Bits of History, Words of Advice, G. Krasner, Editor, Addison-Wesley, 1983, pp. 323–330.
Haskin, R. and R. Lorie, “On Extending the Functions of a Relational Database System”, Proceedings of the 1982 ACM SIGMOD Conference, Orlando, FL, 1984, pp. 207–212.
Kaehler, T. and T. Krasner, LOOM — Large objected oriented memory for Smalltalk-80 systems, in Smalltalk-80: Bits of History, Words of Advice, G. Krasner, Editor, Addison-Wesley, 1983, pp. 323–330.
Katz, R. H., T. J. Lehman, “Database Support for Versions and Alternatives of Large Design Files”, IEEE Transactions on Software Engineering, Vol. SE-10, No. 2, March 1984.
Koshafian, Setrag, A Building Blocks Approach to Statistical Databases, Ph.D. Thesis, Computer Sciences Department, University of Wisconsin, June, 1984.
Kowalski, T., and D. Thomas, “The VLSI Design Automation Assistant: Prototype System”, Proceedings of the 20th ACM-IEEE Design Automation Conference, June 1983.
McDermott, J., “Rl: An Expert in the Computer Systems Domain”, Proceedings of the First Annual National Conference on Artificial Intelligence, Stanford, CA, 1980.
Mitchell, J.G., Maybury, W., and R. Sweet, “Mesa Language Manual”, Xerox Research Center, Palo Alto, CA, 1979.
Mitchell, J.G., Maybury, W., and R. Sweet, “Mesa Language Manual”, Xerox Research Center, Palo Alto, CA, 1979.
Nievergelt, J., Hinterberger, H., and K.C. Sevcik, “The Grid File: An Adaptable, Symmetric Multikey File Structure”, ACM Transactions on Database Systems, Vol. 9, No. 3, (March 1984), pp. 38–71.
Reed, D., “Implementing Atomic Actions on Decentralized Data”, ACM Transactions on Computer Systems, V 1, N 1, (March 1983).
Selinger, P.G., et. al., “Access Path Selection in a Relational DBMS”, Proceedings of the 1979 SIGMOD Conference, June 1979.
Sacco, G. M. and M. Schkolnick, “A Mechanism for Managing the Buffer Pool in a Relational Database System Using the Hot Set Model”, Proceedings of the 1982 Very Large Database Conference, Mexico City, Mexico, (September 1982), pp. 257–262.
Schwarz, P.M., and A.Z. Spector, “Recovery of Shared Abstract Types”, Technical Report No. CMU-CS-83-151, Carnegie-Mellon University, October 1983.
Schwarz, P.M., and A.Z. Spector, “Synchronizing Shared Abstract Types”, ACM Transactions on Computer Systems, Vol. 2, No. 3, August 1984.
Stonebraker, M. R., “Operating System Support for Database Management”, Communications of the ACM, V 24, N 7, (July 1981), pp. 412–418.
Stonebraker, M., Wong, G., Kreps, P., and G. Held, “The Design and Implementation of INGRES”, ACM Transactions on Database Systems, V 1, N 3, (September 1976), pp. 189–222.
Ullman, J. D., Principles of Database Systems, Computer Science Press, Rockville, Md., 1982.
A Software Engineering View of Database Systems
Weiner, J., “BLAH, A System which explains its Reasoning”, Artificial Intelligence, 15: 19–48, 1980.
Wise, M. J. and D. M. Powers, “Indexing PROLOG Clauses via Superimposed Code Words and Field Encoded Words”, Proceedings of the 1984 Symposium on Logic Programming, Feb. 6–9, 1984.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 1986 Springer-Verlag New York Inc.
About this chapter
Cite this chapter
Stonebraker, M. (1986). Triggers and Inference In Database Systems. In: Brodie, M.L., Mylopoulos, J. (eds) On Knowledge Base Management Systems. Topics in Information Systems. Springer, New York, NY. https://doi.org/10.1007/978-1-4612-4980-1_25
Download citation
DOI: https://doi.org/10.1007/978-1-4612-4980-1_25
Publisher Name: Springer, New York, NY
Print ISBN: 978-1-4612-9383-5
Online ISBN: 978-1-4612-4980-1
eBook Packages: Springer Book Archive