Python library for interacting with the OriginTrail Decentralized Knowledge Graph
Project description
dkg.py
Python SDK for interacting with the OriginTrail Decentralized Knowledge Graph
OriginTrail Docs
·
View Demo
·
Report Bug
·
Request Feature
Table of Contents
📚 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
- python
>=3.10
- poetry
>=1.5.1
In order to use in the local environment, make sure to run the local DKG network.
Installation
Create virtual environment (you can choose any existing folder this command will create configurations and virtual env for python):
python3 -m venv /path/to/folder
Inside of previously generated folder you will find activate script in bin folder and run it:
source /path/to/folder/bin/activate
Install dependencies:
poetry install
Now you can run a demo example file (you need to have the local DKG network running):
python3 examples/demo.py
📄 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!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
❤️ Thanks to all Contributors!
🌟 Acknowledgements
- web3.py: Basis for this project
📰 Social Media
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dkg-1.1.2.tar.gz
.
File metadata
- Download URL: dkg-1.1.2.tar.gz
- Upload date:
- Size: 43.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/24.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbd35bbfdb3a7c7fa8c56f59a203880f29c3f06559b7284d21b719c112ed2f49 |
|
MD5 | 2cff7335e96763daf0d100f39946e7f2 |
|
BLAKE2b-256 | aa94aa65d944e82c01f6856a0db7a6656d12af9469181e2a3f3a167e3e91912e |
File details
Details for the file dkg-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: dkg-1.1.2-py3-none-any.whl
- Upload date:
- Size: 66.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/24.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4f50c2c4ff722112cb8f29b7911a6a0b9a475f1183ae0443e49469f0766e8b3 |
|
MD5 | 8f0386a69fb3b9c6aa52c894418e4bc8 |
|
BLAKE2b-256 | 2f689e57f836c8a33f46778014a4f181381e492e8f5e2efe8d7bfd580063139a |