HumanCellAtlas/ingest-validator

View on GitHub
examples/schemas/draft-04/ethnicity_ontology.json

Summary

Maintainability
Test Coverage
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "https://schema.humancellatlas.org/module/ontology/5.3.0/ethnicity_ontology",
  "description": "A term that may be associated with a ethnicity-related ontology term",
  "$async": true,
  "additionalProperties": false,
  "required": [
    "text"
  ],
  "title": "ethnicity_ontology",
  "properties": {
    "describedBy": {
      "pattern": "^(http|https)://schema.(.*?)humancellatlas.org/module/ontology/(([0-9]{1,}.[0-9]{1,}.[0-9]{1,})|([a-zA-Z]*?))/ethnicity_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 ethnicity of the human donor.",
      "type": "string"
    },
    "ontology": {
      "description": "An ontology term identifier in the form prefix:accession",
      "type": "string",
      "graph_restriction": {
        "ontologies": [
          "obo:ancestro"
        ],
        "classes": [
          "http://purl.obolibrary.org/obo/ancestro_0004"
        ],
        "relations": [
          "rdfs:subClassOf"
        ],
        "direct": false,
        "include_self": false
      }
    },
    "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"
    }
  },
  "type": "object"
}