Sha256: a68b4e9ea1c6e0780d245267ebdd87f7ca03626e0b3887d9bbe754eb350be5b7

Contents?: true

Size: 1.91 KB

Versions: 11

Compression:

Stored size: 1.91 KB

Contents

== Neo4j-wrapper {<img src="https://secure.travis-ci.org/andreasronge/neo4j-wrapper.png" />}[http://travis-ci.org/andreasronge/neo4j-wrapper]

This contains the Ruby wrapper of the Neo4j::Node and Neo4j::Relationship java object defined in the neo4j-core gem.
The neo4j.rb gem will be split up into several gems, neo4j-core, neo4j-wrapper and neo4j-rails (?)
This gem will be included by neo4j 2.0.0 gem.

== Docs

* {YARD}[http://rdoc.info/github/andreasronge/neo4j-wrapper/file/README.rdoc]

== The public API

{Neo4j::NodeMixin} The Java Neo4j Node

{Neo4j::RelationshipMixin} The Java Relationship

{Neo4j::IdentityMap} The Identity Map

== Example

    class Company
      include Neo4j::NodeMixin
      has_n(:employees)
    end

    class Person
      include Neo4j::NodeMixin
      property :name
      property :age, :size, :type => Fixnum, :index => :exact
      property :description, :index => :fulltext

      has_one(:best_friend)
      has_n(:employed_by).from(:employees)
    end

    Neo4j::Transaction.run do
      Person.new(:name => 'jimmy', :age => 35)
    end

    person = Person.find(:age => (10..42)).first

    Neo4j::Transaction.run do
      person.best_friend = Person.new
      person.employed_by << Company.new(:name => "Foo ab")
    end

    # find by navigate incoming relationship
    company = person.employed_by.find { |p| p[:name] == 'Foo ab' }
    puts "Person #{person.name} employed by #{company[:name]}"
    # navigate the outgoing relationship:
    company.employees.each {|x| puts x.name}

== Changes

Changes from the neo4j.rb
* Use of YARD instead of RDoc
* Some tidy up of the API and code
* Change of Ruby module structure.
* More RSpecs and more use of mocking combined with real testing of the Java layer
* Make sure that we retrieve relationships and nodes lazy if possible.

This gem contains two modules: Neo4j and Neo4j::Wrapper
The Neo4j module is public and the Neo4j::Wrapper(::*) are private modules.

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
neo4j-wrapper-0.0.11-java README.rdoc
neo4j-wrapper-0.0.10-java README.rdoc
neo4j-wrapper-0.0.9-java README.rdoc
neo4j-wrapper-0.0.8-java README.rdoc
neo4j-wrapper-0.0.7-java README.rdoc
neo4j-wrapper-0.0.6-java README.rdoc
neo4j-wrapper-0.0.5-java README.rdoc
neo4j-wrapper-0.0.4-java README.rdoc
neo4j-wrapper-0.0.3-java README.rdoc
neo4j-wrapper-0.0.2-java README.rdoc
neo4j-wrapper-0.0.1-java README.rdoc