Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/glesica/neo4j.jl
A reasonably functional Neo4j driver for the Julia programming language.
https://github.com/glesica/neo4j.jl
database-driver graph-database julia mit-license neo4j
Last synced: about 2 months ago
JSON representation
A reasonably functional Neo4j driver for the Julia programming language.
- Host: GitHub
- URL: https://github.com/glesica/neo4j.jl
- Owner: glesica
- License: other
- Created: 2014-06-12T22:41:28.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-08-11T14:19:46.000Z (over 2 years ago)
- Last Synced: 2024-10-11T07:19:40.657Z (2 months ago)
- Topics: database-driver, graph-database, julia, mit-license, neo4j
- Language: Julia
- Homepage:
- Size: 68.4 KB
- Stars: 36
- Watchers: 7
- Forks: 17
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
> This project is no longer actively maintained and probably doesn't work with recent versions of
> Neo4j. PRs to fix aspects of its functionality are still welcome.# Neo4j.jl
[![CI](https://github.com/glesica/Neo4j.jl/actions/workflows/CI.yml/badge.svg)](https://github.com/glesica/Neo4j.jl/actions/workflows/CI.yml)
[![codecov.io](https://codecov.io/github/glesica/Neo4j.jl/coverage.svg?branch=master)](https://codecov.io/github/glesica/Neo4j.jl?branch=master)A [Julia](http://julialang.org) client for the [Neo4j](http://neo4j.org) graph
database.Really easy to use, have a look at ```test/runtests.jl``` for the available methods.
## Basic Usage
```julia
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:```julia
results = tx("MATCH (n) RETURN n"; submit=true)
```Rollbacks are also supported:
```julia
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:```julia
results = cypherQuery(c, "MATCH (n) RETURN n.property AS Property")
```