0.06
No commit activity in last 3 years
No release in over 3 years
A self-containted and lightweight REST interface to Neo4j using JRuby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.4.1
>= 1.2.9
>= 1.0
 Project Readme

neo4jr-social¶ ↑

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 as a self-contained service or can be deployed under Jetty or Tomcat.

Getting Started¶ ↑

Prerequisites¶ ↑

  • Java

  • JRuby: jruby.org

  • sudo aptitude install jruby1.2 rake rubygems

Building¶ ↑

Once done, use rvm to install latest jruby and required gems

  • rvm install jruby

  • rvm use –default jruby

  • gem install jruby-openssl

  • gem install rake

  • gem install rspec

  • gem install test-client

  • gem install rack-test

  • gem install json-jruby -v 1.4.1

  • gem install jeweler

  • gem install warbler

  • gem install rcov

Building the code and documentation

  • rake -T # optional, lists possible tasks

  • rake gemspec

  • rake rcov –debug

  • rake rdoc

  • rake warify

  • rake build

Or short version (without documentation)

  • rake gemspec warify build

Installing¶ ↑

Install Ruby Gem: neo4jr-social

  • gem install neo4jr-social

Running Neo4jr-Social¶ ↑

After installing the above 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 -p8988

You can also start the service and specify the directory of where the neo4j database is stored or where to create a new database. If you omit this setting a database will be created in your tmp directory and destroyed when you shutdown the server.

start-neo4jr-social -p8988 -dsome_relative_or_absolute_directory

Run start-neo4jr-social –help to see all options

Contributors¶ ↑

github.com/mdeiters github.com/klobuczek

github.com/gregormelhorn github.com/mikkorantalainen

Copyright © 2009 Matthew Deiters. See LICENSE for details.