{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schema.humancellatlas.org/module/ontology/0.0.0/data_access_ontology",
  "description": "A term that may be associated with a data use restriction ontology term.",
  "additionalProperties": false,
  "required": [
    "text"
  ],
  "title": "Data access",
  "name": "data_access_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]*?))/data_access_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": "Type of data access permissions associated with the project.",
      "type": "string",
      "user_friendly": "Data access type",
      "example": "No restriction "
    },
    "ontology": {
      "description": "An ontology term identifier in the form prefix:accession.",
      "type": "string",
      "enum": [
        "DUO:0000004",
        "DUO:0000046",
        "DUO:0000042"
      ],
      "user_friendly": "Data access ontology ID",
      "guidelines": "Must be one of: DUO:0000004, DUO:0000046, DUO:0000042",
      "example": "DUO:0000004"
    },
    "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": "Data access ontology label",
      "example": "no restriction"
    }
  }
}
