You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cip: 10
title: DocId Map
author: Michael Sena (@michaelsena), Joel Thorstensson (@oed)
status: Draft
category: Standards
type: RFC
created: 2020-07-13
requires: Tile Doctype (CIP-8)
Simple Summary
The DocId Map defines a document that stores mappings from strings to Ceramic DocIds.
Abstract
For many use cases of Ceramic it is desirable to create a document that simply stores a list of mappings from a property to a value where the property is a string and the value is a Ceramic 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 Map specification consists of a doctype, a schema, and a tag.
The DocId Map schema defines a document which maintains a list of properties that must be strings and values that must be Ceramic docIds. These rules will be enforced by the Ceramic protocol.
When creating a document that conforms to the DocId Map schema, add DocIdMap to the tags field.
Rationale
This proposal is fairly straightforward and no other design considerations were made.
Implementation
DocId Map Schema: This version of the 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 Map schema, you should include in the document header the schema version included above in the schema property and a DocIdMap tag in the tags property.
@simonovic86 We should just force it to be a DocId of the form ceramic://.... The other format of docId is only needed when representing Ceramic documents in the http client.
Simple Summary
The DocId Map defines a document that stores mappings from strings to Ceramic DocIds.
Abstract
For many use cases of Ceramic it is desirable to create a document that simply stores a list of mappings from a property to a value where the property is a string and the value is a Ceramic 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 Map specification consists of a doctype, a schema, and a tag.
Doctype
The DocId Map is defined in a Tile Doctype (CIP-8).
Schema
The DocId Map schema defines a document which maintains a list of properties that must be strings and values that must be Ceramic docIds. These rules will be enforced by the Ceramic protocol.
Tags
When creating a document that conforms to the DocId Map schema, add
DocIdMap
to thetags
field.Rationale
This proposal is fairly straightforward and no other design considerations were made.
Implementation
DocId Map Schema: This version of the 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 Map schema, you should include in the document header the schema version included above in the
schema
property and aDocIdMap
tag in thetags
property.Security Considerations
None
Copyright
Copyright and related rights waived via CC0.
The text was updated successfully, but these errors were encountered: