Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
The Epistolary Correspondence of Flannery O'Connor
= The Epistolary Correspondence of Flannery O'Connor
=== “I thank you again for reading my book and writing about it so carefully and with so much understanding. I bought three copies of the review to show to some of my connections who think it would be nicer if I wrote about nice people.”
― Flannery O'Connor to Brainard Cheney, February 8, 1953
image::http://i.imgur.com/7pLKctf.jpg[]
== Purpose
This project will set out to explore the epistolary correspondence of Flannery O’Connor. Using the NoSQL graphing database Neo4j, a dataset will be created that includes date, correspondent and broad topic. It will then be possible to query the database using the Neo4j query language Cypher to discover relationships between these data points.
== Data Model
image::http://www.library.vanderbilt.edu/webimages/flannery/datamodel.png[]
=== OUR DATASET
//setup
//hide
[source, cypher]
----
CREATE
//People
(flannery:Person{name:'Flannery OConnor'}),
(brainard:Person{name:'Brainard Cheney'}),
(fannie:Person{name:'Frances Cheney'}),
(regina:Person{name:'Regina OConnor'}),
(caroline:Person{name:'Caroline Gordon Tate'}),
//Letter
(Letter1:Letter {name:'Feb', location:'Milledgeville, GA', topic:'faith', topic2: 'writing', date:1953}),
(Letter2:Letter {name:'March 22, 1953', location:'Smyrna, TN' , topic:'faith', topic2: 'writing', date:1953}),
(Letter3:Letter {name:'March 29, 1953', location:'Milledgeville, GA' , topic:'faith', topic2: 'writing',topic3: 'travel',topic4: 'people', date:1953}),
(Letter4:Letter {name:'Sept 14, 1953', location:'Milledgeville, GA', topic:'people', date:1953}),
(Letter5:Letter {name:'Oct 10, 1953', location:'Chimneys, TN', topic:'faith', topic2: 'writing',topic3: 'travel',topic4: 'people', topic5: 'politics', date:1953}),
(Letter6:Letter {name:'Nov 29, 1953', location:'Milledgeville, GA',topic:'faith', topic2: 'people', date:1953}),
(Letter7:Letter {name:'Dec 15, 1953', location:'Milledgeville, GA', topic: 'writing', topic2: 'travel' ,topic3: 'people', date:1953}),
(Letter8:Letter {name:'Jan 2, 1954', location:'Chimneys, TN,',topic:'faith', topic2: 'writing', date:1954}),
(Letter9:Letter {name:'Jan 17, 1954', location:'Milledgeville, GA', topic: 'writing',topic2: 'people', date:1954}),
(Letter10:Letter {name:'Feb 12, 1954',topic: 'writing', date:1954}),
//Relationships
(flannery)-[:WROTE_TO]->(brainard),
(brainard)-[:WROTE_TO]->(flannery),
(flannery)-[:WROTE_TO]->(fannie),
(brainard)-[:WROTE_TO]->(regina),
(letter1)-[:TO]->(brainard),
(letter2)-[:TO]->(flannery),
(letter3)-[:TO]->(brainard),
(letter4)-[:TO]->(brainard),
(letter4)-[:TO]->(fannie),
(letter5)-[:TO]->(flannery),
(letter6)-[:TO]->(brainard),
(letter7)-[:TO]->(fannie),
(letter7)-[:TO]->(brainard),
(letter8)-[:TO]->(flannery),
(letter9)-[:TO]->(brainard),
(letter9)-[:TO]->(fannie),
(letter10)-[:TO]->(brainard),
(letter10)-[:TO]->(fannie),
(letter11)-[:TO]->(flannery),
(letter12)-[:TO]->(brainard),
(letter12)-[:TO]->(fannie),
(letter13)-[:TO]->(brainard),
(letter13)-[:TO]->(fannie),
(letter14)-[:TO]->(brainard),
(letter14)-[:TO]->(fannie),
(letter15)-[:TO]->(fannie),
(letter16)-[:TO]->(fannie),
(letter17)-[:TO]->(fannie),
(letter17)-[:TO]->(brainard),
(letter18)-[:TO]->(fannie),
(letter19)-[:TO]->(fannie),
(letter20)-[:TO]->(fannie),
(letter21)-[:TO]->(fannie),
(letter22)-[:TO]->(fannie),
(letter23)-[:TO]->(fannie),
(letter24)-[:TO]->(fannie),
(letter24)-[:TO]->(brainard),
(letter25)-[:TO]->(flannery),
(letter26)-[:TO]->(fannie),
(letter26)-[:TO]->(brainard),
(letter26)-[:TO]->(caroline),
(letter27)-[:TO]->(flannery),
(letter28)-[:TO]->(fannie),
(letter28)-[:TO]->(brainard),
(letter29)-[:TO]->(brainard),
(letter30)-[:TO]->(flannery),
(letter31)-[:TO]->(flannery),
(letter32)-[:TO]->(brainard),
(letter33)-[:TO]->(fannie),
(letter33)-[:TO]->(brainard),
(letter34)-[:TO]->(fannie),
(letter34)-[:TO]->(brainard),
(letter35)-[:TO]->(flannery),
(letter36)-[:TO]->(brainard),
(letter36)-[:TO]->(fannie),
(letter37)-[:TO]->(fannie),
(letter38)-[:TO]->(flannery),
(letter39)-[:TO]->(fannie),
(letter40)-[:TO]->(fannie),
(letter41)-[:TO]->(fannie),
(letter42)-[:TO]->(flannery),
(letter43)-[:TO]->(fannie),
(letter43)-[:TO]->(brainard),
(letter44)-[:TO]->(regina),
(letter44)-[:TO]->(flannery),
(letter45)-[:TO]->(brainard),
(letter46)-[:TO]->(fannie),
(letter46)-[:TO]->(brainard),
(letter47)-[:TO]->(fannie),
(letter48)-[:TO]->(flannery),
(letter49)-[:TO]->(brainard),
(letter50)-[:TO]->(fannie),
(letter50)-[:TO]->(brainard),
(letter1)-[:FROM]->(flannery),
(letter2)-[:FROM]->(brainard),
(letter3)-[:FROM]->(flannery),
(letter4)-[:FROM]->(flannery),
(letter5)-[:FROM]->(brainard),
(letter6)-[:FROM]->(flannery),
(letter7)-[:FROM]->(flannery),
(letter8)-[:FROM]->(brainard),
(letter9)-[:FROM]->(flannery),
(letter10)-[:FROM]->(flannery),
(letter11)-[:FROM]->(brainard),
(letter12)-[:FROM]->(flannery),
(letter13)-[:FROM]->(flannery),
(letter14)-[:FROM]->(flannery),
(letter15)-[:FROM]->(flannery),
(letter16)-[:FROM]->(flannery),
(letter17)-[:FROM]->(flannery),
(letter18)-[:FROM]->(flannery),
(letter19)-[:FROM]->(flannery),
(letter20)-[:FROM]->(flannery),
(letter21)-[:FROM]->(flannery),
(letter22)-[:FROM]->(flannery),
(letter23)-[:FROM]->(flannery),
(letter24)-[:FROM]->(flannery),
(letter25)-[:FROM]->(brainard),
(letter26)-[:FROM]->(flannery),
(letter27)-[:FROM]->(brainard),
(letter28)-[:FROM]->(flannery),
(letter29)-[:FROM]->(flannery),
(letter30)-[:FROM]->(brainard),
(letter31)-[:FROM]->(brainard),
(letter32)-[:FROM]->(flannery),
(letter33)-[:FROM]->(flannery),
(letter34)-[:FROM]->(flannery),
(letter35)-[:FROM]->(brainard),
(letter36)-[:FROM]->(flannery),
(letter37)-[:FROM]->(flannery),
(letter38)-[:FROM]->(brainard),
(letter39)-[:FROM]->(flannery),
(letter40)-[:FROM]->(flannery),
(letter41)-[:FROM]->(flannery),
(letter42)-[:FROM]->(brainard),
(letter43)-[:FROM]->(flannery),
(letter44)-[:FROM]->(brainard),
(letter45)-[:FROM]->(flannery),
(letter46)-[:FROM]->(flannery),
(letter47)-[:FROM]->(flannery),
(letter48)-[:FROM]->(brainard),
(letter49)-[:FROM]->(flannery),
(letter50)-[:FROM]->(flannery)
----
//table
//graph
=== What did students of Nabokov write?
[source, cypher]
----
MATCH (fifties:NewLetter) WHERE fifties.date > 1950 AND fifties.date < 1960 RETURN fifties.name;
----
//table
//graph
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment