-
Notifications
You must be signed in to change notification settings - Fork 16
Home
Neo4jr-Social is a self contained HTTP REST + JSON interface to the graph database Neo4j. Neo4jr-Social supports simple dynamic node creation, building relationships between nodes and also includes a few common social networking queries out of the box (i.e. linkedin degrees of seperation and facebook friend suggestion) with more to come. Think of Neo4jr-Social is to Neo4j like Solr is to Lucene.
Neo4jr-Social was built in JRuby but is language agnostic and is designed to run on it’s own under a Jetty or Tomcat configuration.
All responses are JSON. When using the service from a browser the response will be formatted as html to be even more human readable.
- Java
- JRuby: http://jruby.org
- jruby must be in your $PATH
To install execute the following form terminal:
gem install neo4jr-simple neo4jr-social
After installing neo4jr-social (via gems) an executable ‘start-neo4jr-social’ should be in your $PATH. This will start the service and the database and listen for HTTP requests on localhost at port 8988 by default:
start-neo4jr-social
Run start-neo4jr-social —help to see all options
neo4jr-social connects to a neo4j database or creates a new one whenever you start the service. If no database is configured neo4jr-social will do this using a temporary directory which will be destroyed when you shutdown your server. You have a few options to specify a more persistant location for your neo4j database.
You can use the -d parameter when start neo4jr-social:
start-neo4jr-social -d~/some/relative/or/absolute/path
export neo4jr_database=/path/where/you/want/your/neo4j/db/to/be/created
neo4jr.database