The third, named, template pur-
tion (the XSEMPath expressions are p r i c e >
converted to regular XPath expres-
and newLocation to ‘price’). The
user selected the function sum as
attMoveprice1 , a generic function built
in the system. If none of the built-in
a custom set of functions (having the
same header as sum).
Fig. 5. Example of a Revalidation Script in XSL
the user selects the function sum to be used as attMoveprice1 . The resulting
revalidation script in XSL is depicted and explained in Figure 5.
7 Conclusion and Future Work
In this paper we proposed a formal model for schema evolution. We formally
defined changes that can be detected between two versions of a schema. We
sketched an implementation of an algorithm that produces revalidation script
on the basis of the detected set of changes.
The set of the detected changes is useful not only for the revalidation al-
gorithm, but it is also possible to immediately decide, whether revalidation is
needed or not and help the user to locate the changes in the schema.
The revalidation script can deal with structural modifications and with a sig-
nificant part of the content modifications automatically, user input is required
60 Jakub Malý, Jakub Klı́mek, Irena Mlýnková, Martin Nečaský
only where necessary (e.g. when a new content must be added during revalida-
tion). We plan to extend its capabilities in adding content in our future work.
The algorithm in its current version deals mainly with revalidation of 1)
structure and 2) data already present in the document. Because new data are
often required for new versions, we will focus our future work on obtaining this
data for the revalidated documents. For this purpose, we will utilize the existing
connection between PIM and PSM and and a new similar connection between
PIM and the model of a data storage (e.g. an ER schema [13]).
The change detection algorithm requires semantic links between the two com-
pared versions of the schema, which are not available for schemas were imported
and not created with an XSEM-enabled tool. Existing approaches to schema
comparison and matching can be utilized as heuristics for creating these links.
Type inheritance is a fundamental part of large specifications, but support
for inheritance is limited in the current version of XSEM. We intend to extend
both PIM and PSM levels with inheritance support.
References
1. XCase – tool for XML data modeling. http://xcase.codeplex.com/.
2. MOF 2.0 / XMI Mapping Specification, v2.1.1. OMG, 2009.
3. R. Bourret. XML and Databases. September 2005. http://www.rpbourret.com/
xml/XMLAndDatabases.htm.
4. D. Booth, C. K. Liu. Web Services Description Language (WSDL) Version 2.0
Part 0: Primer. W3C, June 2007. http://www.w3.org/TR/wsdl20-primer/.
5. G. Guerrini, M. Mesiti, and M. A. Sorrenti. Xml schema evolution: Incremental
validation and efficient document adaptation. In XSym, volume 4704 of Lecture
Notes in Computer Science, pages 92–106. Springer, 2007.
6. Hong Su, D. K. Kramer, E. A. Rundensteiner. XEM: XML Evolution Management,
Technical Report WPI-CS-TR-02-09. 2002.
7. M. Klettke. Conceptual xml schema evolution — the codex approach for design
and redesign. In Workshop Proceedings Datenbanksysteme in Business, Technologie
und Web (BTW 2007), pages 53–63, Aachen, Germany, March 2007.
8. J. Miller and J. Mukerji. MDA Guide Version 1.0.1. Object Management Group,
2003. http://www.omg.org/docs/omg/03-06-01.pdf.
9. M. Necasky. Conceptual Modeling for XML, volume 99 of Dissertations in Database
and Information Systems Series. IOS Press/AKA Verlag, January 2009.
10. M. Necaský and I. Mlýnková. Five-level multi-application schema evolution. In
DATESO, pages 90–104, 2009.
11. Object Management Group. UML 2.1.2 Specification, nov 2007. http://www.omg.
org/spec/UML/2.1.2/.
12. T. Bray, J. Paoli, C. M. Sperberg-McQueen, E. Maler, F. Yergeau. Extensible
Markup Language (XML) 1.0 (Fifth Edition). W3C, November 2008. http://
www.w3.org/TR/2008/REC-xml-20081126/.
13. B. Thalheim. Entity-Relationship Modeling: Foundations of Database Technology.
Springer Verlag, Berlin, Germany, 2000.
14. H. S. Thompson, D. Beech, M. Maloney, and N. Mendelsohn. XML Schema Part
1: Structures (Second Edition). W3C, October 2004. http://www.w3.org/TR/
xmlschema-1/.
15. W3C. XML Path Language (XPath) 2.0. http://www.w3.org/TR/xpath20/.