Towards a Framework for Mapping Between UML/OCL and XML/XQuery

  • Ahmed Gaafar
  • Sherif Sakr
Conference paper

DOI: 10.1007/978-3-540-30187-5_18

Part of the Lecture Notes in Computer Science book series (LNCS, volume 3273)
Cite this paper as:
Gaafar A., Sakr S. (2004) Towards a Framework for Mapping Between UML/OCL and XML/XQuery. In: Baar T., Strohmeier A., Moreira A., Mellor S.J. (eds) «UML» 2004 — The Unified Modeling Language. Modeling Languages and Applications. UML 2004. Lecture Notes in Computer Science, vol 3273. Springer, Berlin, Heidelberg


The Unified Modeling Language is the standard language for modeling systems. UML has been extended to model web applications. At the same time, Web technology has become largely relying on XML documents. The structure of XML documents, namely the XML schema or DTD for these documents can be modeled using UML data structures. UML tools are usually concerned with the generation of the structure and behavior of the system that is captured by models in their equivalents in the selected platform. In this paper we introduce a novel approach for the integration between UML and XML families of technologies. We model the structure of XML using UML class diagrams and based on this, we study how queries on XML documents, namely XQuery expressions can be described using UML techniques. Here we show that modeling of XML documents and its queries represented by XQuery expressions is possible using the querying capabilities of UML Class diagram and the Object Constraint Language (OCL). As a result, we see how these two technologies compare, what the advantages of both technologies are and how they can be combined.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag Berlin Heidelberg 2004

Authors and Affiliations

  • Ahmed Gaafar
    • 1
  • Sherif Sakr
    • 2
  1. 1.Faculty of Computers and InformationCairo UniversityEgypt
  2. 2.Department of computers and information scienceUniversity of KonstanzSwitzerland

Personalised recommendations