Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions examples/data-rights/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,21 @@ examplePolicyA odrl:target exampleProduct:ProductA .
examplePolicyB odrl:target exampleDataset:DatasetA1 .
```

An example of a policy follows, that describes permission to distribute the data only within a specific geographic region:
An example of an agreement follows, that describes permission to use all the datasets of the product if the user is working inside EMEA or APAC:

```json
examplePolicyA odrl:permission
{
"action": "odrl:distribute",
"constraint": [
{"leftOperand": "spatial",
"operator": "eq",
"rightOperator": "region:EMEA"
}
]
"action": "odrl:use",
"assignee": {
"@type": "odrl:PartyCollection",
"refinement": [
{"leftOperand": "odrl:spatial",
"operator": "odrl:isAnyOf",
"rightOperand": ["reg:EMEA", "reg:APAC"]
}
]
}
}
```

35 changes: 19 additions & 16 deletions examples/data-rights/example.jsonld
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
{
"@type": "Offer",
"@type": "Agreement",
"@context": [
{
"odrl": "http://www.w3.org/ns/odrl/2/",
"reg": "https://www.region.taxonomy/v/1/"
}
],
"uid": "56456df-dfg-34535345-5545",
"assigner": "https://schema.org/person/AdamSmith",
"target": "https://data.org/data-product/equity-trade-xxx",

"permission": [
{
"action": "odrl:read",
"constraint": [
{
"@type": "odrl:Constraint",
"leftOperand": "odrl:spatial",
"operator": "odrl:isAnyOf",
"rightOperand": [
"reg:EMEA",
"reg:APAC"
],
"description": " Permission to read all the datasets of the product if user is working inside EMEA or APAC"
}
]
"target": "https://data.org/data-product/equity-trade-xxx",
"assigner": "https://schema.org/person/AdamSmith",
"assignee": {
"@type": "odrl:PartyCollection",
"source": "https://example.org/DataDepartment",
"refinement": [
{
"@type": "odrl:Constraint",
"leftOperand": "odrl:spatial",
"operator": "odrl:isAnyOf",
"rightOperand": [
"reg:EMEA",
"reg:APAC"
]
}
]
},
"action": "odrl:use"
}
]
}