Skip to content

Instantly share code, notes, and snippets.

Avatar

Suellen Stringer-Hye suellenstringer-hye

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

The Vane Sisters

Modeling the Graph

OUR DATASET

CREATE
//People
(cynthia:Person{name:'Cynthia Vane'}),
@suellenstringer-hye
suellenstringer-hye / TheVaneSisters
Last active Jun 3, 2016 — forked from stardustnrust/vane
Code for graph of Vladimir Nabokov's short story "The Vane Sisters"
View TheVaneSisters
= The Vane Sisters
Suellen Stringer-Hye <suellen.stringer-hyes@vanderbilt.edu>
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)
View americannabokov
= 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 Aug 29, 2015
Roosevelt Family Geneology - completed
View gist:c20796ef45495db19f28
= Roosevelt Family Geneaology
:neo4j-version: 2.1.0
:author: Suellen Stringer-Hye
:twitter: @suellenshye
:tags: domain:education, use-case:geneaology
== Completed Graph
View gist:0f03d44f0acfbcc6c7df
--------------------------------------------
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 Feb 26, 2015
Flannery O'Connor loads for neo4j
View gist:81835e659ac428fbc5cf
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 })
View f-o.cypher
match (a {name:"Flannery O\'Connor"}),(c:Letter {date:1950}),(b {name:"Brainerd Chaney"})
create c-[:To]->b
You can’t perform that action at this time.