Usage example
You can find a simple example of the DKG Edge Node usage below to help you get started.
This page demonstrates a simple end-to-end example of how you can process any kind of JSON data using the example pipeline provided in the Knowledge Mining service, and then ask questions about that data through the AI Assistant interface. The AI Assistant communicates directly with the DRAG (Decentralized Retrieval-Augmented Generation) module, for which we’ve also prepared a basic example to showcase its functionality.
Note: This is a simplified example meant to demonstrate the concept and basic flow.
Purpose of the Example
The goal of this example is to provide a quick and intuitive way to explore the potential of the DKG Edge Node through the UI. It’s designed to help you understand:
How input data (in standard JSON format) can be processed through a Knowledge Mining pipeline to generate structured graph data in JSON-LD or N-Quads format.
How this graph-structured output is published to the OriginTrail Decentralized Knowledge Graph (DKG) as a Knowledge Asset – making the data verifiable, discoverable, and ensuring data integrity and ownership.
How AI-powered question answering is performed on top of these Knowledge Assets through the DRAG service, which builds RAG (Retrieval-Augmented Generation) systems on decentralized data using powerful LLMs.
Focused on UI
To keep things as accessible as possible, this example focuses purely on UI-based usage. If you're looking to explore programmatic interaction with the services (e.g., building custom pipelines, publishing data, or querying via APIs), please refer to the dedicated API Documentation section.
Note on Simplicity
This example is intentionally basic and does not represent a production-ready pipeline. Instead, it serves to highlight what’s possible when using:
Knowledge Mining Pipelines – for transforming raw inputs into semantically rich formats (e.g., JSON-LD).
Edge Node API – for publishing structured data to the Decentralized Knowledge Graph (DKG).
Edge Node DRAG – for creating RAG (Retrieval-Augmented Generation) applications based on verifiable, decentralized data.
The main idea is that users can build their own Knowledge Mining workflows tailored to their domain-specific data and leverage the DKG infrastructure for secure, decentralized, and intelligent knowledge applications.
Interacting with the Web UI
You can access the user interface at http://your-nodes-ip-address.
Logging in
When accessing your node endpoint, you will be redirected to the login page.
Publishing a Knowledge Asset
We have prepared a simple example, which is processing JSON files that represent movies.
Example JSON for a movie:
Go to http://your-nodes-ip-address/contribute and upload your JSON.
The Edge Node will:
Process your input file and create a JSON-LD out of it.
Publish the Knowledge Asset on the Decentralized Knowledge Graph (DKG) from that JSON-LD.
Passing a query
After successfully creating the Knowledge Asset, go to http://your-nodes-ip-address/ai-assistant, and ask the AI Assistant a question about the movie (or other work) you put in the JSON to see how it works.
Last updated
Was this helpful?