Skip to content

Commit

Permalink
feat: add consumerId and providerId to ODRL agreement (International-…
Browse files Browse the repository at this point in the history
…Data-Spaces-Association#102)

* feat: add consumerId and providerId to ODRL agreement

* chore: update contract-agreement-message.png
  • Loading branch information
juliapampus authored May 25, 2023
1 parent f950ff5 commit 03123f0
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 2 deletions.
4 changes: 3 additions & 1 deletion negotiation/contract.negotiation.binding.https.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ Authorization: ...
"dspace:processId": "urn:uuid:a343fcbf-99fc-4ce8-8e9b-148c97605aab",
"dspace:agreement": {
"@type": "odrl:Agreement",
"@id": "e8dc8655-44c2-46ef-b701-4cffdc2faa44"
"@id": "e8dc8655-44c2-46ef-b701-4cffdc2faa44",
"dspace:consumerId": "...",
"dspace:providerId": "...",
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions negotiation/contract.negotiation.protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ A `ContractAgreementMessage` must contain an ODRL `Agreement`.

An `Agreement` must contain a `dspace:timestamp` property defined as an XSD DateTime type.

An `Agreement` must contain a `dspace:consumerId` and `dspace:providerId`. The contents of these
properties are a dataspace-specific unique identifier of the contract agreement parties. Note that these
identifiers are not necessarily the same as the identifiers of the participant agents negotiating the
contract (i.e. the "connectors").

### 4. ContractAgreementVerificationMessage


Expand Down
2 changes: 2 additions & 0 deletions negotiation/message/contract-agreement-message.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"@value": "2023-01-01T01:00:00Z",
"@type": "xsd:dateTime"
},
"dspace:consumerId": "...",
"dspace:providerId": "...",
"odrl:permission": {
...
}
Expand Down
Binary file modified negotiation/message/diagram/contract-agreement-message.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions negotiation/message/diagram/contract-agreement-message.puml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class odrl:Agreement {
@id: String
odrl:target : xsd:anyURI
dspace:timestamp : xsd:dateTime
dspace:consumerId : String
dspace:providerId : String
}

"dspace:ContractAgreementMessage" "1" *-- "1" "odrl:Agreement" : "odrl:agreement"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"@id": "some-id",
"@type": ["dspace:ContractAgreementMessage"],
"dspace:processId": "urn:uuid:a343fcbf-99fc-4ce8-8e9b-148c97605aab",
"dspace:consumerId": "...",
"dspace:providerId": "...",
"dspace:agreement": {
"@type": "odrl:Agreement",
"@id": "some-other-id",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,18 @@
"required": true
}
}
},
"dspace:consumerId": {
"type": "string",
"required": true
},
"dspace:providerId": {
"type": "string",
"required": true
}
}
}
}
}
}
}
}

0 comments on commit 03123f0

Please sign in to comment.