[Paper Review] Towards Temporal Graph Databases
This paper proposes a temporal graph data model and a query language (TEG-QL) for modeling and querying evolving graph data, such as social networks over time. Built on attribute graphs and natively translatable to Neo4j’s Cypher, TEG-QL supports time-aware queries via temporal intervals and snapshot operations, enabling efficient time navigation and historical analysis with prototype implementation and initial performance benchmarks.
In spite of the extensive literature on graph databases (GDBs), temporal GDBs have not received too much attention so far. Temporal GBDs can capture, for example, the evolution of social networks across time, a relevant topic in data analysis nowadays. In this paper we propose a data model and query language (denoted TEG-QL) for temporal GDBs, based on the notion of attribute graphs. This allows a straightforward translation to Neo4J, a well-known GBD. We present extensive examples of the use of TEG-QL, and comment our implementation.
Motivation & Objective
- To address the lack of attention to temporal graph databases despite the dynamic nature of real-world networks like social media.
- To design a data model that captures temporal evolution of nodes, edges, and attributes using timestamps and validity intervals.
- To define a SQL/SPARQL-like query language (TEG-QL) that supports time-based filtering and path queries over evolving graphs.
- To enable seamless translation of TEG-QL queries into Cypher for execution on Neo4j, leveraging existing graph database infrastructure.
- To implement a prototype with a visual interface for time navigation of temporal graph results.
Proposed method
- The data model represents temporal graphs as attributed graphs with four node types: object nodes (entities), edge nodes (relationships), attribute nodes (properties), and value nodes (attribute values).
- Each node is associated with a temporal interval, including a special 'Now' value to indicate current validity, enabling time-aware data modeling.
- TEG-QL is designed with FROM, SELECT, and WHERE clauses, supporting path patterns, attribute selection, and temporal conditions such as IN [1986-1989] or SNAPSHOT.
- Query translation maps TEG-QL paths into Cypher by translating object and edge nodes into labeled nodes and building paths through attribute and value nodes.
- Temporal conditions in the WHERE clause and SNAPSHOT/IN operators are handled post-execution via a Java-based filter, though the paper notes this is a naive approach.
- A prototype system was implemented with a web-based visual interface using a sliding time bar to navigate graph states across time, deployed on AWS.
Experimental results
Research questions
- RQ1How can a temporal graph database model be designed to capture the evolution of network structures like social graphs over time?
- RQ2What is a query language design that supports time-aware path and attribute queries on evolving graphs while remaining compatible with existing graph databases?
- RQ3How can temporal queries be efficiently translated and executed on a standard graph database like Neo4j?
- RQ4What are the performance characteristics of such a system for realistic graph sizes and common temporal queries?
- RQ5How can users visually explore temporal graph states across time using an interactive interface?
Key findings
- The proposed TEG-QL language successfully supports time-aware queries, including filtering by temporal intervals and retrieving snapshots of graph states.
- The prototype system enables interactive time navigation of graph results using a visual interface with a sliding time bar, demonstrating usability for temporal analysis.
- Query translation from TEG-QL to Cypher is efficient and straightforward, with negligible translation overhead.
- Initial performance benchmarks on a T2.Micro AWS instance showed query execution times between 4 and 6 seconds for typical TEG-QL queries on a graph with 1,000 people, 100 buildings, 2,500 friendships, and 500 residence relationships.
- The current implementation uses a post-execution filtering approach for temporal conditions, which the authors identify as a limitation requiring future optimization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.