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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
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)
Alagic, S.: Type-Checking OQL Queries In the ODMG Type Systems. Transactions on Database Systems 24(3) (1999)
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)
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)
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)
Bray, T., Paoli, J., Sperbrag, C.M., Maler, E.: eXtensible Markup Language (XML) 1.0 specification. W3C Recommendation (October 2000)
Thompson, H.S., Beech, D., Maloney, M., Mendelsohn, N.: XML Schema Part 1: Structures. W3C Recommendation (May 2001)
Biron, P.V., Malhotra, A.: XML Schema Part 2: Datatypes. W3C Recommendation (May 2001)
XQuery 1.0 W3C Working Draft (May 2003)
XPath 2.0 data model, W3C Working Draft (May 2003)
OMG, (ed.) The Common Warehouse Metamodel Specification. OMG (2000)
Rational Software Corporation: The Object Constraint Language specification,Version 1.4 (1999)
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)
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)
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)
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)
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)
Sakr, S., Boshra, M.: Using relational metadata to generate enhanced XML document structure. In: Proceedings of INFOS, Cairo University (November 2001)
Hamie, A., Howse, J., Kent, S.: Navigation Expressions in Object-Oriented Modeling Proceedings Fundamental Approaches to Software Engineering. In: 1st International Conference (1998)
OMG, Unified Modeling Language Specification, version 1.4 (2001)
Heintz, J., Eliot Kimber, W.: Using UML to define XML document types. isogen international (2000)
Tikkala, J.: Modeling W3C XML Schemas using UML (2003)
Conrad, R., Scheffner, D., Christof, J.: XML Conceptual Modeling using UML (2003)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights 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