{"id":13510323,"url":"https://github.com/OriginTrail/ot-node","last_synced_at":"2025-03-30T15:31:16.626Z","repository":{"id":37758175,"uuid":"119876311","full_name":"OriginTrail/ot-node","owner":"OriginTrail","description":"OriginTrail Decentralized Knowledge Graph network node","archived":false,"fork":false,"pushed_at":"2024-10-29T10:54:15.000Z","size":122011,"stargazers_count":201,"open_issues_count":74,"forks_count":73,"subscribers_count":35,"default_branch":"v6/develop","last_synced_at":"2024-10-29T11:49:45.860Z","etag":null,"topics":["blockchain","decentralized-knowledge-graph","dkg","drag","graphrag","knowledge-graph","neuro-symbolic-ai","node","origintrail","origintrail-node","protocol","rag","retrieval-augmented-generation","trac"],"latest_commit_sha":null,"homepage":"https://origintrail.io","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OriginTrail.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-01T18:29:15.000Z","updated_at":"2024-10-27T01:45:30.000Z","dependencies_parsed_at":"2023-11-13T11:27:26.396Z","dependency_job_id":"9eab1030-15d3-44f4-916d-8eaeee54f65c","html_url":"https://github.com/OriginTrail/ot-node","commit_stats":null,"previous_names":[],"tags_count":163,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OriginTrail%2Fot-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OriginTrail%2Fot-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OriginTrail%2Fot-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OriginTrail%2Fot-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OriginTrail","download_url":"https://codeload.github.com/OriginTrail/ot-node/tar.gz/refs/heads/v6/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246338884,"owners_count":20761455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","decentralized-knowledge-graph","dkg","drag","graphrag","knowledge-graph","neuro-symbolic-ai","node","origintrail","origintrail-node","protocol","rag","retrieval-augmented-generation","trac"],"created_at":"2024-08-01T02:01:33.828Z","updated_at":"2025-03-30T15:31:11.614Z","avatar_url":"https://github.com/OriginTrail.png","language":"JavaScript","readme":"\u003ca name=\"readme-top\"\u003e\u003c/a\u003e\n\n---\n\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/OriginTrail/ot-node\"\u003e\n    \u003cimg src=\"images/banner.gif\" alt=\"OriginTrail Node Banner\"\u003e\n  \u003c/a\u003e\n\n  \u003ch3 align=\"center\"\u003e\u003cb\u003eOT-Node\u003c/b\u003e\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    \u003c/br\u003e\n    \u003ca href=\"https://docs.origintrail.io/\"\u003eOriginTrail Docs\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/OriginTrail/ot-node/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/OriginTrail/ot-node/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\u003c/br\u003e\n\n\u003cdetails open\u003e\n  \u003csummary\u003e\n    \u003cb\u003eTable of Contents\u003c/b\u003e\n  \u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\n      \u003ca href=\"#📚-about-the-project\"\u003e📚 About The Project\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#what-is-the-decentralized-knowledge-graph\"\u003eWhat is the Decentralized Knowledge Graph?\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#the-origintrail-dkg-architecture\"\u003eThe OriginTrail DKG Architecture\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#what-is-a-knowledge-asset\"\u003eWhat is a Knowledge Asset?\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#🚀-getting-started\"\u003e🚀 Getting Started\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#prerequisites\"\u003ePrerequisites\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#local-network-setup\"\u003eLocal Network Setup\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#dkg-node-setup\"\u003eDKG Node Setup\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#build-on-dkg\"\u003eBuild on DKG\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#📄-license\"\u003e📄 License\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#🤝-contributing\"\u003e🤝 Contributing\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#📰-social-media\"\u003e📰 Social Media\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n---\n\n\u003cbr/\u003e\n\n## 📚 About The Project\n\n\u003cdetails open\u003e\n\u003csummary\u003e\n\n### **What is the Decentralized Knowledge Graph?**\n\n\u003c/summary\u003e\n\n\u003cbr/\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"images/nodes.png\" alt=\"Knowledge Asset\" width=\"200\"\u003e\n\u003c/div\u003e\n\nOriginTrail Decentralized Knowledge Graph (DKG), hosted on the OriginTrail Decentralized Network (ODN) as trusted knowledge infrastructure, is shared global Knowledge Graph of Knowledge Assets. Running on the basis of the permissionless multi-chain OriginTrail protocol, it combines blockchains and knowledge graph technology to enable trusted AI applications based on key W3C standards.\n\n\u003c/details\u003e\n\n\u003cdetails open\u003e\n\u003csummary\u003e\n\n### **The OriginTrail DKG Architecture**\n\n\u003c/summary\u003e\n\n\u003cbr/\u003e\n\nThe OriginTrail tech stack is a three layer structure, consisting of the multi-chain consensus layer (OriginTrail layer 1, running on multiple blockchains), the Decentralized Knowledge Graph layer (OriginTrail Layer 2, hosted on the ODN) and Trusted Knowledge applications in the application layer.\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"images/dkg-architecture.png\" alt=\"DKG Architecture\" width=\"400\"\u003e\n\u003c/div\u003e\n\nFurther, the architecture differentiates between **the public, replicated knowledge graph** shared by all network nodes according to the protocol, and **private Knowledge graphs** hosted separately by each of the OriginTrail nodes.\n\n**Anyone can run an OriginTrail node and become part of the ODN, contributing to the network capacity and hosting the OriginTrail DKG. The OriginTrail node is the ultimate data service for data and knowledge intensive Web3 applications and is used as the key backbone for trusted AI applications (see https://chatdkg.ai)**\n\n\u003c/details\u003e\n\n\u003cdetails open\u003e\n\u003csummary\u003e\n\n### **What is a Knowledge Asset?**\n\n\u003c/summary\u003e\n\n\u003cbr/\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"images/ka.png\" alt=\"Knowledge Asset\" width=\"200\"\u003e\n\u003c/div\u003e\n\n**Knowledge Asset is the new, AI‑ready resource for the Internet**\n\nKnowledge Assets are verifiable containers of structured knowledge that live on the OriginTrail DKG and provide:\n\n-   **Discoverability - UAL is the new URL**. Uniform Asset Locators (UALs, based on the W3C Decentralized Identifiers) are a new Web3 knowledge identifier (extensions of the Uniform Resource Locators - URLs) which identify a specific piece of knowledge and make it easy to find and connect with other Knowledge Assets.\n-   **Ownership - NFTs enable ownership**. Each Knowledge Asset contains an NFT token that enables ownership, knowledge asset administration and market mechanisms.\n-   **Verifiability - On-chain information origin and verifiable trail**. The blockchain tech increases trust, security, transparency, and the traceability of information.\n\nBy their nature, Knowledge Assets are semantic resources (following the W3C Semantic Web set of standards), and through their symbolic representations inherently AI ready. See more at https://chatdkg.ai\n\u003cbr/\u003e\n\n**Discover Knowledge Assets with the DKG Explorer:**\n\n\u003cdiv align=\"center\"\u003e\n    \u003ctable\u003e\n        \u003ctr\u003e\n            \u003ctd align=\"center\"\u003e\n                \u003ca href=\"https://dkg.origintrail.io/explore?ual=did:dkg:otp/0x5cac41237127f94c2d21dae0b14bfefa99880630/309100\"\u003e\n                  \u003cimg src=\"images/knowledge-assets-graph1.svg\" width=\"300\" alt=\"Knowledge Assets Graph 1\"\u003e\n                \u003c/a\u003e\n                \u003cbr\u003e\u003cb\u003eSupply Chains\u003c/b\u003e\n            \u003c/td\u003e\n            \u003ctd align=\"center\"\u003e\n                \u003ca href=\"https://dkg.origintrail.io/explore?ual=did:dkg:otp/0x5cac41237127f94c2d21dae0b14bfefa99880630/309285\"\u003e\n                  \u003cimg src=\"images/knowledge-assets-graph2.svg\" width=\"300\" alt=\"Knowledge Assets Graph 2\"\u003e\n                \u003c/a\u003e\n                \u003cbr\u003e\u003cb\u003eConstruction\u003c/b\u003e\n            \u003c/td\u003e\n            \u003ctd align=\"center\"\u003e\n                \u003ca href=\"https://dkg.origintrail.io/explore?ual=did:dkg:otp/0x5cac41237127f94c2d21dae0b14bfefa99880630/309222\"\u003e\n                  \u003cimg src=\"images/knowledge-assets-graph3.svg\" width=\"300\" alt=\"Knowledge Assets Graph 3\"\u003e\n                \u003c/a\u003e\n                \u003cbr\u003e\u003cb\u003eLife sciences and healthcare\u003c/b\u003e\n            \u003c/td\u003e\n            \u003ctd align=\"center\"\u003e\n                \u003ca href=\"https://dkg.origintrail.io/explore?ual=did:dkg:otp/0x5cac41237127f94c2d21dae0b14bfefa99880630/308028\"\u003e\n                  \u003cimg src=\"images/knowledge-assets-graph4.svg\" width=\"300\" alt=\"Knowledge Assets Graph 3\"\u003e\n                \u003c/a\u003e\n                \u003cbr\u003e\u003cb\u003eMetaverse\u003c/b\u003e\n            \u003c/td\u003e\n        \u003c/tr\u003e\n    \u003c/table\u003e\n\u003c/div\u003e\n\n\u003c/details\u003e\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\u003cbr/\u003e\n\n## 🚀 Getting Started\n\n---\n\n### Prerequisites\n\n\u003cbr/\u003e\n\n-   **NodeJS** 16.x (ideally, 16.16)\n-   **npm** \u003e= 8.0.0\n\n---\n\n\u003cbr/\u003e\n\n### Local Network Setup\n\n\u003cbr/\u003e\n\nFirst, clone the repo:\n\n```bash\ngit clone https://github.com/OriginTrail/ot-node.git\ncd ot-node\n```\n\nInstall dependencies using `npm`:\n\n```bash\nnpm install\n```\n\nCreate the .env file inside the \"ot-node\" directory:\n\n```bash\nnano .env\n```\n\nand paste the following content inside (save and close):\n\n```bash\nNODE_ENV=development\nRPC_ENDPOINT_BC1=http://localhost:8545\nRPC_ENDPOINT_BC2=http://localhost:9545\n```\n\nRun the Triple Store.\n\nTo use default Triple Store (`blazegraph`), download the exec file and run it with the following command in the separate process:\n\n```bash\njava -server -Xmx4g -jar blazegraph.jar\n```\n\nThen, depending on the OS, use one of the scripts in order to run the local network with provided number of nodes (minimal amount of nodes should be 12):\n\n**MacOS**\n\n```bash\nbash ./tools/local-network-setup/setup-macos-environment.sh --nodes=12\n```\n\n**Linux**\n\n```bash\n./tools/local-network-setup/setup-linux-environment.sh --nodes=12\n```\n\n---\n\n\u003cbr/\u003e\n\n### DKG Node Setup\n\n\u003cbr/\u003e\n\nIn order to run a DKG node on the **Testnet** or **Mainnet**, please read the official documentation: https://docs.origintrail.io/decentralized-knowledge-graph-layer-2/node-setup-instructions/setup-instructions-dockerless\n\n---\n\n\u003cbr/\u003e\n\n### Build on DKG\n\n\u003cbr/\u003e\n\nThe OriginTrail SDKs are client libraries for your applications, used to interact and connect with the OriginTrail Decentralized Knowledge Graph.\nFrom an architectural standpoint, the SDK libraries are application interfaces into the DKG, enabling you to create and manage Knowledge Assets through your apps, as well as perform network queries (such as search, or SPARQL queries), as illustrated below.\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"images/sdk.png\" alt=\"SDK\" width=\"200\"\u003e\n\u003c/div\u003e\n\nThe OriginTrail SDK libraries are being built in various languages by the team and the community, as listed below:\n\n-   dkg.js - JavaScript SDK implementation\n    -   [Github repository](https://github.com/OriginTrail/dkg.js)\n    -   [Documentation](https://docs.origintrail.io/decentralized-knowledge-graph-layer-2/dkg-sdk/dkg-v6-js-client)\n-   dkg.py - Python SDK implementation\n    -   [Github repository](https://github.com/OriginTrail/dkg.py)\n    -   [Documentation](https://docs.origintrail.io/decentralized-knowledge-graph-layer-2/dkg-sdk/dkg-v6-py-client)\n\n---\n\n\u003cbr/\u003e\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## 📄 License\n\nDistributed under the Apache-2.0 License. See `LICENSE` file for more information.\n\n\u003cbr/\u003e\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## 🤝 Contributing\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star! Thanks again!\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\u003cbr/\u003e\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## 📰 Social Media\n\n\u003cbr/\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://medium.com/origintrail\"\u003e\n    \u003cimg src=\"images/icons/medium.svg\" alt=\"Medium Badge\" width=\"30\" style=\"margin-right: 10px\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://t.me/origintrail\"\u003e\n    \u003cimg src=\"images/icons/telegram.svg\" alt=\"Telegram Badge\" width=\"30\" style=\"margin-right: 10px\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://x.com/origin_trail\"\u003e\n    \u003cimg src=\"images/icons/x.svg\" alt=\"X Badge\" width=\"30\" style=\"margin-right: 10px\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.youtube.com/c/origintrail\"\u003e\n    \u003cimg src=\"images/icons/youtube.svg\" alt=\"YouTube Badge\" width=\"30\" style=\"margin-right: 10px\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.linkedin.com/company/origintrail/\"\u003e\n    \u003cimg src=\"images/icons/linkedin.svg\" alt=\"LinkedIn Badge\" width=\"30\" style=\"margin-right: 10px\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://discord.gg/cCRPzzmnNT\"\u003e\n    \u003cimg src=\"images/icons/discord.svg\" alt=\"Discord Badge\" width=\"30\" style=\"margin-right: 10px\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.reddit.com/r/OriginTrail/\"\u003e\n    \u003cimg src=\"images/icons/reddit.svg\" alt=\"Reddit Badge\" width=\"30\" style=\"margin-right: 10px\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://coinmarketcap.com/currencies/origintrail/\"\u003e\n    \u003cimg src=\"images/icons/coinmarketcap.svg\" alt=\"Coinmarketcap Badge\" width=\"30\" style=\"margin-right: 10px\"/\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n---\n","funding_links":[],"categories":["JavaScript","blockchain","Implementation"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOriginTrail%2Fot-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOriginTrail%2Fot-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOriginTrail%2Fot-node/lists"}