Dockerized environment to experiment and play with neo4j.
- docker
- python
- py2neo
- [optional] Bloom licence
make run
will setup a docker container with neo4j- interract from python
from py2neo import Graph, Node, Relationship
g = Graph("http://neo4j:123@localhost:7474")
a = Node("Person", name="Alice", age=33)
b = Node("Person", name="Bob", age=44)
KNOWS = Relationship.type("KNOWS")
g.merge(KNOWS(a, b), "Person", "name")
query = "MATCH (n) RETURN ID(n) as ID, n.Key as Key"
g.run(query).data()
make stop
to clean up
Setup script to run neo4j in docker comes from: link