Skip to content

Instantly share code, notes, and snippets.

@stardustnrust

stardustnrust/vane

Last active Aug 29, 2015
Embed
What would you like to do?
TheVaneSisters
= The Vane Sisters
== Modeling the Graph
=== OUR DATASET
[source, cypher]
----
CREATE
//People
(cynthia:Person{name:'Cynthia Vane'}),
(d:Person{name:'D'}),
(narrator:Person{name:'Narrator'}),
(sybil:Person{name:'Sybil Vane'}),
(wilde:Person{name:'Oscar Wilde'}),
(tolstoy:Person{name:'Leo Tolstoy'}),
(paul:Person {name:'Paul'}),
(Betty:Person{name:'Betty Brown'}),
(page:Person{name:'Mrs. Page'}),
(lever:Person{name:'Mr.Lever'}),
(porlock:Person{name:'Porlock'}),
(moore:Person{name:'John and Bill Moore'}),
(myers:Person{name:'Frederic Myers'}),
(owen:Person{name:'Robert Dale Owen'}),
(fox:Person{name:'Fox Sisters'}),
(wallace:Person{name:'Alfred Russell Wallace'}),
(duncan:Person{name:'Mr. Duncan'}),
(valevski:Person{name:'Valevsky'}),
(blavatsky:Person{name:'Madame Blavatsky'}),
//Profession
(ghost:Profession{name:'ghost'}),
(writer:Profession{name:'writer'}),
(student:Profession{name:'student'}),
(professor:Profession{name:'professor'}),
(character:Profession{name:'character'}),
(spiritualist:Profession{name:'spiritualist'}),
(librarian:Profession{name:'librarian'}),
//Places
(porlock:Place{name:'Porlock}),
(restaurant:Place{name:'Restaurant'}),
(albany:Place{name:'Albany'}),
(boston:Place{name:'Boston'}),
(town:Place{name:'SmallHillyTown}),
(kelly:Place{name:'KellyRoad}),
(newyork:Place{name:'NewYork}),
(library:Place{name:'PublicLibrary}),
//Events
(seance:Event{name:'Seance'}),
(chance:Event{name:'Chance Meeting'}),
(lexington:Event{name:'LexingtonFire'),
//Themes
(spiritualism:Theme{name:'Spiritualism'}),
(afterlife:Theme{name:'AfterLife'}),
(automatic:Theme{name:AutomaticWriting}),
//Works
(grey:Works{name:'PicturesofDorian_Grey'}),
(tatar:Works{name:'TheTatarTermagent'}),
(psychicwilde:Works{name:'PsychicMessagesfromOscar Wilde'}),
(phenomena:Works{name:'ResearchesinthePhenomena'}),
//Words
(termagant:Word{name:'Termagant'}),
(snails:Word{name:'Snails'}),
(coldwater:Word{name:'ColdWater}),
(vacuum:Word{name:'VacuumCleaner}),
//History
//Relationships
(cynthia)-[:KNEW]->(D),
(cynthia)-[:KNEW]->(narrator),
(cynthia)-[:KNEW]->(sybil),
(sybil)-[:KNEW]->(narrator),
(D)-[:KNEW]->(narrator),
(wilde)-[:WAS_A]->(ghost),
(wilde)-[:WROTE]->(gray),
(wilde)-[:WROTE]->(psychicwilde),
(tolstoy)-[:WAS_A]->(ghost),
(tolstoy)-[:WAS_A]->(ghost),
(termagent)-[:IS_USED]->(tatar)
(tatar)-[IS_ABOUT]->(blavatsky)
(porlock)-[IS_A]->(librarian)
(myers)-[IS_A]->(ghost)
(myers)-[IS_A]->(character)
(myers-[IS_A]->(spiritualist)
(myers-[IS_A]->(realperson)
(coldwater-[IS_USED]->(spiritualist)
(lever-[IS_USED]->(phenomena)
MATCH (a)
RETURN a
//table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.