paperbot · PL 论文追踪

RSS

Graphiti: Bridging Graph and Relational Database Queries

PLDI 9(PLDI)2025
Yang He, Ruijie Fang, Işıl Dillig, Yuepeng Wang

尚未生成 AI 速览(可能缺少 API key 或等待下次运行补跑)。

原文摘要(Abstract)

This paper presents an automated reasoning technique for checking equivalence between graph database queries written in Cypher and relational queries in SQL. To formalize a suitable notion of equivalence in this setting, we introduce the concept of database transformers , which transform database instances between graph and relational models. We then propose a novel verification methodology that checks equivalence modulo a given transformer by reducing the original problem to verifying equivalence between a pair of SQL queries. This reduction is achieved by embedding a subset of Cypher into SQL through syntax-directed translation, allowing us to leverage existing research on automated reasoning for SQL while obviating the need for reasoning simultaneously over two different data models. We have implemented our approach in a tool called Graphiti and used it to check equivalence between graph and relational queries. Our experiments demonstrate that Graphiti is useful both for verification and refutation and that it can uncover subtle bugs, including those found in Cypher tutorials and academic papers.

链接与引用

DOI 原文 ·

BibTeX
@article{paperbot3124,
  title = {Graphiti: Bridging Graph and Relational Database Queries},
  author = {Yang He and Ruijie Fang and Işıl Dillig and Yuepeng Wang},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {9},
  number = {PLDI},
  year = {2025},
  doi = {10.1145/3729319}
}