Skip to content

Instantly share code, notes, and snippets.

@tomasonjo
Last active April 25, 2023 12:16
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 tomasonjo/52b2da916ef5cd1c2adf0ad62cc71a26 to your computer and use it in GitHub Desktop.
Save tomasonjo/52b2da916ef5cd1c2adf0ad62cc71a26 to your computer and use it in GitHub Desktop.
MERGE (sun:AstronomicalObject {name: "Sun"})
MERGE (mercury:AstronomicalObject {name: "Mercury"})
MERGE (venus:AstronomicalObject {name: "Venus"})
MERGE (earth:AstronomicalObject {name: "Earth"})
MERGE (mars:AstronomicalObject {name: "Mars"})
MERGE (jupiter:AstronomicalObject {name: "Jupiter"})
MERGE (saturn:AstronomicalObject {name: "Saturn"})
MERGE (uranus:AstronomicalObject {name: "Uranus"})
MERGE (neptune:AstronomicalObject {name: "Neptune"})
MERGE (mercury)-[:ORBITS]->(sun)
MERGE (venus)-[:ORBITS]->(sun)
MERGE (earth)-[:ORBITS]->(sun)
MERGE (mars)-[:ORBITS]->(sun)
MERGE (jupiter)-[:ORBITS]->(sun)
MERGE (saturn)-[:ORBITS]->(sun)
MERGE (uranus)-[:ORBITS]->(sun)
MERGE (neptune)-[:ORBITS]->(sun)
MERGE (moon:Satellite {name: "Moon"})
MERGE (moon)-[:ORBITS]->(earth)
MERGE (iss:Satellite {name: "ISS"})
MERGE (iss)-[:ORBITS]->(earth)
MERGE (hubble:Satellite {name: "Hubble Space Telescope"})
MERGE (hubble)-[:ORBITS]->(earth)
SET moon.radius = 1737.1
SET moon.mass = 7.34e22
SET iss.altitude = 408
SET hubble.altitude = 559
SET hubble.type = "Orbital Observatory"
SET sun.radius = 695700
SET sun.mass = 1.989e30
SET earth.radius = 6371
SET earth.mass = 5.97e24
SET earth.atmosphere = ["nitrogen", "oxygen", "argon"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment