OriginTrail
  • Get started with OriginTrail
  • OriginTrail Ecosystem — Call for Papers (Coming Soon)
  • Key Concepts
    • Decentralized Knowledge Graph (DKG)
    • DKG key concepts
  • TRAC: DKG utility token
  • Build with DKG
    • Quickstart (test drive the DKG in 5 mins)
      • Quickstart with Node.js
      • Quickstart with Python
    • Querying the DKG
    • 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
      • Deploy your Edge Node based project
        • Automated deployment with installer
      • 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
      • How to open up your node for publishing
    • DKG toolkit
      • DKG SDK
        • Development environment setup
        • DKG Javascript SDK (dkg.js)
          • Interact with DKG paranets
          • Permissioned 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
      • Using the DKG with MCP
    • Ecosystem call for papers
  • DKG under the hood
    • Introduction
    • Delegated staking
      • Step-by-step staking
      • Redelegating stake
  • Random Sampling DKG Proof System
    • Random sampling rollout
    • Random Sampling FAQ
  • DKG Sync
  • 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
  • What you’ll do
  • ✨ What you'll accomplish
  • What you’ll need
  • Step 2: Publish your first Knowledge Asset
  • Step 3: Query & retrieve the Knowledge Asset
  • What's next?
  • 📋 What you'll need
  • 💻 Choose your development path

Was this helpful?

Edit on GitHub
  1. Build with DKG

Quickstart (test drive the DKG in 5 mins)

PreviousTRAC: DKG utility tokenNextQuickstart with Node.js

Last updated 15 days ago

Was this helpful?

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 complex setup required.


What you’ll do

✨ What you'll accomplish

You'll use the (JavaScript or Python) to:

  • Connect to a

  • Publish a simple Knowledge Asset (KA)

  • Retrieve that KA by querying the DKG

No need to run your own node — we'll use 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

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)

What's next?

📋 What you'll need

Before you start, make sure you have:

  1. Development environment:

  2. Code editor:

    • Test TRAC tokens for publishing the Knowledge Asset

    • Test NEURO tokens for gas fees

🪙 Getting Test Tokens

  1. Navigate to the #faucet-bot channel

  2. Type !help to see available commands

  3. Use 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

To learn more about querying the DKG go .

For JavaScript: (v16 or higher) installed

For Python: (3.8+) installed

or

or any editor you prefer

Web3 wallet with test tokens for the blockchain:

or similar wallet

Join our

Knowledge Asset
public DKG nodes
DKG SDK
public DKG node
here
here
Node.js
Python
Visual Studio Code
Cursor
NeuroWeb
MetaMask
Discord server

Publish your first Knowledge Asset on the DKG with Node.js

Publish your first Knowledge Asset on the DKG with Python

Quickstart with Node.js
Quickstart with Python