Building with DKG paranets
Paranets are like "virtual" knowledge graphs on the OriginTrail Decentralized Knowledge Graph (DKG). Building with them is quite similar to building on the DKG in general. However, paranets enable you to contain your operations services on these "virtual" graphs, e.g., querying a specific paranet with SPARQL or adding a knowledge collection* to a specific paranet.
*A knowledge collection (KC) is a collection of Knowledge Assets. It refers to structured data that can be stored, shared, and validated within a distributed network.
To gain access to the paranet knowledge graph, you can use one of the public DKG nodes, or deploy a DKG node and set it up to host the paranet (or "sync" it). More information is available on the Sync a DKG Paranet page.
A direct code example of paranets in use can be found here - Paranet Demo
Querying paranets
Once you have access to the paranet knowledge graph via a gateway node, you can use one of the DKG SDKs to interact with it. It is also possible to open up your triple store SPARQL endpoint directly and query the paranet knowledge graph in its own repository (the paranet repository name is equivalent to the paranet profile Knowledge Asset UAL, with dash characters instead of slash).
Using SPARQL, it is possible to query and integrate knowledge from multiple paranets and whole DKG in one query using SPARQL federated queries.
Running paranet services
Paranets enable registering and exposing both on-chain and off-chain services associated with it. A paranet service can be identified by all users of the paranet via its registry Knowledge Asset and can have multiple on-chain accounts associated with it, enabling them to engage in economic activity within the DKG. Examples of paranet services are AI agents (e.g., autonomous reasoners mining knowledge collections), chatbots (e.g., Polkabot), oracle feeds, LLMs, dRAG APIs, etc.
Paranet operators manage the services through the Paranet Services Registry smart contracts or DKG SDK.
Paranet permissions
There are three permission policies for paranet:
Nodes access policy—defines which nodes can sync the paranet:
OPEN—Any node can sync the paranet.
Miners access policy—defines which knowledge miners can add knowledge to the paranet:
OPEN—Any address can submit a knowledge asset to the paranet.
Knowledge asset submission access policy:
OPEN—Any knowledge asset can be added to the paranet.
STAGING—Knowledge miners first submit the knowledge asset to staging, where it is reviewed by curators chosen by the paranet owner. The curators can approve (and automatically add knowledge asset to the paranet) or deny staged knowledge asset(which then doesn't get added to the paranet).
Last updated
Was this helpful?