WarmHub Docs
  • Welcome to WarmHub
  • Getting Started
  • The Language of Digital Trust
    • Articles, Claims, Evidence, and Sources
    • Reproductions and Replications
  • Trust Repositories
    • Creating a Repository
    • ReadMe
    • Data
      • Templates for Typed Instance Data
    • Types
      • Importing Types From Other Repos
      • Creating Types
      • Claims Computed on WarmHub
    • Events
    • Webhooks
    • About
    • Committing To Your Repo
    • Customizing Templates
      • Template Language Reference
  • Guides
    • Units of Measurement Repo
    • Templates for Units of Measurement
Powered by GitBook
On this page
  1. Trust Repositories
  2. Types

Creating Types

If you are creating types for your repo, make sure to follow the following order.

  1. Article Types - You will need to make sure you have set up article types before you can set up any other type. This is because both Evidence types and Claim types require you to select the Article Types the evidence or claim will be about.

  2. Evidence Types - To set up evidence types, you will have to define the following:

    1. The properties of the evidence

    2. The about properties, which describe the articles types the evidence will be about

    3. Source Types, which define the properties of the sources that the evidence will be from.

  3. Claim Types - To set up claim types, you will need to define the following:

    1. The properties of the claim

    2. The about properties, which describe the articles types the evidence will be about

    3. The basis properties, which define the Evidence types, that the claim will be based on

    4. WarmHub can compute some claims for you. For more information see Claims Computed on WarmHub

Properties

The main component that helps define all types are their properties. Each property is a specific element of the data that can or must be present whenever someone commits data of that type.

Elements of a property

  • Name - This is required and identifies the property

  • Type - This is the primitive type or format of data that this property will be. For example: text, integer, URL, DateTime, etc.

    • Many of the standard types are available through the automatically imported types from our warmhub/standard repo, but you can add other types that will show up here, by creating Custom Types.

  • Description - This describes this property and helps others understand how it should be used.

  • Required - Check this box, if any commit of this type, must contain this property to be valid and accepted into the repo. If the box is unchecked, then commits of that type can be made with or without that property.

  • List - Check this box if you want to allow a list of items like an array, and not just a single data element for this property. If unchecked, only one data element can be present for the property.

PreviousImporting Types From Other ReposNextClaims Computed on WarmHub

Last updated 1 day ago