Cypher

Nadime Francis, Alastair Green, Paolo Guagliardo, Leonid Libkin, Tobias Lindaaker, Victor Marsault, Stefan Plantikow, Mats Rydberg, Petra Selmer, Andrés Taylor

2018 · 520 citations · 38 references

DOIFull text

Open access

Concepts

TL;DR

Cypher is an evolving property graph query language originally developed for Neo4j and now used by multiple commercial databases and researchers. The paper introduces Cypher 9, the first openCypher‑governed version, and compares its features to other property‑graph languages while outlining extensions planned for Cypher 10. Cypher 9 is presented through examples, industry use cases, and a formal semantic definition of its core read‑query features, including a property‑graph data model variant and an ASCII‑Art graph pattern‑matching mechanism.

Abstract

The Cypher property graph query language is an evolving language, originally designed and implemented as part of the Neo4j graph database, and it is currently used by several commercial database products and researchers. We describe Cypher 9, which is the first version of the language governed by the openCypher Implementers Group. We first introduce the language by example, and describe its uses in industry. We then provide a formal semantic definition of the core read-query features of Cypher, including its variant of the property graph data model, and its ASCII Art graph pattern matching mechanism for expressing subgraphs of interest to an application. We compare the features of Cypher to other property graph query languages, and describe extensions, at an advanced stage of development, which will form part of Cypher 10, turning the language into a compositional language which supports graph projections and multiple named graphs.

References

38