Skip to main content Accessibility help
×
Hostname: page-component-77c89778f8-9q27g Total loading time: 0 Render date: 2024-07-17T05:39:01.590Z Has data issue: false hasContentIssue false

11 - Patterns and mappings

from Part Three - XML DATA EXCHANGE

Published online by Cambridge University Press:  05 June 2014

Marcelo Arenas
Affiliation:
Pontificia Universidad Catolica de Chile
Pablo Barceló
Affiliation:
Universidad de Chile
Leonid Libkin
Affiliation:
University of Edinburgh
Filip Murlak
Affiliation:
Uniwersytet Warszawski, Poland
Get access

Summary

XML schema mappings are expressed in terms of tree patterns, a simple query language for XML trees that plays the role analogous to that of conjunctive queries for relational databases. In this chapter we define the syntax and semantics of tree patterns, introduce a classification based on the features they use, and determine the complexity of basic computational problems. Then we do the same for XML schema mappings.

Tree patterns: classification and complexity

In XML trees information can be represented by means of data values, as well as the structure of the tree. Let us return to the example shown in Figure 10.1. The edge between the node storing Scotland and the node storing Mary I represents the fact that Mary I ruled Scotland. The value Charles I appearing twice informs us that Charles I ruled both Scotland and England. The node storing Mary I coming directly after the node storing James V corresponds to the fact that Mary I succeeded James V on the throne of Scotland. This already suggests the querying features needed to extract information from XML trees: child, next sibling, and their transitive closures: descendant, following sibling. We call these four features axes. It is also necessary to compare data values stored in different nodes.

In the light of PART TWO, a natural query language for XML trees is the family of conjunctive queries over XML trees viewed as databases over two sorts of objects: tree nodes, and data values. Relations in such representations include child, next sibling, and relations associating attribute values with nodes.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2014

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×