SBVR vs OCL: A Comparative Analysis of Standards

Imran Sarwar Bajwa, Behzad Bordbar, Mark G. LeeOpenReview 2011 · DOI · OpenReview

Abstract

In software modeling, designers produce UML visual models with software constraints. Similarly, in business modeling, designers model business processes using business constraints (business rules). Constraints are key components in the skeleton of business or software models. A designer must write constraints to semantically complement business models or UML models and finally implement them into business processes or source code. Business rules can be written using SBVR (Semantics of Business Vocabulary and Rules), while OCL (Object Constraint Language) is the well-known medium for software constraints. Both are significant standards from the Object Management Group (OMG). This paper performs a comparative analysis of both standards to identify a mechanism for the automatic transformation of SBVR to OCL.

The "Lost in Translation" Problem

In Model-Driven Architecture (MDA), a persistent gap exists between business stakeholders and software developers. Business analysts use SBVR to define complex compliance rules in a format resembling natural language. Meanwhile, software designers use OCL to write formal, mathematical constraints for UML models. Because these groups often work in silos, changes in business rules require manual, error-prone updates to software constraints.

The role of SBVR and OCL in the development lifecycle, from platform-independent models to source code.

As shown in the development lifecycle, SBVR is typically utilized at the platform-independent level, while OCL is employed closer to the implementation and source code stages. This research seeks to bridge this gap by identifying structural and semantic overlaps.

Methodology and Architectural Context

The authors conducted a qualitative comparative analysis based on seven criteria, including relation to other standards (such as MOF and UML), syntactical features, and underlying logic systems. A critical aspect of this comparison is their shared position within the Meta-Object Facility (MOF) framework, which provides the structural foundation necessary for automated transformation.

Key Insights and Structural Mapping

Despite their different appearances, SBVR and OCL share "DNA" rooted in First-Order Logic (FOL) and are side-effect free—meaning evaluating a rule never changes the system's state. The study identifies clear equivalents:

  • Noun Concepts (SBVR) $\approx$ Context/Classes (OCL)
  • Verb Concepts (SBVR) $\approx$ Operations/Methods (OCL)
  • Structural Rules (SBVR) $\approx$ Invariants (OCL)
  • Operative Rules (SBVR) $\approx$ Pre/Post Conditions (OCL)

One vital distinction is the logic system: SBVR uses two-value logic (True/False), whereas OCL uses three-value logic (True, False, or Undefined). Transformation engines must carefully map these states to avoid logic errors.

Comparative Results

The paper concludes that SBVR and OCL are highly complementary, with over 15 major commonalities identified. However, their functional differences define their specific roles in the development lifecycle.

Comparison of principal features and limitations of SBVR and OCL.

As summarized in the comparison, OCL is a query language designed for UML model constraints, while SBVR is tailored for business rule specification and natural language documentation. Notably, SBVR does not support sequence collections, whereas OCL lacks support for graphical notation and closed projection.

Future Outlook

The analysis confirms that automatic transformation is feasible, provided the business vocabulary is properly mapped to the software class diagram. Future research directions include developing a robust transformation engine and investigating unified textual modeling languages to eliminate the need for transformation entirely.

Summary updated

Abstract

In software modelling, the designers have to produce UML visual models with software constraints. Similarly, in business modelling, designers have to model business processes using business constraints (business rules). Constraints are the key components in the skeleton of business or software models. A designer has to write constraints to semantically compliment business models or UML models and finally implementing the constraints into business processes or source code. Business constraints/rules can be written using SBVR (Semantics of Business Vocabulary and Rules) while OCL (Object Constraint Language) is the well-known medium for writing software constraints. SBVR and OCL are two significant standards from OMG. Both standards are principally different as SBVR is typically used in business domains and OCL is employed to compliment software models. However, we have identified a few similarities in both standards that are interesting to study. In this paper, we have performed a comparative analysis of both standards as we are looking for a mechanism for automatic transformation of SBVR to OCL. The major emphasis of the study is to highlight principal features of SBVR and OCL such as similarities, differences and key parameters on which these both standards can work together.
BibTeX
@misc{bajwa2011sbvr,
  author = {Imran Sarwar Bajwa and Behzad Bordbar and Mark G. Lee},
  title = {{SBVR vs OCL: A Comparative Analysis of Standards}},
  year = {2011},
  eprint = {1304.7346},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1304.7346},
  howpublished = {OpenReview},
}
Figure