30.08.2014 Views

url - Universität zu Lübeck

url - Universität zu Lübeck

url - Universität zu Lübeck

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

10.4. LIST OF PUBLICATIONS 167<br />

Title: On the Intersection of XPath Expressions<br />

Authors: B. C. Hammerschmidt, M. Kempa and V. Linnemann<br />

Abstract: XPath is a common language for selecting nodes in an XML document. XPath<br />

uses so called path expressions which describe a navigation path through semistructured<br />

data. In the last years some of the characteristics of XPath have been discussed. Examples<br />

include the containment of two XPath expressions p and p ′ (p ⊆ p ′ ). To the best of<br />

our knowledge the intersection of two XPath expressions (p ∩ p ′ ) has not been treated yet.<br />

The intersection of p and p ′ is the set that contains all XML nodes that are selected both<br />

by p and p ′ . In the context of indexes in XML databases the emptiness of the intersection<br />

of p and p ′ is a major issue when updating the index. In order to keep the index consistent<br />

to the indexed data, it has to be detected if an index that is defined upon p is affected by<br />

a modifying database operation with the path expression p ′ .<br />

In this paper we introduce the intersection problem for XPath and give a motivation for its<br />

relevance. We present an efficient intersection algorithm for XPath expressions without<br />

the NOT operator that is based on finite automata. For expressions that contain the NOT<br />

operator the intersection problem becomes NP -complete leading to exponential computations<br />

in general. With an average case simulation we show that the NP -completeness<br />

is no significant limitation for most real-world database operations.<br />

Published: in [46]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!