{ "$schema": "http://json-schema.org/schema", "$schemaVersion": "0.0.1", "$id": "https://smart-data-models.github.io/dataModel.Agrifood/AnimalMovement/schema.json", "title": "Animal Movement", "modelTags": "I4Trust", "description": "Object modelling of an animal movement for a livestock farm.", "type": "object", "required": [ "id", "type", "animal" ], "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" }, { "properties": { "type": { "type": "string", "enum": [ "AnimalMovement" ], "description": "Property. NGSI entity type. It has to be AnimalMovement" }, "date": { "type": "string", "format": "date-time", "description": "Property. Date of animal movement" }, "animal": { "type": "array", "description": "Relationship. List of animals subject to the movement. Model:'https://github.com/smart-data-models/dataModel.Agrifood/blob/master/Animal/schema.json'", "items": { "type": "string", "format": "uri" } }, "movement": { "type": "string", "description": "Property. Type of movement: input/output. Input means that animals enter the farm/enclosure, while output means that they leave" }, "farm": { "type": "string", "format": "uri", "description": "Relationship. Farm object of the movement. Model:'https://github.com/smart-data-models/dataModel.Agrifood/blob/master/AgriFarm/schema.json'" }, "parcel": { "type": "string", "format": "uri", "description": "Relationship. Parcel object of the movement. Model:'https://github.com/smart-data-models/dataModel.Agrifood/blob/master/AgriParcel/schema.json'" }, "pen": { "type": "string", "format": "uri", "description": "Relationship. Pen object of the movement. Model:'https://github.com/smart-data-models/dataModel.Agrifood/blob/master/Pen/schema.json'" } } } ] }