using RedisGraph
db_conn = getdatabase()
g = Graph("TestGraph", db_conn)
node1 = Node("FirstSimpleNode", ["Label1"], Dict("IntProp" => 1, "StringProp" => "node prop", "BoolProp" => true))
node2 = Node("SecondSimpleNode", ["Label2", "Label3"])
edge = Edge("SimpleEdge", node1, node2, Dict("IntProp" => 1, "StringProp" => "node prop", "BoolProp" => false))
addnode!(g, node1)
addnode!(g, node2)
addedge!(g, edge)
res = commit(g)
res = query(g, "MATCH (n1)-[e]->(n2) RETURN n1, e, n2")
println(res.results[1])
delete(g)
julia >= 1.6.0
redisgraph >= 2.8
- redisgraph needs to be running.
You can install it manually
Or you can use docker container instead of. For example:
docker run -p 6379:6379 -it --rm redislabs/redisgraph
- add RedisGraph from the github repo
pkg> add https://github.com/xyxel/RedisGraph.jl
More information about package management: https://pkgdocs.julialang.org/v1/