{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://publicschema.org/AnimalGroup.schema.json",
  "title": "AnimalGroup",
  "description": "Animals of one kind identified or managed together as one unit, such as a herd, flock or batch. The group keeps its identity while its membership changes, and it is distinct from a human household or organization.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The full display name of the record. Depending on the concept, this is a person's or group's name, or the title of a program, instrument, scoring rule, or software product."
    },
    "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."
    },
    "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."
      }
    },
    "known_animal_members": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "$ref": "https://publicschema.org/IndividualAnimal.schema.json"
          },
          {
            "type": "string",
            "description": "URI or identifier reference"
          }
        ],
        "description": "Individually identified animals known to belong to the group. The list can be incomplete and is not a movement history."
      }
    },
    "predecessor_animal_groups": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "$ref": "https://publicschema.org/AnimalGroup.schema.json"
          },
          {
            "type": "string",
            "description": "URI or identifier reference"
          }
        ],
        "description": "Groups from which this group was formed by splitting or merging. No chronology of those events is implied."
      }
    }
  }
}
