An Analysis of Metamodeling Practices for MOF and OCL - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Journal Articles Computer Languages, Systems and Structures Year : 2015

An Analysis of Metamodeling Practices for MOF and OCL

Juan Cadavid
  • Function : Author
  • PersonId : 915143
Benoit Combemale
Benoit Baudry
  • Function : Author
  • PersonId : 838700


The definition of a metamodel that precisely captures domain knowledge for effective know-how capitalization is a challenging task. A major obstacle for domain experts who want to build a metamodel is that they must master two radically different languages: an object-oriented, MOF-compliant, modeling language to capture the domain structure and first order logic (the Object Constraint Language) for the definition of well-formedness rules. However, there are no guidelines to assist the conjunct usage of both paradigms, and few tools support it. Consequently, we observe that most metamodels have only an object-oriented domain structure, leading to inaccurate metamodels. In this paper, we perform the first empirical study, which analyzes the current state of practice in metamodels that actually use logical expressions to constrain the structure. We analyze 33 metamodels including 995 rules coming from industry, academia and the Object Management Group, to understand how metamodelers articulate both languages. We implement a set of metrics in the OCLMetrics tool to evaluate the complexity of both parts, as well as the coupling between both. We observe that all metamodels tend to have a small, core subset of concepts, which are constrained by most of the rules, in general the rules are loosely coupled to the structure and we identify the set of OCL constructs actually used in rules.
Fichier principal
Vignette du fichier
metamodelingpractices-comlan2015-preprint.pdf (824.88 Ko) Télécharger le fichier
Origin : Files produced by the author(s)

Dates and versions

hal-01186015 , version 1 (23-08-2015)


Attribution - NonCommercial - NoDerivatives



Juan Cadavid, Benoit Combemale, Benoit Baudry. An Analysis of Metamodeling Practices for MOF and OCL. Computer Languages, Systems and Structures, 2015, 41, pp.46. ⟨10.1016/⟩. ⟨hal-01186015⟩
1491 View
1459 Download



Gmail Facebook X LinkedIn More