Rust library for interaction with the OriginTrail Decentralized Knowledge Graph

open up an issue on this repository and let us know

Rust DKG Client

Rust library for interaction with the OriginTrail Decentralized Knowledge Graph

Note: This library is currently in alpha, so you can expect issues to arise. We'd appreciate that if you do run into trouble, you open up an issue on this repository and let us know.

The official OriginTrail documentation can be found here.

Intro - What is a Decentralized Knowledge Graph (DKG)

There are many avaialable definitions of a knowlege graph, therefore we will present a simplified one focused on usability, rather than completeness. The purpose of this introduction is not to be a comprehensive guide for knowledge graphs, however it aims to get you started with the basics.

A knowledge graph (KG) is a network of entities — physical & digital objects, events or concepts — illustrating the relationship between them (aka a semantic network). KGs are used by major companies such as Amazon, Google, Uber, IBM etc for various applications: search, data integration, knowledge reasoning, recommendation engines, analytics, machine learning and AI etc.

Key characteristics of knowledge graphs:

  • focus on data connections as "first class citizens" (linked data)
  • designed to ingest data from multiple sources, usually in different formats
  • flexible data model, easily extendable

Common knowledge graphs however are deployed within the domain of one organization and are designed to capture knowledge from various sources both from within and outside of the organization.

We define decentralized knowledge graph (DKG) as a global shared knowledge graph that is designed to benefit organizations and individuals by providing a common infrastructure for data exchange. The DKG:

  • Enables Dapps with search, integration, analytics, AI and ML capabilities for any data source: blockchains, IPFS, enterprise systems, web services, personal devices
  • Removes central authorities (decentralized infrastructure)
  • Enables permissionless PUBLISH and QUERY (public network)
  • Decentralized identity & Verifiable Credentials based access control (references private data)

The OriginTrail DKG Architecture

The OriginTrail Decentralized Network implements the DKG according the the OriginTrail protocol.

It is:

  • a permissionless network - anyone can run OriginTrail nodes
  • a multi-chain data exchange network - connects to several blockchains (currently Ethereum and xDai with more integrations upcoming such as with Polkadot)
  • designed for off-chain data exchange using standardized data models (GS1 & W3C standards and recommendations)
  • public open source software
  • infrastructure for knowledge marketplaces & tenders - more info here

More information is available on the OriginTrail website, official documentation and blog.

Getting Started

Start local DKG network

To start local DKG network on your machine you should follow instructions on this link

Start the Client

Build:

Run tests:

Initializing Rust DKG client:

To get node info, publish data, perform network query or trail just paste some of the code snippets below in the lib-test/src/main.rs:

Node info:

Publishing data - we are publishing dataset.json that we have in the repo:

Network query:

Trail:

Learn More

  • More about OriginTrail
  • More about decentralized knowledge graph
  • Video explainer about the world’s first Decentralized Knowledge Graph

Information - Updated Jun 18, 2022

Stars: 4
Forks: 0
Issues: 0

Ease - HTTP clients for Rust

Ease is a library for interacting with RESTful APIs

Ease - HTTP clients for Rust
Http

740

A general purpose library of common HTTP types

More information about this crate can be found in the MIT license (LICENSE-MIT or

A general purpose library of common HTTP types

RUst eXports to C

C/C++ library exporting useful functions written in Rust, such as simple HTTP/S

RUst eXports to C

Roctogen: a rust client library for the GitHub v3 API

This client API is generated from the Isahc HTTP client

Roctogen: a rust client library for the GitHub v3 API

This is an HTTP server that exposes the Rust Syntect syntax highlighting library for use...

This is an HTTP server that exposes the Rust Syntect -> Syntax highlighting of code

This is an HTTP server that exposes the Rust Syntect syntax highlighting library for use...

Rust library for connecting to the IPFS HTTP API using Hyper/Actix

You can use actix-web as a backend instead of hyper

Rust library for connecting to the IPFS HTTP API using Hyper/Actix

acme-lib is a library for accessing ACME (Automatic Certificate Management Environment)

services such as http_challenge and authorizations

acme-lib is a library for accessing ACME (Automatic Certificate Management Environment)

prometheus_exporter

Helper libary to export prometheus metrics using tiny-http

prometheus_exporter

Rust Urbit HTTP API

This library wraps the Urbit ship http interface exposing it as an easy-to-use Rust crate

Rust Urbit HTTP API
Http

289

HTTP mocking library for Rust

Advanced verification and debugging support

HTTP mocking library for Rust
Facebook Instagram Twitter GitHub Dribbble
Privacy