R&D/database

Graph DB Neo4J

sunshout 2018. 4. 8. 15:33

Graph DB

정의


Cypher Query

명령어 

 

 

 start

 그래프에서 출발점

 

 match

 

 

 create

 노드 및 관계를 생성

 

 delete

 노드 및 관계, 속성을 제거 

 

   


python driver 

Version >=3 이상을 권장한다.

pip install py2neo


Database 에 접속하기


from py2neo import Graph

graph = Graph(host="192.168.1.145", password="1234")


노드를 생성

create (company {name:"MyCompany"}) return company;


Reference

주요 명령어 http://woner.tistory.com/25

py2neo http://py2neo.org/v4/database.html