{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "$id": "https://smart-data-models.github.io/dataModel.Agrifood/AgriProductType/schema.json", "title": "Smart Data Models - Agri Product Type", "description": "This entity contains a harmonised description of a generic agricultural product type. This entity is primarily associated with the agricultural vertical and related IoT applications. The AgriProductType includes a hierarchical structure that allows product 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/dataModel.Agrifood/agrifood-schema.json#/definitions/AgriFood-Commons" }, { "properties": { "type": { "type": "string", "enum": [ "AgriProductType" ], "description": "Property. NGSI Entity Type: It has to be AgriProductType" }, "agroVocConcept": { "type": "string", "format": "uri", "description": "Relationship. Model:'http://schema.org/URL'. Reference to the agrovoc term associated with this item" }, "category": { "type": "array", "description": "Property. Model:'http://schema.org/URL'. Category of the product. Enum:'fertiliser, cropNutrition, cropProtection, cropVariety, harvestCommodity'.", "items": { "type": "string", "enum": [ "fertiliser", "cropNutrition", "cropProtection", "cropVariety", "harvestCommodity" ] } }, "hasAgriProductTypeParent": { "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 product type i.e. immediately above the entity in the hierarchy." }, "hasAgriProductTypeChildren": { "type": "array", "description": "Relationship. Reference to child product types i.e. immediately below this entity in the hierarchy", "items": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType" } ] }, "root": { "type": "boolean", "description": "Property. A logical indicator that this product is the root of an AgriProductType hierarchy. Logical true indicates it is the root." } } } ], "required": [ "id", "type", "name", "root" ] }