Quickstart (test drive the DKG in 5 mins)
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 Knowledge Asset (KA) using public DKG nodes—no complex setup required.
What you’ll do
✨ What you'll accomplish
You'll use the DKG SDK (JavaScript or Python) to:
Connect to a public DKG node
Publish a simple Knowledge Asset (KA)
Retrieve that KA by querying the DKG
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 here
Step 2: Publish your first Knowledge Asset
Step 3: Query & retrieve the Knowledge Asset
Or you can use the Python SDK:
query_operation_result = dkg.graph.query(
"""
PREFIX schema: <http://schema.org/>
SELECT ?s ?name ?description
WHERE {
?s schema:name ?name ;
schema:description ?description .
}
"""
)
print_json(query_operation_result)
To learn more about querying the DKG go here.
What's next?
📋 What you'll need
Before you start, make sure you have:
Code editor:
Cursor or any editor you prefer
🪙 Getting Test Tokens
Join our Discord server
Navigate to the
#faucet-bot
channelType
!help
to see available commandsUse the bot to get free Test TRAC and NEURO tokens
To receive TRAC on Neuroweb, first acquire NEURO via the faucet to initiate your wallet.
💻 Choose your development path
Last updated
Was this helpful?