Model-driven approach to modeling and validating integrity constraints for XML with OCL and Schematron

被引:3
作者
Maly, Jakub [1 ]
Necasky, Martin [1 ]
机构
[1] Charles Univ Prague, Fac Math & Phys, XML & Web Engn Res Grp, Prague, Czech Republic
关键词
Integrity constraints; OCL; UML; XML; Schematron; Conceptual modeling; EVOLUTION;
D O I
10.1007/s10796-013-9471-4
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
The idea behind Model Driven Development (MDD) (Miller and Mukerji 2003) is to model the software system on several layers of abstraction. A designer starts from the very abstract specification (independent of the platform and language used) and progresses to more concrete models (using platform-specific constructs) and finally to code. Ideally, each step of the transformation of the model from the more abstract to the less abstract is achieved by a declarative transformation obtained (semi-)automatically. In our previous work, we have developed an approach for designing XML schemas based on MDD. We showed that a set of XML schemas representing different views of the same problem domain can be first modeled in a platform-independent level with a uniform conceptual schema expressed as a UML class diagram. Then each XML schema can be modeled as a view on this uniform UML class diagram. In this paper, we further extend our approach to modeling XML schemas using UML class diagrams with modeling integrity constraints using Object Constraint Language (OCL). We show that an integrity constraint expressed at the platform-independent level as an OCL expression can be translated to an expression at the XML schema level which can be used to validate XML documents. In particular, we propose a method which translates an OCL expression at the platform-independent level to a Schematron expression. Schematron is a language which enables to express integrity constraints at the XML schema level. We show that our approach saves time and prevents from errors made by designers when expressing Schematron constraints manually.
引用
收藏
页码:917 / 946
页数:30
相关论文
共 44 条
  • [11] Evolution of XML schemas and documents from stereotyped UML class models: A traceable approach
    Dominguez, Eladio
    Lloret, Jorge
    Perez, Beatriz
    Rodriguez, Aurea
    Rubio, Angel L.
    Zapata, Maria A.
    [J]. INFORMATION AND SOFTWARE TECHNOLOGY, 2011, 53 (01) : 34 - 50
  • [12] Integrity constraints for XML
    Fan, WF
    Siméon, J
    [J]. JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2003, 66 (01) : 254 - 291
  • [13] On XML integrity constraints in the presence of DTDs
    Fan, WF
    Libkin, L
    [J]. JOURNAL OF THE ACM, 2002, 49 (03) : 368 - 406
  • [14] Gaafar A., 2004, UML
  • [15] Holstege M., 2012, P BAL MARK C 2010 BA
  • [16] Hussmann H., 2000, UML ADV STANDARD UML
  • [17] ISO/EIC, 2006, 197573 ISOEIC
  • [18] Klimek J., 2012, P INT C WEB SERV
  • [19] Klimek J., 2012, EXOLUTIO PROJECT
  • [20] Maly J., 2012, P BAL AG MARK C 2012