Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/OriginTrail/ot-node
OriginTrail Decentralized Knowledge Graph network node
https://github.com/OriginTrail/ot-node
blockchain decentralized-knowledge-graph dkg drag graphrag knowledge-graph neuro-symbolic-ai node origintrail origintrail-node protocol rag retrieval-augmented-generation trac
Last synced: 3 months ago
JSON representation
OriginTrail Decentralized Knowledge Graph network node
- Host: GitHub
- URL: https://github.com/OriginTrail/ot-node
- Owner: OriginTrail
- License: apache-2.0
- Created: 2018-02-01T18:29:15.000Z (almost 7 years ago)
- Default Branch: v6/develop
- Last Pushed: 2024-10-29T10:54:15.000Z (3 months ago)
- Last Synced: 2024-10-29T11:49:45.860Z (3 months ago)
- Topics: blockchain, decentralized-knowledge-graph, dkg, drag, graphrag, knowledge-graph, neuro-symbolic-ai, node, origintrail, origintrail-node, protocol, rag, retrieval-augmented-generation, trac
- Language: JavaScript
- Homepage: https://origintrail.io
- Size: 116 MB
- Stars: 201
- Watchers: 35
- Forks: 73
- Open Issues: 74
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-dkg - OT-Node - OriginTrail DKG node implementation (Implementation)
- awesome-dkg - OT-Node - OriginTrail DKG node implementation (Implementation)
README
---
Table of Contents
π About The Project
- What is the Decentralized Knowledge Graph?
- The OriginTrail DKG Architecture
- What is a Knowledge Asset?
π Getting Started
- π License
- π€ Contributing
- π° Social Media
---
## π About The Project
### **What is the Decentralized Knowledge Graph?**
OriginTrail 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.
### **The OriginTrail DKG Architecture**
The 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.
Further, 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.
**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)**
### **What is a Knowledge Asset?**
**Knowledge Asset is the new, AIβready resource for the Internet**
Knowledge Assets are verifiable containers of structured knowledge that live on the OriginTrail DKG and provide:
- **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.
- **Ownership - NFTs enable ownership**. Each Knowledge Asset contains an NFT token that enables ownership, knowledge asset administration and market mechanisms.
- **Verifiability - On-chain information origin and verifiable trail**. The blockchain tech increases trust, security, transparency, and the traceability of information.By 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
**Discover Knowledge Assets with the DKG Explorer:**
## π Getting Started
---
### Prerequisites
- **NodeJS** 16.x (ideally, 16.16)
- **npm** >= 8.0.0---
### Local Network Setup
First, clone the repo:
```bash
git clone https://github.com/OriginTrail/ot-node.git
cd ot-node
```Install dependencies using `npm`:
```bash
npm install
```Create the .env file inside the "ot-node" directory:
```bash
nano .env
```and paste the following content inside (save and close):
```bash
NODE_ENV=development
RPC_ENDPOINT_BC1=http://localhost:8545
RPC_ENDPOINT_BC2=http://localhost:9545
```Run the Triple Store.
To use default Triple Store (`blazegraph`), download the exec file and run it with the following command in the separate process:
```bash
java -server -Xmx4g -jar blazegraph.jar
```Then, 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):
**MacOS**
```bash
bash ./tools/local-network-setup/setup-macos-environment.sh --nodes=12
```**Linux**
```bash
./tools/local-network-setup/setup-linux-environment.sh --nodes=12
```---
### DKG Node Setup
In 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
---
### Build on DKG
The OriginTrail SDKs are client libraries for your applications, used to interact and connect with the OriginTrail Decentralized Knowledge Graph.
From 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.
The OriginTrail SDK libraries are being built in various languages by the team and the community, as listed below:
- dkg.js - JavaScript SDK implementation
- [Github repository](https://github.com/OriginTrail/dkg.js)
- [Documentation](https://docs.origintrail.io/decentralized-knowledge-graph-layer-2/dkg-sdk/dkg-v6-js-client)
- dkg.py - Python SDK implementation
- [Github repository](https://github.com/OriginTrail/dkg.py)
- [Documentation](https://docs.origintrail.io/decentralized-knowledge-graph-layer-2/dkg-sdk/dkg-v6-py-client)---
## π License
Distributed under the Apache-2.0 License. See `LICENSE` file for more information.
## π€ Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
If 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".
Don't forget to give the project a star! Thanks again!1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request
## π° Social Media
---