PG-Triggers: Triggers for Property Graphs
Stefano Ceri, Anna Bernasconi, Alessia Gagliardi, Davide Martinenghi,, Luigi Bellomarini, Davide Magnanimi

TL;DR
This paper proposes PG-Triggers, a standard for adding trigger functionality to property graph databases like Neo4j and Memgraph, enabling reactive graph management inspired by SQL standards.
Contribution
It introduces PG-Triggers with syntax and semantics, and demonstrates their implementation on Neo4j and Memgraph, advancing active database features for graph systems.
Findings
PG-Triggers can be implemented on Neo4j using APOC triggers.
The approach applies similarly to Memgraph.
A COVID-19 inspired application illustrates PG-Triggers in practice.
Abstract
Graph databases are emerging as the leading data management technology for storing large knowledge graphs; significant efforts are ongoing to produce new standards (such as the Graph Query Language, GQL), as well as enrich them with properties, types, schemas, and keys. In this article, we introduce PG-Triggers, a complete proposal for adding triggers to Property Graphs, along the direction marked by the SQL3 Standard. We define the syntax and semantics of PG-Triggers and then illustrate how they can be implemented on top of Neo4j, one of the most popular graph databases. In particular, we introduce a syntax-directed translation from PG-Triggers into Neo4j, which makes use of the so-called {\it APOC triggers}; APOC is a community-contributed library for augmenting the Cypher query language supported by Neo4j. We also cover Memgraph, and show that our approach applies to this system in a…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsGraph Theory and Algorithms · Distributed systems and fault tolerance · Advanced Graph Neural Networks
