Skip to content

Instantly share code, notes, and snippets.

@webbni
Forked from suellenstringer-hye/networkanalysisworkshop
Last active July 19, 2016 14:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save webbni/829df83d9de58fdeabe0 to your computer and use it in GitHub Desktop.
Save webbni/829df83d9de58fdeabe0 to your computer and use it in GitHub Desktop.
scworkshop
= Network analysis with Neo4j
:neo4j-version: 2.1.0
:author: Suellen Stringer-Hye
:twitter: @suellenshye
:tags: domain:education, use-case:network analysis
//graph
=== OUR DATASET
[source, cypher]
----
CREATE
//Main Event
(a:Main{name:'Person Calls'}),
(b:Main{name:'access stories or to share your own', speech:'if you like to access stories press one', url:'https://vanderbilt.box.com/s/7yvenul7gy1dphxsdqazlvtaa4g63ev3'}),
(c:Main{name:'Thank you note', speech:'Thank you so much for calling in to participate in this project It will surely benefit the community now and in the future The goal of these questions is to produce as detailed and coherent a narrative of your story as possible Please feel free to use the last option to add more information', url:'https://vanderbilt.box.com/s/7yvenul7gy1dphxsdqazlvtaa4g63ev3'}),
(d:Main{name:'name and age', speech: 'Please state your name and age', url:'https://vanderbilt.box.com/s/eho097guu5alyzyo0fr2ou4oz027oww4'}),
(e:Main{name:'located', speech: 'where are you located', url:'https://vanderbilt.box.com/s/dihmt0svlwb0rz4gyh4rsxvjur6we8zj'}),
(f:Main{name:'birth going on there growing up', speech:'Tell me about your place of birth and about what was going on there then and as you were growing up', url:'https://vanderbilt.box.com/s/jbk9mia3o7yhjjgtkqi5c9xbiogv8tqj'}),
(g:Main{name:'childhood fondest memories', speech: 'What was your childhood like What are your fondest memories', url:'https://vanderbilt.box.com/s/5s1xis2bjjwyu0higr93yaldnjogae8r'}),
(h:Main{name:'school teachers remember schoolchild', speech: 'What was school like How and who were your teachers What things do you remember about your time as a schoolchild', url:'https://vanderbilt.box.com/s/pup96xfsfvih8cslxrhwledg79suuy7m'}),
(i:Main{name:'parents and grandparents Where', speech: 'Tell me about your parents and grandparents. What were they like Where were they from (if somewhere other than your place of birth)', url:'https://vanderbilt.box.com/s/320956izy4qms6i4x1qgx3yp7cyddsgl'}),
(j:Main{name:'best friends do together', speech: 'Who were your best friends What were your favorite things to do together', url:'https://vanderbilt.box.com/s/crwbcw8h3ocl57ly4wxiri33zar34wum'}),
(k:Main{name:'ever moved where to where', speech: 'Have you yourself ever migrated If so from where to where',url:'https://vanderbilt.box.com/s/m0goefpnvh79kcf1xpoch4qqivdatbss'}),
(l:Main{name:'married husband/wife', speech: 'Are you married If so how did you meet your husband/wife', url:'https://vanderbilt.box.com/s/1j51znlp0uonmzaj4b97saukue1juxle'}),
(m:Main{name:'children Where born', speech: 'Do you have children How old are they Where were they born', url:'https://vanderbilt.box.com/s/8zm1wl90eikqde83tgf4v1xglo3eqe7w'}),
(n:Main{name:'support family life long occupation', speech: 'How was your family supported What was your life long occupation', url:'https://vanderbilt.box.com/s/20666kogouma5bc0l41vzvew8jrhzb83'}),
(o:Main{name:'define yourself cultural racial or ethnic identity', speech: 'How do you define yourself in terms of cultural racial or ethnic identity', url:'https://vanderbilt.box.com/s/8fy9ifjtc509bh6z3zgaoe9iukqtrsjk'}),
(p:Main{name:'multiple identities or cultures', speech: 'Do you ever feel yourself to be between multiple identities or cultures If so in what way and in what moments/circumstances Has this impacted the way youve lived your life', url:'https://vanderbilt.box.com/s/df2hqvr77848x0d6wpvn6hr44t36ndq3'}),
(q:Main{name:'one memory your life forever', speech: 'If you could hold on to one memory from your life forever what would that be', url:'https://vanderbilt.box.com/s/piexv1ubl29cd81nxjqc8bxr4vs2kgha'}),
(r:Main{name:'any other information', speech: 'Is there other information you want to include that we havent yet touched upon', url:'https://vanderbilt.box.com/s/dsil209xe7frmdgefwz80t5v09s4i1cw'}),
//Secondary Event
(s:Secondary{name:'Access stories'}),
(t:Secondary{name:'Share my own'}),
(u:Secondary{name:'Skip thank you note'}),
(v:Secondary{name:'Cant Understand'}),
(w:Secondary{name:'Skip question'}),
(x:Secondary{name:'name and age'}),
(y:Secondary{name:'Cant Understand'}),
(z:Secondary{name:'Skip question'}),
(zz:Secondary{name:'located'}),
(aa:Secondary{name:'Cant Understand'}),
(ab:Secondary{name:'Skip question'}),
(ac:Secondary{name:'birth going on there growing up'}),
(ad:Secondary{name:'Cant Understand'}),
(ae:Secondary{name:'Skip question'}),
(af:Secondary{name:'childhoodfondest memories'}),
(ag:Secondary{name:'Cant Understand'}),
(ah:Secondary{name:'Skip question'}),
(ai:Secondary{name:'school teachers remember schoolchild'}),
(aj:Secondary{name:'Cant Understand'}),
(ak:Secondary{name:'Skip question'}),
(al:Secondary{name:'parents and grandparents where'}),
(am:Secondary{name:'Cant Understand'}),
(an:Secondary{name:'Skip question'}),
(ao:Secondary{name:'best friends do together'}),
(ap:Secondary{name:'Cant Understand'}),
(aq:Secondary{name:'Skip question'}),
(ar:Secondary{name:'ever moved where to where'}),
(as:Secondary{name:'Cant Understand'}),
(at:Secondary{name:'Skip question'}),
(au:Secondary{name:' married husband/wife'}),
(av:Secondary{name:'Cant Understand'}),
(aw:Secondary{name:'Skip question'}),
(ax:Secondary{name:'children Where born'}),
(ay:Secondary{name:'Cant Understand'}),
(az:Secondary{name:'Skip question'}),
(ba:Secondary{name:'support your family life long occupation'}),
(bb:Secondary{name:'Cant Understand'}),
(bc:Secondary{name:'Skip question'}),
(bd:Secondary{name:'define self cultural, racial, or ethnic identity'}),
(be:Secondary{name:'Cant Understand'}),
(bf:Secondary{name:'Skip question'}),
(bg:Secondary{name:'multiple identities cultures'}),
(bh:Secondary{name:'Cant Understand'}),
(bi:Secondary{name:'Skip question'}),
(bj:Secondary{name:'one memory life forever'}),
(bk:Secondary{name:'Cant Understand'}),
(bl:Secondary{name:'Skip question'}),
(bm:Secondary{name:'any other information'}),
//Relationships
(a)-[:R{event:'first'}]->(b),
(b)-[:R{event:'second'}]->(c),
(c)-[:R{event:'third'}]->(d),
(d)-[:R{event:'fourth'}]->(e),
(e)-[:R{event:'fifth'}]->(f),
(f)-[:R{event:'sixth'}]->(g),
(g)-[:R{event:'seventh'}]->(h),
(h)-[:R{event:'eight'}]->(i),
(i)-[:R{event:'ninth'}]->(j),
(j)-[:R{event:'tenth'}]->(k),
(k)-[:R{event:'eleventh'}]->(l),
(l)-[:R{event:'twelvth'}]->(m),
(m)-[:R{event:'thirteenth'}]->(n),
(n)-[:R{event:'fourteenth'}]->(o),
(o)-[:R{event:'fifteenth'}]->(p),
(p)-[:R{event:'sixteenth'}]->(q),
(b)-[:R{event:'seventeeth'}]->(s),
(b)-[:R{event:'eighteenth'}]->(t),
(s)-[:R{event:'nineteenth'}]->(c),
(t)-[:R{event:'twentieth'}]->(c),
(s)-[:R{event:'twentyfirst'}]->(u),
(t)-[:R{event:'twentysecond'}]->(u),
(d)-[:R{event:'twentythird'}]->(v),
(d)-[:R{event:'twentyfourth'}]->(w),
(v)-[:R{event:'twentyfifth'}]->(e),
(v)-[:R{event:'twentysixth'}]->(d),
(v)-[:R{event:'twentyseventh'}]->(x),
(e)-[:R{event:'twentyeigth'}]->(y),
(e)-[:R{event:'twentyninth'}]->(z),
(y)-[:R{event:'thirtieth'}]->(zz),
(z)-[:R{event:'thirtyfirst'}]->(f),
(f)-[:R{event:'thirtysecond'}]->(aa),
(f)-[:R{event:'thirtythird'}]->(ab),
(aa)-[:R{event:'thirtyfouth'}]->(ac),
(ab)-[:R{event:'thirtyfifth'}]->(g),
(g)-[:R{event:'thirtysixth'}]->(ad),
(g)-[:R{event:'thirtyseventh'}]->(ae),
(ad)-[:R{event:'thirtyeigth'}]->(af),
(ae)-[:R{event:'thirtyninth'}]->(h),
(h)-[:R{event:'fortieth'}]->(ag),
(ah)-[:R{event:'fortyfirst'}]->(i),
(ag)-[:R{event:'fortysecond'}]->(ai),
(i)-[:R{event:'fortythird'}]->(aj),
(i)-[:R{event:'fortyfourth'}]->(ak),
(aj)-[:R{event:'fortyfifth'}]->(al),
(ak)-[:R{event:'fortysixth'}]->(j),
(j)-[:R{event:'fortyseventh'}]->(am),
(j)-[:R{event:'fortyeigth'}]->(an),
(an)-[:R{event:'fortyninth'}]->(k),
(am)-[:R{event:'fiftieth'}]->(ao),
(k)-[:R{event:'fiftyfirst'}]->(ap),
(k)-[:R{event:'fiftysecond'}]->(aq),
(ap)-[:R{event:'fiftythird'}]->(ar),
(ak)-[:R{event:'fiftyfourth'}]->(j),
(aq)-[:R{event:'fiftyfifth'}]->(l),
(l)-[:R{event:'fiftysixth'}]->(as),
(l)-[:R{event:'fiftyseventh'}]->(at),
(at)-[:R{event:'fiftyeighth'}]->(m),
(as)-[:R{event:'fiftyninth'}]->(au),
(m)-[:R{event:'sixtieth'}]->(av),
(m)-[:R{event:'sixtyfirst'}]->(aw),
(av)-[:R{event:'sixtysecond'}]->(ax),
(aw)-[:R{event:'sixtythird'}]->(n),
(n)-[:R{event:'sixtyfourth'}]->(ay),
(n)-[:R{event:'sixtyfifth'}]->(az),
(ay)-[:R{event:'sixtysixth'}]->(o),
(az)-[:R{event:'sixtyseventh'}]->(ba),
(o)-[:R{event:'sixtyeigth'}]->(bb),
(o)-[:R{event:'sixtyninth'}]->(bc),
(bb)-[:R{event:'seventieth'}]->(bd),
(p)-[:R{event:'seventyfirst'}]->(be),
(p)-[:R{event:'seventysecond'}]->(bf),
(bf)-[:R{event:'seventythird'}]->(q),
(be)-[:R{event:'seventyfourth'}]->(bg),
(q)-[:R{event:'seventyfifth'}]->(bh),
(q)-[:R{event:'seventysixth'}]->(bl),
(bi)-[:R{event:'seventyseventh'}]->(r),
(bh)-[:R{event:'seventyeigth'}]->(bj),
(r)-[:R{event:'seventyninth'}]->(bk),
(bh)-[:R{event:'eigtieth'}]->(bj),
(r)-[:R{event:'eigtyfirst'}]->(bl),
(bk)-[:R{event:'eigtysecond'}]->(s),
(bl)-[:R{event:'eigtythird'}]->(bm)
----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment