Skip to content

Commit

Permalink
Merge pull request #2842 from OriginTrail/v6/prerelease/mainnet
Browse files Browse the repository at this point in the history
OriginTrail Mainnet Release v6.1.0
  • Loading branch information
djordjekovac authored Dec 20, 2023
2 parents 766e70c + 50986af commit e6d998c
Show file tree
Hide file tree
Showing 101 changed files with 2,803 additions and 2,090 deletions.
73 changes: 51 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<a name="readme-top"></a>

___
---

<br />
<div align="center">
Expand Down Expand Up @@ -50,7 +50,7 @@ ___
</ol>
</details>

___
---

<br/>

Expand All @@ -60,6 +60,7 @@ ___
<summary>

### **What is the Decentralized Knowledge Graph?**

</summary>

<br/>
Expand All @@ -69,31 +70,35 @@ ___
</div>

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.

</details>

<details open>
<summary>

### **The OriginTrail DKG Architecture**

</summary>

<br/>

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

<div align="center">
<img src="images/dkg-architecture.png" alt="DKG Architecture" width="400">
</div>

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)**
**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)**

</details>

<details open>
<summary>

### **What is a Knowledge Asset?**

</summary>

<br/>
Expand All @@ -105,14 +110,16 @@ Further, the architecture differentiates between **the public, replicated knowle
**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.

- **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
<br/>

**Discover Knowledge Assets with the DKG Explorer:**

<div align="center">
<table>
<tr>
Expand Down Expand Up @@ -144,56 +151,75 @@ By their nature, Knowledge Assets are semantic resources (following the W3C Sema
</table>
</div>


</details>

<p align="right">(<a href="#readme-top">back to top</a>)</p>
<br/>

## 🚀 Getting Started

___
---

### Prerequisites

<br/>

- **NodeJS** >= 16.0.0
- **npm** >= 8.0.0
- **NodeJS** >= 16.0.0
- **npm** >= 8.0.0

---

___
<br/>

### Local Network Setup

<br/>

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

___
---

<br/>

### DKG Node Setup
Expand All @@ -202,7 +228,8 @@ ___

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

___
---

<br/>

### Build on DKG
Expand All @@ -217,13 +244,15 @@ From an architectural standpoint, the SDK libraries are application interfaces i
</div>

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)
___

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

---

<br/>
<p align="right">(<a href="#readme-top">back to top</a>)</p>
Expand Down Expand Up @@ -282,4 +311,4 @@ Don't forget to give the project a star! Thanks again!
</a>
</div>

___
---
Loading

0 comments on commit e6d998c

Please sign in to comment.