Home

Awesome

Welcome to Active Graph (f.k.a. Neo4j.rb)

Code Status

Actively Maintained Build Status Coverage Status Code Climate

Get Support

Documentation

All new documentation will be done via our readthedocs site, though some old documentation has yet to be moved from our wiki

Contact Us

StackOverflow Gitter Twitter

Introduction

Neo4j.rb is an Active Model compliant Ruby/JRuby wrapper for the Neo4j graph database. It uses the neo4j-ruby-driver and active_attr gems.

Neo4j is a transactional, open-source graph database. A graph database manages data in a connected data structure, capable of representing any kind of data in a very accessible way. Information is stored in nodes and relationships connecting them, both of which can have arbitrary properties. To learn more visit What is a Graph Database?

With this gem you not only do you get a convenient higher level wrapper around Neo4j, but you have access to a powerful high-level query building interface which lets you take advantage of the power of Neo4j like this:

# Break down the top countries where friends' favorite beers come from
person.friends.favorite_beers.country_of_origin(:country).
  order('count(country) DESC').
  pluck(:country, count: 'count(country)')

It can be installed in your Gemfile with a simple gem 'neo4j'

For a general overview see our website: http://neo4jrb.io/

Winner of a 2014 Graphie for "Best Community Contribution" at Neo4j's Graph Connect conference! 2014 Graphie

Neo4j.rb v4.1.0 was released in January of 2015. Its changes are outlined here and in the announcement message. It will take a little time before all documentation is updated to reflect the new release but unless otherwise noted, all 3.X documentation is totally valid for v4.

Neo4j version support

Neo4j Versionv2.xv3.x>= v4.x>= 7.0.3activegraph 10activegraph 11.1
1.9.xYesNoNoNoNoNo
2.0.xNoYesNoNoNoNo
2.1.xNoYesYes *YesNoNo
2.2.xNoNoYesYesNoNo
2.3.xNoNoYesYesNoNo
3.0, 3.1, 3.3NoNoNoYesNoNo
3.4NoNoNoYesYesNo
3.5NoNoNoYesYesYes
4.0NoNoNoNoYesYes
4.1NoNoNoNoNoYes
4.2NoNoNoNoNoYes
4.3NoNoNoNoNoYes
4.4NoNoNoNoNoYes
5.xNoNoNoNoNoYes

* Neo4j.rb >= 4.x doesn't support Neo4j versions before 2.1.5. To use 2.1.x you should upgrade to a version >= 2.1.5

Neo4j feature support

Neo4j Featurev2.xv3.x>= v4.x>= 8.x>= activegraph 10.0
Bolt ProtocolNoNoNoYesYes
AuthNoNoYesYesYes
Remote CypherYesYesYesYesNo
TransactionsYesYesYesYesYes
High AvailabilityNoYesYesYesYes
Causal ClusterNoNoNoNoYes
Embedded JVM supportYesYesYesYesvia bolt only

Documentation

Legacy (<= 2.x) Documentation

Developers

Original Author

Previous Maintainers

Current Maintainers

Contributing

Always welcome! Please review the guidelines for contributing to this repository.

License

Notice: There are different licenses for the neo4j-community, neo4j-advanced, and neo4j-enterprise jar gems. Only the neo4j-community gem is required by default.