Edinburgh Research Explorer

Structural properties of XPath fragments

Research output: Contribution to journalArticle

Original languageEnglish
Pages (from-to)3-31
Number of pages29
JournalTheoretical Computer Science
Volume336
Issue number1
DOIs
Publication statusPublished - 2005

Abstract

We study structural properties of each of the main sublanguages of navigational XPath (W3c Recommendation) commonly used in practice. First, we characterize the expressive power of these language fragments in terms of both logics and tree patterns. Second, we investigate closure properties, focusing on the ability to perform basic Boolean operations while remaining within the fragment. We give a complete picture of the closure properties of these fragments, treating XPath expressions both as functions of arbitrary nodes in a document tree, and as functions that are applied only at the root of the tree. Finally, we provide sound and complete axiom systems and normal forms for several of these fragments. These results are useful for simplification of XPath expressions and optimization of XML queries.

ID: 19841095