{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://schema.govfresh.com/v1/_core/organization.schema.json",
  "title": "GovernmentOrganization",
  "description": "A body that exercises public authority: a government, a department, a council, a committee, an agency.",
  "standards": [
    "w3c-org",
    "popolo"
  ],
  "type": "object",
  "properties": {
    "@context": {},
    "@id": {
      "type": "string",
      "format": "iri",
      "description": "This organization's stable identifier for the entity, not the address of its current web page. It must not change when the website is reorganized or the organization is renamed. Put the public page in `url` and source-system codes in `identifier`."
    },
    "@type": {
      "const": "GovernmentOrganization",
      "description": "Always `GovernmentOrganization`. This is where people, budgets, decisions, and legislation attach. It points at the territory it governs with `areaServed`; it is not itself a place."
    },
    "name": {
      "type": "string",
      "description": "The organization's official name."
    },
    "alternateName": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Other names this organization is known by."
    },
    "description": {
      "type": "string",
      "description": "A plain-language description of the organization."
    },
    "mission": {
      "type": "string",
      "description": "The organization's formally stated mission or purpose, as it words it. Optional. Kept apart from `description`, which is a general overview."
    },
    "url": {
      "type": "string",
      "format": "iri",
      "description": "Where more information about this organization can be found."
    },
    "identifier": {
      "type": "array",
      "items": {
        "$ref": "identifier.schema.json"
      },
      "minItems": 1,
      "description": "At least one scheme-qualified identifier for this organization."
    },
    "sameAs": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "iri"
      },
      "description": "Links to authoritative external records for this organization."
    },
    "organizationClassification": {
      "type": "string",
      "description": "termCode from the `OrganizationClassification` code list. Describes what kind of body this is. It does not set hierarchy (`parentOrganization` does), is never inferred from depth in the tree or from the name, and is not a separate class: every value is a `GovernmentOrganization`.",
      "enum": [
        "government",
        "legislature",
        "executive",
        "department",
        "agency",
        "committee",
        "commission",
        "court",
        "office",
        "enterprise",
        "division",
        "bureau",
        "authority",
        "serviceArea"
      ]
    },
    "governmentLevel": {
      "type": "string",
      "description": "termCode from the `GovernmentLevel` code list.",
      "enum": [
        "supranational",
        "national",
        "regional",
        "subregional",
        "municipal",
        "submunicipal",
        "specialPurpose",
        "indigenous"
      ]
    },
    "areaServed": {
      "$ref": "reference.schema.json",
      "description": "The `Jurisdiction` this body governs. Optional at Core conformance, because an organization referenced from another profile (a buyer in a procurement record, an issuing body on a permit) is legitimately known by identity without its territory being restated. Required at Standard conformance for organizations a publisher describes in their own org chart."
    },
    "parentOrganization": {
      "$ref": "reference.schema.json",
      "description": "The body this organization reports to or operates under. This is the canonical hierarchy link: names and `organizationClassification` do not establish hierarchy. A `government` has none. Must point at another organization, never at a `Jurisdiction`."
    },
    "subOrganization": {
      "type": "array",
      "items": {
        "$ref": "reference.schema.json"
      },
      "description": "Bodies constituted under this one, including committees and commissions. A derived view of `parentOrganization`: each child must name this body as its parent."
    },
    "department": {
      "type": "array",
      "items": {
        "$ref": "reference.schema.json"
      },
      "description": "Operating units. Use `subOrganization` for bodies with their own constitution, `department` for units of this body's administration. A derived view of `parentOrganization`: each child must name this body as its parent."
    },
    "member": {
      "type": "array",
      "items": {
        "$ref": "role.schema.json"
      },
      "description": "Officeholders, as `Role`s. A bare `Person` here loses the term of office, so always wrap in a `Role`."
    },
    "contactPoint": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "Ways to contact this organization."
    },
    "address": {
      "type": "object",
      "description": "schema.org `PostalAddress`."
    },
    "location": {
      "$ref": "reference.schema.json",
      "description": "The `Facility` this body occupies. The organization points at the place; the place never points back with an organization property."
    },
    "foundingDate": {
      "type": "string",
      "format": "date",
      "description": "When this organization was established."
    },
    "dissolutionDate": {
      "type": "string",
      "format": "date",
      "description": "Present means the body no longer exists. Records are retained rather than deleted, so historical documents keep resolving."
    },
    "knowsLanguage": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "BCP 47 tags for the languages this body conducts business in. Consumers use this to pick among multilingual name and document variants."
    },
    "timeZone": {
      "type": "string",
      "description": "IANA time zone this organization operates in, e.g. `Europe/Lisbon`."
    },
    "sourceDataset": {
      "type": "string",
      "format": "iri",
      "description": "The `Dataset` this record was published as part of."
    }
  },
  "required": [
    "@id",
    "@type",
    "name",
    "identifier",
    "organizationClassification"
  ],
  "additionalProperties": true
}
