Introduction to Graph Databases with detailed installation steps, cypher query language examples, demos and visualization tools like RedisInsight. It also contains benchmarks for RedisGraph against Tigergraph, neo4j, neptune, Janusgraph and Arangodb. I mentions differences between native and non-native graph databases. It contains usecases for the graph databases and provides a score for selecting graph DB over traditional SQL and NoSQL DBs.
7. Tabular / SQL
Name Gender
Arya
Stark
Female
Jon Snow Male
Tyrion
Lannister
Male
Src Dest
1 1
2 3
3 2
Name
House Stark of
Winterfell
House Lannister of
Casterly Rock
House Reed of
Greywater Watch
Character Belong House
8. NoSQL
id: 1
name: Arya Stark
gender: Female
type: Character
belongs: [5]
id: 5
name: House Stark of
Winterfell
region: The North
words: Winter is Coming
type: House
15. RedisGraph Installation
# Ubuntu/Linux
$ sudo apt-get install build-essential cmake m4 automake peg libtool autoconf
# Mac
$ brew install cmake m4 automake peg libtool autoconf
$ git clone --recurse-submodules -j8 https://github.com/RedisGraph/RedisGraph.git
$ cd RedisGraph
$ make
On successful execution, compiled binary could be found at:
src/redisgraph.so
16. Cypher Query Language
●Open Standard - Supported by several Graph DBs
●WHAT rather than HOW
●Pattern matching
○ ASCII art for Graphs
■ () : node
■ - - > : relationship
●Most clauses from SQL
MATCH (e:Event)-[presented_by]->(p:Person)
WHERE e.name = “RedisGraph”
RETURN e.name, p.name
22. RedisInsight Installation
●Download RedisInsight for Desktop from https://redislabs.com/redisinsight/
●Ubuntu
○ chmod +x redisinsight-<platform>-<version>
●Windows & Mac
○ Run the installer
●Run the executable: ./redisinsight-<platform>-<version>
●After the web server starts, open http://127.0.0.1:8001
●Add your first Redis database connection
28. Data Sets
Name Description Vertices Edges
graph500 Synthetic Kronecker graph 2.4 M 64 M
twitter Twitter user-follower directed
graph
41.6 M 1.47 B
●K-hop path query time
●RedisGraph version: 1.0.0 GA
●Dated: January 2019