{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "$id": "https://smart-data-models.github.io/dataModel.Building/Building/schema.json", "title": "Smart Data Models- Building schema", "description": "Information on a given Building", "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", "enum": [ "Building" ], "description": "Property. NGSI Entity type" }, "category": { "type": "array", "description": "Property. Category of the building. Enum:'apartments, bakehouse, barn, bridge, bungalow, bunker, cathedral, cabin, carport, chapel, church, civic, commercial, conservatory, construction, cowshed, detached, digester, dormitory, farm, farm_auxiliary, garage, garages, garbage_shed, grandstand, greenhouse, hangar, hospital, hotel, house, houseboat, hut, industrial, kindergarten, kiosk, mosque, office, parking, pavilion, public, residential, retail, riding_hall, roof, ruins, school, service, shed, shrine, stable, stadium, static_caravan, sty, synagogue, temple, terrace, train_station, transformer_tower, transportation, university, warehouse, water_tower'", "items": { "type": "string", "enum": [ "apartments", "bakehouse", "barn", "bridge", "bungalow", "bunker", "cathedral", "cabin", "carport", "chapel", "church", "civic", "commercial", "conservatory", "construction", "cowshed", "detached", "digester", "dormitory", "farm", "farm_auxiliary", "garage", "garages", "garbage_shed", "grandstand", "greenhouse", "hangar", "hospital", "hotel", "house", "houseboat", "hut", "industrial", "kindergarten", "kiosk", "mosque", "office", "parking", "pavilion", "public", "residential", "retail", "riding_hall", "roof", "ruins", "school", "service", "shed", "shrine", "stable", "stadium", "static_caravan", "sty", "synagogue", "temple", "terrace", "train_station", "transformer_tower", "transportation", "university", "warehouse", "water_tower" ] } }, "containedInPlace": { "$ref": "http://geojson.org/schema/Geometry.json#" }, "occupier": { "type": "array", "description": "Relationship. Person or entity using the building. Model:'https://schema.org/URL'", "items": { "oneOf": [ { "type": "string", "format": "uri" }, { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType" } ] } }, "floorsAboveGround": { "type": "integer", "description": "Property. Floors above the ground level. Model:'https://schema.org/Number'" }, "floorsBelowGround": { "type": "integer", "description": "Property. Floors below the ground level. Model:'https://schema.org/Number'" }, "refMap": { "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. Reference to the map containing the building" }, "openingHours": { "type": "array", "description": "Property. Model:'https://schema.org/openingHours'. Opening hours of this building.", "items": { "type": "string" } }, "collapseRisk": { "type": "number", "minimum": 0, "maximum": 1, "description": "Property. Model:'https://schema.org/Number'. Probability of total collapse of the building." }, "peopleCapacity": { "type": "number", "minimum": 0, "description": "Property. Model:'https://schema.org/Number'. Allowed people present at the building" }, "peopleOccupancy": { "type": "number", "minimum": 0, "description": "Property. Model:'https://schema.org/Number'. People present at the building" } } } ], "required": [ "type", "id", "category", "address" ] }