/
pc9-ids-restrict-time-interval-example.json
52 lines (52 loc) · 1.51 KB
/
pc9-ids-restrict-time-interval-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
{
"@context": {
"ids":"https://w3id.org/idsa/core/",
"idsc" : "https://w3id.org/idsa/code/"
},
"@type": "ids:ContractAgreement",
"@id": "http://example.com/policy/restrict-data-consumer/12",
"profile": "http://example.com/ids-profile",
"ids:provider": "http://example.com/party/my-party",
"ids:consumer": "http://example.com/ids/party/consumer-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:DATE_TIME"},
"ids:operator": { "@id": "idsc:AFTER"},
"ids:rightOperand": [{ "@type": "xsd:datetimeStamp", "@value": "2023-02-01T11:43:00Z" }]
"ids:pipEndpoint":{
"@type":"ids:PIP",
"ids:interfaceDescription":{
"@value":"https://example.com/ids/pip/id/dt",
"@type":"xsd:anyURI"
},
"ids:endpointURI":{
"@value":"https://consumer.org/pip/ep/dt ",
"@type":"xsd:anyURI"
}
}
},{
"@type":"ids:Constraint",
"ids:leftOperand": { "@id": "idsc:DATE_TIME"},
"ids:operator": { "@id": "idsc:BEFORE"},
"ids:rightOperand": [{ "@type": "xsd:datetimeStamp", "@value": "2023-04-30T11:43:00Z" }]
"ids:pipEndpoint":{
"@type":"ids:PIP",
"ids:interfaceDescription":{
"@value":"https://example.com/ids/pip/id/dt",
"@type":"xsd:anyURI"
},
"ids:endpointURI":{
"@value":"https://consumer.org/pip/ep/dt ",
"@type":"xsd:anyURI"
}
}
}]
}]
}