{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schema.humancellatlas.org/module/ontology/5.3.4/mass_unit_ontology",
  "description": "A term that may be associated with a cell type-related ontology term",
  "additionalProperties": false,
  "required": [
    "text"
  ],
  "title": "Mass unit ontology",
  "name": "mass_unit_ontology",
  "type": "object",
  "properties": {
    "describedBy": {
      "description": "The URL reference to the schema.",
      "type": "string",
      "pattern": "^(http|https)://schema.(.*?)humancellatlas.org/module/ontology/(([0-9]{1,}.[0-9]{1,}.[0-9]{1,})|([a-zA-Z]*?))/mass_unit_ontology"
    },
    "schema_version": {
      "description": "The version number of the schema in major.minor.patch format.",
      "type": "string",
      "pattern": "^[0-9]{1,}.[0-9]{1,}.[0-9]{1,}$",
      "example": "4.6.1"
    },
    "text": {
      "description": "The name of a mass unit being used.",
      "type": "string",
      "user_friendly": "Mass unit",
      "example": "kilogram; microgram"
    },
    "ontology": {
      "description": "An ontology term identifier in the form prefix:accession.",
      "type": "string",
      "graph_restriction": {
        "ontologies": [
          "obo:efo",
          "obo:uo"
        ],
        "classes": [
          "UO:0000002"
        ],
        "relations": [
          "rdfs:subClassOf"
        ],
        "direct": false,
        "include_self": false
      },
      "user_friendly": "Mass unit ontology ID",
      "example": "UO:0000009; UO:0000023"
    },
    "ontology_label": {
      "description": "The preferred label for the ontology term referred to in the ontology field. This may differ from the user-supplied value in the text field.",
      "type": "string",
      "user_friendly": "Mass unit ontology label",
      "example": "kilogram; microgram"
    }
  }
}
