Skip to content
Clojure Neo4J driver
Clojure
Branch: master
Clone or download
Latest commit ad6ff6f Aug 6, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Initial commit (#1) Jun 18, 2019
docs Add support for non existing relationships Aug 15, 2019
src/neo4clj
test/neo4clj Add support for non existing relationships Aug 15, 2019
.gitignore Initial commit (#1) Jun 18, 2019
LICENSE Initial commit (#1) Jun 18, 2019
README.md Initial commit (#1) Jun 18, 2019
project.clj Initial commit (#1) Jun 18, 2019

README.md

Neo4J Clojure client

Neo4clj is a idomatic clojure client, exclusivly using Bolt for performance.

Installation

Add the following dependency to project.clj:

[fullspectrum/neo4clj "1.0.0-SNAPSHOT"]

Clojars Project

Getting started

(require '[neo4clj.client :as client])

;; Create a connection to the Neo4j server
(def connection
  (client/connect "bolt://localhost:7687" "neo4j" "password"))

;; Create a new node on the connected server and return it
(client/create-node
  connection
  {:ref-id "N"
   :labels [:person]
   :properties {:first-name "Thomas"
                :last-name "Anderson"}})

;; Close the connection to the Neo4J server
(client/disconnect connection)

Clojure representations

Neo4clj uses Clojure maps to represent Nodes and Relationships. To learn more please see Clojure Representations

Examples

To learn more about how to use Neo4clj please take a look at our examples

Supported Features

Neo4clj supports the following features via the Bolt Protocol:

Neo4clj also supports the following operations through idomatic functions:

Create, read, update and delete nodes Create, read, update and delete relationships Create and read a complete graph Create and delete indexes

Version matrix

Neo4clj Clojure neo-java-driver Neo4j Server
1.0.0 1.10.0 1.7.2 3.5.x

Acknowledgements

This project has been inspired by the work of two other projects listed below.

Neocons by Michael Klishin (https://github.com/michaelklishin/neocons) neo4j-clj by Christian Betz (https://github.com/gorillalabs/neo4j-clj)

License

Copyright (C) 2019 Claus Engel-Christensen, Jacob Emcken, and the Full Spectrum team.

Licensed under the Eclipse Public License

You can’t perform that action at this time.