OriginTrail
  • Get started with OriginTrail
  • OriginTrail Ecosystem — Call for Papers (Coming Soon)
  • Key Concepts
    • Decentralized Knowledge Graph (DKG)
    • DKG key concepts
  • Build with DKG
    • Quickstart (test drive the DKG in 5 mins)
      • Quickstart with Node.js
      • Quickstart with Python
    • ChatDKG builder toolkit
      • DKG SDK
        • Development environment setup
        • DKG Javascript SDK (dkg.js)
          • Interact with DKG paranets
          • Knowledge submission & curation
          • Paranet's incentives pool implementation
        • DKG Python SDK (dkg.py)
      • DKG paranets
        • Deploying a DKG paranet
        • Building with DKG paranets
        • Syncing a DKG Paranet
        • Initial Paranet Offerings (IPOs)
          • IPO specification
          • Launching your IPO
          • Paranet's incentives pool
          • IPO voting
      • AI agents
        • ElizaOS DKG agent
        • Custom DKG Python agent
        • Custom DKG JavaScript agent
    • DKG Edge Node
      • DKG Edge Node architecture
      • Get started with the Edge Node boilerplate
        • Automated setup with the installer
        • Manual setup
        • Usage example
      • Customize & build with the Edge Node
      • Knowledge Mining and dRAG examples
      • DKG Edge Node inception program
      • DKG Edge Node API documentation
    • DKG Core Node
      • Run a V8 Core Node on testnet
        • Preparation for V8 DKG Core Node deployment
        • V8 DKG Core Node installation
      • Run a V8 Core Node on mainnet
        • Preparation for V8 DKG Core Node deployment
        • V8 DKG Core Node installation
  • Delegated staking
    • Delegated staking—Introduction
      • Step-by-step staking
      • Redelegating stake
  • Integrated Blockchains
    • Base blockchain
      • Connect to Base
    • Gnosis chain
      • Connect to Gnosis
    • NeuroWeb
    • Teleport instructions - NeuroWeb
    • Bridging to Moonbeam
    • Deployed smart contracts
  • Bounties & rewards
    • General bug bounty
    • Code contributions & V8 bug bounty
  • Whitepapers & RFCs
    • OriginTrail whitepaper
    • OriginTrail RFCs
  • Useful Resources
    • What's new with OriginTrail V8
    • DKG V8 guidebook
      • Protocol updates
      • Feature roadmap
      • How to upgrade to V8?
    • Public nodes
    • Tutorials
    • Test token faucet
    • Development principles
    • Community created resources
    • Linked data & knowledge graphs
    • Available networks, network details and RPCs
    • OT Node Engine implementation details
      • Modules
      • Command Executor
    • Contribution guidelines
      • Guidelines for automated test contributions
    • Explore the OriginTrail ecosystem
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Build with DKG
  2. DKG Edge Node

DKG Edge Node architecture

PreviousDKG Edge NodeNextGet started with the Edge Node boilerplate

Last updated 3 months ago

Was this helpful?

The DKG Edge Node is intended for customisability and extensibility. Its official code is available as a project "boilerplate," and builders can extend it to fit their needs.

The DKG Edge Node is based on a SoA architecture, providing multiple services designed for the separation of concerns. See the block scheme below for a high-level overview of the architecture

The following table describes each of the services and links to their respective repositories:

Service
Description
Github repo

Knowledge Mining API

Performs knowledge mining via knowledge mining pipelines, taking in various input formats to ultimately produce serialized outputs (JSON-LD), intended to then be published via the Publishing Service

dRAG API

dRAG (Decentralized Retrieval-Augmented Generation) is a service for building decentralized RAGs using data from the Decentralized Knowledge Graph (DKG). It enables querying and processing data with tools like SPARQL, LLMs, and vector databases, delivering answers from decentralized, verifiable sources.

Edge Node User Interface

The UI for accessing and utilizing all Edge Node functionalities.

Edge Node API

The Edge Node backend serves as the orchestrator, coordinating operations and interactions between various services.

Knowledge Graph DB Instance

An instance of an RDF enabled triple store, such as Amazon Neptune, Ontotext Graph DB, Blazegraph, Apache Jena or others.

Respective project repos

LLM services

Large Language Model services used by the Edge Node and chosen by the developer, enabling utilizing either local or external LLM based services (e.g. Ollama, OpenAI, Claude etc)

Respective project repos

Publishing Service

Responsible for creating Knowledge Assets on the DKG, intended to take inputs from the Knowledge Mining API

Part of Edge Node API repo

Authentication Service

Acts as the authentication hub for all Edge Node services and serves as the central source for global configuration and custom parameters.

Blockchain interface

The Edge Node communicates with the blockchain through an array of RPC endpoints configurable by the user.

No specific repo, please consult the documentation on setting up nodes and RPC endpoints

DKG V8 Network Engine (ot-node)

Network runtime service, responsible for communicating with other DKG nodes

Operational DBs

Various small databases used for operational purposes

Deployed with respective services

https://github.com/OriginTrail/edge-node-knowledge-mining
https://github.com/OriginTrail/edge-node-drag
https://github.com/OriginTrail/edge-node-interface
https://github.com/OriginTrail/edge-node-api
https://github.com/OriginTrail/edge-node-authentication-service
https://github.com/OriginTrail/ot-node