Last active
December 29, 2015 02:19
-
-
Save Pimsepinnen/7599879 to your computer and use it in GitHub Desktop.
Dr Who and (un)friends
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= Hello Doctor! | |
//console | |
[source, cypher] | |
---- | |
CREATE | |
//The Doctor | |
(timelord:Timelord{name:'Doctor Who'}), | |
//Humans | |
(rose:Person{name:'Rose Tyler'}), | |
(martha:Person{name:'Martha Jones'}), | |
(donna:Person{name:'Donna Noble'}), | |
(clara:Person{name:'Clara Oswald'}), | |
(rory:Person{name:'Rory Williams'}), | |
(amy:Person{name:'Amy Pond'}), | |
(mickey:Person{name:'Mickey Smith'}), | |
(jack:Person{name:'Captain Jack Harkness'}), | |
(river:Person{name:'River Song'}), | |
//Aliens | |
(autons:Alien{name:'the Autons'}), | |
(dalek:Alien{name:'the Daleks'}), | |
(cyberman:Alien{name:'Cybermen'}), | |
(sontarans:Alien{name:'the Sontarans'}), | |
(rassilon:Alien{name:'Rassalion'}), | |
(icewarriors:Alien{name:'the Icewarriors'}), | |
(zygons:Alien{name:'the Zygons'}), | |
(slitheen:Alien{name:'Slitheen'}), | |
(ood:Alien{name:'Ood'}), | |
(judoon:Alien{name:'Judoon'}), | |
(angels:Alien{name:'Weeping Angels'}), | |
(silence:Alien{name:'The Silence'}), | |
//Planets | |
(gallifrey:Planet{name:'Gallifrey'}), | |
(skaro:Planet{name:'Skaro'}), | |
(mondas:Planet{name:'Mondas'}), | |
(earth:Planet{name:'Earth'}), | |
//Adversaries | |
(timelord)<-[:ADVERSARIES]-(autons), | |
(timelord)<-[:ADVERSARIES]-(dalek), | |
(timelord)<-[:ADVERSARIES]-(cyberman), | |
(timelord)<-[:ADVERSARIES]-(sontarans), | |
(timelord)<-[:ADVERSARIES]-(rassilon), | |
(timelord)<-[:ADVERSARIES]-(icewarriors), | |
(timelord)<-[:ADVERSARIES]-(zygons), | |
(timelord)<-[:ADVERSARIES]-(slitheen), | |
(timelord)<-[:ADVERSARIES]-(ood), | |
(timelord)<-[:ADVERSARIES]-(judoon), | |
(timelord)<-[:ADVERSARIES]-(angels), | |
(timelord)<-[:ADVERSARIES]-(silence), | |
//Companion | |
(timelord)<-[:COMPANION]-(rose), | |
(timelord)<-[:COMPANION]-(martha), | |
(timelord)<-[:COMPANION]-(donna), | |
(timelord)<-[:COMPANION]-(clara), | |
(timelord)<-[:COMPANION]-(rory), | |
(timelord)<-[:COMPANION]-(amy), | |
(timelord)<-[:COMPANION]-(mickey), | |
(timelord)<-[:COMPANION]-(jack), | |
//LOVES | |
(rose)<-[:LOVES]-(mickey), | |
(mickey)<-[:LOVES]-(rose), | |
//MARRIED | |
(timelord)<-[:MARRIED_TO]-(river), | |
(rory)<-[:MARRIED_TO]-(amy), | |
(rory)<-[:LOVES]-(amy), | |
(amy)<-[:LOVES]-(rory), | |
(rory)<-[:FATHER_OF]-(river), | |
(amy)<-[:MOTHER_OF]-(river), | |
//LIVES_ON | |
//GALLIFREY | |
(timelord)-[:LIVES_ON]->(gallifrey), | |
//EARTH | |
(amy)-[:LIVES_ON]->(earth), | |
(donna)-[:LIVES_ON]->(earth), | |
(clara)-[:LIVES_ON]->(earth), | |
(mickey)-[:LIVES_ON]->(earth), | |
(amy)-[:LIVES_ON]->(earth), | |
(rory)-[:LIVES_ON]->(earth), | |
(martha)-[:LIVES_ON]->(earth), | |
(river)-[:LIVES_ON]->(earth), | |
(jack)-[:LIVES_ON]->(earth), | |
//SKARO | |
(dalek)-[:LIVES_ON]->(skaro), | |
//MONDAS | |
(cyberman)-[:LIVES_ON]->(mondas) | |
RETURN cyberman as node | |
---- | |
== “Do what I do. Hold tight and pretend it’s a plan!” | |
//table | |
//graph | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment