Skip to content

Instantly share code, notes, and snippets.

@rvanbruggen
Forked from nawroth/tutorial-graphgist
Last active December 19, 2015 04:39
Show Gist options
  • Save rvanbruggen/5898823 to your computer and use it in GitHub Desktop.
Save rvanbruggen/5898823 to your computer and use it in GitHub Desktop.
BeerGraph GraphGist
= My first try at a graphgist =
Let's see if I can create a graphgist for my beers
[source,cypher]
----
CREATE (brewery{name:'Brewery'})-[:BREWS]->(beerbrand{name:'BeerBrand'})-[:HAS_ALCHOLHOL_PERCENTAGE]->(alcperc{name:'%'})
CREATE (alcpercbefore{name:'%-1'}-[:PRECEDES]->(alcpercafter{name:'&+1'})
CREATE (beerbrand)-[:IS_A]-(beertype{name:'BeerType'})
----
* Hover over the nodes to see the +name+ node property in the Graph below.
* Hit the RUN button to execute the query in the console down below.
// graph1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment