Skip to content

Instantly share code, notes, and snippets.

@Jmaharman
Last active December 14, 2015 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jmaharman/534ee95e807aa193faf2 to your computer and use it in GitHub Desktop.
Save Jmaharman/534ee95e807aa193faf2 to your computer and use it in GitHub Desktop.
A graph of groups, watchlists and members.
(FinanceLtd) {"name": "Finance Ltd", "_type": "client" }
(Microsoft) {"name": "Microsoft", "_type": "company" }
(Apple) {"name": "Apple", "_type": "company" }
(Google) {"name": "Google", "_type": "company"}
(SteveBalmer) {"name": "Steve Balmer", "firstName": "Steve", "lastName": "Balmer", "_type": "person" }
(BillGates) {"name": "Bill Gates", "firstName": "Bill", "lastName": "Gates", "_type": "person" }
(TimCook) {"name": "Tim Cook", "firstName": "Tim", "lastName": "Cook", "_type": "person" }
(SteveJobs) {"name": "Steve Jobs", "firstName": "Steve", "lastName": "Jobs", "_type": "person" }
(LarryPage) {"name": "Larry Page", "firstName": "Larry", "lastName": "Page", "_type": "person" }
(SergeiBrin) {"name": "Sergei Brin", "firstName": "Sergei", "lastName": "Brin", "_type": "person" }
(Microsoft)-[:APPOINTMENT]->(SteveBalmer) {"since": 20070101}
(Microsoft)-[:APPOINTMENT]->(SteveBalmer) {"since": 19750101, "ended": 20070101}
(Apple)-[:APPOINTMENT]->(TimCook) {"since": 20100101}
(Apple)-[:APPOINTMENT]->(SteveJobs) {"since": 19750101, "ended": 20100101}
(Google)-[:APPOINTMENT]->(LarryPage) {"since": 19900101}
(Google)-[:APPOINTMENT]->(SergeiBrin) {"since": 19900101}
(DotComs) {"name":"Big Dot Coms", "_type": "group"}
(BigHitters) {"name":"Big Hitters", "_type": "group"}
(OldCEOs) {"name":"Old CEOs", "_type": "group"}
(EmptyGroup) {"name":"Empty Group", "_type": "group"}
(FinanceLtd)-[:OWNS]->(DotComs)
(FinanceLtd)-[:OWNS]->(BigHitters)
(FinanceLtd)-[:OWNS]->(OldCEOs)
(FinanceLtd)-[:OWNS]->(EmptyGroup)
(AppleBooBoys) {"name":"Apple Boo Boys", "_type": "watchlist"}
(GoogleSchmoogle) {"name":"Google Schmoogle", "_type": "watchlist"}
(MicrosoftHaters) {"name":"Microsoft Haters", "_type": "watchlist"}
(FinanceLtd)-[:OWNS]->(AppleBooBoys)
(FinanceLtd)-[:OWNS]->(GoogleSchmoogle)
(FinanceLtd)-[:OWNS]->(MicrosoftHaters)
(DotComs)-[:LINKED_TO]->(MicrosoftHaters)
(BigHitters)-[:LINKED_TO]->(AppleBooBoys)
(BigHitters)-[:LINKED_TO]->(GoogleSchmoogle)
(BigHitters)-[:LINKED_TO]->(MicrosoftHaters)
(OldCEOs)-[:LINKED_TO]->(AppleBooBoys)
(OldCEOs)-[:LINKED_TO]->(GoogleSchmoogle)
(DotComs)-[:WATCHING]->(Apple)
(DotComs)-[:WATCHING]->(Microsoft)
(DotComs)-[:WATCHING]->(Google)
(BigHitters)-[:WATCHING]->(TimCook)
(BigHitters)-[:WATCHING]->(SteveBalmer)
(BigHitters)-[:WATCHING]->(LarryPage)
(BigHitters)-[:WATCHING]->(SergeiBrin)
(OldCEOs)-[:WATCHING]->(SteveJobs)
(OldCEOs)-[:WATCHING]->(BillGates)
(AppleBooBoys)-[:WATCHING]->(SteveJobs)
(AppleBooBoys)-[:WATCHING]->(TimCook)
(GoogleSchmoogle)-[:WATCHING]->(LarryPage)
(GoogleSchmoogle)-[:WATCHING]->(SergeiBrin)
(MicrosoftHaters)-[:WATCHING]->(SteveBalmer)
(MicrosoftHaters)-[:WATCHING]->(BillGates)
(MicrosoftHaters)-[:WATCHING]->(Microsoft)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment