starName,title,year -> revenues
Now, we get a new model that is SL
FD
-simplified
(invariants and postconditions are satisfied, but pre-
conditions are not):
1. starName,title,year -> revenues
2. starName,director -> petActor
3. title,year -> studioName,director
Notice that this new set has been reduced in the
number of dependencies and in the number of at-
tributes inside the dependencies.
4 CONCLUSIONS AND FUTURE
WORKS
We have seen that it is possible to create and main-
tain some quality standards of data models of func-
tional dependencies just by defining a contract on the
FDMM. This contract is defined using only OCL ex-
pressions embedded in the metamodel and it is used
both to validate the global state of the model and to
warn about the need to apply simplification opera-
tions.
Our contribution in centered in the field of MDE
models quality enhancement by reusing the concept
of design-by-contract (Meyer, 1997), formal methods
from previous research efforts (Enciso et al., 2012;
Cordero et al., 2002) and the standard language for
the design of smart models, OCL (OMG, 2012). Nev-
ertheless, the approach to correction-by-contract in
model creation is new (to our best knowledge) and a
promising perspective to be consider in future works.
We plan to extend this method to the most com-
mon metamodels for static models like relational,
entity-relationship and UML class models. For this,
it would be necessary to study the interpretation of
the concept of functional dependency in these meta-
models and adapt the contract defined for the FDMM
accordingly, so that the semantics of the set of func-
tional dependencies are preserved although some syn-
tactical differences may exist.
We have illustrated that, even when there is a rea-
sonably good elicitation of functional dependencies,
some redundancy may arise when the model is main-
tained. In this scenario, our method can help to con-
trol the introduction of redundancies and avoiding
loss of quality.
The method presented in this paper is strongly
based on a set of equivalences that characterizes the
strength of the axiomatic system of the SL
FD
. These
equivalences induce a set of OCL constraints (invari-
ants, pre and postconditions) which allow us to ensure
the quality of the models while they are created such
that no further transformation is required.
ACKNOWLEDGEMENTS
Supported by grant Andaluc
´
ıa Tech (International
Campus of Excellence), IPT-2011-15597770000 of
the Economy and Competitiveness Ministry and
TIN2011-28084 of the Science and Innovation Min-
istry of Spain co-funded by the European Regional
Development Fund (ERDF).
REFERENCES
Akehurst, D., Bordbar, B., Rodgers, P., and Dalgliesh, N.
(2002). Automatic Normalisation via Metamodelling.
In ASE 2002 Workshop on Declarative Meta Program-
ming to Support Software Development.
Armstrong, W. W. (1974). Dependency structures of data
base relationships. In IFIP Congress, pages 580–583.
Brambilla, M., Cabot, J., and Wimmer, M. (2012). Model-
driven Software Engineering in Practice. Synthesis
digital library of engineering and computer science.
Morgan & Claypool Publishers.
Cabot, J. and Gogolla, M. (2012). Object constraint lan-
guage (OCL): a definitive guide. In Proceedings of the
12th international conference on Formal Methods for
the Design of Computer, Communication, and Soft-
ware Systems: formal methods for model-driven en-
gineering, SFM’12, pages 58–90, Berlin, Heidelberg.
Springer-Verlag.
Clavel, M., Egea, M., and de Dios, M. A. G. (2009). Check-
ing unsatisfiability for ocl constraints. ECEASST, 24.
Cordero, P., Enciso, M., and Angel, M. (2013). Automated
reasoning to infer all minimal keys. International Joint
Conference on Artificial Intelligence, Beijin, China.
Cordero, P., Enciso, M., Mora, A., and Guzm
´
an, I. P. d.
(2002). Slfd logic: Elimination of data redundancy in
knowledge representation. In Proceedings of the 8th
Ibero-American Conference on AI: Advances in Arti-
ficial Intelligence, IBERAMIA 2002, pages 141–150,
London, UK, UK. Springer-Verlag.
Demuth, B. (2004). The dresden ocl toolkit and its role in
information systems development. In Proc. of the 13th
International Conference on Information Systems De-
velopment (ISD2004).
Enciso, M., Rossi, C., and Guevara, A. (2012). A meta-
model for functional dependencies - towards a func-
tional dependency model transformation. In IC-
SOFT’12, pages 291–296.
Lano, K. and Kolahdouz-Rahimi, S. (2012). Constraint-
based specification of model transformations. Journal
of Systems and Software.
Mens, T. and Gorp, P. V. (2006). A taxonomy of model
transformation. Electronic Notes in Theoretical Com-
puter Science, 152(0):125 – 142.
ICSOFT2013-8thInternationalJointConferenceonSoftwareTechnologies
568