New release. It contains one new cool featue (issue 181) - combining
cypher DSL with rules.
I have written some documentation about it here, see the Cypher and
Rules section at the wiki page:
https://github.com/andreasronge/neo4j/wiki/Neo4j%3A%3AWrapper-Rules-and-Functions
and how to write Cypher DSL queries -
https://github.com/andreasronge/neo4j/wiki/Neo4j%3A%3ACore-Cypher
Cheers
Andreas
== 2.0.0.alpha.7 / 2012-04-19
* fix for Neo4j::Config bug - did not work from rails to set the db
location, closes #191
* has_n and has_one method generate class method returning the name of
the relationship as a Symbol, closes #170
* Raise exception if trying to index boolean property, closes #180
* Made start_node= and end_node= protected closes 186
* Support for things like dungeon.monsters.dangerous { |m| m[:weapon?]
== 'sword' } closes #181
Cheers,
/peter neubauer
G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer
If you can write, you can code - @coderdojomalmo
If you can sketch, you can use a graph database - @neo4j
> --
> You received this message because you are subscribed to the Google Groups "neo4jrb" group.
> To post to this group, send email to neo...@googlegroups.com.
> To unsubscribe from this group, send email to neo4jrb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/neo4jrb?hl=en.
>
Neo4j.query(user, place) do |u, p|
rc = node(:rc)
u > rel(User.rc) > rc < rel(Place.rs) < p
rc < rel(:active) < node
rc.is_a?(RC)
rc
end
> --
> You received this message because you are subscribed to the Google Groups
> "neo4jrb" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/neo4jrb/-/j4JCQPler9kJ.
u-[:`User#rc`]->rc<-[:`RS#rc`]-rs<-[:`Place#rs`]-p
u-[:`User#rc`]->rc<-[:`Place#rs`]-p
NativeException:org.neo4j.cypher.SyntaxException: expected node id, or *"START n0=node(),n1=node(4) MATCH (n0)-[]->(rc)<-[]-(rs)<-[]-(n1),(rc)<-[]-(v6) RETURN rc"^
I have made it a little bit easier to use model object with cypher,
for example added a is_a? method, see
https://github.com/andreasronge/neo4j/issues/193
This make it possible to write the query like this:
Neo4j.query(user, place) do |u, p|
rc = node(:rc)
u > rel(User.rc) > rc < rel(Place.rs) < p
rc < rel(:active) < node
rc.is_a?(RC)
rc
end