ActiveNodemodule. Today I’d like to present to you the latest three episodes I’ve put together to help you dive deeper into the wonderful world of Neo4j.rb:
Neo4j.rb Screencast #4 – Association chainingAssociation chaining is without a doubt my favorite tool from the
ActiveNodemodule. While Cypher provides an excellent high-level way to make complex and deep queries on your data, association chaining provides an even higher level of abstraction. By defining your relationships ahead of time, you can traverse your nodes with simple Ruby method call chains. This makes your queries more readable, more re-usable and more fun!
Neo4j.rb Screencast #5 – ActiveRelOne of the most brilliant and often overlooked parts of Neo4j is the ability to use relationships as another entity in your data model. Sometimes properties don’t belong on one node or the other but rather on the relationship between them. In this case the
ActiveRelmodule helps you be confident in your relationships by supporting property validations, object callbacks (before/after, create/update/save) and defining whatever methods you might use for an object model.
Neo4j.rb Screencast #6 – Deeper Querying
ActiveRelare great for getting started and for doing the typical, simple tasks that need to be done. Of course, sooner or later you need to dig down into the Cypher. This could be for lots of reasons including taking advantage of the expressiveness of the Cypher
MATCHASCII art syntax or to build complex queries. You can build your own Cypher strings, but you can also use an API which allows you to build Cypher in ways that allow you to progressively build and share queries and which take advantage of Neo4j’s parameters natively. I hope you enjoy these new screencasts in this series on Neo4j and Ruby on Rails, and let me know what you think. UPCOMING WEBINAR: Metadata and Asset Control Using Ruby on Rails and Neo4j Register for this webinar on 10 September 2015 at 9:00 a.m. Pacific (18:00 CEST) to learn how to create simple and reusable code to build an access control system using Ruby on Rails, presented by Brian Underwood. Neo4j – Ruby on Rails Screencast Series:
About the Author
Brian Underwood, Neo4j Advocate
Brian Underwood wants challenges that give him a chance to make the world kinder, simpler and more interesting. If you can give those challenges to him, you’ll be his new best friend. He loves what he made and the tools he used to make, but his pleasure comes more in the making and the learning of the new. He wants to make useful things that are bold, creative, and beautiful. He wants to make things that have never before existed.