Skip to content

Instantly share code, notes, and snippets.

Avatar

Suellen Stringer-Hye suellenstringer-hye

  • Vanderbilt University Library
  • Nashville, TN
View GitHub Profile
View test.csv
first_name last_name company_name address city county state zip phone1 phone2 email web
James Butt Benton, John B Jr 6649 N Blue Gum St New Orleans Orleans LA 70116 504-621-8927 504-845-1427 jbutt@gmail.com http://www.bentonjohnbjr.com
Josephine Darakjy Chanay, Jeffrey A Esq 4 B Blue Ridge Blvd Brighton Livingston MI 48116 810-292-9388 810-374-9840 josephine_darakjy@darakjy.org http://www.chanayjeffreyaesq.com
Art Venere Chemel, James L Cpa 8 W Cerritos Ave #54 Bridgeport Gloucester NJ 08014 856-636-8749 856-264-4130 art@venere.org http://www.chemeljameslcpa.com
Lenna Paprocki Feltz Printing Service 639 Main St Anchorage Anchorage AK 99501 907-385-4412 907-921-2010 lpaprocki@hotmail.com http://www.feltzprintingservice.com
Donette Foller Printing Dimensions 34 Center St Hamilton Butler OH 45011 513-570-1893 513-549-4561 donette.foller@cox.net http://www.printingdimensions.com
View swp
= Network analysis with Neo4j
:neo4j-version: 2.1.0
:author: Suellen Stringer-Hye
:twitter: @suellenshye
:tags: domain:education, use-case:network analysis
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 Divinity
--------------------------------------------
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 })
View gist:ad1319cb6b2510dddd43dcd1ccfdad0f
LOAD CSV WITH HEADERS FROM "https://raw.githubusercontent.com/SuellenStringer-Hye/VUIR-Data-Project/master/Divinity/Ability-rel.csv"
AS csvLine
MATCH (monster:Monster {id: csvLine.MnstID}),(ability:Ability { id: csvLine.Abid})
CREATE (monster)-[:HAS]->(ability)
MATCH (demon:Monster {name: "Demon"})-[:CAN_BE_KILLED_BY]->(weakness) RETURN demon,weakness
View gist:2dbdbeb82bcc367e7631e8a8f9a3e8a2
LOAD CSV WITH HEADERS FROM "https://raw.githubusercontent.com/SuellenStringer-Hye/VUIR-Data-Project/master/Divinity/Ability-rel.csv"
AS csvLine
MATCH (monster:Monster {id: csvLine.MnstID}),(ability:Ability { id: csvLine.Abid})
CREATE (monster)-[:HAS]->(ability)
@suellenstringer-hye
suellenstringer-hye / Cypher.txt
Last active Jan 24, 2018
Cypher code for Monsters
View Cypher.txt
LOAD CSV WITH HEADERS FROM "https://raw.githubusercontent.com/SuellenStringer-Hye/VUIR-Data-Project/master/Divinity/monsters.csv" AS csvLine
CREATE (p:Monster { id: csvLine.MnstID, name: csvLine.Monster, desc: csvLine.Description })
LOAD CSV WITH HEADERS FROM "https://raw.githubusercontent.com/SuellenStringer-Hye/VUIR-Data-Project/master/Divinity/weakness.csv" AS csvLine
CREATE (p:Weakness { id: csvLine.WkID, weakness: csvLine.Weakness, desc: csvLine.Description })
LOAD CSV WITH HEADERS FROM "https://raw.githubusercontent.com/SuellenStringer-Hye/VUIR-Data-Project/master/Divinity/ability.csv" AS csvLine
CREATE (p:Ability { id: csvLine.abID, ability: csvLine.Ability, desc: csvLine.Description })
View monsters.csv
We can make this file beautiful and searchable if this error is corrected: Any value after quoted field isn't allowed in line 2.
MonsterID,Name
6, "Ghost"
7,"Poltergeist"
8,"Demon"
9,"Genie"
10,"Siren"
11,"Werewolf"
12,"Sea Monster"
13,"Dragon"
14,"Big Foot"
View monsters.tsv
MonsterID Title Type Description
6 Ghost Supernatural Ethereal projection of a human
7 Poltergeist Supernatural Similar to ghosts, but torments humans
8 Demon Supernatural Unspeakably evil, possesses humans and may make them perform horrific acts
9 Genie/Jinn Supernatural From Islam, could be good or evil. Evil Jinns lead people into temptation
10 Siren Supernatural Song leads sailors off course causing them to wreck their ship
11 Werewolf Animal Every full moon, a human transforms into a werewolf that hunts and kills prey
12 Sea Monster Animal Roams bodies of waters looking for victims
13 Dragon Animal Breathes deadly firing on victims
14 Big Foot Animal Stalks in forests preying on wild animals and sometimes humans
View weakness.tsv
Weakness Name Weakness Description
1 Salt Salt thrown at monster or placed around victim
2 Holy Water Water blessed by Church
3 Amulet Item that wards off monsters
4 Drought Severe drought affecting major bodies of water
5 Silver Bullet Bullet made of silver through the heart
6 Sword Sharp sword that can fatally wound
7 Head Shot Shot through the head
8 Theseus Greek hero
9 Wooden Stake Stake of wood through the heart