Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OriginTrail Testnet Release v6.0.15 #2708

Merged
merged 36 commits into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
439dd62
Updated README
u-hubar Aug 14, 2023
a7b63a1
Add build on DKG to readme
NZT48 Aug 15, 2023
5a54919
Merge branch 'v6/develop' into readme-update
NZT48 Aug 15, 2023
505c941
Merge branch 'v6/develop' into readme-update
zeroxbt Aug 18, 2023
af742bd
Removed fixed gas limit for blockchain functions
u-hubar Aug 21, 2023
4a7854c
Changed gasPrice handling to use BigNumber
u-hubar Aug 22, 2023
befa644
Update README.md
branarakic Aug 25, 2023
341a1f3
Update CODEOWNERS
NZT48 Aug 28, 2023
70c0b1f
Fixed README table of contents links
u-hubar Aug 28, 2023
aa14825
Removed redundant image from README
u-hubar Aug 28, 2023
a9cee9a
Merge branch 'v6/develop' into readme-update
u-hubar Aug 28, 2023
90fed3f
Merge pull request #2665 from OriginTrail/readme-update
u-hubar Aug 28, 2023
69fb652
Merge branch 'v6/develop' into chore/update-codeowners
NZT48 Aug 29, 2023
c9b9ff8
Merge pull request #2694 from OriginTrail/chore/update-codeowners
NZT48 Aug 29, 2023
34f6d82
Merge pull request #2695 from OriginTrail/v6/release/testnet
u-hubar Aug 29, 2023
b17b174
Merge pull request #2696 from OriginTrail/v6/prerelease/mainnet
u-hubar Aug 29, 2023
30222bd
Merge branch 'v6/develop' into v6/release/mainnet
NZT48 Aug 29, 2023
d429b05
Merge pull request #2697 from OriginTrail/v6/release/mainnet
u-hubar Aug 29, 2023
3099d14
Updated check for root hash
djordjekovac Sep 4, 2023
845b394
Unit tests updated
djordjekovac Sep 4, 2023
4b1fccf
bugfix - npm command improved with proper installation version
Niks988 Sep 4, 2023
4f44e4c
Merge pull request #2701 from OriginTrail/bugfix/otnode-installer-npm
NZT48 Sep 5, 2023
e922299
Reverted back gasPrice increase by 20% on retry
u-hubar Sep 6, 2023
f6066d3
Merge branch 'v6/develop' into v6/bugfix/update-root-hash-validation-…
u-hubar Sep 6, 2023
b3e34f7
Merge branch 'v6/develop' into improvement/fixed-gas-limit-removal
NZT48 Sep 7, 2023
40c317c
Merge pull request #2700 from OriginTrail/v6/bugfix/update-root-hash-…
NZT48 Sep 7, 2023
6055570
Merge branch 'v6/develop' into improvement/fixed-gas-limit-removal
NZT48 Sep 7, 2023
8fa0308
Merge pull request #2676 from OriginTrail/improvement/fixed-gas-limit…
NZT48 Sep 7, 2023
270ccf1
Round small assertions to 1KB
NZT48 Sep 7, 2023
1a9fd37
Bump version to 6.0.15
NZT48 Sep 7, 2023
40a729e
Merge pull request #2704 from OriginTrail/fix/revert-rounding
NZT48 Sep 7, 2023
b681349
Bump protobufjs from 6.11.3 to 6.11.4
dependabot[bot] Sep 7, 2023
0de468f
Merge pull request #2667 from OriginTrail/dependabot/npm_and_yarn/pro…
NZT48 Sep 7, 2023
c57898a
Merge pull request #2705 from OriginTrail/v6/develop
NZT48 Sep 7, 2023
d4bb75e
Merge pull request #2706 from OriginTrail/v6/prerelease/devnet
NZT48 Sep 7, 2023
eb90e4c
Merge pull request #2707 from OriginTrail/v6/development-network
NZT48 Sep 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @branarakic @djordjekovac @kotlarmilos @NZT48 @zeroxbt
* @branarakic @djordjekovac @NZT48 @zeroxbt @u-hubar
290 changes: 271 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,285 @@
# OriginTrail Decentralized Knowledge Graph network node - OT-Node v6
<a name="readme-top"></a>

___

OriginTrail technology is a set of tools and protocols evolving as the semantic layer for Web3, built on the OriginTrail Decentralized Knowledge Graph (DKG). Its function is to empower developers and system integrators utilizing decentralized knowledge exchange supported by emerging standards and DLT networks.
<br />
<div align="center">
<a href="https://github.com/OriginTrail/ot-node">
<img src="images/banner.gif" alt="OriginTrail Node Banner">
</a>

Version 6 is the latest implementation of OriginTrail Decentralized Knowledge Graph. OriginTrail is currently in the launch procedure.
<h3 align="center"><b>OT-Node</b></h3>

The DKG v6 introduces various improvements to the existing OriginTrail DKG. Among others, it will introduce:
- the Universal Asset Locator (UAL), akin to URLs in Web2
- improved discoverability, performance and semantic powers with the expanding support for semantic technologies such as RDF, OWL, SPARQL, Triple Pattern Fragments, SHACL and others
- numerous performance updates to the protocol & network implementation
<p align="center">
</br>
<a href="https://docs.origintrail.io/">OriginTrail Docs</a>
·
<a href="https://github.com/OriginTrail/ot-node/issues">Report Bug</a>
·
<a href="https://github.com/OriginTrail/ot-node/issues">Request Feature</a>
</p>
</div>

To learn more about OriginTrail v6, check out this blogpost.
</br>

## Contribution
<details open>
<summary>
<b>Table of Contents</b>
</summary>
<ol>
<li>
<a href="#📚-about-the-project">📚 About The Project</a>
<ul>
<li><a href="#what-is-the-decentralized-knowledge-graph">What is the Decentralized Knowledge Graph?</a></li>
<li><a href="#the-origintrail-dkg-architecture">The OriginTrail DKG Architecture</a></li>
<li><a href="#what-is-a-knowledge-asset">What is a Knowledge Asset?</a></li>
</ul>
</li>
<li>
<a href="#🚀-getting-started">🚀 Getting Started</a>
<ul>
<li><a href="#prerequisites">Prerequisites</a></li>
<li><a href="#local-network-setup">Local Network Setup</a></li>
<li><a href="#dkg-node-setup">DKG Node Setup</a></li>
<li><a href="#build-on-dkg">Build on DKG</a></li>
</ul>
</li>
<li><a href="#📄-license">📄 License</a></li>
<li><a href="#🤝-contributing">🤝 Contributing</a></li>
<li><a href="#📰-social-media">📰 Social Media</a></li>
</ol>
</details>

OriginTrail software is open source (Apache 2 licence) and open for contributions by anyone. We encourage the developer community to submit [issues](https://github.com/OriginTrail/ot-node/issues) and [pull requests](https://github.com/OriginTrail/ot-node/pulls) for DKG v6 on this repo. Please have the issue/PR name formatted like this for easy navigation: ``` [v6] Issue name goes here ```
___

For a live discussion you are welcome to join the OriginTrail tech community in our [Discord](https://discordapp.com/invite/FCgYk2S)!
<br/>

## Launch procedure
The OriginTrail DKG v6 launch is performed in 3 stages:
- Stage 1 which introduces the new network and data layer. The goal of Stage1 is to verify smooth operation of the v6 network and data layer in a public network environment.
- Stage 2 which introduces the incentivisation layer (smart contracts and TRAC token). Stage 2 immediately kicks in once stage 1 KPIs are stable, which will introduce the incentivisation layer, implemented through smart contracts, opening the doors for token delegation, staking and improving several existing mechanisms
- Stage 3 will be focused on performing the migration from v5 to the v6 mainnet.
## 📚 About The Project

Throughout the stages the OriginTrail community is invited to participate by actively utilizing the v6 network. Each node will be capable of collecting granular network KPI and telemetry data and publishing it to the DKG itself, further utilized by the core developers to improve the DKG implementation and proceed through the launch stages. For that purpose, there will be a designated reward pool that node runners will be able to collect by submitting relevant network utilization data. All node runners will be motivated to test and utilize their nodes in various creative ways, in order to generate as much quality DKG utilization data to be able to collect rewards. The collected data will include performance metrics, collected error information from bugs occurrences and other. More details on the reward pool distribution among all node runners will be available shortly.
<details open>
<summary>

## Node setup instructions
### **What is the Decentralized Knowledge Graph?**
</summary>

Setup instructions are available in the [official documentation](https://docs.origintrail.io/).
<br/>

<div align="center">
<img src="images/nodes.png" alt="Knowledge Asset" width="200">
</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.

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

<details open>
<summary>

### **What is a Knowledge Asset?**
</summary>

<br/>

<div align="center">
<img src="images/ka.png" alt="Knowledge Asset" width="200">
</div>

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

**Discover Knowledge Assets with the DKG Explorer:**
<div align="center">
<table>
<tr>
<td align="center">
<a href="https://dkg.origintrail.io/explore?ual=did:dkg:otp/0x5cac41237127f94c2d21dae0b14bfefa99880630/309100">
<img src="images/knowledge-assets-graph1.svg" width="300" alt="Knowledge Assets Graph 1">
</a>
<br><b>Supply Chains</b>
</td>
<td align="center">
<a href="https://dkg.origintrail.io/explore?ual=did:dkg:otp/0x5cac41237127f94c2d21dae0b14bfefa99880630/309285">
<img src="images/knowledge-assets-graph2.svg" width="300" alt="Knowledge Assets Graph 2">
</a>
<br><b>Construction</b>
</td>
<td align="center">
<a href="https://dkg.origintrail.io/explore?ual=did:dkg:otp/0x5cac41237127f94c2d21dae0b14bfefa99880630/309222">
<img src="images/knowledge-assets-graph3.svg" width="300" alt="Knowledge Assets Graph 3">
</a>
<br><b>Life sciences and healthcare</b>
</td>
<td align="center">
<a href="https://dkg.origintrail.io/explore?ual=did:dkg:otp/0x5cac41237127f94c2d21dae0b14bfefa99880630/308028">
<img src="images/knowledge-assets-graph4.svg" width="300" alt="Knowledge Assets Graph 3">
</a>
<br><b>Metaverse</b>
</td>
</tr>
</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

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

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

<br/>

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

<br/>

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.

<div align="center">
<img src="images/sdk.png" alt="SDK" width="200">
</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)
___

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

## 📄 License

Distributed under the Apache-2.0 License. See `LICENSE` file for more information.

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

## 🤝 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

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

## 📰 Social Media

<br/>

<div align="center">
<a href="https://medium.com/origintrail">
<img src="images/icons/medium.svg" alt="Medium Badge" width="30" style="margin-right: 10px"/>
</a>
<a href="https://t.me/origintrail">
<img src="images/icons/telegram.svg" alt="Telegram Badge" width="30" style="margin-right: 10px"/>
</a>
<a href="https://x.com/origin_trail">
<img src="images/icons/x.svg" alt="X Badge" width="30" style="margin-right: 10px"/>
</a>
<a href="https://www.youtube.com/c/origintrail">
<img src="images/icons/youtube.svg" alt="YouTube Badge" width="30" style="margin-right: 10px"/>
</a>
<a href="https://www.linkedin.com/company/origintrail/">
<img src="images/icons/linkedin.svg" alt="LinkedIn Badge" width="30" style="margin-right: 10px"/>
</a>
<a href="https://discord.gg/cCRPzzmnNT">
<img src="images/icons/discord.svg" alt="Discord Badge" width="30" style="margin-right: 10px"/>
</a>
<a href="https://www.reddit.com/r/OriginTrail/">
<img src="images/icons/reddit.svg" alt="Reddit Badge" width="30" style="margin-right: 10px"/>
</a>
<a href="https://coinmarketcap.com/currencies/origintrail/">
<img src="images/icons/coinmarketcap.svg" alt="Coinmarketcap Badge" width="30" style="margin-right: 10px"/>
</a>
</div>

___
Binary file added images/banner.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/dkg-architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/icons/coinmarketcap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions images/icons/discord.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions images/icons/linkedin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions images/icons/medium.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading