Darth Vader’s Social Network: Navigating Star Wars Universe with Neo4j
Traversing the Star Wars Social Graph
Cypher Query Language
Cypher is becoming sufficiently mature and has become the de facto query language for manipulating and mutating the graph. Distilling Cypher down to its basic structure, it is an ASCII-art based query language where using ASCII-art sticks and arrows define the query string to execute against the database.
(Node) - [r:RelationshipType] -> (Node)
So let’s see it in action! (Note: You can download this sample application in its entirety here on github if you are interested in reviewing the code locally or running the unit tests that will execute the methods and queries described below).