Skip to content

Commit

Permalink
Add plantuml diagrams
Browse files Browse the repository at this point in the history
Signed-off-by: George J Padayatti <george.padayatti@igrant.io>
  • Loading branch information
georgepadayatti committed Sep 13, 2023
1 parent 61a1517 commit 0fd57c5
Show file tree
Hide file tree
Showing 6 changed files with 109 additions and 0 deletions.
27 changes: 27 additions & 0 deletions architecture/consent.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@startuml Consent
@startjson
{
"@context": [
"https://raw.githubusercontent.com/decentralised-dataexchange/data-exchange-agreements/main/interface-specs/jsonld/contexts/dexa-context.jsonld",
"https://w3id.org/security/v2"
],
"@id": "urn:uuid:consent-id",
"@type": [
"Consent"
],
"permission": "<allow/disallow>",
"dataSourceId": "urn:uuid:data-source-id",
"dataUsingServiceId": "urn:uuid:data-using-service-id",
"dataAttributeId": "urn:uuid:data-attribute-id",
"dataAgreementId": "urn:uuid:data-agreement-id",
"proof": {
"type": "Ed25519Signature2018",
"created": "2017-06-18T21:19:10Z",
"verificationMethod": "did:key:abc",
"proofPurpose": "authentication",
"proofValue": "x.y.z"
}
}
@endjson

@enduml
55 changes: 55 additions & 0 deletions architecture/data_agreement.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
@startuml "Data agreement"

@startjson
{
"@context": [
"https://raw.githubusercontent.com/decentralised-dataexchange/data-exchange-agreements/main/interface-specs/jsonld/contexts/dexa-context.jsonld",
"https://w3id.org/security/v2"
],
"@id": "urn:uuid:xyz",
"@type": [
"DataAgreement"
],
"language": "en",
"version": "0.0.1",
"templateId": "urn:uuid:abc",
"templateVersion": "0.0.1",
"dataControllerName": "Happy Shopping AB",
"dataControllerUrl": "https://www.happyshopping.com",
"dataPolicy": {
"policyUrl": "https://happyshoping.com/privacy-policy/",
"jurisdiction": "Sweden",
"industrySector": "Retail",
"dataRetentionPeriod": 30,
"geographicRestriction": "Europe",
"storageLocation": "Europe",
"thirdPartyDataSharing": false
}
,
"purpose": "Customized shopping experience",
"purposeDescription": "Collecting user data for offering custom tailored shopping experience",
"lawfulBasis": "consent",
"methodOfUse": "data-using-service",
"personalData": [
"urn:uuid:data-attribute-id-1",
"urn:uuid:data-attribute-id-2"
],
"dpia": {
"dpiaDate": "2021-05-08T08:41:59+0000",
"dpiaSummaryUrl": "https://org.com/dpia_results.html"
}
,
"proofChain": [
{
"id": "did:key:z6MkiTBz1ymuepAQ4HEHYSF1H8quG5GLVVQR3djdX3mDooWp#1",
"type": "Ed25519Signature2020",
"created": "2021-05-08T08:41:59+0000",
"verificationMethod": "did:key:z6MkiTBz1ymuepAQ4HEHYSF1H8quG5GLVVQR3djdX3mDooWp",
"proofPurpose": "contractAgreement",
"proofValue": "z6MkwW6aqMnjgrhJXFUko3NnZPGzVpkNzhYK7yEhnsibmLwLz6MkwW6aqMnjgrhJXFUko3NnZPGzVpkNzhYK7yEhnsibmLwL"
}
],
"dataSubjectDid": "did:mydata:z6MkGskxnGjLrk3gKS2mesDpuwRBokeWcmrgHxUXfnncxiZP"
}
@endjson

27 changes: 27 additions & 0 deletions architecture/personal_data.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@startuml "Personal data"

@startjson
{
"@context": [
"https://raw.githubusercontent.com/decentralised-dataexchange/data-exchange-agreements/main/interface-specs/jsonld/contexts/dexa-context.jsonld",
"https://w3id.org/security/v2"
],
"@id": "urn:uuid:data-attribute-id",
"@type": [
"DataAttribute"
],
"dataSourceId": "urn:uuid:data-source-id",
"attributeId": "f216cb1-aedb-571e-46f7-2fef51dedb54",
"attributeName": "Name",
"attributeSensitive": true,
"attributeCategory": "Name",
"attributeDescription": "Name of the individual",
"proof": {
"type": "Ed25519Signature2018",
"created": "2017-06-18T21:19:10Z",
"verificationMethod": "did:key:abc",
"proofPurpose": "authentication",
"proofValue": "x.y.z"
}
}
@endjson
Binary file added out/architecture/consent/consent-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0fd57c5

Please sign in to comment.