JUCS - Journal of Universal Computer Science 20(3): 329-365, doi: 10.3217/jucs-020-03-0329
Evaluation of OCL Expressions over XML Data Model
expand article infoJakub Malý, Martin Nečaský
‡ Charles University, Prague, Czech Republic
Open Access
Complex applications can benefit greatly from using conceptual models and Model Driven Architecture during development, deployment and runtime. XML applications are not different. In this paper, we examine the possibility of using Object Constraint Language (OCL) for expressing constraints over a conceptual model for XML data. We go through the different classes of OCL expression and show how each class can be translated into XPath constructs. Subsequently we show how the constraints can be checked using Schematron. We introduce a function library OclX, which provides constructs necessary to translate those OCL constructs that have no counterpart in XPath. With our tool, it is possible to check validity of OCL constraints in XML data.
XML, OCL, integrity constraints, Schematron, MDA