A reasonably functional Neo4j driver for the Julia programming language.
Clone or download
glesica Merge pull request #15 from GearsAD/master
Updated Neo4j.jl for Julia 0.7/1.0
Latest commit d16e360 Oct 7, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src test Julia 1.0 should also pass Oct 7, 2018
test print fix Oct 7, 2018
.gitignore Get things in working order. Jun 13, 2014
.travis.yml test Julia 1.0 should also pass Oct 7, 2018
AUTHORS Add authors file. Jun 14, 2014
LICENSE.md Neo4j.jl.jl generated files. Jun 12, 2014
README.md requested fixes to Readme Oct 7, 2018
REQUIRE improvements Oct 7, 2018

README.md

Neo4j.jl

Build Status codecov.io

Neo4j Neo4j Neo4j

A Julia client for the Neo4j graph database.

Really easy to use, have a look at test/runtests.jl for the available methods.

Basic Usage

c = Connection("localhost"; user="neo4j", password="neo4j")
tx = transaction(c)
tx("CREATE (n:Lang) SET n.name = \$name", "name" => "Julia")
tx("MATCH (n:Lang) RETURN n LIMIT {limit}", "limit" => 10)
results = commit(tx)

You can also submit a transaction to the server without committing it. This will return a result set but will keep the transaction open both on the client and server:

results = tx("MATCH (n) RETURN n"; submit=true)

Rollbacks are also supported:

rollback(tx)

If the goal is to simply run a MATCH query and get the result in the form of a DataFrames.DataFrame object, the cypherQuery function can be used. The cypherQuery implementation performs the query in a single transaction which automatically opens and closes the transaction:

results = cypherQuery("MATCH (n) RETURN n.property AS Property")