avatarChristianlauer

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

1486

Abstract

exels.com/tr-tr/fotograf/dagin-onune-bulutlu-gokyuzu-altinda-yanas-206359/">Pixabay</a> on<a href="https://www.pexels.com/tr-tr/"> Pexels</a></figcaption></figure><h2 id="68cb">6-“If the water is calm, the boat is also calm! If your thoughts are calm, your life is also calm!” ― Mehmet Murat ildan</h2><h2 id="470e">7- “The nearer a man comes to a calm mind the closer he is to strength”</h2><h2 id="032a">— Marcus Aurelius</h2><h2 id="7b19">8-“When you make peace with yourself, you make peace with the world.”</h2><h2 id="3e44">— Maha Ghosananda</h2><h2 id="8c7d">9- “Life is not a problem to be solved, but a reality to be experienced.”</h2><h2 id="63ef">— Soren Kierkegaard</h2><h2 id="a353">10-“In three words I can sum up everything I’ve learned about life: It goes on.”</h2><h2 id="dbf7">―Robert Frost</h2><h1 id="3b9e">Final thoughts</h1><p id="76f6">Today I’ve shared with you <b>10 powerful quotes to calm your mind.</b></p><p id="2cd3">Thank you for reading.</p><p id="8300">-E.K.</p><div id="1747" class="link-block"> <a href="https://readmedium.com/for-people-who-rely-on-their-emotions-to-guide-them-through-life-d18f791686cf"> <div> <div> <h2>For People Who Rely on Their Emotions To Guide Them Through Life</h2> <div><h3>And a recipe to lead your emotions rather than being led by them</h3></div> <div><p>medium.com</p></div> </div> <div> <di

Options

v style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*HwlNVhvosvncwquAjgtHCw.jpeg)"></div> </div> </div> </a> </div><div id="01de" class="link-block"> <a href="https://readmedium.com/3-simple-tricks-to-get-out-of-your-head-and-enjoy-the-moment-instead-3851ace89a0b"> <div> <div> <h2>3 Simple Tricks To Get Out of Your Head, and Enjoy the Moment Instead</h2> <div><h3>A recipe for a mindful way of life</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*YfPfRa5FHD7pWdWpufe10A.jpeg)"></div> </div> </div> </a> </div><div id="5b93" class="link-block"> <a href="https://readmedium.com/10-quotes-to-remind-you-not-to-take-life-too-seriously-26eba5327ecc"> <div> <div> <h2>10 Quotes To Remind You Not To Take Life Too Seriously</h2> <div><h3>A recipe to enjoy life to the fullest</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*gwYpimNC0CFGuR1DjLdbMg.jpeg)"></div> </div> </div> </a> </div></article></body>

What is a Graph Database?

NoSQL Graph Databases in a Nutshell

Photo by Alina Grubnyak on Unsplash

One does not always necessarily come into contact with graph databases. But I think as a data engineer or scientist, for example, it never hurts to know the basics in case you do encounter a new project involving graph databases.

Graph Databases vs. (Traditional) Relational Databases

The graph database uses mathematical graph theory and stores data and their relationships using nodes and edges. Graph algorithms can be used to execute complicated database queries at high speed. Graph databases have a different operating principle compared to relational databases [1]. It is possible to map graphs in relational databases. For the example of a social network, a table for the people and a table for relationships for the edges would be the solution.

Graph Databases Theory

In a graph database, both nodes and edges can store information. Special data structures like adjacency or index matrices are used for this purpose. In contrast to relational databases, complex relationships of different objects can be stored and processed in a graph database without additional auxiliary procedures. Edge weighting also makes it possible to assign a specific value to each relationship to express its strength or quality, for example, a distance between two locations.

Sample schema with restaurant, city, person nodes and LivesIn, LocatedIn, Likes edges. — Source: Microsoft[2]

Example with Neo4j and Cypher

Curious and want to try a round of the whole thing? With Neo4j a graph database solution, we can test the whole thing in a practical sandbox. Cypher is a graph query language that is used to query the Neo4j Database. Just like you use SQL to query a MySQL database, you would use Cypher to query the Neo4j Database[3].

As an example here, a movie database was used. It includes Movie, Person, Genre and Keyword nodes, connected by relationships as described in the following image:

Visualization of the Movie Graph Database — Source: neo4j [4]

Let’s start with a first query. I wanted to query all movies, where Tom Hanks is the actor.

MATCH (p:Person), (m:Movie)
WHERE p.name = "Tom Hanks" 
RETURN p,m

With the clauses MATCH and WHERE I can realize that really easily and you maybe notice the similarity to SQL statements. Et voilà, the result is exactly what I expected:

Query Result — Image by Author

Summary

Without a whole deep dive into the technology, I wanted to provide you at least with the most important technologies in a nutshell on this subject matter. You can also try out a first query yourself in the sandbox of Neo4j. As I said, not everyone will necessarily come into contact with graph databases, but I think it’s important to educate yourself continuously and especially as a person from the field of data it can’t hurt to get to know new concepts.

Summary and Further Readings

[1] Stefan Luber, Nico Litzel, Was ist eine Graphdatenbank? (2019)

[2] Microsoft, Create a graph database and run some pattern matching queries using T-SQL (2021)

[3] Neo4j, Getting Started with Cypher (2021)

[4] Cristina Escalante, https://neo4j.com/blog/node-js-react-js-developers-neo4j-movies-template/ (2016)

Graph Database
NoSQL
Data Science
Technology
Data Engineering
Recommended from ReadMedium