Skip to content
Andreas Ronge edited this page Sep 27, 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.

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 - Starting points in the graph, obtained via index lookups or by element IDs.
  • Match - The graph pattern to match, bound to the starting points.
  • Where - Filtering criteria.
  • Return - What to return.
  • Mutating - TODO Create,Delete,Set, Foreach
  • With - TODO Divides a query into multiple, distinct parts.
  • Examples - Some examples
Clone this wiki locally