-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
} | ||
} |