Closed michaelsena closed 4 years ago
@oed need your input on schema here
@oed @michaelsena updated the schema
Should we really allow version in the property name? This would allow one to add the same docId as property twice for different versions.
@oed I thought about not allowing that, too. Schema updated 👍
Stale, closing.
Simple Summary
DocId to DocId Map defines a schema that stores a list of mappings from DocId to DocId.
Abstract
For many use cases of Ceramic it is desirable to create a document that simply stores a list of mappings from a DocId to another DocId.
Motivation
Such a standard would be helpful in defining a basic schema that many in the Ceramic ecosystem can use when creating documents.
Specification
The DocId to DocId Map specification consists of a doctype, a schema, and a tag.
Doctype
The DocId to DocId Map is a Tile Doctype (CIP-8).
Schema
The DocId to DocId Map schema defines a document which maintains a list of DocIds that map to other DocIds. If a document uses this schema, these rules will be enforced by the Ceramic protocol.
Tags
When creating a document that conforms to the DocId to DocId Map schema, add
DocIdDocIdMap
to thetags
field.Rationale
This proposal is fairly straightforward and no other design considerations were made.
Implementation
DocId to DocId Map Schema: This version of the DocId to DocId Map schema can be found at
ceramic://bafy.../?version
(will update after it is deployed)Usage
When creating a new document that conforms to the DocId to DocId Map schema, you should include the schema version included above in the
schema
property and theDocIdDocIdMap
tag in thetags
property.Copyright
Copyright and related rights waived via CC0.