{ "$schema": "http://json-schema.org/schema", "$schemaVersion": "0.0.1", "$id": "https://smart-data-models.github.io/dataModel.CPSV-AP/LifeEvent/schema.json", "title": "Smart Data models - LifeEvent schema", "modelTags": "CEFAT4CITIES", "description": "The Life Event class represents an important event or situations in a citizen's life where public services may be required. Note the scope: an individual will encounter any number of 'events' in the general sense of the word. In the context of the CPSV-AP, the Life Event class only represents an event for which a Public Service is related. For example, a couple becoming engaged is not a CPSV-AP Life Event, getting married is, since only the latter has any relevance to public services.", "derivedFrom": "", "license": "", "type": "object", "required": [ "id", "type", "identifier", "name" ], "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", "description": "Property. Model:'https://schema.org/Text'. It has to be LifeEvent", "enum": [ "LifeEvent" ] }, "identifier": { "type": "string", "description": "Property. Model:'dct:identifier'. This property represents an Identifier for the Event" }, "eventType": { "type": "array", "description": "Property. Model:'dct:type'. The type property links an Event to a controlled vocabulary of event types and it is the nature of those controlled vocabularies that is the major difference between a business event, such as creating the business in the first place and a life event, such as the birth of a child. The suggested controlled vocabulary was based on an analysis done", "items": { "type": "string", "enum": [ "Having a child", "Becoming a (social) caretaker", "Starting education", "Looking for a new job", "Losing/quitting a job", "Looking for a place to live", "Changing relationship status", "Driving a vehicle", "Travelling abroad", "Moving to/from the country", "Going into military service", "Facing an emergency / health problem", "Facing a crime", "Retirement", "Death of a relative" ] } }, "relatedService": { "description": "Relationship. Model:'dct:relation'. Range: PublicService. This property links an event directly to a public service that is related to it", "type": "array", "items": { "anyOf": [ { "description": "Property. Array of identifiers format of any NGSI entity.", "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$" }, { "description": "Property. Array of URIs format of any NGSI entity.", "type": "string", "format": "uri" } ] } } } } ] }