Skip to content

Instantly share code, notes, and snippets.

@stardustnrust
Created October 2, 2014 18:23
Show Gist options
  • Save stardustnrust/12e870ebb992b9ca917a to your computer and use it in GitHub Desktop.
Save stardustnrust/12e870ebb992b9ca917a to your computer and use it in GitHub Desktop.
The Life You Save May Be Your Own _2
= The Life You Save May Be Your Own
== Modeling the Graph
//table
//graph
=== OUR DATASET
[source, cypher]
----
CREATE
//People
(shiflet:Person{name:'Tom T. Shiflet'}),
(crater:Person{name:'Lucynell Crater'}),
(crater2:Person{name:'Lucynell Crater'}),
(roy:Person{name:'Uncle Roy and his Red Creek Wranglers'}),
(duchessor:Person{name:'Duchesser Windsor'}),
(mother:Person{name:'My Old Mother'}),
(ordinary:Person{name:'Ordinary'}),
(boy:Person{name:'Boy Behind the Counter'}),
(boy2:Person{name:'Boy on Road'}),
(husband:Person{name:'Dead Husband'}),
//Alias
(angel: Alias {name:'Angel of Gawd'}),
(sugarbaby:Alias {name:'Sugarbaby'}),
(baby:Alias {name:'Baby Girl'}),
(aaron:Alias {name:'Aaron Sparks'}),
(george:Alias {name:'George Speeds'}),
(thompson:Alias {name:'Thompson Bright'}),
//Professions
(singer:Profession{name:'Gospel Singer'}),
(foreman:Profession{name:'Foreman on the Railroad'}),
(undertaker:Profession{name:'Assistant in an Undertaking Parlor'}),
(carpenter:Profession{name:'Carpenter'}),
(radio:Profession{name:'On the Radio'}),
//Locations
(atlanta:Location{name:'Atlanta'}),
(tarwater:Location{name:'Tarwater, Tennessee'}),
(singleberry:Location{name:'Singleberry, Georgia'}),
(lucy:Location{name:'Lucy, Alabama'}),
(toolafalls:Location{name:'Toolafalls, Missippi'}),
(mobile:Location{name:'Mobile'}),
(hotspot:Location{name:'Hot Spot'}),
//Words
(greyhat:Word{name:'Grey Hat'}),
(grey:Word{name:'Grey'}),
(heart:Word{name:'Heart'}),
(chicken:Word{name:'Chicken'}),
(matches:Word{name:'Matches'}),
(hitchiker:Word{name:'Hitchhiker'}),
(cloud:Word{name:'Cloud'}),
//Relationships
(shiflet)-[:KNEW]->(crater),
(shiflet)-[:KNEW]->(crater2),
(shiflet)-[:KNEW]->(boy2),
(shiflet)-[:KNEW]->(mother),
(shiflet)-[:KNEW]->(boy),
(shiflet)-[:WAS]->(singer),
(shiflet)-[:WAS]->(foreman),
(shiflet)-[:WAS]->(undertaker),
(shiflet)-[:WAS]->(carpenter),
(shiflet)-[:WAS]->(radio),
(shiflet)-[:AKA]->(aaron),
(shiflet)-[:AKA]->(george),
(shiflet)-[:AKA]->(thompson),
(shiflet)-[:WAS_FROM]->(tarwater),
(shiflet)-[:WENT_TO]->(hotspot),
(shiflet)-[:WAS_GOING_TO]->(mobile),
(george)-[:WAS_FROM]->(lucy),
(aaron)-[:WAS_FROM]->(singleberry),
(thompson)-[:WAS_FROM]->(toolafalls),
(crater2)-[:WENT_TO]->(hotspot),
(crater2)-[:KNEW]->(boy),
(crater2)-[:AKA]->(angel),
(crater2)-[:AKA]->(sugarbaby),
(crater2)-[:AKA]->(baby),
(crater2)-[:WAS]->(hitchhiker),
(mother)-[:WAS]->(angel),
(crater)-[:WORE]->(greyhat),
(husband)-[:WAS_MARRIED_TO]->(crater),
(boy2)-[:WORE]->(greyhat),
(greyhat)-[:WAS]->(grey),
(shiflet)-[:WAS]->(grey),
(cloud)-[:WAS]->(grey),
(shiflet)-[:HAS]->(matches),
(aaron)-[:HAS]->(matches),
(chicken)-[:IS_ASSOCIATED_WITH]->(heart),
(chicken)-[:IS_ASSOCIATED_WITH]->(crater2),
(roy)-[:WAS_ON]->(radio)
----
//table
//graph
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment