From c1d23ec8c8eb1245ed68c467961a292a1ae5d8a8 Mon Sep 17 00:00:00 2001 From: Julien Fleury Date: Mon, 25 Nov 2024 14:46:18 +0100 Subject: [PATCH] feat: viewedBy attribute to authorization entity for historical data (#248) * feat: viewedBy attribute to authorization entity for historical data * fix: removed datasetId as it was not necessary for this use case * fix: showing one instance of the viewedBy correctly --- openIt/jsonld-contexts/openIt.jsonld | 3 ++- openIt/ngsild-payloads/authorization.jsonld | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/openIt/jsonld-contexts/openIt.jsonld b/openIt/jsonld-contexts/openIt.jsonld index 83ff6ba..1574e3d 100644 --- a/openIt/jsonld-contexts/openIt.jsonld +++ b/openIt/jsonld-contexts/openIt.jsonld @@ -22,6 +22,7 @@ "usesKey": "https://vocab.egm.io/usesKey", "validationStatus": "https://vocab.egm.io/validationStatus", "validityEndDate": "https://vocab.egm.io/validityEndDate", - "validityStartDate": "https://vocab.egm.io/validityStartDate" + "validityStartDate": "https://vocab.egm.io/validityStartDate", + "viewedBy": "https://vocab.egm.io/viewedBy" } } diff --git a/openIt/ngsild-payloads/authorization.jsonld b/openIt/ngsild-payloads/authorization.jsonld index a19c5d2..17fb88b 100644 --- a/openIt/ngsild-payloads/authorization.jsonld +++ b/openIt/ngsild-payloads/authorization.jsonld @@ -78,5 +78,10 @@ "generatedUntil": { "type": "Property", "value": "2024-09-02T23:59:59.000Z" + }, + "viewedBy": { + "type": "Relationship", + "object": "urn:ngsi-ld:UserProfile:123", + "observedAt": "2024-11-25T09:01:00Z" } }