Search notes:

neo4j

A graph database.

Cypher

Cypher is a declarative graph query language (GQL) for neo4j. (Compare with SPARQL and OpenCypher).

Keywords

MATCH

Describes the structure of pattern searched for.
MATCH (charlie:Person { name:'Charlie Sheen' })-[:ACTED_IN]-(movie:Movie)
RETURN movie

WHERE

Add additional constraints to patterns.
MATCH (start:Content)-[:RELATED_CONTENT]->(content:Content)
WHERE content.source = 'user'
OPTIONAL MATCH (content)-[r]-()
DELETE r, content

CREATE

Create relationships.

DELETE

Delete relationships.
MATCH (start:Content)-[:RELATED_CONTENT]->(content:Content)
WHERE content.source = 'user'
OPTIONAL MATCH (content)-[r]-()
DELETE r, content

SET

Add values to properties, add labels no nodes.

REMOVE

Remove those labels and labels (?).

Index