본문 바로가기

DKE/Neo4j

(15)
[Neo4j] MATCH (Relationships in depth) / 2023.02.07 https://neo4j.com/docs/cypher-manual/current/clauses/match/ MATCH - Cypher Manual The `MATCH` clause is used to search for the pattern described in it. neo4j.com *Example Graph CREATE (charlie:Person {name: 'Charlie Sheen'}), (martin:Person {name: 'Martin Sheen'}), (michael:Person {name: 'Michael Douglas'}), (oliver:Person {name: 'Oliver Stone'}), (rob:Person {name: 'Rob Reiner'}), (wallStreet:M..
[Neo4j] MATCH (Relationship basics) / 2023.02.06 https://neo4j.com/docs/cypher-manual/current/clauses/match/ MATCH - Cypher Manual The `MATCH` clause is used to search for the pattern described in it. neo4j.com *Example Graph CREATE (charlie:Person {name: 'Charlie Sheen'}), (martin:Person {name: 'Martin Sheen'}), (michael:Person {name: 'Michael Douglas'}), (oliver:Person {name: 'Oliver Stone'}), (rob:Person {name: 'Rob Reiner'}), (wallStreet:M..
[Neo4j] MATCH (Basic node finding) / 2023.02.06 https://neo4j.com/docs/cypher-manual/current/clauses/match/ MATCH - Cypher Manual The `MATCH` clause is used to search for the pattern described in it. neo4j.com MATCH 명령어를 사용하면 Neo4j가 데이터베이스에서 검색할 패턴을 지정할 수 있음 *Example Graph CREATE (charlie:Person {name: 'Charlie Sheen'}), (martin:Person {name: 'Martin Sheen'}), (michael:Person {name: 'Michael Douglas'}), (oliver:Person {name: 'Oliver Stone'}),..
[Neo4j] REMOVE / 2023.02.03 https://neo4j.com/docs/cypher-manual/current/clauses/remove/ REMOVE - Cypher Manual The `REMOVE` clause is used to remove properties from nodes and relationships, and to remove labels from nodes. neo4j.com REMOVE 명령어는 속성과 label을 제거하는데에 사용됨 노드 및 관계를 삭제하려면 DELETE 명령어를 사용해야 함 *Example Graph CREATE (peter:Swedish:German {name:'Peter', age:34}), (timothy:Swedish {name:'Timothy', age:25}), (andy:Swedi..
[Neo4j] SET / 2023.02.03 https://neo4j.com/docs/cypher-manual/current/clauses/set/ SET - Cypher Manual The `SET` clause is used to update labels on nodes and properties on nodes and relationships. neo4j.com * Example Graph create (peter {name:'Peter', age:34}), (george {name:'George'}), (andy:Swedish{name:'Andy', age:36, hungry:TRUE}), (stefan {name:'Stefan'}), (george)-[:KNOWS]->(peter), (andy)-[:KNOWS]->(peter), (stef..
[Neo4j] DELETE / 2023.02.03 https://neo4j.com/docs/cypher-manual/current/clauses/delete/ DELETE - Cypher Manual The `DELETE` clause is used to delete nodes, relationships or paths. neo4j.com * Example Graph CREATE (keanu:Person {name: 'Keanu Reever'}), (laurence:Person {name: 'Laurence Fishburne'}), (carrie:Person {name: 'Carrie-Anne Moss'}), (tom:Person {name: 'Tom Hanks'}), (theMatrix:Movie {title: 'The Matrix'}), (keanu..
[Neo4j] CREATE / 2023.02.02 https://neo4j.com/docs/cypher-manual/current/clauses/create/ CREATE - Cypher Manual The `CREATE` clause is used to create nodes and relationships. neo4j.com 1. single node create (n) 2. multiple node create (n), (m) 3. a node with a label create (n:Person) 4. a node with multiple labels create (n:Person:Swedish) 5. create node and add labels and properties create (n:Person {name: 'Andy', title: ..