{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Building",
  "description": "A principal building or architectural unit (palace wing, chapel, outbuilding, villa)\nmodelled as a CIDOC-CRM E22 Man-Made Object. Profiles ogc.heritage.heritage-object-feature\nand adds site containment, construction history, operational status and an optional IFC\ncross-reference. Geometry (footprint) is inherited from heritage-object-feature: embedded\ndirectly, given by reference/topology, or omitted entirely.\n\nInstances carry `properties.choType: \"HeritageObject\"` (inherited); the building category\nis conveyed through `objectType` pointing to a Getty AAT architectural concept.\n",
  "allOf": [
    {
      "$ref": "https://ogcincubator.github.io/bblocks-heritage/build/annotated/heritage/heritage-object-feature/schema.json"
    },
    {
      "type": "object",
      "properties": {
        "properties": {
          "type": "object",
          "properties": {
            "parentSite": {
              "type": "string",
              "format": "uri",
              "description": "URI of the heritage-site this building belongs to (crm:P46i_forms_part_of).",
              "x-jsonld-id": "http://www.cidoc-crm.org/cidoc-crm/P46i_forms_part_of",
              "x-jsonld-type": "@id"
            },
            "constructionPeriod": {
              "type": "string",
              "description": "Date or date range of original construction, ISO 8601 or free text (e.g. \"1675-1690\"). Maps to dct:created.",
              "x-jsonld-id": "http://purl.org/dc/terms/created"
            },
            "currentStatus": {
              "type": "string",
              "description": "Operational or conservation status (e.g. \"in use\", \"under restoration\", \"closed\"). Maps to crm:P44_has_condition.",
              "x-jsonld-id": "http://www.cidoc-crm.org/cidoc-crm/P44_has_condition"
            },
            "responsibleOrganisation": {
              "type": "string",
              "description": "Name or URI of the body responsible for managing this building (crm:P50_has_current_keeper).",
              "x-jsonld-id": "http://www.cidoc-crm.org/cidoc-crm/P50_has_current_keeper"
            },
            "ifcGlobalId": {
              "type": "string",
              "description": "IFC Global ID (GUID) of the corresponding IfcBuilding element in an HBIM model, when available (crm:P1_is_identified_by).",
              "x-jsonld-id": "http://www.cidoc-crm.org/cidoc-crm/P1_is_identified_by"
            }
          }
        }
      }
    }
  ],
  "x-jsonld-extra-terms": {
    "hdtoType": {
      "x-jsonld-id": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
      "x-jsonld-type": "@id"
    }
  },
  "x-jsonld-prefixes": {
    "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
    "crm": "http://www.cidoc-crm.org/cidoc-crm/",
    "dct": "http://purl.org/dc/terms/",
    "hdto": "http://isl.ics.forth.gr/ontology/echoes/"
  }
}