Welcome to your first hands-on experience with the OriginTrail Decentralized Knowledge Graph (DKG)! In just a few minutes, you'll publish and retrieve your first (KA) using —no setup required.
What You’ll Do
You’ll use the (JavaScript or Python) to:
Connect to a public DKG node
Publish a simple Knowledge Asset
Retrieve that KA by querying the graph
No need to run your own node — this quickstart uses public infrastructure so you can dive in instantly.
What You’ll Need
Node.js (for JavaScript SDK) or Python (3.8+)
A Web3 wallet (e.g., MetaMask) with:
Test TRAC tokens
Test Neuro tokens
A public DKG node endpoint which you can find
Join our and use our faucet bot to get free Test TRAC and Neuro tokens.
Just type !help in the #faucet-bot channel to see the available commands and get started!
Step 1: Install the SDK
Choose your preferred language:
JavaScript (Node.js):
npm install dkg.js@latest
Python:
pip install dkg
Step 2: Publish Your First Knowledge Asset
Here’s a super-simple JSON-LD Knowledge Asset:
{
"@context": "https://schema.org/",
"@type": "CreativeWork",
"name": "Hello DKG",
"description": "My first Knowledge Asset on the Decentralized Knowledge Graph!"
}
You’re now on the path to building a semantic, decentralized, and AI-ready knowledge ecosystem.
Learn more about SDK in the
Everything you need to build with the DKG: publish and query knowledge, deploy autonomous AI agents, and launch decentralized knowledge ecosystems with paranets—.
Take control of your stack: deploy agents, paranets, and private Knowledge Assets on your own infrastructure—.