Skip to content

Instantly share code, notes, and snippets.

View suellenstringer-hye's full-sized avatar

Suellen Stringer-Hye suellenstringer-hye

  • Vanderbilt University Library
  • Nashville, TN
View GitHub Profile
= The Life You Save May Be Your Own
== Modeling the Graph
//graph
=== OUR DATASET
[source, cypher]
= Roosevelt Family Geneaology
:neo4j-version: 2.1.0
:author: Suellen Stringer-Hye
:twitter: @suellenshye
:tags: domain:education, use-case:geneaology
== Purpose of Graph

The Vane Sisters

Modeling the Graph

OUR DATASET

CREATE
//People
(cynthia:Person{name:'Cynthia Vane'}),
@suellenstringer-hye
suellenstringer-hye / TheVaneSisters
Last active June 3, 2016 19:03 — forked from stardustnrust/vane
Code for graph of Vladimir Nabokov's short story "The Vane Sisters"
= The Vane Sisters
Suellen Stringer-Hye <[email protected]>
v0.1, 2015-11-19
:neo4j-version: 2.3
:author: Suellen Stringer-Hye
:twitter: @suellenstringerhye
:style: #F25A29/#dc4717/#ffffff:Stage(name), #AD62CE/#945381/#ffffff:Works(name),#92cf81/#99bbd82/#000000:Word(name),#FCC948/#F3Ba25/#000000:Person(name),#FF6C7C/#EB506C/#ffffff:Place(name),#4356c0/#3445a2/#ffffff:Profession(name),#99ffff/#80ffff/#000000:Event(name),#30B6Af/#46a39e/#ffffff:Theme(name)
= Nabokov in America
=== Genius is non-conformity
Vladimir Nabokov
image::http://static.guim.co.uk/sys-images/Books/Pix/pictures/2009/7/8/1247059161848/Vladimir-Nabokov-001.jpg[]
== Modeling the Graph
image::http://www.library.vanderbilt.edu/webimages/LNO/datamodel.JPG[]
@suellenstringer-hye
suellenstringer-hye / gist:c20796ef45495db19f28
Last active August 29, 2015 14:08
Roosevelt Family Geneology - completed
= Roosevelt Family Geneaology
:neo4j-version: 2.1.0
:author: Suellen Stringer-Hye
:twitter: @suellenshye
:tags: domain:education, use-case:geneaology
== Completed Graph
--------------------------------------------
DIVINITY
LOAD NODES:
LOAD CSV WITH HEADERS FROM "https://raw.githubusercontent.com/EdWarga/VUIR-Data-Project/master/Divinity/Article-node.csv" AS csvLine
CREATE (a:Article { id: csvLine.ArtID, title: csvLine.Title, year: toInt(csvLine.PubYear) })
LOAD CSV WITH HEADERS FROM "https://raw.githubusercontent.com/EdWarga/VUIR-Data-Project/master/Divinity/Author-node.csv" AS csvLine
CREATE (p:Person { id: csvLine.AutID, name: csvLine.Author })
@suellenstringer-hye
suellenstringer-hye / gist:81835e659ac428fbc5cf
Created February 26, 2015 17:38
Flannery O'Connor loads for neo4j
LOAD CSV WITH HEADERS FROM "http://www.library.vanderbilt.edu/webimages/flannery/Name.csv" AS csvLine
CREATE (p:Person { id: csvLine.NameID, name: csvLine.Name })
LOAD CSV WITH HEADERS FROM "http://www.library.vanderbilt.edu/webimages/flannery/locations.csv" AS csvLine
CREATE (l:Location { id: csvLine.LocationID, Place: csvLine.Location })
LOAD CSV WITH HEADERS FROM "http://www.library.vanderbilt.edu/webimages/flannery/letterlocations.csv" AS csvLine
CREATE (R:Letter { id: csvLine.Letter, name: csvLine.Location })
match (a {name:"Flannery O\'Connor"}),(c:Letter {date:1950}),(b {name:"Brainerd Chaney"})
create c-[:To]->b