|
6 | 6 | @prefix string: <http://www.w3.org/2000/10/swap/string#> . |
7 | 7 | @prefix list: <http://www.w3.org/2000/10/swap/list#> . |
8 | 8 |
|
9 | | - |
10 | 9 | # Read ODRL rule |
11 | 10 | { |
12 | 11 | ?permission a odrl:Permission; |
|
15 | 14 | # odrl:assigner ?resourceOwner ; |
16 | 15 | odrl:assignee ?requestedParty. |
17 | 16 |
|
18 | | - ?action list:in (odrl:use odrl:read) . # multiple options |
| 17 | + ?action list:in (odrl:use odrl:read) . # multiple options |
19 | 18 |
|
20 | | - ?SCOPE log:notIncludes { ?permission odrl:constraint ?anything }. # No odrl:constraints may be present |
21 | 19 |
|
22 | 20 | # context of a request |
23 | 21 | ?context |
|
29 | 27 | :uuid5 log:uuid ?uuidStringdataUsagePolicyExecution. |
30 | 28 | ( "urn:uuid:" ?uuidStringdataUsagePolicyExecution) string:concatenation ?urnUuidStringdataUsagePolicyExecution. |
31 | 29 | ?dataUsagePolicyExecution log:uri ?urnUuidStringdataUsagePolicyExecution . |
| 30 | + |
| 31 | + # Constraint checking |
| 32 | + # No odrl:constraints may be present |
| 33 | + ?SCOPE log:notIncludes { ?permission odrl:constraint ?anything }. |
32 | 34 | } => |
33 | 35 | { |
34 | 36 | ?dataUsagePolicyExecution a fno:Execution; |
|
46 | 48 |
|
47 | 49 | ?action list:in (odrl:use odrl:modify). # multiple options |
48 | 50 |
|
49 | | - ?SCOPE log:notIncludes { ?permission odrl:constraint ?anything }. # No odrl:constraints may be present |
50 | | - |
51 | 51 | # context of a request |
52 | 52 | ?context |
53 | 53 | # :resourceOwner ?resourceOwner; |
|
58 | 58 | :uuid6 log:uuid ?uuidStringdataUsagePolicyExecution. |
59 | 59 | ( "urn:uuid:" ?uuidStringdataUsagePolicyExecution) string:concatenation ?urnUuidStringdataUsagePolicyExecution. |
60 | 60 | ?dataUsagePolicyExecution log:uri ?urnUuidStringdataUsagePolicyExecution . |
| 61 | + |
| 62 | + # Constraint checking |
| 63 | + # No odrl:constraints may be present |
| 64 | + ?SCOPE log:notIncludes { ?permission odrl:constraint ?anything }. |
61 | 65 | } => |
62 | 66 | { |
63 | 67 | ?dataUsagePolicyExecution a fno:Execution; |
64 | 68 | fno:executes <http://example.org/dataUsage> ; |
65 | 69 | :accessModesAllowed <urn:example:css:modes:append>. |
66 | 70 | }. |
67 | 71 |
|
68 | | - |
69 | 72 | # Write ODRL Rule |
70 | 73 | { |
71 | 74 | ?permission a odrl:Permission; |
|
74 | 77 | # odrl:assigner ?resourceOwner ; |
75 | 78 | odrl:assignee ?requestedParty. |
76 | 79 |
|
77 | | - ?action list:in (odrl:use odrl:modify). # multiple options |
78 | | - |
79 | | - ?SCOPE log:notIncludes { ?permission odrl:constraint ?anything }. # No odrl:constraints may be present |
| 80 | + ?action list:in (odrl:use odrl:modify). # multiple options |
80 | 81 |
|
81 | 82 | # context of a request |
82 | 83 | ?context |
|
88 | 89 | :uuid6 log:uuid ?uuidStringdataUsagePolicyExecution. |
89 | 90 | ( "urn:uuid:" ?uuidStringdataUsagePolicyExecution) string:concatenation ?urnUuidStringdataUsagePolicyExecution. |
90 | 91 | ?dataUsagePolicyExecution log:uri ?urnUuidStringdataUsagePolicyExecution . |
| 92 | + |
| 93 | + # Constraint checking |
| 94 | + # No odrl:constraints may be present |
| 95 | + ?SCOPE log:notIncludes { ?permission odrl:constraint ?anything }. |
91 | 96 | } => |
92 | 97 | { |
93 | 98 | ?dataUsagePolicyExecution a fno:Execution; |
94 | 99 | fno:executes <http://example.org/dataUsage> ; |
95 | 100 | :accessModesAllowed <urn:example:css:modes:write>. |
96 | 101 | }. |
97 | 102 |
|
98 | | - |
99 | | - |
100 | 103 | # Create ODRL Rule |
101 | 104 | { |
102 | 105 | ?permission a odrl:Permission; |
|
105 | 108 | # odrl:assigner ?resourceOwner ; |
106 | 109 | odrl:assignee ?requestedParty . |
107 | 110 |
|
108 | | - ?action list:in (odrl:use odrl:modify). # multiple options |
109 | | - |
110 | | - ?SCOPE log:notIncludes { ?permission odrl:constraint ?anything }. # No odrl:constraints may be present |
| 111 | + ?action list:in (odrl:use odrl:modify). # multiple options |
111 | 112 |
|
112 | 113 | # context of a request |
113 | 114 | ?context |
|
119 | 120 | :uuid6 log:uuid ?uuidStringdataUsagePolicyExecution. |
120 | 121 | ( "urn:uuid:" ?uuidStringdataUsagePolicyExecution) string:concatenation ?urnUuidStringdataUsagePolicyExecution. |
121 | 122 | ?dataUsagePolicyExecution log:uri ?urnUuidStringdataUsagePolicyExecution . |
| 123 | + |
| 124 | + # Constraint checking |
| 125 | + # No odrl:constraints may be present |
| 126 | + ?SCOPE log:notIncludes { ?permission odrl:constraint ?anything }. |
122 | 127 | } => |
123 | 128 | { |
124 | 129 | ?dataUsagePolicyExecution a fno:Execution; |
125 | 130 | fno:executes <http://example.org/dataUsage> ; |
126 | 131 | :accessModesAllowed <urn:example:css:modes:create>. |
127 | 132 | }. |
128 | 133 |
|
129 | | - |
130 | 134 | # Delete ODRL Rule |
131 | 135 | { |
132 | 136 | ?permission a odrl:Permission; |
|
135 | 139 | # odrl:assigner ?resourceOwner ; |
136 | 140 | odrl:assignee ?requestedParty. |
137 | 141 |
|
138 | | - ?action list:in (odrl:use odrl:delete). # multiple options |
139 | | - |
140 | | - ?SCOPE log:notIncludes { ?permission odrl:constraint ?anything }. # No odrl:constraints may be present |
| 142 | + ?action list:in (odrl:use odrl:delete). # multiple options |
141 | 143 |
|
142 | 144 | # context of a request |
143 | 145 | ?context |
|
149 | 151 | :uuid6 log:uuid ?uuidStringdataUsagePolicyExecution. |
150 | 152 | ( "urn:uuid:" ?uuidStringdataUsagePolicyExecution) string:concatenation ?urnUuidStringdataUsagePolicyExecution. |
151 | 153 | ?dataUsagePolicyExecution log:uri ?urnUuidStringdataUsagePolicyExecution . |
| 154 | + |
| 155 | + # Constraint checking |
| 156 | + # No odrl:constraints may be present |
| 157 | + ?SCOPE log:notIncludes { ?permission odrl:constraint ?anything }. |
152 | 158 | } => |
153 | 159 | { |
154 | 160 | ?dataUsagePolicyExecution a fno:Execution; |
|
0 commit comments