Skip to content
Andreas Ronge edited this page Sep 25, 2012 · 26 revisions

“Cypher” is a declarative graph query language that allows for expressive and efficient querying of the graph store without having to write traversals through the graph structure in code.

Introduction

The neo4j-cypher gem makes it possible to generate Cypher query strings from Ruby DSLs. The cypher language is described here: Neo4j Cypher Documentation See the RSpecs for more examples here

Notice

  • The neo4j-cypher gem can be used both from neo4j.rb (see Neo4j::Core-Cypher) and from the Neo4j rest API, see neography
  • Both neography (Neography.execute_query) and neo4j-core (Neo4j.query) includes methods which also executes the query.

Content

  • API - The neo4j-cypher and neography cypher adaptor.
  • Start - Start nodes and variables
  • Match - Navigating and matching relationships
  • Where - Filtering matches
  • Return - How to specify what to return
  • Sorting - Sort order and skip result items
  • Examples - Some examples
Clone this wiki locally