Skip to content

Commit

Permalink
Merge pull request International-Data-Spaces-Association#82 from Inte…
Browse files Browse the repository at this point in the history
…rnational-Data-Spaces-Association/feature/timestamps

feat: introduce an agreement timestamp
  • Loading branch information
PeterKoen-MSFT authored May 16, 2023
2 parents 4a48935 + 7eed176 commit 4cd73f6
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 4 deletions.
2 changes: 2 additions & 0 deletions negotiation/contract.negotiation.protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ A `ContractAgreementMessage` must contain a `processId`.

A `ContractAgreementMessage` must contain an ODRL `Agreement`.

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

### 4. ContractAgreementVerificationMessage


Expand Down
4 changes: 4 additions & 0 deletions negotiation/message/contract-agreement-message.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"dspace:agreement": {
"@type": "odrl:Agreement",
"@id": "e8dc8655-44c2-46ef-b701-4cffdc2faa44",
"dspace:timestamp": {
"@value": "2023-01-01T01:00:00Z",
"@type": "xsd:dateTime"
},
"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.
5 changes: 3 additions & 2 deletions negotiation/message/diagram/contract-agreement-message.puml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ class "dspace:ContractAgreementMessage" {
}

class odrl:Agreement {
@type : "odrl:Agreement",
@type : "odrl:Agreement"
@id: String
odrl:target : xsd:anyURI
dspace:timestamp : xsd:dateTime
}

"dspace:ContractAgreementMessage" "1" *-- "1" "odrl:Agreement" : "odrl:agreement"

@enduml
@enduml
31 changes: 29 additions & 2 deletions negotiation/message/schema/contract-agreement-message-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,36 @@
},
"odrl:agreement": {
"$ref": "https://w3id.org/dspace/schemas/v0.8/AgreementSchema#definitions/Agreement",
"required": true
"type": "object",
"required": true,
"properties": {
"@type": {
"type": "string",
"required": true
},
"@id": {
"type": "string",
"required": true
},
"dspace:timestamp": {
"type": "object",
"required": true,
"properties": {
"@value": {
"type": "string",
"format": "date-time",
"required": true
},
"@type": {
"type": "string",
"const": "xsd:dateTime",
"required": true
}
}
}
}
}
}
}
}
}
}

0 comments on commit 4cd73f6

Please sign in to comment.