Document Graph is a flexible persistence and modeling framework for blockchain applications.
Document is a node in the graph. Documents have a:
- ID (system assigned & immutable)
- Owner (could be owned by a DAO)
- Text or Primitive type data (e.g. % interest or 2.50 USD)
- Files, photos, videos, saved into IPFS with the CID saved in the document.
- Any content can be optionally encrypted with a password that can be shared through a side channel.
Edges connect nodes. Each edge has:
- From Node
- To Node
- Edge Name (type:
Only the owner can edit a document or an edge (e.g. only
dao.hyphacan edit a document created by the DHO)
Anyone can extend an existing graph with documents that they are the
ownerof. This allows for multitenant control over different data in the same graph.
- Document Graph includes a web-based Explorer and Editor that allows non-technical users to directly
extend. Screenshot shows
editscreen where user has encrypted the
referencefield and saved the
secret keyto IPFS. (not recommended, this was just to illustrate the functionality)
Actions can be deployed anywhere on the layer 1 to interact with the graph. The code in those contracts will modify the graph contents, but will require the permission of the
ownerthat created it. The default contract has all of the basic actions (e.g. trigger a proposal if the right DAO/DHO/owner for edits). But it is compatible with any contracts on the layer 1, so it allows for trustless deployment of business logic that scales to the bounds of the layer 1.
All data in the graph is accessible via GraphQL endpoints, which can be used to integrate any client or stitched to other graph data sources.
The documents can be certified by anyone, this allows to ensure the content of the document
- member is a member of two organizations
- badges are owned by the Badge Librarian
- members are assigned badges
- member has been paid multiple times