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

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 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:

  1. Development environment:

    • For JavaScript: Node.js (v16 or higher) installed

    • For Python: Python (3.8+) installed

  2. Code editor:

  3. Web3 wallet with test tokens for the NeuroWeb blockchain:

    • MetaMask or similar wallet

    • 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

💻 Choose your development path

Last updated

Was this helpful?