Skip to content

Instantly share code, notes, and snippets.

@MorganDaniels
Forked from stardustnrust/roosevelt
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MorganDaniels/48e0dbb3172af9f6ffc7 to your computer and use it in GitHub Desktop.
Save MorganDaniels/48e0dbb3172af9f6ffc7 to your computer and use it in GitHub Desktop.
= Roosevelt Family Geneology
== Modeling the Graph
//graph
=== OUR DATASET
[source, cypher]
----
CREATE
//People
(eleanor:Person{name:'Eleanor Roosevelt'}),
(franklin:Person{name:'Franklin D. Roosevelt'}),
(theodore:Person{name:'Theodore Roosevelt'}),
(jenny:Person{name:'Jennifer R'}),
//Places
(oyster:Location{name:'Oyster Bay'}),
(hyde:Location{name:'Hyde Park'}),
(nashville:Location{name:'Nashville'}),
//Relationships
(eleanor)-[:WAS_WIFE_OF]->(franklin),
(eleanor)-[:WAS_COUSIN_OF]->(franklin),
(eleanor)-[:WAS_NIECE_OF]->(theodore),
(franklin)-[:WAS_HUSBAND_OF]->(eleanor),
(franklin)-[:WAS_COUSIN_OF]->(theodore),
(theodore)-[:WAS_COUSIN_OF]->(franklin),
(theodore)-[:WAS_UNCLE_OF]->(eleanor),
(theodore)-[:WAS_FROM]->(oyster),
(eleanor)-[:WAS_FROM]->(oyster),
(eleanor)-[:WAS_FROM]->(hyde),
(franklin)-[:WAS_FROM]->(hyde),
(jenny)-[:WAS_FROM]->(nashville),
(jenny)-[:WAS_BABYSITTER_OF]->(theodore),
(jenny)-[:WAS_EMPLOYED_BY]->(eleanor)
----
//console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment