Skip to content

Commit

Permalink
feat: viewedBy attribute to authorization entity for historical data (#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
JDFleury authored Nov 25, 2024
1 parent 0270073 commit c1d23ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openIt/jsonld-contexts/openIt.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
5 changes: 5 additions & 0 deletions openIt/ngsild-payloads/authorization.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit c1d23ec

Please sign in to comment.