Last active
November 3, 2019 10:55
-
-
Save vladbatushkov/13824dc5022a92e341254aa41d06ca07 to your computer and use it in GitHub Desktop.
Sample of graph
This file contains hidden or 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
MATCH (n) DETACH DELETE n; | |
MERGE (org:Organization { name: "StarWars Company", taxid: 111222333 }) | |
MERGE (d0:Department { name: "IT" }) | |
MERGE (d1:Department { name: "Frontend" }) | |
MERGE (d2:Department { name: "DevOps" }) | |
MERGE (d3:Department { name: "Website" }) | |
MERGE (luke:Person { name: "Luke Skywalker" }) | |
MERGE (r2d2:Person { name: "R2D2" }) | |
MERGE (dart:Person { name: "Darth Wader" }) | |
MERGE (obi:Person { name: "Obi-Wan Kenobi" }) | |
MERGE (a:Project { name: "Death Star Backup" }) | |
MERGE (b:Project { name: "Stormtroopers Containerization" }) | |
MERGE (c:Project { name: "Landing Page for First Order" }) | |
MERGE (org)-[:CONTAINS]->(d0) | |
MERGE (org)-[:CONTAINS]->(d1) | |
MERGE (org)-[:CONTAINS]->(d2) | |
MERGE (org)-[:CONTAINS]->(d3) | |
MERGE (d1)-[:FROM]->(d0) | |
MERGE (d2)-[:FROM]->(d0) | |
MERGE (d3)-[:FROM]->(d1) | |
MERGE (a)-[:OWNED_BY]->(d2) | |
MERGE (b)-[:OWNED_BY]->(d2) | |
MERGE (c)-[:OWNED_BY]->(d1) | |
MERGE (luke)-[:WORK_FOR]->(org) | |
MERGE (r2d2)-[:WORK_FOR]->(org) | |
MERGE (dart)-[:WORK_FOR]->(org) | |
MERGE (obi)-[:WORK_FOR]->(org) | |
MERGE (dart)-[:BELONGS_TO]->(d0) | |
MERGE (luke)-[:BELONGS_TO]->(d1) | |
MERGE (r2d2)-[:BELONGS_TO]->(d1) | |
MERGE (r2d2)-[:BELONGS_TO]->(d3) | |
MERGE (obi)-[:BELONGS_TO]->(d2) | |
MERGE (d0)-[:LEAD_BY]->(dart) | |
MERGE (d1)-[:LEAD_BY]->(luke) | |
MERGE (d2)-[:LEAD_BY]->(obi) | |
MERGE (luke)-[:DEDICATED_TO { role: "Lead" }]->(c) | |
MERGE (r2d2)-[:DEDICATED_TO { reole: "HTML Markup Specialist" }]->(c) | |
MERGE (obi)-[:DEDICATED_TO { role: "Manager" }]->(a) | |
MERGE (obi)-[:DEDICATED_TO { role: "Manager" }]->(b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment