Cypher
Cypher is a Query Language for Labeled Property Graphs. It is aimed to be easily readable by both humans and machines. It’s also designed to look familiar to people that know SQL.
Consider the following Cypher Query to find out who (or what) John Doe is in love with:
MATCH (Person { name: "John Doe" })-[:LOVES]->(whom) RETURN whomThe different Labeled Property Graph’s aspects can easily be recognized in this query:
- The
Nodethat has theLabel“Person” and aProperty“name” that equal “John Doe” - That has a
Relationship“LOVES” to another node, - that other
Nodewe assign to a variable “whom”, - which we return.