-
-
Save rvanbruggen/5898823 to your computer and use it in GitHub Desktop.
BeerGraph GraphGist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= 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