{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$schemaVersion": "0.0.3",
"modelTags": "",
"$id": "https://smart-data-models.github.io/dataModel.Agrifood/AgriParcelOperation/schema.json",
"title": "Smart Data Models - Agri Parcel Operation",
"description": "This entity contains a harmonised description of a generic operations performed on a parcel of land. This entity is primarily associated with the agricultural vertical and related IoT applications.",
"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/dataModel.Agrifood/agrifood-schema.json#/definitions/AgriFood-Commons"
},
{
"properties": {
"type": {
"type": "string",
"enum": [
"AgriParcelOperation"
],
"description": "Property. NGSI Entity Type. It has to be AgriParcelOperation"
},
"hasAgriParcel": {
"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 AgriParcel"
},
"operationType": {
"type": "string",
"description": "Property. A choice from an enumerated list describing the operation performed on the parcel. Enum:'fertiliser, inspection, pesticide, water, other'",
"enum": [
"fertiliser",
"inspection",
"pesticide",
"water",
"other"
]
},
"result": {
"type": "string",
"description": "Property. A description of the results of the operation. Enum:'ok, aborted, failed'",
"enum": [
"ok",
"aborted",
"failed"
]
},
"plannedStartAt": {
"type": "string",
"format": "date-time",
"description": "Property. Model:'http://schema.org/DateTime'. The planned start date/timestamp for the operation. Note that this is advisory and the actual time the operation starts may be before or after the planned start"
},
"plannedEndAt": {
"type": "string",
"format": "date-time",
"description": "Property. Model:'http://schema.org/DateTime'. The planned end date/timestamp for the operation.
Note that this is advisory and the actual time the operation finishes may be before or after the planned end"
},
"status": {
"type": "string",
"enum": [
"planned",
"ongoing",
"finished",
"scheduled",
"cancelled"
],
"description": "Property. A choice from an enumerated list describing the status. Enum:'planned, ongoing, finished, scheduled, cancelled'"
},
"hasOperator": {
"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 operator conducting the operation"
},
"startedAt": {
"type": "string",
"format": "date-time",
"description": "Property. Model:'http://schema.org/DateTime'. Timestamp when the operation actually started to be performed"
},
"endedAt": {
"type": "string",
"format": "date-time",
"description": "Property. Model:'http://schema.org/DateTime'. Timestamp when the operation actually finished"
},
"reportedAt": {
"type": "string",
"format": "date-time",
"description": "Property. Model:'http://schema.org/DateTime'. Timestamp when the event fault was reported"
},
"hasAgriProductType": {
"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 AgriProductType used/applied"
},
"quantity": {
"type": "number",
"minimum": 0,
"description": "Property. Model:'http://schema.org/Number'. The total quantity of water or product used/ applied. It is recommended this is measured in litres for liquids or kilogrammes for solids"
},
"waterSource": {
"type": "string",
"description": "Property. Model:'http://schema.org/Text'. Type of water sources. Enum:'borehole, rainfall, river, rainwater capture, water dam, commercial supply'",
"enum": [
"borehole",
"rainfall",
"river",
"rainwater capture",
"water dam",
"commercial supply"
]
},
"workOrder": {
"type": "string",
"format": "uri",
"description": "Relationship. Model:'http://schema.org/URL'. Relationship with the workorder for the execution"
},
"workRecord": {
"type": "string",
"format": "uri",
"description": "Relationship. Model:'http://schema.org/URL'. Relationship with the work record of the execution"
},
"irrigationRecord": {
"type": "string",
"format": "uri",
"description": "Relationship. Model:'http://schema.org/URL'. Relationship with the irrigation record of the execution"
}
}
}
],
"required": [
"id",
"type",
"hasAgriParcel",
"plannedStartAt",
"plannedEndAt"
]
}