Skip to content

Commit

Permalink
updated $schema last version
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoabellagarcia committed Sep 17, 2024
1 parent ee55981 commit c105dfb
Showing 1 changed file with 91 additions and 91 deletions.
182 changes: 91 additions & 91 deletions Activity/schema.json
Original file line number Diff line number Diff line change
@@ -1,97 +1,97 @@
{
"$schema": "http://json-schema.org/schema#",
"$schemaVersion": "0.1.1",
"modelTags": "",
"$id": "https://smart-data-models.github.io/dataModel.User/Activity/schema.json",
"title": "Smart Data Model - User Activity schema",
"description": "Information on the current activity performed by an anonymized user in a given point in time",
"type": "object",
"allOf": [
{
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$schemaVersion": "0.1.1",
"modelTags": "",
"$id": "https://smart-data-models.github.io/dataModel.User/Activity/schema.json",
"title": "Smart Data Model - User Activity schema",
"description": "Information on the current activity performed by an anonymized user in a given point in time",
"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"
},
{
"properties": {
"dateActivityStarted": {
"type": "string",
"format": "date-time",
"description": "Property. It must be equal to UserActivity"
},
{
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons"
"dateActivityEnded": {
"type": "string",
"format": "date-time",
"description": "Property. Model:'https://schema.org/DateTime'. Activity's end timestamp"
},
{
"properties": {
"dateActivityStarted": {
"type": "string",
"format": "date-time",
"description": "Property. It must be equal to UserActivity"
},
"dateActivityEnded": {
"type": "string",
"format": "date-time",
"description": "Property. Model:'https://schema.org/DateTime'. Activity's end timestamp"
},
"refObject": {
"description": "Relationship. Model:'https://schema.org/URL'. Reference to the object of the action (e.g. Car1). It may be another NGSI Entity or any `Object` identified by an URI",
"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"
}
]
},
"activityType": {
"type": "string",
"description": "Property. Model:'https://schema.org/Text'. The action performed (e.g. Drive). Normative References: [https://schema.org/Action](https://schema.org/Action), [https://www.w3.org/TR/activitystreams-vocabulary/#activity-types](https://www.w3.org/TR/activitystreams-vocabulary/#activity-types), [https://health-lifesci.schema.org/PhysicalActivityCategory](https://health-lifesci.schema.org/PhysicalActivityCategory)"
},
"refTarget": {
"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'. Reference to the target of the action (e.g. Office1)"
},
"refAgent": {
"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'. Reference to the agent (i.e. a person) performing the activity. It may be another NGSI Entity or any `Agent` identified by an URI"
},
"type": {
"type": "string",
"enum": [
"Activity"
],
"description": "Property. NGSI Entity type. It has to be Activity"
}
"refObject": {
"description": "Relationship. Model:'https://schema.org/URL'. Reference to the object of the action (e.g. Car1). It may be another NGSI Entity or any `Object` identified by an URI",
"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"
}
]
},
"activityType": {
"type": "string",
"description": "Property. Model:'https://schema.org/Text'. The action performed (e.g. Drive). Normative References: [https://schema.org/Action](https://schema.org/Action), [https://www.w3.org/TR/activitystreams-vocabulary/#activity-types](https://www.w3.org/TR/activitystreams-vocabulary/#activity-types), [https://health-lifesci.schema.org/PhysicalActivityCategory](https://health-lifesci.schema.org/PhysicalActivityCategory)"
},
"refTarget": {
"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'. Reference to the target of the action (e.g. Office1)"
},
"refAgent": {
"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'. Reference to the agent (i.e. a person) performing the activity. It may be another NGSI Entity or any `Agent` identified by an URI"
},
"type": {
"type": "string",
"enum": [
"Activity"
],
"description": "Property. NGSI Entity type. It has to be Activity"
}
],
"required": [
"type",
"id"
]
}
}
],
"required": [
"type",
"id"
]
}

0 comments on commit c105dfb

Please sign in to comment.