/
pc11-ids-restrict-number-of-usage-example.json
55 lines (55 loc) · 1.35 KB
/
pc11-ids-restrict-number-of-usage-example.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"@context": {
"ids":"https://w3id.org/idsa/core/",
"idsc" : "https://w3id.org/idsa/code/"
},
"@type": "ids:ContractOffer",
"@id": "http://example.com/policy/restrict-data-consumer/12",
"profile": "http://example.com/ids-profile",
"ids:provider": "http://example.com/party/my-party",
"ids:permission": [{
"ids:target": {
"@id":"http://example.com/ids/data/d1234"
},
"ids:action": [{
"@id":"idsc:USE"
}],
"ids:constraint": [{
"@type":"ids:Constraint",
"ids:leftOperand": { "@id": "idsc:COUNT"},
"ids:operator": { "@id": "idsc:LTEQ"},
"ids:rightOperand": {
"@value": "30",
"@type": "xsd:decimal"
},
"ids:pipEndpoint":{
"@type":"ids:PIP",
"ids:interfaceDescription":{
"@value":"https://example.com/ids/pip/id/count",
"@type":"xsd:anyURI"
},
"ids:endpointURI":{
"@value":"https://consumer.org/pip/ep/count",
"@type":"xsd:anyURI"
}
}
}],
"ids:postDuty": [{
"@type":"ids:Duty",
"ids:action": [{
"@id":"idsc:INCREMENT_COUNTER",
"ids:pxpEndpoint":{
"@type":"ids:PXP",
"ids:interfaceDescription":{
"@value":"https://example.com/ids/PXP/id/increment_counter",
"@type":"xsd:anyURI"
},
"ids:endpointURI":{
"@value":"https://consumer.org/ep/increment_counter",
"@type":"xsd:anyURI"
}
}
}]
}]
}]
}