{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schema.humancellatlas.org/module/ontology/5.3.8/disease_ontology",
  "description": "A term that may be associated with a disease-related ontology term.",
  "additionalProperties": false,
  "required": [
    "text"
  ],
  "title": "Disease ontology",
  "name": "disease_ontology",
  "type": "object",
  "properties": {
    "describedBy": {
      "description": "The URL reference to the schema.",
      "pattern": "^(http|https)://schema.(.*?)humancellatlas.org/module/ontology/(([0-9]{1,}.[0-9]{1,}.[0-9]{1,})|([a-zA-Z]*?))/disease_ontology",
      "type": "string"
    },
    "schema_version": {
      "description": "Version number in major.minor.patch format.",
      "type": "string",
      "pattern": "^[0-9]{1,}.[0-9]{1,}.[0-9]{1,}$",
      "example": "4.6.1"
    },
    "text": {
      "description": "The text for the term as the user provides it.",
      "type": "string",
      "user_friendly": "Disease",
      "example": "type 2 diabetes mellitus; normal"
    },
    "ontology": {
      "description": "An ontology term identifier in the form prefix:accession.",
      "type": "string",
      "graph_restriction": {
        "ontologies": [
          "obo:mondo",
          "obo:efo"
        ],
        "classes": [
          "MONDO:0000001",
          "PATO:0000461"
        ],
        "relations": [
          "rdfs:subClassOf"
        ],
        "direct": false,
        "include_self": true
      },
      "user_friendly": "Disease ontology ID",
      "example": "MONDO:0005148; PATO:0000461"
    },
    "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": "Disease ontology label",
      "example": "type 2 diabetes mellitus; normal"
    }
  }
}
