{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "$id": "https://smart-data-models.github.io/dataModel.MLModel/SubscriptionQuery/schema.json", "title": " Smart Data Models - Machine Learning Subscription Query", "description": "Subscription Query model for Machine Learning models", "type": "object", "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" }, { "properties": { "type": { "type": "string", "description": "Property. It has to be SubscriptionQuery. Enum:'SubscriptionQuery'", "enum": [ "SubscriptionQuery" ] }, "subscriptionName": { "type": "string", "description": "Property. A (short) name given to this Subscription. Defined in NGSI-LD standard." }, "entities": { "type": "array", "description": "Property. Entity ids, id pattern and Entity types that shall be matched by Entities in order to be retrieved. Defined in NGSI-LD standard.", "items": { "type": "object", "properties": { "type": { "type": "string" } } } }, "q": { "type": "string", "description": "Property. Query that shall be matched by Entities in order to be retrieved. Defined in NGSI-LD standard." }, "watchedAttributes": { "type": "array", "description": "Property. List of Attributes that shall be matched by Entities in order to be retrieved. If not present all Attributes will be retrieved. Defined in NGSI-LD standard. ", "items": { "type": "string" } }, "notification": { "type": "object", "description": "Property. Parameters of the notification for the subscription. Defined in NGSI-LD standard.", "properties": { "attributes": { "type": "array", "items": { "type": "string" } }, "format": { "type": "string", "description": "Property. Format of the output" }, "endPoint": { "type": "object", "properties": { "uri": { "type": "string", "format": "uri" }, "accept": { "type": "string" } } } } }, "geoQ": { "type": "string", "description": "Property. Geo-Query that shall be matched by Entities in order be retrieved. Defined in NGSI-LD standard." }, "csf": { "type": "string", "description": "Property. Context source filter that shall be matched by Context Source Registrations describing Context Sources to be used for retrieving Entities. Defined in NGSI-LD standard." }, "expiresAt": { "type": "string", "description": "Property. Expiration date for the subscription. Defined in NGSI-LD standard." }, "throttling": { "type": "string", "description": "Property. Minimal period of time in seconds which shall elapse between two consecutive notifications. Defined in NGSI-LD standard." }, "temporalQ": { "type": "string", "description": "Property. Temporal Query to be present only for 'Query Temporal Evolution of Entities' operation. Defined in NGSI-LD standard." } } } ], "required": [ "id", "type" ] }