SlideShare a Scribd company logo
1 of 11
PUT THE WHITEBOARD IN YOUR
DATABASE
Modeling with grafdatabser
Lightning talk, Graph Databases – Oslo Meetup
26.05.2014
Jørgen Braseth – jorgen.braseth@bekk.no
JØRGEN’S LIFE – WHITEBOARD EDITION
MagnusErik TonjeArne
Michael
Lise
MohammedYngveKaiRune
Jan-Fredrik
Jan
Hilde
Torshov
Øya
Moholt
Hønefoss Jørgen
JØRGENS LIFE – RELATIONAL DATABASE EDITION
Property relation Address
RelationPerson
Is the property in a
Is the person in a
Is related to
Is in a romantic relationship with
JØRGENS LIFE – RELATIONAL DATABASE EDITION
ID Navn
1 Jørgen
2 Erik
3 Arne
4 Magnus
5 Tonje
11 Rune
12 Jan-Fredrik
13 Jan
14 Hilde
People
ID Navn
1 Torshov
2 Øya
3 Moholt
4 Hønefoss
Adresses
ID FROM TO START END TYPE
1 1 14 02.04.82 (null) CHILD_OF
2 1 13 02.04.82 (null) CHILD_OF
3 13 14 22.06.78 (null) MARRIED_TO
4 1 12 02.04.82 (null) SIBLING_OF
5 1 5 16.05.06 20.08.09 IN_RELATIONSHIP_WITH
6 1 7 03.02.02 11.09.05 IN_RELATIONSHIP_WITH
Relations
ID PERSON_ID ADDRESS_ID START END INHABITS OWNERSHIP
1 1 4 01.06.84 20.07.01 true (null)
2 1 3 20.07.01 01.01.03 true RENTS
3 1 2 01.01.03 01.01.05 true OWNS
4 1 2 01.01.05 24.04.05 false OWNS
… … … … … … …
17 3 1 01.06.84 02.07.12 true OWNS
Property relations
Jørgen Arne
?
SELECT * FROM
people p1, people p2,
relations, address a1, address a2,
propertyRelations ef1, propertyRelations ef2
WHERE
p1.name="Jørgen" AND p2.name="Arne"
AND(
(
(p1.id=relations.from AND p2.id=relations.to)
OR
(p2.id=relations.from AND p1.id=relations.to)
) OR (
p1.id=ef1.person_id AND
a1.id=ef1.address_id AND
p2.id=ef2.person_id AND
a2.id=ef2.address_id AND
a1.id=a2.id
)
)
Jørgen Arne
?
Impedence mismatch!
JØRGEN’S LIFE – GRAPH DATABASE EDITION
Jørgen Arne
?({name:'Jørgen'}) - [*] - > ({name:'Arne'})MATCH relation =
RETURN relation
Where have Jørgen lived?
Who is older, Jørgen or Arne?
How many people have lived in Hønefoss?
What, if any, are the connections between Jan-Fredrik and Arne?
Of those that have lived with Jørgen, what kinds of connections do
they have to each other?
Jørgen og Arne have lived together before!
put the whiteboard in your database
Store it like you think it

More Related Content

Recently uploaded

Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxolyaivanovalion
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% SecurePooja Nehwal
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...amitlee9823
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...amitlee9823
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsJoseMangaJr1
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...amitlee9823
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxolyaivanovalion
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...amitlee9823
 
ALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptxALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptxolyaivanovalion
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...amitlee9823
 

Recently uploaded (20)

Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 
Anomaly detection and data imputation within time series
Anomaly detection and data imputation within time seriesAnomaly detection and data imputation within time series
Anomaly detection and data imputation within time series
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptx
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
 
ALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptxALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptx
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
 

Featured

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 

Featured (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

Put the whiteboard in your database

  • 1. PUT THE WHITEBOARD IN YOUR DATABASE Modeling with grafdatabser Lightning talk, Graph Databases – Oslo Meetup 26.05.2014 Jørgen Braseth – jorgen.braseth@bekk.no
  • 2. JØRGEN’S LIFE – WHITEBOARD EDITION MagnusErik TonjeArne Michael Lise MohammedYngveKaiRune Jan-Fredrik Jan Hilde Torshov Øya Moholt Hønefoss Jørgen
  • 3. JØRGENS LIFE – RELATIONAL DATABASE EDITION Property relation Address RelationPerson Is the property in a Is the person in a Is related to Is in a romantic relationship with
  • 4. JØRGENS LIFE – RELATIONAL DATABASE EDITION ID Navn 1 Jørgen 2 Erik 3 Arne 4 Magnus 5 Tonje 11 Rune 12 Jan-Fredrik 13 Jan 14 Hilde People ID Navn 1 Torshov 2 Øya 3 Moholt 4 Hønefoss Adresses ID FROM TO START END TYPE 1 1 14 02.04.82 (null) CHILD_OF 2 1 13 02.04.82 (null) CHILD_OF 3 13 14 22.06.78 (null) MARRIED_TO 4 1 12 02.04.82 (null) SIBLING_OF 5 1 5 16.05.06 20.08.09 IN_RELATIONSHIP_WITH 6 1 7 03.02.02 11.09.05 IN_RELATIONSHIP_WITH Relations ID PERSON_ID ADDRESS_ID START END INHABITS OWNERSHIP 1 1 4 01.06.84 20.07.01 true (null) 2 1 3 20.07.01 01.01.03 true RENTS 3 1 2 01.01.03 01.01.05 true OWNS 4 1 2 01.01.05 24.04.05 false OWNS … … … … … … … 17 3 1 01.06.84 02.07.12 true OWNS Property relations
  • 6. SELECT * FROM people p1, people p2, relations, address a1, address a2, propertyRelations ef1, propertyRelations ef2 WHERE p1.name="Jørgen" AND p2.name="Arne" AND( ( (p1.id=relations.from AND p2.id=relations.to) OR (p2.id=relations.from AND p1.id=relations.to) ) OR ( p1.id=ef1.person_id AND a1.id=ef1.address_id AND p2.id=ef2.person_id AND a2.id=ef2.address_id AND a1.id=a2.id ) ) Jørgen Arne ?
  • 8. JØRGEN’S LIFE – GRAPH DATABASE EDITION
  • 9. Jørgen Arne ?({name:'Jørgen'}) - [*] - > ({name:'Arne'})MATCH relation = RETURN relation
  • 10. Where have Jørgen lived? Who is older, Jørgen or Arne? How many people have lived in Hønefoss? What, if any, are the connections between Jan-Fredrik and Arne? Of those that have lived with Jørgen, what kinds of connections do they have to each other? Jørgen og Arne have lived together before!
  • 11. put the whiteboard in your database Store it like you think it

Editor's Notes

  1. Hei, jeg heter Jørgen og jeg er forelska i grafdatabaser. Nå skal jeg fortelle dere om én av de mange grunnene…
  2. La meg fortelle dere bittelitt om livet mitt frem til nå… Jørgen – det er meg. Jeg har bodd 4 steder. På hver av disse stedene, har jeg bodd sammen med noen. I hønefoss bodde jeg med familien min. Mamma og Pappa og broren min Jan-Fredrik. Så flyttet jeg til Trondheim for å studere. På moholt studentby bodde jeg med 4 andre personer ila. Halvannet år Rune, Kai, Yngve og Mohammed Så kjøpte jeg meg egen leilighet på Øya i Trondheim. På øya bodde jeg først med Michael, og etter hvert så flyttet dama mi inn også. Når jeg var ferdig i Trondheim flyttet jeg til Oslo, begynte i BEKK og fikk meg leilighet på Torshov. Der har jeg bodd siden, og har over 7 år bodd med Erik, Arne, Magnus og på ett tidspunkt dama, nå eksdama mi, Tonje --- Nå har jeg tegnet inn relasjonene mellom personer og adresser slik jeg ville gjort på ei tavle. I tillegg til disse relasjonene mellom bosted og adresser, så har jeg nevnt noen andre relasjone: Jeg fortalte at familien min var Jan, Hilde og Jan-Fredrik, så jeg har familierelasjoner til dem. Jeg fortalte dere også om to av eksene mine, Lise og Tonje, som jeg har hatt kjæresteforhold til. I tillegg så har mamma og pappa også et pågående kjæresteforhold. La oss tegne inn disse… --- Dette er en tegning, relativt forståelig, av historien jeg nettopp fortalte. Hva om vi ville lagre denne historien i databasen vår?
  3. Vel, for å få oversikt, så begynner vi med et ER-diagram, omtrent som dette. Dette en oversikt over hvilke typer entiteter vi har, og hvordan de forholder seg til hverandre. I hvor mange minutter forholder man seg til denne?
  4. DETTE er det vi egentlig forholder oss til! 41 rader fordelt på fire tabeller, med en liten bit av totalbildet i hver enkelt rad.
  5. «Hva spør jeg om her?» «Finnes det noen kobling mellom Jørgen og Arne?» Eller «Hvilke forhold har Jørgen til Arne?»
  6. Spørringen gir deg kun direkte sammenhenger: direkte personrelasjoner og folk som har forholdt til samme adresse
  7. DET BLIR FOR VANSKELIG Å TENKE PÅ MODELLEN DIN! “Impedans for veksestrøm = motstand for likestrøm” Nøkkelorder her er: “Impedans” = Motstand DVS: Impedance mismatch = «Motstanden» databasen din gir deg når du prøver å forholde deg til datamodellen din
  8. DETTE ER SLIK VI TENKER RUNDT MODELLEN Forskjellen på en relasjonsdatabase og en grafdatabaser er at I en grafdatabase så ER dette datamodellen! Alt er modellert slik. Det er slik du jobber med modellen din.
  9. Tegn hva du lurer på - på white board Tegn det igjen – i ASCII!  Cypher syntax! CREATE og «SELECT» samme prinsipp – tegn mønsteret! Når du lagrer dataene på denne måten, og kan forholde deg til dem slik, så begynner du å tenke på en helt annen måte, «vanskelige» spørsmål blir lette å få svar på! du begynner å stille spørsmål til dataene dine som du aldri ville funnet på å stille tidligere!
  10. Du går fra de gamle lukkede spørsmålene: du vet at det finnes et svar du vet formatet på svaret du vet et bestemt antall steg du må gå for å finne svaret Til å stille åpne spørsmål, til å utforske dataene dine, til å finne nye sammenhenger
  11. Min oppfordring. Gå hjem og prøv deg på å lagre domenet ditt slik du tenkte på det i utgangspunktet. Legg whiteboarden i databasen!