Content
The Content contract allows a user to publish content openly on the Relation Protocol. Users can share articles, pictures, videos, and more with it. Meanwhile, it is based on blockchain technology, so the content published is immutable and traceable.
With the PublicContent contract, users can publish and read their own contents. They can also comment and like the contents generated by other users.
Schema
The schema of a content to be published is saved to Arweave in the form of a ttl file. The transaction hash will serve as a schemaURI to be passed as a parameter when initializing the contract. The following is an example:
A schema consists of the following three parts:
The list of prefixes.
Class
Soul is used to represent an address entity.
Predicate
The predicate p:publicContent describes the content to be published.
The contract
The content uploaded to Arweave is structured as follows:
Full source code:
Last updated