{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://publicschema.org/GeneticResourceAccession.schema.json",
  "title": "GeneticResourceAccession",
  "description": "An identified sample of plant genetic material kept and maintained by a genebank or other collection under an accession number that the maintaining institute assigns when the sample enters the collection. An accession can have several physical samples or seed lots and need not be a named variety.",
  "type": "object",
  "properties": {
    "accession_number": {
      "type": "string",
      "description": "The number that the maintaining institute assigns to the accession when it enters the collection. It is unique only within that institute."
    },
    "identifiers": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "$ref": "https://publicschema.org/Identifier.schema.json"
          },
          {
            "type": "string",
            "description": "URI or identifier reference"
          }
        ],
        "description": "Identifiers carried by this entity, such as national ID numbers, program IDs, or identifiers asserted by an identity document."
      }
    },
    "maintaining_institute": {
      "oneOf": [
        {
          "$ref": "https://publicschema.org/Organization.schema.json"
        },
        {
          "type": "string",
          "description": "URI or identifier reference"
        }
      ],
      "description": "The organization that maintains the accession, such as a genebank identified by its institute code in the FAO World Information and Early Warning System on plant genetic resources."
    },
    "biological_taxon": {
      "$ref": "https://publicschema.org/CodedValue.schema.json",
      "description": "The taxon to which this organism, group, breed, variety or sample belongs, as a code or scientific name from an identified taxonomy such as Catalogue of Life or the taxonomy of the National Center for Biotechnology Information. No single taxonomy is required."
    },
    "accession_variety": {
      "oneOf": [
        {
          "$ref": "https://publicschema.org/PlantVariety.schema.json"
        },
        {
          "type": "string",
          "description": "URI or identifier reference"
        }
      ],
      "description": "The variety that the accession represents, when established. The accession and the variety remain distinct, and this relation is not the inverse of a variety's origin accessions."
    },
    "accession_collection_date": {
      "type": "string",
      "description": "The date on which the sample was collected to the precision known, in ISO 8601 form as a year (1990), a year and month (1990-07) or a full date (1990-07-15). A collecting date recorded with missing parts, such as 1990----, keeps only its known parts (1990).",
      "pattern": "^[0-9]{4}(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01]))?)?$"
    }
  }
}
