{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.2.1", "modelTags": "", "$id": "https://smart-data-models.github.io/dataModel.Agrifood/Pen/schema.json", "title": " Smart Data models - Pen schema", "description": "Fenced area in a building or department or outside housing a group of animals. Animals in a pen can move and interact freely. Pens are often not completely separated from each other (half walls, iron bars, fences,\u2026), making it possible that animals from neighbouring pens can see/touch", "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": [ "Pen" ], "description": "Property. NGSI Entity type. it has to be Pen" }, "additionalInfo": { "type": "array", "description": "Property. list of all the raw values sent by the sensor/platform with all the possible extra properties that are not included in the main structure. It is a JSON structure similar to this: {'name': 'temperature', 'value' : 32}", "items": { "type": "object", "properties": { "name": { "type": "string" }, "value": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] } } } }, "arrivalTimestamp": { "type": "string", "format": "date-time", "description": "Property. Model:'https://schema.org/DateTime'. Date and Time for the arrival of animals to the Pen" }, "avgGrowth": { "type": "number", "minimum": 0, "description": "Property. Model:'https://schema.org/Number'. The average growth in weight of the animal in this pen" }, "avgWeight": { "type": "number", "minimum": 0, "description": "Property. Units:'Kg'. Model:'https://schema.org/Number'. The average weight of the animal in this Pen. " }, "buildingId": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", "description": "Property. Identifier with format of any NGSI entity" }, { "type": "string", "format": "uri", "description": "Property. Identifier format of any NGSI entity." } ], "description": "Relationship. Unique identifier of the Building the item is located in. Model:'https://schema.org/URL'." }, "co2": { "type": "number", "minimum": 0, "description": "Property. Model:'https://schema.org/Number'. The CO2 concentration in the item" }, "companyId": { "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'. Unique identifier of a company" }, "compartmentId": { "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'. Unique identifier of the Compartment the Pen is located in." }, "deadAnimalsSinceDateOfArrival": { "type": "number", "minimum": 0, "description": "Property. Model:'https://schema.org/Number'. Number of dead animals since the date of arrival" }, "farmId": { "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'. Unique identifier of the Farm the Pen is located in." }, "feedConsumption": { "type": "number", "minimum": 0, "description": "Property. Model:'https://schema.org/Number'. The total amount of food that has been eaten from the feeding station(s) in the pen.It is measured through feed intakes and specific structure to let only one animal at a time to eat. Units:'Kg'" }, "humidity": { "type": "number", "minimum": 0, "maximum": 1, "description": "Property. Model:'https://schema.org/Number'. Quantity representing the amount of water vapour in the atmosphere in the pen. " }, "lastUpdate": { "type": "string", "format": "date-time", "description": "Property. Model:'https://schema.org/DateTime'. Date and time at which the measurements in the item were taken. Units:'Seconds'" }, "luminosity": { "type": "number", "minimum": 0, "description": "Property. Model:'https://schema.org/Number'. The brightness of a light source of a certain wavelength at the item. Units:'LUX'" }, "numAnimals": { "type": "number", "minimum": 0, "description": "Property. Model:'https://schema.org/Number'. Number of animals contained in the Pen." }, "sex": { "type": "string", "enum": [ "M", "F", "unknown", "" ], "description": "Property. Model:'https://schema.org/Number'. The sex of the animals contained in the pen" }, "temperature": { "type": "number", "description": "Property. Model:'https://schema.org/Number'. Temperature of the Pen. Unirs:' Celsius degree'" }, "waterConsumption": { "type": "number", "minimum": 0, "description": "Property. Model:'https://schema.org/Number'. The total amount of water that came out from the tap or taps in the pen. It is measured through flowmeters and specific structure to let only one animal at a time drink." }, "weightStDev": { "type": "number", "description": "Property. Model:'https://schema.org/Number'. The standard deviation associated to the average weight of the animals contained in the Pen." } } } ], "required": [ "id", "type", "lastUpdate" ] }