Example 5. Consider the update
μ
3
= DELETE FROM RELATED_ART
WHERE ARTICLE = 'A6B2' AND
RELATED = 'A6B1'.
(i) Relevant paths: δ
4
= article/relArticle.
(ii) Updates for relevant path δ
4
: From Case 4 of the
algorithm, we have:
Affected Tuples (in table ARTICLES):
T = { < A6B2, …, marcus@nyt.com> }.
For affected tuple <A6B2, …, marcus@nyt.com>,
we have:
U
4
= { let $a := doc("Article.xml")/article[code = A6B2]
for $u
in $a/relArticle do delete $u,
for $u
in I do insert $u
into $a }, where
I = { <relArticle>
<code>A6A5</code>
<title>The Bracket</title>
<URL>nytimes.com/article?code=A6A5</URL>
</relArticle>}.
5 CONCLUSIONS
We first introduced the concept of view path and
showed how to analyze the correspondence
assertions to identify which view nodes in a view
path are affected by a base update. Then, we
presented the View_Maintainer Algorithm and we
proved that the algorithm correctly maintains a view.
We also established sufficient conditions, based on
correspondence assertions, to prove that a list of
updates correctly maintains a view.
The effectiveness of the View_Maintainer
Algorithm is guaranteed for externally maintained
view since: (i) View updates are defined based
solely on the source update and current source state.
Hence, no access to the materialized view or other
data source is required. This is important, because
accessing a remote data source may be too slow. (ii)
The updates are applied to the view without
accessing any data source. Therefore, the view V is
self-maintainable. (iii) The implementation of the
View_Maintainer Algorithm is very efficient, since
most of the work is done at view definition time.
REFERENCES
Abiteboul, S., McHugh, J., Rys, M., Vassalos, V., Wiener,
J. L., 1998. Incremental Maintenance for Materialized
Views over Semistructured Data. In VLDB, pp. 38–49.
Ali, M. A., Fernandes, A. A., Paton, N. W., 2000.
Incremental Maintenance for Materialized OQL
Views. In DOLAP, pp. 41–48.
Bernstein, P. A. and Melnik, S., 2007. Model Management
2.0: Manipulating Richer Mappings. In SIGMOD, pp.
1-12.
Bohannon, P., Choi, B., Fan, W., 2004. Incremental
evaluation of schema-directed XML publishing. In
SIGMOD, pp. 13-18.
Ceri, S. and Widom, J., 1991. Deriving productions rules
for incremental view maintenance. In VLDB, pp. 577–
589.
Dimitrova, K., El-Sayed, M., Rundensteiner, E. A., 2003.
Order-sensitive View Maintenance of Materialized
XQuery Views. In ER, pp. 144–157.
Eisenberg, A., Melton, J., Kulkarni, K., Michels, J.E. and
Zemke, F., 2004. SQL:2003 has been published. In
SIGMOD, vol. 33, no. 1, pp. 119–126.
EL-Sayed, M., Wang, L., Ding, L., Rudensteiner, E.,
2002. An algebraic approach for Incremental
Maintenance of Materialized Xquery Views. In
WIDM, pp. 88–91.
Fuxman, A., Hernandez, M. A., Ho, H., Miller, R. J.,
Papotti, P., Popa, L., 2006. Nested mappings: schema
mapping reloaded. In VLDB, pp. 67–78.
Gupta, A. and Mumick, I.S., 2000. Materialized Views.
MIT Press.
Jiang, H., HO, H., Popa, L., Han, W., 2007. Mapping-
Driven XML Transformation. In WWW, pp. 1063–
1072.
Kuno, H. A. and Rundensteiner, E. A., 1998. Incremental
Maintenance of Materialized Object-Oriented Views
in MultiView: Strategies and Performance Evaluation.
In IEEE Transaction on Data and Knowledge
Engineering, vol. 10, no. 5, pp. 768–792.
Liefke, H. and Davidson, S. B., 2000. View Maintenance
for Hierarchical Semistructured Data. In DaWaK, pp.
114–125.
Miller, R. J., 2007. Retrospective on Clio: Schema
Mapping and Data Exchange in Practice. In
International Workshop on Description Logics.
Popa, L., Velegrakis, Y., Miller, R. J., Hernandez, M. A.,
Fagin, R., 2002. Translating Web Data. In VLDB, pp.
598–609.
Sawires, A., Tatemura, J., Po, O., Agrawal, D., Candan,
K., 2005. Incremental Maintenance of Path-expression
Views. In SIGMOD, pp. 443–454.
Vidal, V. M. P., Casanova, M. A., Lemos, F. C., 2006.
Automatic Generation of SQL/XML Views. In: SBBD,
pp. 221-235.
W3C XML Query Update Facility, 2007.
http://www.w3.org/TR/xqupdate. Visited: 12/12/2007.
Yu, C. and Popa, L., 2003. Constraint-Based XML Query
Rewriting For Data Integration. In SIGMOD, pp. 371–
382.
Zhuge, Y. and Garcia-Molina, H., 1998. Graph Structured
Views and their Incremental Maintenance. In ICDE,
pp. 116–125.
A MAPPING-DRIVEN APPROACH FOR SQL/XML VIEW MAINTENANCE
73