Cypher Query Language simple to use
3.1. Basic SyntaxNode syntax: The cypher uses a pair of parentheses to represent one of the nodes: Several formats are provided: () the anonymous node (matrix) adds an ID (: Movie) movie label label to the node, declaring the node type. The index of NOE4J uses label, each index consists of a label and a property (Matrix:movie) (Matrix:movie {title: "The Matrix"}) node attribute (for example: title) represents a Key\value list ( Matrix:movie {title: "The Matrix", released:1997}) Relationship syntax:--represents a non-pointing relationship--Indicates a directed relationship [] can add information such as ID, property, type, etc. [ role]->-[:acted_in]->-[role:acted_in]->-[role:acted_in {roles: ["Neo"]}]-> pattern Syntax: Merging nodes and relational syntax represents a pattern. (Keanu:Person:Actor {name: "Keanu Reeves"})-[role:acted_in {roles: ["Neo"]}]-> (Matrix:movie {title: "The Matr IX "}) pattern Identifiers: Assigning IDs to patterns, adding modularity and reuse for example acted_in = (:P Erson)-[:acted_in]-> (: Movie) http://blog.csdn.net/ wangweislk/article/details/47661863
Figure Database-neo4j use