JanusGraph is a scalable graph database optimized for storing and querying graphs containing hundreds of billions of vertices and edges distributed across a multi-machine cluster.
When to choose Graph DB?
When the data and relationships between the data is increasing, you can go for Graph DB.
Types of Graph database
Based on how they store the data, there are 3 categories of databases.
a. Native Graph storage: Manages the graphs on disk. Ex: Neo4J.
b. Relational storage: Manage the graphs using RDBMS. Ex: GraphX.
c. Key-Value storage: Manage graphs using non-relational database like MongoDB, Cassandra, HBase. Ex: JnusGraph
Basic terms in JanusGraph
a. Vertex or node
b. Edge/Relation
c. Property: A vertex, edge can have zero or more properties
d. Vertex Label: Vertex labels are optional.
e. Edge Label: Edge labels are mandatory
In the above example, it depicts a relationship (knows) between two persons.
a. Number of Vertexes: 2
b. Number of Edges: 1
c. Properties: age, weight
d. Vertex label: Krishna, Ram
e. Edge label: knows
You can download all the examples of this tutorial series from below link.
https://github.com/harikrishna553/java-libs/tree/master/janus-graph-demo
Previous Next Home
No comments:
Post a Comment