@twin.org/standards-w3c-odrl 0.0.1-next.44 → 0.0.1-next.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +3201 -225
- package/dist/esm/index.mjs +3197 -221
- package/dist/types/dataTypes/odrlDataTypes.d.ts +13 -0
- package/dist/types/index.d.ts +24 -21
- package/dist/types/models/IOdrlAction.d.ts +1 -1
- package/dist/types/models/IOdrlAgreement.d.ts +23 -0
- package/dist/types/models/IOdrlConstraint.d.ts +5 -6
- package/dist/types/models/IOdrlOffer.d.ts +18 -0
- package/dist/types/models/IOdrlPolicy.d.ts +3 -3
- package/dist/types/models/IOdrlRule.d.ts +1 -1
- package/dist/types/models/IOdrlSet.d.ts +12 -0
- package/dist/types/models/odrlContextType.d.ts +3 -3
- package/dist/types/models/odrlContexts.d.ts +2 -14
- package/dist/types/models/types/{actionTypes.d.ts → actionType.d.ts} +2 -2
- package/dist/types/models/types/{conflictStrategyTypes.d.ts → conflictStrategyType.d.ts} +2 -2
- package/dist/types/models/types/odrlTypes.d.ts +8 -0
- package/dist/types/models/types/{rightOperandTypes.d.ts → rightOperandType.d.ts} +2 -2
- package/dist/types/models/types/{uriActionTypes.d.ts → uriActionType.d.ts} +2 -2
- package/docs/changelog.md +30 -0
- package/docs/reference/classes/OdrlDataTypes.md +37 -0
- package/docs/reference/index.md +11 -6
- package/docs/reference/interfaces/IOdrlAgreement.md +180 -0
- package/docs/reference/interfaces/IOdrlConstraint.md +2 -2
- package/docs/reference/interfaces/IOdrlOffer.md +180 -0
- package/docs/reference/interfaces/IOdrlPolicy.md +6 -0
- package/docs/reference/interfaces/IOdrlRule.md +1 -1
- package/docs/reference/interfaces/IOdrlSet.md +180 -0
- package/docs/reference/type-aliases/ActionType.md +1 -1
- package/docs/reference/type-aliases/ConflictStrategyType.md +1 -1
- package/docs/reference/type-aliases/OdrlContextType.md +1 -1
- package/docs/reference/type-aliases/RightOperandType.md +1 -1
- package/docs/reference/type-aliases/UriActionType.md +1 -1
- package/docs/reference/variables/{ActionTypes.md → ActionType.md} +2 -2
- package/docs/reference/variables/{ConflictStrategyTypes.md → ConflictStrategyType.md} +2 -2
- package/docs/reference/variables/OdrlContexts.md +4 -22
- package/docs/reference/variables/OdrlTypes.md +12 -0
- package/docs/reference/variables/{RightOperandTypes.md → RightOperandType.md} +2 -2
- package/docs/reference/variables/{UriActionTypes.md → UriActionType.md} +2 -2
- package/package.json +5 -3
- package/dist/types/models/types/dataTypes.d.ts +0 -37
- package/docs/reference/type-aliases/DataType.md +0 -5
- package/docs/reference/variables/DataType.md +0 -49
- /package/dist/types/models/types/{leftOperandTypes.d.ts → leftOperandType.d.ts} +0 -0
- /package/dist/types/models/types/{operatorTypes.d.ts → operatorType.d.ts} +0 -0
- /package/dist/types/models/types/{policyTypes.d.ts → policyType.d.ts} +0 -0
- /package/dist/types/models/types/{ruleTypes.d.ts → ruleType.d.ts} +0 -0
- /package/dist/types/models/types/{statusTypes.d.ts → statusType.d.ts} +0 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# Interface: IOdrlOffer
|
|
2
|
+
|
|
3
|
+
Interface representing an ODRL Offer.
|
|
4
|
+
An Offer requires an assigner (the party making the offer).
|
|
5
|
+
|
|
6
|
+
## Extends
|
|
7
|
+
|
|
8
|
+
- [`IOdrlPolicy`](IOdrlPolicy.md)
|
|
9
|
+
|
|
10
|
+
## Indexable
|
|
11
|
+
|
|
12
|
+
\[`key`: `string`\]: `undefined` \| `null` \| `string` \| `number` \| `boolean` \| `string`[] \| `IJsonLdContextDefinition` \| `IJsonLdContextDefinitionElement`[] \| `IJsonLdIdMap` \| `IJsonLdNodeObject` \| `IJsonLdListObject` \| `object` & `object` \| `object` & `object` \| `object` & `object` \| `IJsonLdSetObject` \| `IJsonLdJsonObject` \| `IJsonLdIndexMap` \| `IJsonLdLanguageMap` \| `IJsonLdGraphObject` \| `IJsonLdNodeObject`[] \| `IJsonLdJsonObject`[] \| \{[`key`: `string`]: `string`; \} \| `IJsonLdTypeMap` \| `IJsonLdNodePrimitive`[]
|
|
13
|
+
|
|
14
|
+
## Properties
|
|
15
|
+
|
|
16
|
+
### @type
|
|
17
|
+
|
|
18
|
+
> **@type**: `"Offer"`
|
|
19
|
+
|
|
20
|
+
The type must be "Offer".
|
|
21
|
+
|
|
22
|
+
#### Overrides
|
|
23
|
+
|
|
24
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`@type`](IOdrlPolicy.md#type)
|
|
25
|
+
|
|
26
|
+
***
|
|
27
|
+
|
|
28
|
+
### assigner
|
|
29
|
+
|
|
30
|
+
> **assigner**: `string` \| [`IOdrlParty`](IOdrlParty.md)
|
|
31
|
+
|
|
32
|
+
The assigner of the offer.
|
|
33
|
+
Required for Offer policies.
|
|
34
|
+
|
|
35
|
+
#### Overrides
|
|
36
|
+
|
|
37
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`assigner`](IOdrlPolicy.md#assigner)
|
|
38
|
+
|
|
39
|
+
***
|
|
40
|
+
|
|
41
|
+
### @context
|
|
42
|
+
|
|
43
|
+
> **@context**: [`OdrlContextType`](../type-aliases/OdrlContextType.md)
|
|
44
|
+
|
|
45
|
+
The context for the policy.
|
|
46
|
+
Must include "https://www.w3.org/ns/odrl.jsonld"
|
|
47
|
+
|
|
48
|
+
#### Inherited from
|
|
49
|
+
|
|
50
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`@context`](IOdrlPolicy.md#context)
|
|
51
|
+
|
|
52
|
+
***
|
|
53
|
+
|
|
54
|
+
### uid
|
|
55
|
+
|
|
56
|
+
> **uid**: `string`
|
|
57
|
+
|
|
58
|
+
The unique identifier for the policy.
|
|
59
|
+
Must be an IRI.
|
|
60
|
+
|
|
61
|
+
#### Inherited from
|
|
62
|
+
|
|
63
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`uid`](IOdrlPolicy.md#uid)
|
|
64
|
+
|
|
65
|
+
***
|
|
66
|
+
|
|
67
|
+
### profile?
|
|
68
|
+
|
|
69
|
+
> `optional` **profile**: `string` \| `string`[]
|
|
70
|
+
|
|
71
|
+
The profile(s) this policy conforms to.
|
|
72
|
+
IRIs identifying the ODRL Profile(s).
|
|
73
|
+
|
|
74
|
+
#### Inherited from
|
|
75
|
+
|
|
76
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`profile`](IOdrlPolicy.md#profile)
|
|
77
|
+
|
|
78
|
+
***
|
|
79
|
+
|
|
80
|
+
### assignee?
|
|
81
|
+
|
|
82
|
+
> `optional` **assignee**: `string` \| [`IOdrlParty`](IOdrlParty.md)
|
|
83
|
+
|
|
84
|
+
The assignee of the policy.
|
|
85
|
+
Applies to all rules unless overridden at rule level.
|
|
86
|
+
|
|
87
|
+
#### Inherited from
|
|
88
|
+
|
|
89
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`assignee`](IOdrlPolicy.md#assignee)
|
|
90
|
+
|
|
91
|
+
***
|
|
92
|
+
|
|
93
|
+
### target?
|
|
94
|
+
|
|
95
|
+
> `optional` **target**: `string` \| [`IOdrlAsset`](IOdrlAsset.md) \| (`string` \| [`IOdrlAsset`](IOdrlAsset.md))[]
|
|
96
|
+
|
|
97
|
+
The target asset for the rule.
|
|
98
|
+
|
|
99
|
+
#### Inherited from
|
|
100
|
+
|
|
101
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`target`](IOdrlPolicy.md#target)
|
|
102
|
+
|
|
103
|
+
***
|
|
104
|
+
|
|
105
|
+
### action?
|
|
106
|
+
|
|
107
|
+
> `optional` **action**: [`ActionType`](../type-aliases/ActionType.md) \| [`IOdrlAction`](IOdrlAction.md) \| ActionType \| IOdrlAction[]
|
|
108
|
+
|
|
109
|
+
The action associated with the rule.
|
|
110
|
+
|
|
111
|
+
#### Inherited from
|
|
112
|
+
|
|
113
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`action`](IOdrlPolicy.md#action)
|
|
114
|
+
|
|
115
|
+
***
|
|
116
|
+
|
|
117
|
+
### inheritFrom?
|
|
118
|
+
|
|
119
|
+
> `optional` **inheritFrom**: `string` \| `string`[]
|
|
120
|
+
|
|
121
|
+
The parent policy(ies) this policy inherits from.
|
|
122
|
+
IRIs identifying the parent Policy(ies).
|
|
123
|
+
|
|
124
|
+
#### Inherited from
|
|
125
|
+
|
|
126
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`inheritFrom`](IOdrlPolicy.md#inheritfrom)
|
|
127
|
+
|
|
128
|
+
***
|
|
129
|
+
|
|
130
|
+
### conflict?
|
|
131
|
+
|
|
132
|
+
> `optional` **conflict**: [`ConflictStrategyType`](../type-aliases/ConflictStrategyType.md)
|
|
133
|
+
|
|
134
|
+
The conflict resolution strategy.
|
|
135
|
+
- perm: Permissions override Prohibitions
|
|
136
|
+
- prohibit: Prohibitions override Permissions
|
|
137
|
+
- invalid: Policy is void if conflicts exist (default)
|
|
138
|
+
|
|
139
|
+
#### Inherited from
|
|
140
|
+
|
|
141
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`conflict`](IOdrlPolicy.md#conflict)
|
|
142
|
+
|
|
143
|
+
***
|
|
144
|
+
|
|
145
|
+
### permission?
|
|
146
|
+
|
|
147
|
+
> `optional` **permission**: [`IOdrlPermission`](IOdrlPermission.md)[]
|
|
148
|
+
|
|
149
|
+
The permissions in the policy.
|
|
150
|
+
At least one of permission, prohibition, or obligation must be present.
|
|
151
|
+
|
|
152
|
+
#### Inherited from
|
|
153
|
+
|
|
154
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`permission`](IOdrlPolicy.md#permission)
|
|
155
|
+
|
|
156
|
+
***
|
|
157
|
+
|
|
158
|
+
### prohibition?
|
|
159
|
+
|
|
160
|
+
> `optional` **prohibition**: [`IOdrlProhibition`](IOdrlProhibition.md)[]
|
|
161
|
+
|
|
162
|
+
The prohibitions in the policy.
|
|
163
|
+
At least one of permission, prohibition, or obligation must be present.
|
|
164
|
+
|
|
165
|
+
#### Inherited from
|
|
166
|
+
|
|
167
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`prohibition`](IOdrlPolicy.md#prohibition)
|
|
168
|
+
|
|
169
|
+
***
|
|
170
|
+
|
|
171
|
+
### obligation?
|
|
172
|
+
|
|
173
|
+
> `optional` **obligation**: [`IOdrlDuty`](IOdrlDuty.md)[]
|
|
174
|
+
|
|
175
|
+
The obligations in the policy.
|
|
176
|
+
At least one of permission, prohibition, or obligation must be present.
|
|
177
|
+
|
|
178
|
+
#### Inherited from
|
|
179
|
+
|
|
180
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`obligation`](IOdrlPolicy.md#obligation)
|
|
@@ -6,6 +6,12 @@ Interface representing an ODRL Policy.
|
|
|
6
6
|
|
|
7
7
|
- `IJsonLdNodeObject`
|
|
8
8
|
|
|
9
|
+
## Extended by
|
|
10
|
+
|
|
11
|
+
- [`IOdrlAgreement`](IOdrlAgreement.md)
|
|
12
|
+
- [`IOdrlOffer`](IOdrlOffer.md)
|
|
13
|
+
- [`IOdrlSet`](IOdrlSet.md)
|
|
14
|
+
|
|
9
15
|
## Indexable
|
|
10
16
|
|
|
11
17
|
\[`key`: `string`\]: `undefined` \| `null` \| `string` \| `number` \| `boolean` \| `string`[] \| `IJsonLdContextDefinition` \| `IJsonLdContextDefinitionElement`[] \| `IJsonLdIdMap` \| `IJsonLdNodeObject` \| `IJsonLdListObject` \| `object` & `object` \| `object` & `object` \| `object` & `object` \| `IJsonLdSetObject` \| `IJsonLdJsonObject` \| `IJsonLdIndexMap` \| `IJsonLdLanguageMap` \| `IJsonLdGraphObject` \| `IJsonLdNodeObject`[] \| `IJsonLdJsonObject`[] \| \{[`key`: `string`]: `string`; \} \| `IJsonLdTypeMap` \| `IJsonLdNodePrimitive`[]
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# Interface: IOdrlSet
|
|
2
|
+
|
|
3
|
+
Interface representing an ODRL Set.
|
|
4
|
+
A Set is a basic policy type with no specific party requirements.
|
|
5
|
+
|
|
6
|
+
## Extends
|
|
7
|
+
|
|
8
|
+
- [`IOdrlPolicy`](IOdrlPolicy.md)
|
|
9
|
+
|
|
10
|
+
## Indexable
|
|
11
|
+
|
|
12
|
+
\[`key`: `string`\]: `undefined` \| `null` \| `string` \| `number` \| `boolean` \| `string`[] \| `IJsonLdContextDefinition` \| `IJsonLdContextDefinitionElement`[] \| `IJsonLdIdMap` \| `IJsonLdNodeObject` \| `IJsonLdListObject` \| `object` & `object` \| `object` & `object` \| `object` & `object` \| `IJsonLdSetObject` \| `IJsonLdJsonObject` \| `IJsonLdIndexMap` \| `IJsonLdLanguageMap` \| `IJsonLdGraphObject` \| `IJsonLdNodeObject`[] \| `IJsonLdJsonObject`[] \| \{[`key`: `string`]: `string`; \} \| `IJsonLdTypeMap` \| `IJsonLdNodePrimitive`[]
|
|
13
|
+
|
|
14
|
+
## Properties
|
|
15
|
+
|
|
16
|
+
### @context
|
|
17
|
+
|
|
18
|
+
> **@context**: [`OdrlContextType`](../type-aliases/OdrlContextType.md)
|
|
19
|
+
|
|
20
|
+
The context for the policy.
|
|
21
|
+
Must include "https://www.w3.org/ns/odrl.jsonld"
|
|
22
|
+
|
|
23
|
+
#### Inherited from
|
|
24
|
+
|
|
25
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`@context`](IOdrlPolicy.md#context)
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### uid
|
|
30
|
+
|
|
31
|
+
> **uid**: `string`
|
|
32
|
+
|
|
33
|
+
The unique identifier for the policy.
|
|
34
|
+
Must be an IRI.
|
|
35
|
+
|
|
36
|
+
#### Inherited from
|
|
37
|
+
|
|
38
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`uid`](IOdrlPolicy.md#uid)
|
|
39
|
+
|
|
40
|
+
***
|
|
41
|
+
|
|
42
|
+
### profile?
|
|
43
|
+
|
|
44
|
+
> `optional` **profile**: `string` \| `string`[]
|
|
45
|
+
|
|
46
|
+
The profile(s) this policy conforms to.
|
|
47
|
+
IRIs identifying the ODRL Profile(s).
|
|
48
|
+
|
|
49
|
+
#### Inherited from
|
|
50
|
+
|
|
51
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`profile`](IOdrlPolicy.md#profile)
|
|
52
|
+
|
|
53
|
+
***
|
|
54
|
+
|
|
55
|
+
### assigner?
|
|
56
|
+
|
|
57
|
+
> `optional` **assigner**: `string` \| [`IOdrlParty`](IOdrlParty.md)
|
|
58
|
+
|
|
59
|
+
The assigner of the policy.
|
|
60
|
+
Applies to all rules unless overridden at rule level.
|
|
61
|
+
|
|
62
|
+
#### Inherited from
|
|
63
|
+
|
|
64
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`assigner`](IOdrlPolicy.md#assigner)
|
|
65
|
+
|
|
66
|
+
***
|
|
67
|
+
|
|
68
|
+
### assignee?
|
|
69
|
+
|
|
70
|
+
> `optional` **assignee**: `string` \| [`IOdrlParty`](IOdrlParty.md)
|
|
71
|
+
|
|
72
|
+
The assignee of the policy.
|
|
73
|
+
Applies to all rules unless overridden at rule level.
|
|
74
|
+
|
|
75
|
+
#### Inherited from
|
|
76
|
+
|
|
77
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`assignee`](IOdrlPolicy.md#assignee)
|
|
78
|
+
|
|
79
|
+
***
|
|
80
|
+
|
|
81
|
+
### target?
|
|
82
|
+
|
|
83
|
+
> `optional` **target**: `string` \| [`IOdrlAsset`](IOdrlAsset.md) \| (`string` \| [`IOdrlAsset`](IOdrlAsset.md))[]
|
|
84
|
+
|
|
85
|
+
The target asset for the rule.
|
|
86
|
+
|
|
87
|
+
#### Inherited from
|
|
88
|
+
|
|
89
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`target`](IOdrlPolicy.md#target)
|
|
90
|
+
|
|
91
|
+
***
|
|
92
|
+
|
|
93
|
+
### action?
|
|
94
|
+
|
|
95
|
+
> `optional` **action**: [`ActionType`](../type-aliases/ActionType.md) \| [`IOdrlAction`](IOdrlAction.md) \| ActionType \| IOdrlAction[]
|
|
96
|
+
|
|
97
|
+
The action associated with the rule.
|
|
98
|
+
|
|
99
|
+
#### Inherited from
|
|
100
|
+
|
|
101
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`action`](IOdrlPolicy.md#action)
|
|
102
|
+
|
|
103
|
+
***
|
|
104
|
+
|
|
105
|
+
### inheritFrom?
|
|
106
|
+
|
|
107
|
+
> `optional` **inheritFrom**: `string` \| `string`[]
|
|
108
|
+
|
|
109
|
+
The parent policy(ies) this policy inherits from.
|
|
110
|
+
IRIs identifying the parent Policy(ies).
|
|
111
|
+
|
|
112
|
+
#### Inherited from
|
|
113
|
+
|
|
114
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`inheritFrom`](IOdrlPolicy.md#inheritfrom)
|
|
115
|
+
|
|
116
|
+
***
|
|
117
|
+
|
|
118
|
+
### conflict?
|
|
119
|
+
|
|
120
|
+
> `optional` **conflict**: [`ConflictStrategyType`](../type-aliases/ConflictStrategyType.md)
|
|
121
|
+
|
|
122
|
+
The conflict resolution strategy.
|
|
123
|
+
- perm: Permissions override Prohibitions
|
|
124
|
+
- prohibit: Prohibitions override Permissions
|
|
125
|
+
- invalid: Policy is void if conflicts exist (default)
|
|
126
|
+
|
|
127
|
+
#### Inherited from
|
|
128
|
+
|
|
129
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`conflict`](IOdrlPolicy.md#conflict)
|
|
130
|
+
|
|
131
|
+
***
|
|
132
|
+
|
|
133
|
+
### permission?
|
|
134
|
+
|
|
135
|
+
> `optional` **permission**: [`IOdrlPermission`](IOdrlPermission.md)[]
|
|
136
|
+
|
|
137
|
+
The permissions in the policy.
|
|
138
|
+
At least one of permission, prohibition, or obligation must be present.
|
|
139
|
+
|
|
140
|
+
#### Inherited from
|
|
141
|
+
|
|
142
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`permission`](IOdrlPolicy.md#permission)
|
|
143
|
+
|
|
144
|
+
***
|
|
145
|
+
|
|
146
|
+
### prohibition?
|
|
147
|
+
|
|
148
|
+
> `optional` **prohibition**: [`IOdrlProhibition`](IOdrlProhibition.md)[]
|
|
149
|
+
|
|
150
|
+
The prohibitions in the policy.
|
|
151
|
+
At least one of permission, prohibition, or obligation must be present.
|
|
152
|
+
|
|
153
|
+
#### Inherited from
|
|
154
|
+
|
|
155
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`prohibition`](IOdrlPolicy.md#prohibition)
|
|
156
|
+
|
|
157
|
+
***
|
|
158
|
+
|
|
159
|
+
### obligation?
|
|
160
|
+
|
|
161
|
+
> `optional` **obligation**: [`IOdrlDuty`](IOdrlDuty.md)[]
|
|
162
|
+
|
|
163
|
+
The obligations in the policy.
|
|
164
|
+
At least one of permission, prohibition, or obligation must be present.
|
|
165
|
+
|
|
166
|
+
#### Inherited from
|
|
167
|
+
|
|
168
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`obligation`](IOdrlPolicy.md#obligation)
|
|
169
|
+
|
|
170
|
+
***
|
|
171
|
+
|
|
172
|
+
### @type
|
|
173
|
+
|
|
174
|
+
> **@type**: `"Set"`
|
|
175
|
+
|
|
176
|
+
The type must be "Set".
|
|
177
|
+
|
|
178
|
+
#### Overrides
|
|
179
|
+
|
|
180
|
+
[`IOdrlPolicy`](IOdrlPolicy.md).[`@type`](IOdrlPolicy.md#type)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Type Alias: ActionType
|
|
2
2
|
|
|
3
|
-
> **ActionType** = *typeof* [`
|
|
3
|
+
> **ActionType** = *typeof* [`ActionType`](../variables/ActionType.md)\[keyof *typeof* [`ActionType`](../variables/ActionType.md)\]
|
|
4
4
|
|
|
5
5
|
The types for ODRL Actions.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Type Alias: ConflictStrategyType
|
|
2
2
|
|
|
3
|
-
> **ConflictStrategyType** = *typeof* [`
|
|
3
|
+
> **ConflictStrategyType** = *typeof* [`ConflictStrategyType`](../variables/ConflictStrategyType.md)\[keyof *typeof* [`ConflictStrategyType`](../variables/ConflictStrategyType.md)\]
|
|
4
4
|
|
|
5
5
|
The types for ODRL Conflict Resolution Strategies.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Type Alias: OdrlContextType
|
|
2
2
|
|
|
3
|
-
> **OdrlContextType** = *typeof* [`
|
|
3
|
+
> **OdrlContextType** = *typeof* [`ContextRoot`](../variables/OdrlContexts.md#contextroot) \| \[*typeof* [`ContextRoot`](../variables/OdrlContexts.md#contextroot), `...IJsonLdContextDefinitionElement[]`\] \| \[`...IJsonLdContextDefinitionElement[]`, *typeof* [`ContextRoot`](../variables/OdrlContexts.md#contextroot), `IJsonLdContextDefinitionElement`\] \| \[`IJsonLdContextDefinitionElement`, *typeof* [`ContextRoot`](../variables/OdrlContexts.md#contextroot), `...IJsonLdContextDefinitionElement[]`\]
|
|
4
4
|
|
|
5
5
|
The ODRL JSON-LD context type.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Type Alias: RightOperandType
|
|
2
2
|
|
|
3
|
-
> **RightOperandType** = *typeof* [`
|
|
3
|
+
> **RightOperandType** = *typeof* [`RightOperandType`](../variables/RightOperandType.md)\[keyof *typeof* [`RightOperandType`](../variables/RightOperandType.md)\]
|
|
4
4
|
|
|
5
5
|
The types for ODRL Right Operand Types.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Type Alias: UriActionType
|
|
2
2
|
|
|
3
|
-
> **UriActionType** = *typeof* [`
|
|
3
|
+
> **UriActionType** = *typeof* [`UriActionType`](../variables/UriActionType.md)\[keyof *typeof* [`UriActionType`](../variables/UriActionType.md)\]
|
|
4
4
|
|
|
5
5
|
The types for ODRL Actions.
|
|
6
6
|
Simple action types (for direct string usage)
|
|
@@ -6,32 +6,14 @@ The contexts for ODRL.
|
|
|
6
6
|
|
|
7
7
|
## Type declaration
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### ContextRedirect
|
|
10
10
|
|
|
11
|
-
> `readonly` **
|
|
11
|
+
> `readonly` **ContextRedirect**: `"https://www.w3.org/ns/odrl.jsonld"` = `"https://www.w3.org/ns/odrl.jsonld"`
|
|
12
12
|
|
|
13
13
|
The context root for ODRL.
|
|
14
14
|
|
|
15
|
-
###
|
|
15
|
+
### ContextRoot
|
|
16
16
|
|
|
17
|
-
> `readonly` **
|
|
17
|
+
> `readonly` **ContextRoot**: `"https://www.w3.org/ns/odrl/2/"` = `"https://www.w3.org/ns/odrl/2/"`
|
|
18
18
|
|
|
19
19
|
The context root for ODRL vocabulary.
|
|
20
|
-
|
|
21
|
-
### ContextDcTerms
|
|
22
|
-
|
|
23
|
-
> `readonly` **ContextDcTerms**: `"https://purl.org/dc/terms/"` = `"https://purl.org/dc/terms/"`
|
|
24
|
-
|
|
25
|
-
The context root for Dublin Core Terms.
|
|
26
|
-
|
|
27
|
-
### ContextRdf
|
|
28
|
-
|
|
29
|
-
> `readonly` **ContextRdf**: `"https://www.w3.org/1999/02/22-rdf-syntax-ns#"` = `"https://www.w3.org/1999/02/22-rdf-syntax-ns#"`
|
|
30
|
-
|
|
31
|
-
The context root for RDF.
|
|
32
|
-
|
|
33
|
-
### ContextXsd
|
|
34
|
-
|
|
35
|
-
> `readonly` **ContextXsd**: `"https://www.w3.org/2001/XMLSchema#"` = `"https://www.w3.org/2001/XMLSchema#"`
|
|
36
|
-
|
|
37
|
-
The context root for XSD.
|
|
@@ -95,3 +95,15 @@ Constraint type.
|
|
|
95
95
|
> `readonly` **LogicalConstraint**: `"LogicalConstraint"` = `"LogicalConstraint"`
|
|
96
96
|
|
|
97
97
|
LogicalConstraint type.
|
|
98
|
+
|
|
99
|
+
### ContextType
|
|
100
|
+
|
|
101
|
+
> `readonly` **ContextType**: `"ContextType"` = `"ContextType"`
|
|
102
|
+
|
|
103
|
+
ContextType.
|
|
104
|
+
|
|
105
|
+
### PolicyMetadata
|
|
106
|
+
|
|
107
|
+
> `readonly` **PolicyMetadata**: `"PolicyMetadata"` = `"PolicyMetadata"`
|
|
108
|
+
|
|
109
|
+
PolicyMetadata type.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/standards-w3c-odrl",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.46",
|
|
4
4
|
"description": "Models which define the structure of W3C ODRL Standard",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,9 +14,11 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
+
"@twin.org/core": "next",
|
|
18
|
+
"@twin.org/data-core": "next",
|
|
17
19
|
"@twin.org/data-json-ld": "next",
|
|
18
|
-
"@twin.org/standards-dublin-core": "0.0.1-next.
|
|
19
|
-
"@twin.org/standards-w3c-vcard": "0.0.1-next.
|
|
20
|
+
"@twin.org/standards-dublin-core": "0.0.1-next.46",
|
|
21
|
+
"@twin.org/standards-w3c-vcard": "0.0.1-next.46",
|
|
20
22
|
"@twin.org/web": "next"
|
|
21
23
|
},
|
|
22
24
|
"main": "./dist/cjs/index.cjs",
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The types for ODRL Data Types.
|
|
3
|
-
*/
|
|
4
|
-
export declare const DataType: {
|
|
5
|
-
/**
|
|
6
|
-
* String type.
|
|
7
|
-
*/
|
|
8
|
-
readonly String: "xsd:string";
|
|
9
|
-
/**
|
|
10
|
-
* Boolean type.
|
|
11
|
-
*/
|
|
12
|
-
readonly Boolean: "xsd:boolean";
|
|
13
|
-
/**
|
|
14
|
-
* Integer type.
|
|
15
|
-
*/
|
|
16
|
-
readonly Integer: "xsd:integer";
|
|
17
|
-
/**
|
|
18
|
-
* Decimal type.
|
|
19
|
-
*/
|
|
20
|
-
readonly Decimal: "xsd:decimal";
|
|
21
|
-
/**
|
|
22
|
-
* Double type.
|
|
23
|
-
*/
|
|
24
|
-
readonly Double: "xsd:double";
|
|
25
|
-
/**
|
|
26
|
-
* Date type.
|
|
27
|
-
*/
|
|
28
|
-
readonly Date: "xsd:date";
|
|
29
|
-
/**
|
|
30
|
-
* DateTime type.
|
|
31
|
-
*/
|
|
32
|
-
readonly DateTime: "xsd:dateTime";
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* The types for ODRL Data Types.
|
|
36
|
-
*/
|
|
37
|
-
export type DataType = (typeof DataType)[keyof typeof DataType];
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# Variable: DataType
|
|
2
|
-
|
|
3
|
-
> `const` **DataType**: `object`
|
|
4
|
-
|
|
5
|
-
The types for ODRL Data Types.
|
|
6
|
-
|
|
7
|
-
## Type declaration
|
|
8
|
-
|
|
9
|
-
### String
|
|
10
|
-
|
|
11
|
-
> `readonly` **String**: `"xsd:string"` = `"xsd:string"`
|
|
12
|
-
|
|
13
|
-
String type.
|
|
14
|
-
|
|
15
|
-
### Boolean
|
|
16
|
-
|
|
17
|
-
> `readonly` **Boolean**: `"xsd:boolean"` = `"xsd:boolean"`
|
|
18
|
-
|
|
19
|
-
Boolean type.
|
|
20
|
-
|
|
21
|
-
### Integer
|
|
22
|
-
|
|
23
|
-
> `readonly` **Integer**: `"xsd:integer"` = `"xsd:integer"`
|
|
24
|
-
|
|
25
|
-
Integer type.
|
|
26
|
-
|
|
27
|
-
### Decimal
|
|
28
|
-
|
|
29
|
-
> `readonly` **Decimal**: `"xsd:decimal"` = `"xsd:decimal"`
|
|
30
|
-
|
|
31
|
-
Decimal type.
|
|
32
|
-
|
|
33
|
-
### Double
|
|
34
|
-
|
|
35
|
-
> `readonly` **Double**: `"xsd:double"` = `"xsd:double"`
|
|
36
|
-
|
|
37
|
-
Double type.
|
|
38
|
-
|
|
39
|
-
### Date
|
|
40
|
-
|
|
41
|
-
> `readonly` **Date**: `"xsd:date"` = `"xsd:date"`
|
|
42
|
-
|
|
43
|
-
Date type.
|
|
44
|
-
|
|
45
|
-
### DateTime
|
|
46
|
-
|
|
47
|
-
> `readonly` **DateTime**: `"xsd:dateTime"` = `"xsd:dateTime"`
|
|
48
|
-
|
|
49
|
-
DateTime type.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|