Skip to main content Accessibility help
×
Hostname: page-component-5c6d5d7d68-xq9c7 Total loading time: 0 Render date: 2024-08-16T01:53:21.218Z Has data issue: false hasContentIssue false

13 - Answering tuple queries

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

The ultimate goal of data exchange is to answer queries over the target data in a way consistent with the source data. In this chapter we focus on queries that return sets of tuples of data values. The reason for this restriction is twofold:

  1. • first, for such queries the notion of certain answers is easy to define; and

  2. • second, already for these queries we shall be able to identify features that need to be ruled out in order to ensure tractability of query answering.

We deal with a query language based on tree patterns, as it forms a natural analog of (unions of) conjunctive queries. We show that the problem of finding certain answers is in CONP, just like for conjunctive queries in the relational case. We then identify several features specific to XML, such as disjunction in DTDs or the horizontal order, that make the query answering problem intractable. Finally, we give a polynomial query answering algorithm that computes certain answers for unions of conjunctive queries that only use vertical navigation, restricted to schema mappings with nested-relational DTDs.

The query answering problem

Just like in the relational case, we study conjunctive queries and their unions. As we have learned, it is convenient to work with tree patterns, which have very similar expressivity to conjunctive queries. Thus, for querying XML documents we use the same language as for the dependencies: tree patterns with equalities and inequalities, to capture the analog of relational conjunctive queries (with inequalities).

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
×