Skip to main content

Rule contexts in active databases

A mechanism for dynamic rule grouping

  • Conference paper
  • First Online:
Rules in Database Systems (RIDS 1995)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 985))

Included in the following conference series:

Abstract

Engineering applications that use Active DBMSs (ADBMSs) often need to group activities into modes that are shifted during the execution of different tasks. This paper presents a mechanism for grouping rules into contexts that can be activated and deactivated dynamically. The ADBMS monitors only those events that affect rules of activated contexts.

By dynamic rule grouping the set of monitored rules can be changed during the transactions. In a static rule grouping the rules are associated with specific objects during the schema definition.

A rule is always activated into a previously defined context. The same rule can be activated with different parameters and into several different contexts. Rules in a context are not enabled for triggering until the context is activated. However, rules can be directly activated into a previously activated context. When rule contexts are deactivated all the rules in that context are disabled from triggering.

The user defined contexts can be checked at any time in a transaction. Rule contexts can be used as a representation of coupling modes, where the ADBMS has built-in contexts for immediate, deferred, and detached rule processing. These built-in coupling modes are always active and are automatically checked by the ADBMS.

Contexts and rules are first-class objects in the ADBMS. Database procedures can be defined that dynamically activate and deactivate contexts and rules to support dynamically changing behaviours of complex applications.

The context mechanism has been implemented in the AMOS ADBMS. The paper concludes with an example of a manufacturing control application that highlights the need for rule contexts.

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

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Buchanan B. G., Shortliffe E. H.: Rule-based Expert Systems, The Mycin Experiments of the Stanford Heuristic Programming Project, Addison-Wesley, 1984

    Google Scholar 

  2. Davis R., Meta-rules: Reasoning about Control, AI, vol. 15, 1980, pp. 179–222

    Google Scholar 

  3. Dayal U., Buchman A.P., McCarthy D.R.: Rules are objects too: A Knowledge Model for an Active, Object-Oriented Database System, Proc. 2nd Intl. Workshop on Object-Oriented Database Systems, Lecture Notes in Computer Science 334, Springer 1988

    Google Scholar 

  4. Dayal U., McCarthy D.: The Architecture of an Active Database Management System, ACM SIGMOD conf., 1989, pp. 215–224

    Google Scholar 

  5. Fahl G., Risch T., Sköld M.: AMOS — An Architecture for Active Mediators, Intl. Workshop on Next Generation Information Technologies and Systems (NGITS '93) Haifa, Israel, June 1993, pp. 47–53

    Google Scholar 

  6. Fishman D. et. al: Overview of the Iris DBMS, Object-Oriented Concepts, Databases, and Applications, ACM press, Addison-Wesley Publ. Comp., 1989

    Google Scholar 

  7. Georgakopoulos D., Hornick M., Sheth A.: An Overview of Workflow Management: From Process Modelling to Workflow Automation Infrastructure, Distributed and Parallel Databases, 3, 2, April 1995, pp. 119–153

    Google Scholar 

  8. Hedberg S., Steizner M.: Knowledge Engineering Environment (KEE) System: Summary of Release 3.1, Intellicorp Inc. July 1987

    Google Scholar 

  9. Loborg P., Holmbom P., Sköld M., Törne A.: A Model for the Execution of Task-Level Specifications for Intelligent and Flexible Manufacturing Systems, Integrated Computer-Aided Engineering 1(3) pp. 185–194, John Wiley & Sons, Inc., 1994

    Google Scholar 

  10. Loborg P., Risch T., Sköld M., Törne A. Active Object Oriented Databases in Control Applications, 19th Euromicro Conference of Microprocessing and Microprogramming, vol. 38, 1–5, pp. 255–264, Barcelona, Spain 1993

    Google Scholar 

  11. Lyngbaek P., OSQL: A Language for Object Databases, tech. rep. HPL-DTD-91-4, Hewlett-Packard Company, Jan. 1991

    Google Scholar 

  12. Risch T.: Monitoring Database Objects, Proc. VLDB conf. Amsterdam 1989

    Google Scholar 

  13. Risch T., Sköld M.: Active Rules based on Object Oriented Queries, IEEE Data Engineering bulletin, Vol. 15, No. 1–4, Dec. 1992, pp. 27–30

    Google Scholar 

  14. Shipman D. W.: The Functional Data Model and the Data Language DAPLEX, ACM Transactions on Database Systems, 6(1), March 1981

    Google Scholar 

  15. Stonebraker M., Hearst M., Potamianos S.: A Commentary on the POSTGRES Rules System, SIGMOD RECORD, vol. 18, no. 13, Sept. 1989

    Google Scholar 

  16. Tombros D., Geppert A., Dittrich K. R.: SEAMAN: Implementing Process-Centered Software Development Environments on Top of an Active Database Management System, Technical Report 95.03, Comp. Science Dept., University of Zürich, Jan. 1995

    Google Scholar 

  17. Walters J.R, Nielsen N.R., Crafting Knowledge-based Systems — Expert Systems Made Easy/Realistic, John Wiley & Sons, 1988, pp. 253–284

    Google Scholar 

  18. Widom J.: The Starburst Rule System: Language Design, Implementation, and Applications, IEEE Data Engineering, vol. 15, no. 1–4, Dec. 1992

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Timos Sellis

Rights and permissions

Reprints and permissions

Copyright information

© 1995 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Sköld, M., Falkenroth, E., Risch, T. (1995). Rule contexts in active databases. In: Sellis, T. (eds) Rules in Database Systems. RIDS 1995. Lecture Notes in Computer Science, vol 985. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-60365-4_123

Download citation

  • DOI: https://doi.org/10.1007/3-540-60365-4_123

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-60365-8

  • Online ISBN: 978-3-540-45137-2

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics