@twin.org/standards-w3c-odrl 0.0.1-next.44 → 0.0.1-next.45

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.
@@ -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: OdrlContextType
2
2
 
3
- > **OdrlContextType** = *typeof* [`Context`](../variables/OdrlContexts.md#context) \| \[*typeof* [`Context`](../variables/OdrlContexts.md#context), `...IJsonLdContextDefinitionElement[]`\] \| \[`...IJsonLdContextDefinitionElement[]`, *typeof* [`Context`](../variables/OdrlContexts.md#context), `IJsonLdContextDefinitionElement`\] \| \[`IJsonLdContextDefinitionElement`, *typeof* [`Context`](../variables/OdrlContexts.md#context), `...IJsonLdContextDefinitionElement[]`\]
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.
@@ -6,32 +6,14 @@ The contexts for ODRL.
6
6
 
7
7
  ## Type declaration
8
8
 
9
- ### Context
9
+ ### ContextRedirect
10
10
 
11
- > `readonly` **Context**: `"https://www.w3.org/ns/odrl.jsonld"` = `"https://www.w3.org/ns/odrl.jsonld"`
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
- ### ContextVocabulary
15
+ ### ContextRoot
16
16
 
17
- > `readonly` **ContextVocabulary**: `"https://www.w3.org/ns/odrl/2/"` = `"https://www.w3.org/ns/odrl/2/"`
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.44",
3
+ "version": "0.0.1-next.45",
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.44",
19
- "@twin.org/standards-w3c-vcard": "0.0.1-next.44",
20
+ "@twin.org/standards-dublin-core": "0.0.1-next.45",
21
+ "@twin.org/standards-w3c-vcard": "0.0.1-next.45",
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,5 +0,0 @@
1
- # Type Alias: DataType
2
-
3
- > **DataType** = *typeof* [`DataType`](../variables/DataType.md)\[keyof *typeof* [`DataType`](../variables/DataType.md)\]
4
-
5
- The types for ODRL Data Types.
@@ -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.