Developer Hub
Relation ProtocolRelation ONE APIRelation Graph API
English
English
  • Overview
  • QUICK START
    • Deploy a Semantic SBT contract leveraging Relation Protocol
    • Deploying query services using Graph Indexer
  • KEY CONCEPTS
    • RDF
    • Semantic SBTs
    • Social Graph
  • Architecture
  • Schema Standard
    • Overview
    • How schemas limit smart contracts
    • Store schema
    • List of schemas
  • Contract Open Standard
    • Overview
    • Identity
      • Name Service
    • Relationship
      • Follow
      • Dao
    • Publication
      • Content
      • Privacy Content
  • Open Standard API
    • Introduction
    • EIP-6239
    • Business Interface
      • Identity
      • Relationship
      • Publication
  • Graph Indexer
    • Definition and usage
    • Listen to events
    • To parse RDF data
    • To build a social graph
  • Integrations
    • Quick start
    • Construct a social graph with Relation Protocol
    • List of resources
    • NameService contract guide
    • Follow contract guide
    • Dao contract guide
    • Content contract guide
    • PrivacyContent contract guide
  • Relation Name Service
    • Name Service Api
  • Use Case
  • APPENDIX
    • Deploy a contract using Hardhat
    • SemanticSBT Deployment tool
Powered by GitBook
On this page
  • Components
  • Deployment

Architecture

Last updated 2 years ago

Relation Protocol is a open and decentralized social graph protocol, any developer can deploy contracts and build their own Dapp based on the Semantic SBTs specification. When using Dapp, users generate a large amount of behavioral data on blockchain, and the RDF data is standardized and machine-readable . Users have control and governance over their data and can control the scope of data sharing. At this point, everyone has jointly constructed a blockchain-native social graph data layer.

Components

Relation Protocol consists of 4 parts:

Schema Standard

Schema Standard is the standard for social data storage in the Relation Protocol, which defines all social data formats built on the Relation protocol. Schema Standard defines the Base Schema of Relation Protocol, and all RDFs built on the Relation Protocol must conform to the data definition of the Base Schema. The Base Schema consists of several TTL files stored on Arweave and is managed and updated by the Relation DAO.

Contract Open Standard

Contract Open Standard is the smart contract standard defined by the Relation Protocol, which includes the following two conventions:

  • The contract needs to conform to the data format and interface specifications defined in the Open Standard API.

  • The RDF data constructed by the contract needs to conform to the Schema Standard.

Open Standard API

Open Standard API is the API specification of the Relation Protocol. Developers can access the Relation Protocol by implementing the Open Standard API, which is the basis of the Contract Open Standard.

Graph Indexer

The Graph Indexer is the parser standard for indexing SBT data in the Relation Protocol, and anyone can deploy data monitoring services based on the Graph Indexer standard. Its main function is to assemble SBT data in Ethereum and Arweave and build a Social Graph that can be used by social applications in a graph database.

Deployment

The contracts in the Relation protocol are deployed on the Ethereum network or L2. Social applications built on the Relation Protocol can deploy Semantic SBT contracts for specific scenarios or call contracts that have already been designed and deployed.

The Schema in the Relation Protocol consists of several TTL files stored on Arweave, which are used to constrain the RDF data specification of Semantic SBT contracts.

Privacy-based Semantic SBTs have unique schemas and storage methods, and the RDF data of privacy SBTs needs to be encrypted or decrypted using a privacy protocol (such as the ) before storage, and users manage and control the accessibility of RDF data.

Base Schema
Lit Protocol
Figure 3-1 Relation Protocol
Figure 3-2 How the Relation Protocol works