Proceedings Article10.1145/2448496.2448513
Querying graph databases with XPath
Leonid Libkin,Wim Martens,Domagoj Vrgoč +2 more
- 18 Mar 2013
- pp 129-140
TL;DR: This work investigates the behavior and applicability of XPath-like languages for querying graph databases, concentrating on their expressiveness and complexity of query evaluation, and introduces new types of tests that let them capture first-order logic with data comparisons and prove that the low complexity bounds continue to apply to such extended languages.
read more
Abstract: XPath plays a prominent role as an XML navigational language due to several factors, including its ability to express queries of interest, its close connection to yardstick database query languages (e.g., first-order logic), and the low complexity of query evaluation for many fragments. Another common database model---graph databases---also requires a heavy use of navigation in queries; yet it largely adopts a different approach to querying, relying on reachability patterns expressed with regular constraints.Our goal here is to investigate the behavior and applicability of XPath-like languages for querying graph databases, concentrating on their expressiveness and complexity of query evaluation. We are particularly interested in a model of graph data that combines navigation through graphs with querying data held in the nodes, such as, for example, in a social network scenario. As navigational languages, we use analogs of core and regular XPath and augment them with various tests on data values. We relate these languages to first-order logic, its transitive closure extensions, and finite-variable fragments thereof, proving several capture results. In addition, we describe their relative expressive power. We then show that they behave very well computationally: they have a low-degree polynomial combined complexity, which becomes linear for several fragments. Furthermore, we introduce new types of tests for XPath languages that let them capture first-order logic with data comparisons and prove that the low complexity bounds continue to apply to such extended languages. Therefore, XPath-like languages seem to be very well-suited to query graphs.
read more
Chat with Paper
AI Agents for this Paper
Find similar papers on Google Scholar, PubMed and Arxiv
Write a critical review of this paper
Analyze citations of this paper to find unaddressed research gaps
Citations
Querying graph databases
Pablo Barceló Baeza
- 22 Jun 2013
TL;DR: This work study the problem of querying graph databases, and, in particular, the expressiveness and complexity of evaluation for several general-purpose query languages, such as the regular path queries and its extensions with conjunctions and inverses.
Graph Pattern Matching.
Yinghui Wu,Arijit Khan +1 more
- 01 Jan 2019
TL;DR: In this article, a class of graph patterns, called dag patterns, is proposed, in which an edge denotes the connectivity in a data graph within a predefined number of hops.
241
TriAL: A Navigational Algebra for RDF Triplestores
Leonid Libkin,Juan L. Reutter,Adrián Soto,Domagoj Vrgoč +3 more
- 23 Mar 2018
TL;DR: The goal is to introduce languages that work directly over triples and are closed, i.e., they produce sets of triples, rather than graphs, and compares their language with previously studied graph query languages such as adaptations of XPath, regular path queries, and nested regular expressions.
Querying Graphs with Data
TL;DR: A family of languages that enable combination of data and topology querying for graph databases are presented, and it is shown that it includes efficient and highly expressive formalisms for querying both the structure of the data and the data itself.
The complexity of regular expressions and property paths in SPARQL
Katja Losemann,Wim Martens +1 more
TL;DR: This work formalizes the W3C semantics of property paths and investigates various query evaluation problems on graphs, proving that the membership problem for regular expressions with numerical occurrence indicators and negation is in polynomial time.
72
References
Survey of graph database models
Renzo Angles,Claudio Gutierrez +1 more
TL;DR: The main objective of this survey is to present the work that has been conducted in the area of graph database modeling, concentrating on data structures, query languages, and integrity constraints.
Semantics and complexity of SPARQL
TL;DR: In this paper, the authors provide a compositional semantics for the core part of SPARQL, and study the complexity of the evaluation of several fragments of the language, including graph patterns.
•Book
Elements of Finite Model Theory
Leonid Libkin
- 01 Jan 2004
TL;DR: This book describes applications in databases, complexity theory, and formal languages, as well as other branches of computer science, and highlights the computer science aspects of the subject.
Semantics and complexity of SPARQL
Jorge Pérez,Marcelo Arenas,Claudio Gutierrez +2 more
- 05 Nov 2006
TL;DR: This paper addresses systematically the formal study of SPARQL, concentrating in its graph pattern facility, providing a compositional semantics, and proving there are normal forms, among others that the evaluation of SParQL patterns is PSPACE-complete.
644
Related Papers (5)
Pablo Barceló Baeza
- 22 Jun 2013
Renzo Angles,Claudio Gutierrez +1 more
Mariano P. Consens,Alberto O. Mendelzon +1 more
- 02 Apr 1990
Isabel F. Cruz,Alberto O. Mendelzon,Peter T. Wood +2 more
- 01 Dec 1987