Home

nerlo edited this page Sep 14, 2010 · 5 revisions

OVERVIEW

With “nerlo” you get an Erlang bridge to the neo4j graph database.

DEPENDENCIES

JDK >= 1.6.0
Erlang >= R13B04
GNU make
Ant >= 1.8 (lower may work as well)

commons-cli-1.2
log4j-1.2.15
lucene-core-2.9.3.jar
geronimo-jta_1.1_spec-1.1.1.jar
neo4j-kernel-1.1.jar
neo4j-index-1.1.jar

NOTE: Dependency management is by hand for now.
Later we may use Ivy or Maven for Java dependencies.

You can find a packed archive of all Java dependencies
here:

http://github.com/downloads/nerlo/nerlo/nerlo-trunk-java-deps-1.1.tar.gz

BUILD

You may try to build from source like this:

$ ./conf.sh
$ cd java && ant jar
$ cd erl && make

RUN

$ cd erl
$ bin/shell
erl 1> ej_app:start().
erl 2> ej_srv:ping().
erl 3> neo4j_app:start().
erl 4> neo4j:has_db().
erl 5> V1 = neo4j:add_vertex().
erl 6> V2 = neo4j:add_vertex().
erl 7> E1 = neo4j:add_edge(V1,V2).
[...]
erl 998> neo4j_app:stop().
erl 999> ej_app:stop().