Skip to content

Supported Query Languages

Quine supports several different ways of querying the graph data. This includes the established Cypher query language, as well as a novel mechanism for querying future data referred to here as Standing Queries.

Cypher

Cypher is the most widely use query language for interacting with data in a property graph format. It is structurally and syntactically similar to SQL, with the main difference being the MATCH clause. The idea of MATCH is to focus on declaratively describing the graph shape (pattern) that you want and then to let the query compiler pick a good execution plan. What would normally require multiple JOIN's in a relational model often just reduces to one MATCH with a pattern that has multiple edges:

MATCH (n: Person)-[:has_parent]->(p: Person)-[:lives_in]->(c: City)
RETURN n.name AS name, c.name AS parentsCity

Compare the above Cypher to the equivalent SQL below:

SELECT n.name AS name, c.name AS parentsCity
FROM persons AS n
JOIN persons AS p ON n.parent = p.id
JOIN cities AS c ON p.city = c.id

Cypher queries can be issued to Quine in several ways: