Skip to main content

Object Constraint Language

  • Reference work entry
  • First Online:
  • 16 Accesses

Synonyms

OCL

Definition

The Unified Modeling Language (UML) includes a textual language called Object Constraint Language (OCL). OCL allows users to navigate class diagrams, to formulate queries, and to restrict class diagrams with integrity constraints. From a practical perspective, the OCL may be viewed as an object-oriented version of the Structured Query Language (SQL) originally developed for the relational data model. From a theoretical perspective, OCL may be viewed as a variant of first-order predicate logic with quantifiers on finite domains only. OCL has a well-defined syntax [1, 3] and semantics [2].

Key Points

The central language features in OCL are: navigation, logical connectives, collections and collection operations.

  • Navigation: The navigation features in OCL allow users to determine connected objects in the class diagram by using the dot operator “. ”. Starting with an expression expr of start class C, one can apply a property propC of class Creturning, for example,...

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   4,499.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD   6,499.99
Price excludes VAT (USA)
  • Durable hardcover 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

Learn about institutional subscriptions

Recommended Reading

  1. OMG (ed.). OMG object constraint language specification. OMG, 2007. www.omg.org.

  2. Richters M, Gogolla M. On formalizing the UML object constraint language OCL. In: Proceedings of the 17th International Conference on Conceptual Modeling; 1998. p. 449–64.

    Chapter  Google Scholar 

  3. Warmer J, Kleppe A. The object constraint language: getting your models ready for MDA. Boston: Addison-Wesley, Reading; 2003.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Martin Gogolla .

Editor information

Editors and Affiliations

Section Editor information

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer Science+Business Media, LLC, part of Springer Nature

About this entry

Check for updates. Verify currency and authenticity via CrossMark

Cite this entry

Gogolla, M. (2018). Object Constraint Language. In: Liu, L., Özsu, M.T. (eds) Encyclopedia of Database Systems. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-8265-9_810

Download citation

Publish with us

Policies and ethics