-
Notifications
You must be signed in to change notification settings - Fork 0
/
dtou-policy-app1.n3s
115 lines (87 loc) · 2.39 KB
/
dtou-policy-app1.n3s
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix log: <http://www.w3.org/2000/10/swap/log#>.
@prefix : <http://example.org/ns#>.
######
# Usage & App Policy
######
:usageContext1 a :UsageContext;
:user :rui;
:app [a :AppInfo; :policy :appPolicy1];
:time "20230823".
:rui a :User.
:appPolicy1 a :AppPolicy;
:name <urn:dtou:appoint-booking>;
:action :book-appointment;
:input_spec :input1, :input2;
:output_spec :output1.
:book-appointment a :Action.
:input1 a :InputSpec;
:data <https://ada.site/id>;
:port :inputPort1;
:expect :complete1;
:purpose :verify-identify, :verify-age;
# :provide :secure1, :personal1;
:provide :secure1;
:downstream :ds-clinic1.
:complete1 a :IntegrityExpectation;
:name :complete.
:verify-identify a :PurposeExpectation;
:name <urn:dtou:purpose-verify-identity>.
:verify-age a :PurposeExpectation;
:name <urn:dtou:purpose-verify-age>.
:secure1 a :SecurityProvide;
:name :secure.
:personal1 a :SecurityProvide;
:name :personal.
:ds-clinic1 a :DownstreamSpec;
:app_name <https://gh.app/clinic>;
:purpose :booking, :recording.
:booking a :PurposeExpectation;
:name <urn:dtou:purpose-booking>.
:recording a :PurposeExpectation;
:name <urn:dtou:purpose-recording>.
:inputPort1 a :Port;
:name "inputPort1".
:input2 a :InputSpec;
:data <https://ada.site/email>;
:port :inputPort2;
:purpose :send-confirmation, :send-reminder;
:downstream :ds-clinic2.
:inputPort2 a :Port;
:name "inputPort2".
:send-confirmation a :PurposeExpectation;
:name <urn:dtou:purpose-send-confirmation>.
:send-reminder a :PurposeExpectation;
:name <urn:dtou:purpose-send-reminder>.
:ds-clinic2 a :DownstreamSpec;
:app_name <https://gh.app/clinic>;
:purpose :send-reminder, :recording.
:output1 a :OutputSpec;
:port :outputPort1;
:from :inputPort1, :inputPort2;
:refinement :re-delete-all, :re-edit-ada-p.
:outputPort1 a :Port;
:name "output".
:re-delete-all a :Delete;
# :filter :filter-all.
# :filter :filter-ada-p.
:filter :filter-test.
:re-delete-ada-p a :Delete;
# :filter :filter-all.
:filter :filter-ada-p.
# :filter :filter-test.
:re-edit-ada-p a :Edit;
:filter :filter-ada-p;
:new_class :not-a-person;
:new_value :adaa.
:filter-all a :Filter.
# Not in-use. Mainly for testing
:filter-ada-p a :Filter;
:name :ada-p;
:class :person;
:value :ada.
# Not in-use. Mainly for testing
:filter-test a :Filter;
:name :test;
:class :testClass;
:value :testValue.