Foundations of Modern Query Languages for Graph Databases
Authors:
Top Cited Papers
Open Access
- 26 September 2017
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Computing Surveys
- Vol. 50 (5) , 1-40
Abstract
We survey foundational features underlying modern graph query languages. We first discuss two popular graph data models: edge-labelled graphs , where nodes are connected by directed, labelled edges, and property graphs , where nodes and edges can further have attributes. Next we discuss the two most fundamental graph querying functionalities: graph patterns and navigational expressions . We start with graph patterns, in which a graph-structured query is matched against the data. Thereafter, we discuss navigational expressions, in which patterns can be matched recursively against the graph to navigate paths of arbitrary length; we give an overview of what kinds of expressions have been proposed and how they can be combined with graph patterns. We also discuss several semantics under which queries using the previous features can be evaluated, what effects the selection of features and semantics has on complexity, and offer examples of such features in three modern languages that are used to query graphs: SPARQL, Cypher, and Gremlin. We conclude by discussing the importance of formalisation for graph query languages; a summary of what is known about SPARQL, Cypher, and Gremlin in terms of expressivity and complexity; and an outline of possible future directions for the area.Keywords
All Related Versions
Funding Information
- Millennium Nucleus Center for Semantic Web Research (NC120004)
This publication has 53 references indexed in Scilit:
- Query languages for graph databasesACM SIGMOD Record, 2012
- nSPARQL: A navigational language for RDFJournal of Web Semantics, 2010
- Semantics and complexity of SPARQLACM Transactions on Database Systems, 2009
- Extending SPARQL with regular expression patterns (for querying RDF)Journal of Web Semantics, 2009
- Reasoning on regular path queriesACM SIGMOD Record, 2003
- Network Motifs: Simple Building Blocks of Complex NetworksScience, 2002
- Rewriting of Regular Expressions and Regular Path QueriesJournal of Computer and System Sciences, 2002
- Conjunctive query containment revisitedTheoretical Computer Science, 2000
- Outerjoin simplification and reordering for query optimizationACM Transactions on Database Systems, 1997
- An Algorithm for Subgraph IsomorphismJournal of the ACM, 1976