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

  • Ahmed Gaafar
  • Sherif Sakr
Part of the Lecture Notes in Computer Science book series (LNCS, volume 3273)


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.


Class Diagram Object Constraint Language Document Type Definition Path Expression Object Constraint Language Expression 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Draper, D., Fankhauser, P., Fernandez, M.F., Malhotra, A., Rose, K., Rys, M., Wadler, P.: XQuery 1.0 and XPath 2.0 Formal Semantics. Technical Report W3C Working Draft, World Wide Web Consortium (May 2003)Google Scholar
  2. 2.
    Alagic, S.: Type-Checking OQL Queries In the ODMG Type Systems. Transactions on Database Systems 24(3) (1999)Google Scholar
  3. 3.
    Robie, J.: An Introduction to XQuery. In: Katz, H. (ed.) XQuery from the Experts. A Guide to the W3C XML Query Language, Addison-Wesley, Reading (2003)Google Scholar
  4. 4.
    Chamberlin, D.: Influences on the Design of XQuery. In: Katz, H. (ed.) XQuery from the Experts: A Guide to the W3C XML Query Language, Addison-Wesley, Reading (2003)Google Scholar
  5. 5.
    Fernandez, M., Simon, J., Wadler, P.: Static Typing in XQuery. In: Katz, H. (ed.) XQuery from the Experts: A Guide to the W3C XML Query Language, Addison-Wesley, Reading (2003)Google Scholar
  6. 6.
    Bray, T., Paoli, J., Sperbrag, C.M., Maler, E.: eXtensible Markup Language (XML) 1.0 specification. W3C Recommendation (October 2000)Google Scholar
  7. 7.
    Thompson, H.S., Beech, D., Maloney, M., Mendelsohn, N.: XML Schema Part 1: Structures. W3C Recommendation (May 2001)Google Scholar
  8. 8.
    Biron, P.V., Malhotra, A.: XML Schema Part 2: Datatypes. W3C Recommendation (May 2001)Google Scholar
  9. 9.
    XQuery 1.0 W3C Working Draft (May 2003)Google Scholar
  10. 10.
    XPath 2.0 data model, W3C Working Draft (May 2003)Google Scholar
  11. 11.
    OMG, (ed.) The Common Warehouse Metamodel Specification. OMG (2000) Google Scholar
  12. 12.
    Rational Software Corporation: The Object Constraint Language specification,Version 1.4 (1999)Google Scholar
  13. 13.
    Ceri, S., Comai, S., Damiani, E., Fraternali, P., Paraboschi, S., Tanca, L.: XML-GL: a Graphical language for Querying and Restructuring XML Documents. Computer networks 31 (1999)Google Scholar
  14. 14.
    Augurusa, E., Braga, D., Campi, M., Ceri, S.: Design and implementation of a graphical interface to XQuery. In: Matsui, M., Zuccherato, R.J. (eds.) SAC 2003. LNCS, vol. 3006, Springer, Heidelberg (2004)Google Scholar
  15. 15.
    Akehurst, D.H., Bordbar, B.: On Querying UML Data Models with OCL. In: Gogolla, M., Kobryn, C. (eds.) UML 2001. LNCS, vol. 2185, p. 91. Springer, Heidelberg (2001)CrossRefGoogle Scholar
  16. 16.
    Warmer, J., Kleppe, A., Clark, T., Ivner, A., Hogstrom, J., Gogolla, M., Richters, M., Hussmann, H., Zschaler, S., Johnston, S., Frankel, D.S., Bock, C.: Object Constraint Language 2.0. Technical report, Submission to the OMG (2001)Google Scholar
  17. 17.
    Gogolla, M., Richters, M.: On constraints and queries in UML. In: Schader, M., Korthaus, A. (eds.) The Unified Modeling Language - Technical Aspects and Applications, pp. 109–121. PhysicaVerlag, Heidelberg (1998)CrossRefGoogle Scholar
  18. 18.
    Sakr, S., Boshra, M.: Using relational metadata to generate enhanced XML document structure. In: Proceedings of INFOS, Cairo University (November 2001)Google Scholar
  19. 19.
    Hamie, A., Howse, J., Kent, S.: Navigation Expressions in Object-Oriented Modeling Proceedings Fundamental Approaches to Software Engineering. In: 1st International Conference (1998)Google Scholar
  20. 20.
    OMG, Unified Modeling Language Specification, version 1.4 (2001)Google Scholar
  21. 21.
    Heintz, J., Eliot Kimber, W.: Using UML to define XML document types. isogen international (2000)Google Scholar
  22. 22.
    Tikkala, J.: Modeling W3C XML Schemas using UML (2003)Google Scholar
  23. 23.
    Conrad, R., Scheffner, D., Christof, J.: XML Conceptual Modeling using UML (2003)Google Scholar

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