{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "$id": "https://smart-data-models.github.io/dataModel.Building/BuildingOperation/schema.json", "title": "Smart data models - Building Operation schema", "description": "Information on a given Building Operation", "type": "object", "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" }, { "properties": { "type": { "type": "string", "enum": [ "BuildingOperation" ], "description": "Property. It has to be BuildingOperation" }, "refBuilding": { "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. Model:'https://schema.org/URL'. Building reference where the operation is performed." }, "refOperator": { "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. Model:'https://schema.org/URL'. Reference to the Operator doing the operation on the building." }, "operationType": { "type": "string", "description": "Property. Model:'https://schema.org/Text'. Type of the operation on the building" }, "result": { "type": "string", "description": "Property. Result of the building operation. Model:'https://schema.org/Text'. Enum:'ok, aborted'", "enum": [ "ok", "aborted" ] }, "startDate": { "type": "string", "format": "date-time", "description": "Property. Model:'https://schema.org/DateTime'. The planned start date for the operation." }, "endDate": { "type": "string", "format": "date-time", "description": "Property. Model:'https://schema.org/DateTime'. The planned end date for the operation." }, "dateStarted": { "type": "string", "format": "date-time", "description": "Property. Model:'https://schema.org/DateTime'. The actual start date for the operation." }, "dateFinished": { "type": "string", "format": "date-time", "description": "Property. Model:'https://schema.org/DateTime'. The actual end date for the operation." }, "status": { "type": "string", "description": "Property. Status of the operation. Model:'https://schema.org/Text'. Enum:'cancelled, finished, ongoing, planned, scheduled' ", "enum": [ "cancelled", "finished", "ongoing", "planned", "scheduled" ] }, "operationSequence": { "type": "array", "description": "Property. Model:'https://schema.org/Text'. Id of the sequence of the operation when available", "items": { "type": "string" } }, "refRelatedBuildingOperation": { "type": "array", "description": "Relationship. Reference to other building operations when in sequence", "items": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType" } }, "refRelatedDeviceOperation": { "type": "array", "description": "Relationship. Devices related to the current operation. Model:'https://schema.org/URL'. A list of references to an entity of type Device.", "items": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType" } } } } ], "required": [ "type", "id", "refBuilding", "startDate", "endDate" ] }