SlideShare a Scribd company logo
Graph DB
● What is graph DB ?
● Why choose Graph DB ?
● Types of Graph DB (Based on storage)
● Janus Graph Architecture
● Janus Graph Basic Terms
● Conceptual working of Gremlin Queries.
● Setup Janus Graph on local
● Some sample queries
● Schema and data modeling
● Automatic Schema Maker
● Index in Janus Graph
What is Graph DB ?
● Simply Graph DB is the DB to store Graphs.
● This arise a question, what a graph is ?
○ A diagram showing nodes and relations between those nodes.
A simple graph
Vertex / Node
Edge / Relationship
Why choose Graph DB ?
● Data and the relationship between the data is increasing.
● Performance
● Flexibility : Auto change in DB model
Types of Graph DB’s (Based on storage)
● Native graph storage : Storage that is specifically designed to store and
manage graphs on disk. Eg. TigerGraph, Neo4j
● Relational Storage : Storage that uses a relational model to store the
vertex table and edge table. Eg. GraphX
● Key-Value Store : Storage that uses NoSQL databases like Cassandra,
HBase, etc. e.g. JanusGraph.
Janus Graph Architecture
Janus Graph Basic Terms
● Vertex / Node
● Edge / Relation
● Property
● Vertex Label
● Edge Label
Marko Josh
Knows
person person
Graph Sample
Conceptual working of gremlin queries
● g.V().has('person', 'name', within('marko',
'josh')).outE().groupCount().by(label()).next()
Step 1 :
Step 2 :
Step 2 :
Step 3 :
Step 3 :
Output
Setup JanusGraph on local
● Download janusgraph distribution from the link :
https://github.com/JanusGraph/janusgraph/releases
● Unzip janusgraph-0.4.0-hadoop2 distribution
● Go to janusgraph-0.4.0-hadoop2
● run ./bin/gremlin.sh
Sample queries
● Get all Vertices : g.V()
● Get all Edges : g.E()
● Get Vertices / Edges count : g.V().count(), g.E().count()
● has clause (where clause) : g.V().has(‘name’,’josh’)
● Get vertex / edge with values : g.V().has(‘name’,’josh’).valueMap()
● Limit query : g.V().limit(1)
● Range query : g.V().range(2,4)
Schema and Data Modeling
Defining Edge Labels
● knows = management.makeEdgeLabel('knows').multiplicity(MULTI).make();
Schema and Data Modeling conn..
Defining Vertex Labels
● person = management.makeVertexLabel('person').make()
Defining Property Keys
● name = management.makePropertyKey('name').dataType(String.class).make();
Schema and data modeling conn..
Schema and data modeling conn..
Property Key Cardinality
● SINGLE
● LIST
● SET
Automatic schema maker
● This functionality let us define the schema automatically while ingesting
vertex or edges.
● By default auto schema maker is enabled. We can disable this by using the
following property
○ Schema.default = none
Index in Janus Graph
In general indexes are the used to make our database retrieval fast on the cost
of storage.
There are two types of index in Janus Graph
● Graph Index : An index which is used to make “list operations” fast.
○ Composite
○ mixed
● Vertex centric index : An index which is used to make traversal fast.
Resources
● Udemy Course on JanusGraph :
https://www.udemy.com/course/complete-janusgraph-course-for-
beginners/
● JanusGrpah Documentation : https://docs.janusgraph.org/
● Gremlin Practical Guide : https://kelvinlawrence.net/book/Gremlin-Graph-
Guide.html
● Some related videos : https://www.youtube.com/watch?v=-
zj0EckhOS8&list=PL71i5-fJZYaEeCRqd_rWTMvbK8FrF4bwn
Thank You
Skype : er.sanil.bagzai
Contact : +91 8817470111

More Related Content

PDF
PDF
Improving Data Literacy Around Data Architecture
PPTX
Data Warehousing Trends, Best Practices, and Future Outlook
PDF
Building a Data Science as a Service Platform in Azure with Databricks
PPTX
The columnar roadmap: Apache Parquet and Apache Arrow
PDF
Make your data AI ready with Microsoft Fabric and Azure Databricks pitch deck...
PDF
Databricks Overview for MLOps
PPTX
From Data Science to MLOps
Improving Data Literacy Around Data Architecture
Data Warehousing Trends, Best Practices, and Future Outlook
Building a Data Science as a Service Platform in Azure with Databricks
The columnar roadmap: Apache Parquet and Apache Arrow
Make your data AI ready with Microsoft Fabric and Azure Databricks pitch deck...
Databricks Overview for MLOps
From Data Science to MLOps

What's hot (20)

PDF
Data Mesh 101
PDF
قواعد البيانات وبنوك المعلومات (
PDF
Data Science Across Data Sources with Apache Arrow
PDF
Data Mesh at CMC Markets: Past, Present and Future
PPTX
File Format Benchmark - Avro, JSON, ORC & Parquet
PDF
Data Mesh Part 4 Monolith to Mesh
PDF
Data modelling 101
PPTX
Hilton's enterprise data journey
PPTX
Microsoft Fabric Introduction
PDF
Serverless Kafka and Spark in a Multi-Cloud Lakehouse Architecture
PDF
Data Platform Architecture Principles and Evaluation Criteria
PDF
Pipelines and Data Flows: Introduction to Data Integration in Azure Synapse A...
PPTX
Microsoft Azure Databricks
PDF
Databricks + Snowflake: Catalyzing Data and AI Initiatives
PDF
Data platform architecture
PDF
What’s New with Databricks Machine Learning
PDF
Data Architecture, Solution Architecture, Platform Architecture — What’s the ...
PDF
Scaling and Modernizing Data Platform with Databricks
PDF
Vector database
PPTX
Data lake ppt
Data Mesh 101
قواعد البيانات وبنوك المعلومات (
Data Science Across Data Sources with Apache Arrow
Data Mesh at CMC Markets: Past, Present and Future
File Format Benchmark - Avro, JSON, ORC & Parquet
Data Mesh Part 4 Monolith to Mesh
Data modelling 101
Hilton's enterprise data journey
Microsoft Fabric Introduction
Serverless Kafka and Spark in a Multi-Cloud Lakehouse Architecture
Data Platform Architecture Principles and Evaluation Criteria
Pipelines and Data Flows: Introduction to Data Integration in Azure Synapse A...
Microsoft Azure Databricks
Databricks + Snowflake: Catalyzing Data and AI Initiatives
Data platform architecture
What’s New with Databricks Machine Learning
Data Architecture, Solution Architecture, Platform Architecture — What’s the ...
Scaling and Modernizing Data Platform with Databricks
Vector database
Data lake ppt
Ad

Similar to JanusGraph DataBase Concepts (20)

PPTX
HBaseConAsia2018: Track2-5: JanusGraph-Distributed graph database with HBase
PDF
How Graph Databases used in Police Department?
PPTX
Large Scale Graph Analytics with JanusGraph
PPTX
Large Scale Graph Analytics with JanusGraph
PDF
JanusGraph: Looking Backward, Reaching Forward
ODP
Graph databases
PPTX
no sql ppt.pptx
PPTX
Janus graph lookingbackwardreachingforward
PPTX
Dex Technical Seminar (April 2011)
PDF
Graph based data models
PDF
Soft Shake Event / A soft introduction to Neo4J
PDF
Evolution of the Graph Schema
PDF
Query Optimization Techniques in Graph Databases
PDF
Distributed graph processing
PDF
TinkerPop: a story of graphs, DBs, and graph DBs
PDF
DevFest Istanbul - a free guided tour of Neo4J
PPTX
Graph databases: Tinkerpop and Titan DB
PPTX
Meet Gremlin – your guide through graphs in Cosmos DB
PPTX
NoSQL 5 2_graph Database Edited - Updated.pptx.pptx
HBaseConAsia2018: Track2-5: JanusGraph-Distributed graph database with HBase
How Graph Databases used in Police Department?
Large Scale Graph Analytics with JanusGraph
Large Scale Graph Analytics with JanusGraph
JanusGraph: Looking Backward, Reaching Forward
Graph databases
no sql ppt.pptx
Janus graph lookingbackwardreachingforward
Dex Technical Seminar (April 2011)
Graph based data models
Soft Shake Event / A soft introduction to Neo4J
Evolution of the Graph Schema
Query Optimization Techniques in Graph Databases
Distributed graph processing
TinkerPop: a story of graphs, DBs, and graph DBs
DevFest Istanbul - a free guided tour of Neo4J
Graph databases: Tinkerpop and Titan DB
Meet Gremlin – your guide through graphs in Cosmos DB
NoSQL 5 2_graph Database Edited - Updated.pptx.pptx
Ad

Recently uploaded (20)

PDF
cuic standard and advanced reporting.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Machine Learning_overview_presentation.pptx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
cuic standard and advanced reporting.pdf
Encapsulation_ Review paper, used for researhc scholars
Advanced methodologies resolving dimensionality complications for autism neur...
Per capita expenditure prediction using model stacking based on satellite ima...
MIND Revenue Release Quarter 2 2025 Press Release
Programs and apps: productivity, graphics, security and other tools
Dropbox Q2 2025 Financial Results & Investor Presentation
Big Data Technologies - Introduction.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
The AUB Centre for AI in Media Proposal.docx
Machine Learning_overview_presentation.pptx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
NewMind AI Weekly Chronicles - August'25-Week II
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
“AI and Expert System Decision Support & Business Intelligence Systems”
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Spectral efficient network and resource selection model in 5G networks
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Assigned Numbers - 2025 - Bluetooth® Document
Building Integrated photovoltaic BIPV_UPV.pdf

JanusGraph DataBase Concepts

  • 1. Graph DB ● What is graph DB ? ● Why choose Graph DB ? ● Types of Graph DB (Based on storage) ● Janus Graph Architecture ● Janus Graph Basic Terms ● Conceptual working of Gremlin Queries. ● Setup Janus Graph on local ● Some sample queries ● Schema and data modeling ● Automatic Schema Maker ● Index in Janus Graph
  • 2. What is Graph DB ? ● Simply Graph DB is the DB to store Graphs. ● This arise a question, what a graph is ? ○ A diagram showing nodes and relations between those nodes. A simple graph Vertex / Node Edge / Relationship
  • 3. Why choose Graph DB ? ● Data and the relationship between the data is increasing. ● Performance ● Flexibility : Auto change in DB model
  • 4. Types of Graph DB’s (Based on storage) ● Native graph storage : Storage that is specifically designed to store and manage graphs on disk. Eg. TigerGraph, Neo4j ● Relational Storage : Storage that uses a relational model to store the vertex table and edge table. Eg. GraphX ● Key-Value Store : Storage that uses NoSQL databases like Cassandra, HBase, etc. e.g. JanusGraph.
  • 6. Janus Graph Basic Terms ● Vertex / Node ● Edge / Relation ● Property ● Vertex Label ● Edge Label Marko Josh Knows person person
  • 8. Conceptual working of gremlin queries ● g.V().has('person', 'name', within('marko', 'josh')).outE().groupCount().by(label()).next() Step 1 :
  • 12. Setup JanusGraph on local ● Download janusgraph distribution from the link : https://github.com/JanusGraph/janusgraph/releases ● Unzip janusgraph-0.4.0-hadoop2 distribution ● Go to janusgraph-0.4.0-hadoop2 ● run ./bin/gremlin.sh
  • 13. Sample queries ● Get all Vertices : g.V() ● Get all Edges : g.E() ● Get Vertices / Edges count : g.V().count(), g.E().count() ● has clause (where clause) : g.V().has(‘name’,’josh’) ● Get vertex / edge with values : g.V().has(‘name’,’josh’).valueMap() ● Limit query : g.V().limit(1) ● Range query : g.V().range(2,4)
  • 14. Schema and Data Modeling Defining Edge Labels ● knows = management.makeEdgeLabel('knows').multiplicity(MULTI).make();
  • 15. Schema and Data Modeling conn.. Defining Vertex Labels ● person = management.makeVertexLabel('person').make() Defining Property Keys ● name = management.makePropertyKey('name').dataType(String.class).make();
  • 16. Schema and data modeling conn..
  • 17. Schema and data modeling conn.. Property Key Cardinality ● SINGLE ● LIST ● SET
  • 18. Automatic schema maker ● This functionality let us define the schema automatically while ingesting vertex or edges. ● By default auto schema maker is enabled. We can disable this by using the following property ○ Schema.default = none
  • 19. Index in Janus Graph In general indexes are the used to make our database retrieval fast on the cost of storage. There are two types of index in Janus Graph ● Graph Index : An index which is used to make “list operations” fast. ○ Composite ○ mixed ● Vertex centric index : An index which is used to make traversal fast.
  • 20. Resources ● Udemy Course on JanusGraph : https://www.udemy.com/course/complete-janusgraph-course-for- beginners/ ● JanusGrpah Documentation : https://docs.janusgraph.org/ ● Gremlin Practical Guide : https://kelvinlawrence.net/book/Gremlin-Graph- Guide.html ● Some related videos : https://www.youtube.com/watch?v=- zj0EckhOS8&list=PL71i5-fJZYaEeCRqd_rWTMvbK8FrF4bwn
  • 21. Thank You Skype : er.sanil.bagzai Contact : +91 8817470111