Skip to content
Truthchain LogoTruthchain LogoThruthchain Docs
GitHub

DKG

OriginTrail’s Decentralized Knowledge Graph (DKG) is a decentralized graph database that stores verified data on the blockchain. It’s used by Truthchain to store verified data.

Data that is stored to DKG

ParameterTypeDescription
@contextstringThe context of the Snippet.
@idstringThe Truthchain Snippet URL containing UUID
@typestring“TruthchainSnippet” is used by default
titlestringThe title of the Snippet.
contentstringThe content of the Snippet.
sourcestringThe source of the Snippet.
verifiedbooleanWhether the Snippet is verified.
createdByobjectThe user that created the Snippet.
createdBy.@typestring“TruthchainUser” is used by default
createdBy.publicAddressstringThe public address of the user that created the Snippet.
verifiedByarrayThe verifier that verified the Snippet.
verifiedBy.@typestring“TruthchainVerifier” is used by default
verifiedBy.namestringThe name of the verifier.
verifiedBy.verifiedbooleanWhether the verifier verified the Snippet.

Example JSON

{
    '@context': 'https://schema.org',
    '@id': 'https://truthchain.dev/snippets/ac3edf4e-0b0a-4b0e-8b0a-4b0e8b0a4b0e',
    '@type': 'TruthchainSnippet',
    'title': 'Fund your v6 testnet node',
    'content': 'OriginTrail v6 testnet nodes operate on the OriginTrail Parachain testnet, and therefore operate with test tokens. For a node to be operational, it requires OTP and TRAC test tokens for OTP testnet',
    'source': 'https://docs.origintrail.io/decentralized-knowledge-graph-layer-2/node-setup-instructions/fund-your-v6-testnet-node',
    'verified': true,
    'createdBy': {
        '@type': 'User',
        'publicAddress': '0x1234567890',
    },
    'verifiedBy': [
        {
            '@type': 'TruthchainVerifier',
            'name': 'web-scraper',
            'verified': true
        },
        {
            '@type': 'TruthchainVerifier',
            'name': 'social-media-verifier',
            'verified': false
        },
        {
            '@type': 'TruthchainVerifier',
            'name': 'youtube-verifier',
            'verified': true
        }
    ]

}

Learn more about DKG here.