{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://publicschema.org/Building.schema.json",
  "title": "Building",
  "description": "A permanent, enclosed construction, above or below ground, used or intended to shelter people, animals or things, or to produce goods. A building's identity is separate from its addresses, the land parcel it stands on, its owners and any service delivered inside it.",
  "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."
    },
    "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."
      }
    },
    "building_use": {
      "type": "array",
      "items": {
        "$ref": "https://publicschema.org/CodedValue.schema.json",
        "description": "What a building or building unit is currently used for, such as housing, farming or public services, taken from a named classification. Several uses can apply at once."
      }
    },
    "spatial_geometry": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "$ref": "https://publicschema.org/SpatialGeometry.schema.json"
          },
          {
            "type": "string",
            "description": "URI or identifier reference"
          }
        ],
        "description": "A geometric representation of the described resource. The type of that resource, not this property, says what the shape belongs to. It is separate from an address or a named administrative area."
      }
    }
  }
}
