Conditional XPath
Author:
Open Access
- 1 December 2005
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Database Systems
- Vol. 30 (4) , 929-959
Abstract
XPath 1.0 is a variable free language designed to specify paths between nodes in XML documents. Such paths can alternatively be specified in first-order logic. The logical abstraction of XPath 1.0, usually called Navigational or Core XPath, is not powerful enough to express every first-order definable path. In this article, we show that there exists a natural expansion of Core XPath in which every first-order definable path in XML document trees is expressible. This expansion is called Conditional XPath. It contains additional axis relations of the form (child::n[F])+, denoting the transitive closure of the path expressed by child::n[F]. The difference with XPath's descendant::n[F] is that the path (child::n[F])+ is conditional on the fact that all nodes in between the start and end node of the path should also be labeled by n and should make the predicate F true. This result can be viewed as the XPath analogue of the expressive completeness of the relational algebra with respect to first-order logic.Keywords
This publication has 25 references indexed in Scilit:
- Semantic characterizations of navigational XPathACM SIGMOD Record, 2005
- First Order Paths in Ordered TreesLecture Notes in Computer Science, 2004
- Monadic datalog and the expressive power of languages for Web information extractionJournal of the ACM, 2004
- A Modal Perspective on Path ConstraintsJournal of Logic and Computation, 2003
- Reachability logic: an efficient fragment of transitive closure logicLogic Journal of the IGPL, 2000
- Representing and reasoning on XML documents: a description logic approachJournal of Logic and Computation, 1999
- Kleene algebra with testsACM Transactions on Programming Languages and Systems, 1997
- A proof system for finite trees1996
- Expressive completeness of temporal logic of treesJournal of Applied Non-Classical Logics, 1992
- Upper and lower bounds for first order expressibilityJournal of Computer and System Sciences, 1982