Skip to main content

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 3273))

Included in the following conference series:

Abstract

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  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. Alagic, S.: Type-Checking OQL Queries In the ODMG Type Systems. Transactions on Database Systems 24(3) (1999)

    Google Scholar 

  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. 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. 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. Bray, T., Paoli, J., Sperbrag, C.M., Maler, E.: eXtensible Markup Language (XML) 1.0 specification. W3C Recommendation (October 2000)

    Google Scholar 

  7. Thompson, H.S., Beech, D., Maloney, M., Mendelsohn, N.: XML Schema Part 1: Structures. W3C Recommendation (May 2001)

    Google Scholar 

  8. Biron, P.V., Malhotra, A.: XML Schema Part 2: Datatypes. W3C Recommendation (May 2001)

    Google Scholar 

  9. XQuery 1.0 W3C Working Draft (May 2003)

    Google Scholar 

  10. XPath 2.0 data model, W3C Working Draft (May 2003)

    Google Scholar 

  11. OMG, (ed.) The Common Warehouse Metamodel Specification. OMG (2000)

    Google Scholar 

  12. Rational Software Corporation: The Object Constraint Language specification,Version 1.4 (1999)

    Google Scholar 

  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. 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. 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)

    Chapter  Google Scholar 

  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. 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)

    Chapter  Google Scholar 

  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. 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. OMG, Unified Modeling Language Specification, version 1.4 (2001)

    Google Scholar 

  21. Heintz, J., Eliot Kimber, W.: Using UML to define XML document types. isogen international (2000)

    Google Scholar 

  22. Tikkala, J.: Modeling W3C XML Schemas using UML (2003)

    Google Scholar 

  23. Conrad, R., Scheffner, D., Christof, J.: XML Conceptual Modeling using UML (2003)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2004 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

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. https://doi.org/10.1007/978-3-540-30187-5_18

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-30187-5_18

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-23307-7

  • Online ISBN: 978-3-540-30187-5

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics