skip to main content
10.1145/1142351.1142397acmconferencesArticle/Chapter ViewAbstractPublication PagespodsConference Proceedingsconference-collections
Article

Structural characterizations of the semantics of XPath as navigation tool on a document

Published: 26 June 2006 Publication History

Abstract

Given a document D in the form of an unordered labeled tree, we study the expressibility on D of various fragments of XPath, the core navigational language on XML documents. We give characterizations, in terms of the structure of D, for when a binary relation on its nodes is definable by an XPath expression in these fragments. Since each pair of nodes in such a relation represents a unique path in D, our results therefore capture the sets of paths in D definable in XPath. We refer to this perspective on the semantics of XPath as the "global view." In contrast with this global view, there is also a "local view" where one is interested in the nodes to which one can navigate starting from a particular node in the document. In this view, we characterize when a set of nodes in D can be defined as the result of applying an XPath expression to a given node of D. All these definability results, both in the global and the local view, are obtained by using a robust two-step methodology, which consists of first characterizing when two nodes cannot be distinguished by an expression in the respective fragments of XPath, and then bootstrapping these characterizations to the desired results.

References

[1]
F. Bancilhon. On the Completeness of Query Languages for Relational Data Bases. In MFCS, pages 112--123, Zakopane, Poland, 1978. Springer LNCS 64.]]
[2]
M. Benedikt, W. Fan, and F. Geerts. XPath Satisfiability in the Presence of DTDs. In ACM PODS, pages 25--36, Baltimore, MD, USA, 2005.]]
[3]
M. Benedikt, W. Fan, and G. M. Kuper. Structural Properties of XPath Fragments. In ICDT, pages 79--95, Siena, Italy, 2003. Springer LNCS 2572.]]
[4]
A. Berglund, S. Boag, D. Chamberlin, M. F. Fernández, M. Kay, J. Robie, and J. Siméon. XML Path Language (XPath) Version 2.0. Technical report, W3C, 2005.]]
[5]
P. Blackburn, M. de Rijke, and Y. Venema. Modal Logic. Cambridge University Press, Cambridge, UK, 2001.]]
[6]
P. Buneman, M. Grohe, and C. Koch. Path Queries on Compressed XML. In VLDB, pages 141--152, Berlin, Germany, 2003.]]
[7]
A. K. Chandra and D. Harel. Computable Queries for Relational Data Bases. J. Comp. Sys. Sci., 21(2):156--178, 1980.]]
[8]
H.-D. Ebbinghaus and J. Flum. Finite Model Theory. Springer Verlag, Berlin, 1995.]]
[9]
I. Fundulaki and M. Marx. Specifying Access Control Policies for XML Documents with XPath. In ACM SACMAT, pages 61--69, New York, NY, USA, 2004.]]
[10]
R. Goldman and J. Widom. DataGuides: Enabling Query Formulation and Optimization in Semistructured Databases. In VLDB, pages 436--445, Athens, Greece, 1997.]]
[11]
G. Gottlob and C. Koch. Monadic Queries over Tree-Structured Data. In IEEE LICS, pages 189--202, Copenhagen, Denmark, 2002.]]
[12]
G. Gottlob, C. Koch, and R. Pichler. Efficient Algorithms for Processing XPath Queries. ACM Trans. Database Syst., 30(2):444--491, 2005.]]
[13]
M. Grohe. Equivalence in Finite-Variable Logics is Complete for Polynomial Time. Combinatorica, 19(4):507--532, 1999.]]
[14]
R. Kaushik, P. Shenoy, P. Bohannon, and E. Gudes. Exploiting Local Similarity for Indexing Paths in Graph-Structured Data. In IEEE ICDE, pages 129--140, San Jose, CA, USA, 2002.]]
[15]
L. Krzeszczakowski. Pebble Games on Trees. In EACSL CSL, pages 359--371, Vienna, Austria, 2003. Springer LNCS 2803.]]
[16]
L. Libkin. Logics for Unranked Trees: An Overview. In EATCS ICALP, pages 35--50, Lisbon, Portugal, 2005. Springer LNCS 3580.]]
[17]
M. Marx. Conditional XPath, the First Order Complete XPath Dialect. In ACM PODS, pages 13--22, Paris, France, 2004.]]
[18]
M. Marx and M. de Rijke. Semantic Characterizations of Navigational XPath. SIGMOD Record, 34(2):41--46, 2005.]]
[19]
G. Miklau and D. Suciu. Containment and Equivalence for a Fragment of XPath. J. ACM, 51(1):2--45, 2004.]]
[20]
T. Milo and D. Suciu. Index Structures for Path Expressions. In ICDT, pages 277--295, Jerusalem, Israel, 1999.]]
[21]
J. Paredaens. On the Expressive Power of the Relational Algebra. Inf. Process. Lett., 7(2):107--111, 1978.]]
[22]
P. Ramanan. Covering Indexes for XML Queries: Bisimulation - Simulation = Negation. In VLDB, pages 165--176, Berlin, Germany, 2003.]]
[23]
A. Tarski. On the Calculus of Relations. J. Symb. Log., 6(3):73--89, 1941.]]
[24]
A. Tarski and S. Givant. A Formalization of Set Theory Without Variables. American Mathematical Society, Providence, RI, USA, 1987.]]

Cited By

View all
  • (2023)Expressive Completeness of Two-Variable First-Order Logic with Counting for First-Order Logic Queries on Rooted Unranked Trees2023 38th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS)10.1109/LICS56636.2023.10175828(1-13)Online publication date: 26-Jun-2023
  • (2016)The Exact Complexity of the First-Order Logic Definability ProblemACM Transactions on Database Systems10.1145/288609541:2(1-14)Online publication date: 11-May-2016
  • (2015)Relative expressive power of downward fragments of navigational query languages on trees and chainsProceedings of the 15th Symposium on Database Programming Languages10.1145/2815072.2815081(59-68)Online publication date: 27-Oct-2015
  • Show More Cited By

Index Terms

  1. Structural characterizations of the semantics of XPath as navigation tool on a document

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Conferences
    PODS '06: Proceedings of the twenty-fifth ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems
    June 2006
    382 pages
    ISBN:1595933182
    DOI:10.1145/1142351
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Sponsors

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 26 June 2006

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. XPath
    2. definability
    3. expressibility

    Qualifiers

    • Article

    Conference

    SIGMOD/PODS06

    Acceptance Rates

    PODS '06 Paper Acceptance Rate 35 of 185 submissions, 19%;
    Overall Acceptance Rate 642 of 2,707 submissions, 24%

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)2
    • Downloads (Last 6 weeks)0
    Reflects downloads up to 03 Mar 2025

    Other Metrics

    Citations

    Cited By

    View all
    • (2023)Expressive Completeness of Two-Variable First-Order Logic with Counting for First-Order Logic Queries on Rooted Unranked Trees2023 38th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS)10.1109/LICS56636.2023.10175828(1-13)Online publication date: 26-Jun-2023
    • (2016)The Exact Complexity of the First-Order Logic Definability ProblemACM Transactions on Database Systems10.1145/288609541:2(1-14)Online publication date: 11-May-2016
    • (2015)Relative expressive power of downward fragments of navigational query languages on trees and chainsProceedings of the 15th Symposium on Database Programming Languages10.1145/2815072.2815081(59-68)Online publication date: 27-Oct-2015
    • (2015)The impact of transitive closure on the expressiveness of navigational query languages on unlabeled graphsAnnals of Mathematics and Artificial Intelligence10.1007/s10472-013-9346-x73:1-2(167-203)Online publication date: 1-Jan-2015
    • (2014)Synopsis Data Structures for XML DatabasesEncyclopedia of Information Science and Technology, Third Edition10.4018/978-1-4666-5888-2.ch183(1906-1913)Online publication date: 31-Jul-2014
    • (2013)What we talk about when we talk about graphsProceedings of the Joint EDBT/ICDT 2013 Workshops10.1145/2457317.2457349(184-184)Online publication date: 18-Mar-2013
    • (2012)The impact of transitive closure on the boolean expressiveness of navigational query languages on graphsProceedings of the 7th international conference on Foundations of Information and Knowledge Systems10.1007/978-3-642-28472-4_8(124-143)Online publication date: 5-Mar-2012
    • (2012)Storing and Indexing Massive RDF DatasetsSemantic Search over the Web10.1007/978-3-642-25008-8_2(31-60)Online publication date: 28-Jan-2012
    • (2009)On the Expressive Power of the Relational Algebra on Finite Sets of Relation PairsIEEE Transactions on Knowledge and Data Engineering10.1109/TKDE.2008.22121:6(939-942)Online publication date: 1-Jun-2009
    • (2009)A methodology for coupling fragments of XPath with structural indexes for XML documentsInformation Systems10.1016/j.is.2008.09.00334:7(657-670)Online publication date: 1-Nov-2009
    • Show More Cited By

    View Options

    Login options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Figures

    Tables

    Media

    Share

    Share

    Share this Publication link

    Share on social media