Skip to content

Instantly share code, notes, and snippets.

@loveboat
Last active August 29, 2015 14:01
Show Gist options
  • Save loveboat/471254b91a2394763e58 to your computer and use it in GitHub Desktop.
Save loveboat/471254b91a2394763e58 to your computer and use it in GitHub Desktop.

CREATE (whiteRussian:Drink {name:'White Russian', preparation:'Pour coffee liqueur and vodka into an Old Fashioned glass filled with ice. Float fresh cream on top and stir slowly.'})

CREATE (vodka:Ingredient {name:'Vodka'})
CREATE (coffeeLiqueur:Ingredient {name:'Coffee Liqueur'})
CREATE (freshCream:Ingredient {name:'Fresh Cream'})
  • quantities CREATE (whiteRussian)-[:MADE_OF]→(vodka) CREATE (whiteRussian)-[:MADE_OF]→(coffeeLiqueur) CREATE (whiteRussian)-[:MADE_OF]→(freshCream)

  • brands of ingredients: CREATE (kahlua:DrinkBrand {name:'Kahlúa'})-[:TYPE_OF]→(coffeeLiqueur) CREATE (tiaMaria:DrinkBrand {name:'Tia Maria'})-[:TYPE_OF]→(coffeeLiqueur)

  • glassware: CREATE (oldFashioned:Glass {name:'Old Fashioned'})

  • served in: CREATE (whiteRussian)-[:SERVED_IN]→(oldFashionedGlass)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment