Mission to mars - the red planet

20
Mission to Mars @p3rnilla THE RED PLANET

description

GEEK GIRL MEETUP – ENTER.SPACE 25-26 maj 2013 #GGM13 Presentation from the conference Graph Databases - How does it works? How should you do when you want to plan a mission to mars, store all data and all information. A fun short talk on how you can use a graph database.

Transcript of Mission to mars - the red planet

Page 1: Mission to mars - the red planet

Mission to Mars

!

@p3rnilla

THE RED PLANET

Page 2: Mission to mars - the red planet

”In the last century, Neil Armstrong became the first person to walk on the Moon. In this century you may become the first person to walk on Mars...” - Franklyn M Branley !!

>>

Page 3: Mission to mars - the red planet

Research

Page 4: Mission to mars - the red planet

10 things you should know about Mars

!

1. Mars is the fourth planet from the sun

2. Mars is the seventh largest planet

3. Mars is a small rocky body

4. Mars's surface is closest to that of Earth of any of the planets

5. Mars may be the best hope for finding life away from Earth

6. Mars has inspired wild flights of imagination over the centuries

7. Mars has two tiny satellites which orbit very close to the surface

8. Mars has some remarkable geological characteristics

9. Mars has been visited by several probes

10. One day, humans will walk on Mars...

!!Time to plan the trip...

Page 5: Mission to mars - the red planet

What do we needPeopleSpace Crew

Land Crew

Supply Maps/Navigation System

Time schedule

Spacecraft

$$Money

Astronauts

Engineers Managers

Doctors

operative personal

Admin personal

foodwater Test, test ,testWC

space suits

communication tools

documentation

Mars

Earth

stars

training

fuelSystem

Salaries

clothes

training program

<6 months - from Earth> mars

more research

mars rover

planning

prep timerecovering time Summary

sponsors

smart people

Page 6: Mission to mars - the red planet

??? How do we store all the

this information in a good way - so we easily can find

it after 5 years ???

!

Page 7: Mission to mars - the red planet

Let’s do it again

Page 8: Mission to mars - the red planet

??? How do we store all the

this information in a good way - so we easily can find

it after 5 years ???

!

WÄÄÄÄÄ

Page 9: Mission to mars - the red planet

SO MUCH DATA

Page 10: Mission to mars - the red planet

SQL (Structured Query Language)

NoSQL (Not only SQL)

Relational Database (MySQL)

Document-Oriented Database (MongoDB)Column Oriented (Cassandra)

Key Value Stores (Redis, Riak)

Graph Database (Neo4j)

Page 11: Mission to mars - the red planet

Let’s try it with a graph database...

Page 12: Mission to mars - the red planet

Modeling the data

Page 13: Mission to mars - the red planet
Page 14: Mission to mars - the red planet

to

participate_in

fly

control

works_

in

works_at

look_after

look_after

works_at

works_at

part_o

f

Mars

Mission_To_Mars

Astronaut Pernilla

Spaceship

control_tower

Admin Stina

Manager Lisa

Doctor

Michaela

NASA

Headquarter

Page 15: Mission to mars - the red planet

to

participate_in

fly

control

works_

in

works_at

look_after

look_after

works_at

works_at

part_o

f

Mars

Mission_To_Mars

Astronaut Pernilla

Spaceship

control_tower

Admin Stina

Manager Lisa

Doctor

Michaela

NASA

Headquarter

Page 16: Mission to mars - the red planet

A graph database =

Nodes and relationships

Nodes RelationshipsMars

Pernilla AstronautAnna Manager

Michaela DoctorLisa Admin

Stina Engineer

Supply

SpaceshipNASAControl Tower

Mission_to_Mars

Money

goes_into

builtdesignfly

works_in

look_after

works_at

participate_in

to

manage

pay_mission

Page 17: Mission to mars - the red planet

Cypher - a graph query language

๏a pattern-matching query language

๏declarative grammar with clauses (like SQL)

๏aggregation, ordering, limits

๏create, read, update, delete, match

Page 18: Mission to mars - the red planet

// create a node create (astronaut:Astronaut {name:"Pernilla", age: 28}),(target:Planet {planet:"Mars"}),

(mission:Mission {mission:"Mission to Mars"});

// find nodes match to node 1,2,3 MATCH (astronaut)-[:PARTICIPATES_IN] ->(mission)-[:TO]->(Planet:planet) where planet.planet = "Mars" RETURN astronaut.name

Page 19: Mission to mars - the red planet

Demo !

http://docs.neo4j.org/chunked/snapshot/cypherdoc-create-nodes-and-relationships.html

Page 20: Mission to mars - the red planet

THANKS! !

Questions?