{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://publicschema.org/AnimalGroupCount.schema.json",
  "title": "AnimalGroupCount",
  "description": "An observation of how many animals belonged to an animal group on a stated date. The count need not equal the number of individually identified members.",
  "type": "object",
  "properties": {
    "counted_animal_group": {
      "oneOf": [
        {
          "$ref": "https://publicschema.org/AnimalGroup.schema.json"
        },
        {
          "type": "string",
          "description": "URI or identifier reference"
        }
      ],
      "description": "The animal group whose animals were counted."
    },
    "animal_count": {
      "type": "integer",
      "description": "The number of animals counted in the group. Zero means that none were present; an unknown count is omitted.",
      "minimum": 0
    },
    "animal_count_date": {
      "type": "string",
      "format": "date",
      "description": "The date to which the animal count applies, distinct from the time the count was recorded."
    }
  }
}
