{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.2", "modelTags": "GSMA", "$id": "https://smart-data-models.github.io/dataModel.Building/BuildingType/schema.json", "title": "Smart Data models - BuildingType schema", "description": "This entity contains a harmonised description of a generic building type. This entity is associated with the vertical segments of smart home, smart cities, industry and related IoT applications. The building type includes a hierarchical structure that allows building types to be grouped in a flexible way.", "type": "object", "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" }, { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" }, { "properties": { "type": { "type": "string", "description": "Property. NGSI Entity identifier. It has to be BuildingType", "enum": [ "BuildingType" ] }, "root": { "type": "boolean", "description": "Property. A logical indicator that this is the root of a BuildingType hierarchy.True indicates it is the root, false indicates that it is not the root." }, "buildingTypeParent": { "anyOf ": [ { "type": "string", "minLength ": 1, "maxLength ": 256, "pattern ": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!:\\\\]+$", "description ": "Property. Identifier format of any NGSI entity " }, { "type": "string", "format": "uri", "description": "Property. Identifier format of any NGSI entity" } ], "description": "Relationship. References any higher level Building Type entities that this type is based on." }, "buildingTypeChildren": { "type": "array", "description": "Relationship. Reference to child building types i.e. immediately below this entity in the hierarchy.", "items": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", "description": "Property. Identifier format of any NGSI entity" }, { "type": "string", "format": "uri", "description": "Property. Identifier format of any NGSI entity" } ] } } } } ], "required": [ "id", "type" ] }