Skip to main content

Triggers and Inference In Database Systems

  • Chapter
On Knowledge Base Management Systems

Part of the book series: Topics in Information Systems ((TINF))

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Similar content being viewed by others

References

  1. Astrahan, M. et. al., “System R; A Relational Approach to Data”, ACM–TODS, June 1976.

    Google Scholar 

  2. / Buneman, P. and Clemons, E., “Efficiently Monitoring Relational Databases”, ACM-TODS, June 1979.

    Google Scholar 

  3. 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.

    Google Scholar 

  4. Cheng, J. et. al., “IBM Database 2 Performance: Design, Implementation and Tuning”, IBM Systems Journal, February 1984.

    Google Scholar 

  5. Clocksin, W. and Mellish, C., Programming in Prolog, Springer–Verlag, Berlin, Germany, 1981.

    Google Scholar 

  6. / 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.

    Google Scholar 

  7. / 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.

    Google Scholar 

  8. Forgy, C., “OPS5 User’s Manual”, Technical Report No. CMU-CS-81-135, Carnegie-Mellon University, 1981.

    Google Scholar 

  9. Gray, J., “Notes on Data Base Operating Systems”, RJ 2254, IBM Research, San Jose, Ca., August 1978.

    Google Scholar 

  10. Hewitt, C., “Planner: A Language for Proving Theorems in Robots”, Proc. 1971 Internation Joint Conference on Artificial Intelligence, 1971.

    Google Scholar 

  11. Ioannides, Y., et al., “Enhancing INGRES with Deductive Power”, Proceedings of the 1st International Workshop on Expert Database Systems, Kiowah SC, October 1984.

    Google Scholar 

  12. 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.

    Google Scholar 

  13. / 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.

    Google Scholar 

  14. Roussopoulos N, “View Indexing in Relational Databases”, ACM Transactions on Database Systems, 7: 2, 258–290, 1982.

    Article  MATH  Google Scholar 

  15. Relational Technology, Inc., INGRES Version 3.0 Reference Manual, December 1984.

    Google Scholar 

  16. Stonebraker, M., et al., “The Design and Implementation of INGRES,” ACM Trans. Database Systems, 1, 3, September 1976.

    Article  Google Scholar 

  17. 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.

    Google Scholar 

  18. Ullman, J., “Implementation of Logical Query Languages for Databases”, ACM Transactions on Database Systems, Vol. 10., No. 3, pp. 289–321, 1985

    Google Scholar 

  19. 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.

    Google Scholar 

  20. Date, C.J., An Introduction to Databases Systems, 3rd ed., Addison-Wesley, Reading, MA, 1981.

    Google Scholar 

  21. DeWitt, D.J., “DIRECT — A Multiprocessor Organization for Supporting Relational Database Management Systems”, IEEE Transactions on Computers, June 1979, pp. 395–406.

    Google Scholar 

  22. Forgy, C., “OPS5 User’s Manual”, Technical Report No. CMU-CS-81-135, Carnegie-Mellon University, 1981.

    Google Scholar 

  23. Goldberg, A. and D. Robson, Smalltalk-80: The Language and its Implementation, Addison-Wesley, 1983.

    Google Scholar 

  24. 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.

    Google Scholar 

  25. 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.

    Google Scholar 

  26. 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.

    Google Scholar 

  27. 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.

    Google Scholar 

  28. 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.

    Google Scholar 

  29. Koshafian, Setrag, A Building Blocks Approach to Statistical Databases, Ph.D. Thesis, Computer Sciences Department, University of Wisconsin, June, 1984.

    Google Scholar 

  30. Kowalski, T., and D. Thomas, “The VLSI Design Automation Assistant: Prototype System”, Proceedings of the 20th ACM-IEEE Design Automation Conference, June 1983.

    Google Scholar 

  31. McDermott, J., “Rl: An Expert in the Computer Systems Domain”, Proceedings of the First Annual National Conference on Artificial Intelligence, Stanford, CA, 1980.

    Google Scholar 

  32. Mitchell, J.G., Maybury, W., and R. Sweet, “Mesa Language Manual”, Xerox Research Center, Palo Alto, CA, 1979.

    Google Scholar 

  33. Mitchell, J.G., Maybury, W., and R. Sweet, “Mesa Language Manual”, Xerox Research Center, Palo Alto, CA, 1979.

    Google Scholar 

  34. 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.

    Article  Google Scholar 

  35. Reed, D., “Implementing Atomic Actions on Decentralized Data”, ACM Transactions on Computer Systems, V 1, N 1, (March 1983).

    Google Scholar 

  36. Selinger, P.G., et. al., “Access Path Selection in a Relational DBMS”, Proceedings of the 1979 SIGMOD Conference, June 1979.

    Google Scholar 

  37. 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.

    Google Scholar 

  38. Schwarz, P.M., and A.Z. Spector, “Recovery of Shared Abstract Types”, Technical Report No. CMU-CS-83-151, Carnegie-Mellon University, October 1983.

    Google Scholar 

  39. Schwarz, P.M., and A.Z. Spector, “Synchronizing Shared Abstract Types”, ACM Transactions on Computer Systems, Vol. 2, No. 3, August 1984.

    Google Scholar 

  40. Stonebraker, M. R., “Operating System Support for Database Management”, Communications of the ACM, V 24, N 7, (July 1981), pp. 412–418.

    Article  Google Scholar 

  41. 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.

    Article  Google Scholar 

  42. Ullman, J. D., Principles of Database Systems, Computer Science Press, Rockville, Md., 1982.

    MATH  Google Scholar 

  43. A Software Engineering View of Database Systems

    Google Scholar 

  44. Weiner, J., “BLAH, A System which explains its Reasoning”, Artificial Intelligence, 15: 19–48, 1980.

    Article  Google Scholar 

  45. 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.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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

Publish with us

Policies and ethics