O'Reilly logo

Neo4j Cookbook by Ankur Goel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Accessing Neo4j using the Java REST bindings

Neo4j can also be accessed using the Java REST bindings, which allows it to be accessed from remote nodes easily. In this recipe, we will take a look at the ways of accessing Neo4j from Java using the REST bindings.

Getting ready

The Neo4j REST interface provides an easy way to access Neo4j graph database remotely.

Follow these instructions to go through this recipe:

Start the Neo4j graph database server using the following command:

$ ./neo4j start

To check whether the REST interface is running fine, open http://localhost:7474/db/data/ in a browser.

How to do it...

This problem can be dealt with in two ways, which are described as follows:

Developing your own Neo4j REST client

There are many REST Java client ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required