Dgraph
Dgraph serves as the graph database for the Context Graph and Ontology Service, storing semantic relationships, SHACL shapes, and domain ontologies.
Architecture
+----------------+ +------------------+
| Dgraph Zero | | Dgraph Alpha |
| (Coordination) |---->| (Data storage) |
| Port: 5080 | | Port: 9080, 8080 |
+----------------+ +------------------+
|
+------+------+
| Dgraph Ratel |
| (Web UI) |
| Port: 8000 |
+-------------+Components
| Component | Purpose | Ports |
|---|---|---|
| Zero | Cluster coordination, shard management | 5080 (internal), 6080 (HTTP) |
| Alpha | Data storage, query execution | 9080 (gRPC), 8080 (HTTP) |
| Ratel | Web-based graph visualization | 8000 |
Use Cases
| Use Case | Consumer |
|---|---|
| Domain ontology storage | Ontology Service |
| SHACL shape validation | Context Graph |
| Semantic relationship queries | AI Service |
| Entity resolution | Catalog Service |