{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.4", "modelTags": "", "$id": "https://smart-data-models.github.io/dataModel.Agrifood/AgriParcel/schema.json", "title": "Smart Data Models - Agri Parcel", "description": "This entity contains a harmonised description of a generic 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/data-models/common-schema.json#/definitions/Location-Commons"}, {"$ref": "https://smart-data-models.github.io/dataModel.Agrifood/agrifood-schema.json#/definitions/AgriFood-Commons"}, {"properties": { "type": { "type": "string", "enum": ["AgriParcel"], "description": "Property. NGSI Entity Type. It has to be AgriParcel" }, "area": { "type": "number", "minimum": 0, "description": "Property. Model:'http://schema.org/Number'. Units:'m2'. The area of the parcel nominally in square meters." }, "category": { "type": "string", "description": "Property. Model:'http://schema.org/Text'. The category of the parcel of land e.g.: **arable, grassland, vineyard, orchard, mixed crop, lowland, upland, set-aside, forestry, wetland.**" }, "belongsTo": { "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. Entity the item belongs to" }, "ownedBy": { "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. Owner (Person or Organization) of the item" }, "hasAgriParcelParent": { "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 parent AgriParcel" }, "hasAgriParcelChildren": { "type": "array", "description": "Relationship. Related sub AgriParcel records to which this entity relates", "items": {"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType"} }, "hasAgriCrop": { "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 crop associated with this parcel" }, "hasAgriSoil": { "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 soil associated with this parcel of land" }, "cropStatus": { "type": "string", "description": "Property. Enum:'seeded, justBorn, growing, maturing, readyForHarvesting'. A choice from an enumerated list describing the crop planting status", "enum": [ "seeded", "justBorn", "growing", "maturing", "readyForHarvesting" ] }, "lastPlantedAt": { "type": "string", "format": "date-time", "description": "Property. Indicates the date when the crop was last planted" }, "hasDevices": { "type": "array", "description": "Property. Reference to the IoT devices associated with this parcel i.e. sensors, controls.", "items": {"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType"} }, "soilTextureType": { "type": "string", "description": "Property. Enum: 'Sands', 'Loamy sands', 'Sandy loams', 'Loam', 'Silt loam', 'Silt', 'Sandy clay loam', 'Clay loam', 'Silty clay loam', 'Sandy clay', 'Silty clay', 'Clay'. Based on the soil texture classification of the United States Department of Agriculture (USDA): https://www.nrcs.usda.gov/wps/portal/nrcs/detailfull/soils/ref/?cid=nrcs142p2_054262", "enum": [ "Sands", "Loamy sands", "Sandy loams", "Loam", "Silt loam", "Silt", "Sandy clay loam", "Clay loam", "Silty clay loam", "Sandy clay", "Silty clay", "Clay" ] }, "irrigationSystemType": { "type": "string", "description": "Property. Enum: 'Surface irrigation', 'Localized irrigation', 'Drip irrigation', 'Sprinkler irrigation', 'Center pivot irrigation', 'Lateral move irrigation', 'Sub-irrigation', 'Manual irrigation'. Based on common types of irrigation systems as defined by Centers for Disease Control and Prevention (CDC): https://www.cdc.gov/healthywater/other/agricultural/types.html", "enum": [ "Surface irrigation", "Localized irrigation", "Drip irrigation", "Sprinkler irrigation", "Center pivot irrigation", "Lateral move irrigation", "Sub-irrigation", "Manual irrigation" ] } }} ], "required": [ "id", "type", "location", "area", "hasAgriCrop" ] }