diff --git a/openIt/jsonld-contexts/openIt.jsonld b/openIt/jsonld-contexts/openIt.jsonld index 212a4fc..a1d4f81 100644 --- a/openIt/jsonld-contexts/openIt.jsonld +++ b/openIt/jsonld-contexts/openIt.jsonld @@ -3,16 +3,17 @@ "Authorization": "https://vocab.egm.io/Authorization", "Gate": "https://vocab.egm.io/Gate", "Key": "https://vocab.egm.io/Key", - "category": "https://schema.org/category", "codes": "https://vocab.egm.io/codes", "codeValidation": "https://vocab.egm.io/codeValidation", "forGate": "https://vocab.egm.io/forGate", "givenBy": "https://vocab.egm.io/givenBy", "givenTo": "https://vocab.egm.io/givenTo", "initDate": "https://vocab.egm.io/initDate", + "isAvailableForOrganization": "https://vocab.egm.io/isAvailableForOrganization", "keyNumber": "https://vocab.egm.io/keyNumber", "name": "https://schema.org/name", "opensGate": "https://vocab.egm.io/opensGate", + "organization": "https://vocab.egm.io/organization", "period": "https://vocab.egm.io/period", "rotationPeriod": "https://vocab.egm.io/rotationPeriod", "usesKey": "https://vocab.egm.io/usesKey", diff --git a/openIt/ngsild-payloads/key.jsonld b/openIt/ngsild-payloads/key.jsonld index fb9dc9b..4d07b4b 100644 --- a/openIt/ngsild-payloads/key.jsonld +++ b/openIt/ngsild-payloads/key.jsonld @@ -21,8 +21,14 @@ "type": "Property", "value": "P1D" }, - "category": { - "type": "Property", - "value": "Fire Department" - } + "isAvailableForOrganization": [ + { + "type": "Property", + "value": "Agglomération Provence Verte" + }, + { + "type": "Property", + "value": "Gendarmerie" + } + ] } diff --git a/openIt/ngsild-payloads/userProfile.jsonld b/openIt/ngsild-payloads/userProfile.jsonld new file mode 100644 index 0000000..68c3614 --- /dev/null +++ b/openIt/ngsild-payloads/userProfile.jsonld @@ -0,0 +1,16 @@ +{ + "id": "urn:ngsi-ld:UserProfile:123456789", + "type": "UserProfile", + "userInfos": { + "type": "JsonProperty", + "json": { + "familyName": "Smith", + "givenName": "John", + "email": "john.smith@email.com" + } + }, + "organization": { + "type": "Property", + "value": "Agglomération Provence Verte" + } +}