Friday, March 12, 2010

Update on Neo4j Ruby bindings

During 2010 there's been two releases of the Neo4j.rb JRuby bindings for the Neo4j graph database so far. Time to catch up with what's new!

Version 0.4.0 of Neo4j.rb came with improved traversal performance, more options on how to use relationships, for instance relationships can now be indexed. Version 0.4.1 gave us migrations and access to a batch inserter for big import-once data volumes.

In the last days of 2009, neo4jr-simple was first released. It's a simple ready to go wrapper for Neo4j and currently in version 0.2.1. Make sure to check out the neo4jr-social example application as well!

Great thanks to Andreas Ronge, Matthew Deiters and all the other contributors for the awesome stuff!

3 comments:

Anonymous said...

Hi,

i have an question about releationships. In my Ruby programm i use neo4j, when i create a new Node i create a Relationship with Neo4j::Releationship.new. So my problem is how can i delete an existing releationship?

Thanks

Anders Nawroth said...

@Anynymous: You can retrieve the relationship from the start or the end node, and then use the .del method on it. Search for "delete" on the neo4j.rb github page for an example.

Anonymous said...

Hi,

in my program i have more then on end_nodes so when i retrieve the relationship from the end node i become the following exception org.neo4j.graphdb.NotFoundException: More than one relationship[DynamicRelationshipType[feature_config], OUTGOING] found for NodeImpl#158.

What can i do to become only one relationship between to nodes when the start node more end nodes have?

Thanks