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 条
  • [1] The Active XML project: an overview
    Abiteboul, Serge
    Benjelloun, Omar
    Milo, Tova
    [J]. VLDB JOURNAL, 2008, 17 (05) : 1019 - 1040
  • [2] [Anonymous], 2007, XQuery 1.0: An XML Query Language
  • [3] [Anonymous], P 2 INT C UN MOD LAN
  • [4] On the complexity of verifying consistency of XML specifications
    Arenas, Marcelo
    Fan, Wenfei
    Libkin, Leonid
    [J]. SIAM JOURNAL ON COMPUTING, 2008, 38 (03) : 841 - 880
  • [5] Badica A., 2006, INT MULT COMP GLOB I, V0, P31
  • [6] On the improvement of active XML (AXML) representation and query evaluation
    Binh Viet Phan
    Pardede, Eric
    Rahayu, Wenny
    [J]. INFORMATION SYSTEMS FRONTIERS, 2013, 15 (02) : 203 - 222
  • [7] Booth C.K.L.D., 2007, WEB SERVICES DESCRIP
  • [8] Bouchou Beatrice, 2011, Database and Expert Systems Applications. Proceedings 22nd International Conference, DEXA 2011, P94, DOI 10.1007/978-3-642-23088-2_7
  • [9] Codd E. F., 1972, DATABASE SYSTEMS 65
  • [10] Conrad R., 2000, LECT NOTES COMPUTER