diff --git a/user/ngsild-payloads/User-Profile.jsonld b/user/ngsild-payloads/User-Profile.jsonld new file mode 100644 index 0000000..e7121db --- /dev/null +++ b/user/ngsild-payloads/User-Profile.jsonld @@ -0,0 +1,24 @@ +{ + "id": "urn:ngsi-ld:UserProfile:123456789", + "type": "UserProfile", + "userInfos": { + "type": "JsonProperty", + "json": { + "familyName": "Smith", + "givenName": "John", + "email": "john.smith@email.com" + } + }, + "subscribedToAlerts": [ + { + "type": "Relationship", + "datasetId": "urn:ngsi-ld:Dataset:Salinity", + "object": "urn:ngsi-ld:Alert:Salinity" + }, + { + "type": "Relationship", + "datasetId": "urn:ngsi-ld:Dataset:SanitaryStatus", + "object": "urn:ngsi-ld:Alert:SanitaryStatus" + } + ] +} diff --git a/user/user.jsonld b/user/user.jsonld new file mode 100644 index 0000000..3a93fad --- /dev/null +++ b/user/user.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "UserProfile": "https://smartdatamodels.org/UserProfile", + "subcribedToAlerts": "https://vocab.egm.io/subcribedToAlerts", + "userInfos": "https://vocab.egm.io/userInfos", + } +}