Skip to content

Commit

Permalink
Create user.jsonld (#214)
Browse files Browse the repository at this point in the history
* Create user.jsonld

Creating new folder user & the new file user.jsonld that will store all the basic elements of a UserProfile entity

* Update to use userInfos JsonProperty & added alerts

* Added a UserProfile jsonld example
  • Loading branch information
JDFleury authored Jul 22, 2024
1 parent e0da585 commit bf39ff2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
24 changes: 24 additions & 0 deletions user/ngsild-payloads/User-Profile.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"id": "urn:ngsi-ld:UserProfile:123456789",
"type": "UserProfile",
"userInfos": {
"type": "JsonProperty",
"json": {
"familyName": "Smith",
"givenName": "John",
"email": "[email protected]"
}
},
"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"
}
]
}
7 changes: 7 additions & 0 deletions user/user.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"@context": {
"UserProfile": "https://smartdatamodels.org/UserProfile",
"subcribedToAlerts": "https://vocab.egm.io/subcribedToAlerts",
"userInfos": "https://vocab.egm.io/userInfos",
}
}

0 comments on commit bf39ff2

Please sign in to comment.