{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$id": "https://schema.humancellatlas.org/core/biomaterial/6.0.0/biomaterial_core",
  "description": "A biomaterial entity contains information about biological material that was generated/used in the project and includes everything from a whole organism down to subcellular components.",
  "additionalProperties": false,
  "required": [
    "biomaterial_id",
    "ncbi_taxon_id"
  ],
  "title": "biomaterial_core",
  "type": "object",
  "properties": {
    "describedBy": {
      "description": "The URL reference to the schema.",
      "type": "string",
      "pattern": "https://schema.humancellatlas.org/core/biomaterial/[0-9]{1,}.[0-9]{1,}.[0-9]{1,}/biomaterial_core"
    },
    "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"
    },
    "biomaterial_id": {
      "description": "A unique ID for this biomaterial.",
      "type": "string",
      "user_friendly": "Biomaterial ID"
    },
    "biomaterial_name": {
      "description": "A short, descriptive name for the biomaterial that need not be unique.",
      "type": "string",
      "user_friendly": "Biomaterial name"
    },
    "biomaterial_description": {
      "description": "A general description of the biomaterial.",
      "type": "string",
      "user_friendly": "Biomaterial description"
    },
    "ncbi_taxon_id": {
      "description": "A taxonomy ID (taxonID) from NCBI. Multiple IDs can be provided for multi-species samples.",
      "type": "array",
      "items": {
        "type": "integer"
      },
      "user_friendly": "NCBI taxon ID"
    },
    "genotype": {
      "description": "Genotype of biomaterial including strain, cross, and genetic modification information.",
      "type": "string",
      "user_friendly": "Genotype"
    },
    "karyotype": {
      "description": "The karyotype of the biomaterial.",
      "type": "string",
      "user_friendly": "Karyotype"
    },
    "supplementary_files": {
      "description": "A list of filenames of biomaterial-level supplementary files.",
      "type": "array",
      "items": {
        "type": "string"
      },
      "user_friendly": "Supplementary files"
    },
    "biosd_biomaterial": {
      "description": "A DDBJ, NCBI, or EBI BioSample ID. Accessions must start with SAMD, SAMN, or SAME.",
      "type": "string",
      "pattern": "^SAM(D|N|E([AG]?))[0-9]+$",
      "user_friendly": "BioSample ID"
    },
    "insdc_biomaterial": {
      "description": "An INSDC (International Nucleotide Sequence Database Collaboration) sample accession. Can be from the DDBJ, EMBL-EBI, or NCBI. Accession must start with DRS, ERS, or SRS.",
      "type": "string",
      "pattern": "^[D|E|S]RS[0-9]+$",
      "user_friendly": "INSDC ID"
    }
  }
}
