Last active
October 7, 2015 16:08
-
-
Save stardustnrust/c0e2a6a4ec0b8fc6c93b to your computer and use it in GitHub Desktop.
Roosevelt Family Geneaology
This file contains 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
= Roosevelt Family Geneaology | |
== Modeling the Graph | |
image::http://www.emersonkent.com/images/roosevelt_family_tree.jpg[] | |
//graph | |
=== OUR DATASET | |
[source, cypher] | |
---- | |
CREATE | |
//People | |
(eleanor:Person{name:'Eleanor Roosevelt'}), | |
(franklin:Person{name:'Franklin D. Roosevelt'}), | |
(theodore:Person{name:'Theodore Roosevelt'}), | |
//Places | |
(oyster:Location{name:'Oyster Bay'}), | |
(hyde:Location{name:'Hyde Park'}), | |
//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) | |
---- | |
//console |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment