Figure Database-neo4j use

Source: Internet
Author: User
Tags neo4j

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.