docker run -it -d -p 7474:7474 -p 7687:7687 neo4j:3.4
http://localhost:7474/browser/
neo4j/neo4j
# -*- coding: utf-8 -*-
# @Author: xiaodong
# @Date : 2020/7/20
import json
from py2neo import NodeMatcher
from py2neo import Graph, Node, Relationship
def load_json(path):
with open(path, encoding="utf-8") as file:
data = json.load(file)
return data
g = Graph("bolt://localhost:7687", password="your-password")
matcher = NodeMatcher(g)
if __name__ == '__main__':
records = load_json("movies.json")
history =