Monday, December 8, 2008

Neo4j wrapper for Clojure

Julian Morrison has started to develop a wrapper around Neo4j for Clojure, a Lisp dialect running on the JVM. Here's how the code using the wrapper can look:

(use 'neo4j)

(with-neo "test"
(tx
(let [c (new-node) b (new-node)]
(relate (top-node) :customers c)
(relate c :customer b)
(.setProperty b "name" "Bob")
(success))))

The neo4j-clojure wrapper library was announced in this thread.

No comments: