@twin.org/standards-w3c-odrl 0.0.3-next.50 → 0.0.3-next.52
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/README.md +1 -1
- package/docs/changelog.md +30 -0
- package/docs/examples.md +25 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TWIN Standards W3C ODRL
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This package provides data models for the [W3C ODRL information model](https://www.w3.org/TR/odrl-model/), enabling clear representation of permissions, duties, and prohibitions in policy workflows.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @twin.org/standards-w3c-odrl - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.52](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.3-next.51...standards-w3c-odrl-v0.0.3-next.52) (2026-03-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* **standards-w3c-odrl:** Synchronize repo versions
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/standards-w3c-vcard bumped from 0.0.3-next.51 to 0.0.3-next.52
|
|
16
|
+
* @twin.org/standards-dublin-core bumped from 0.0.3-next.51 to 0.0.3-next.52
|
|
17
|
+
|
|
18
|
+
## [0.0.3-next.51](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.3-next.50...standards-w3c-odrl-v0.0.3-next.51) (2026-03-10)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Miscellaneous Chores
|
|
22
|
+
|
|
23
|
+
* **standards-w3c-odrl:** Synchronize repo versions
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Dependencies
|
|
27
|
+
|
|
28
|
+
* The following workspace dependencies were updated
|
|
29
|
+
* dependencies
|
|
30
|
+
* @twin.org/standards-w3c-vcard bumped from 0.0.3-next.50 to 0.0.3-next.51
|
|
31
|
+
* @twin.org/standards-dublin-core bumped from 0.0.3-next.50 to 0.0.3-next.51
|
|
32
|
+
|
|
3
33
|
## [0.0.3-next.50](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.3-next.49...standards-w3c-odrl-v0.0.3-next.50) (2026-03-09)
|
|
4
34
|
|
|
5
35
|
|
package/docs/examples.md
CHANGED
|
@@ -1 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Standards W3C ODRL Examples
|
|
2
|
+
|
|
3
|
+
These snippets register ODRL type mappings and compose a basic policy object with a shared context.
|
|
4
|
+
|
|
5
|
+
## OdrlDataTypes
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import {
|
|
9
|
+
OdrlContexts,
|
|
10
|
+
OdrlDataTypes,
|
|
11
|
+
PolicyType,
|
|
12
|
+
type IOdrlPolicy
|
|
13
|
+
} from '@twin.org/standards-w3c-odrl';
|
|
14
|
+
|
|
15
|
+
OdrlDataTypes.registerRedirects();
|
|
16
|
+
OdrlDataTypes.registerTypes();
|
|
17
|
+
|
|
18
|
+
const policy: IOdrlPolicy = {
|
|
19
|
+
'@context': OdrlContexts.Context,
|
|
20
|
+
'@type': PolicyType.Set,
|
|
21
|
+
uid: 'urn:policy:usage:001'
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
console.log(policy.uid); // urn:policy:usage:001
|
|
25
|
+
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/standards-w3c-odrl",
|
|
3
|
-
"version": "0.0.3-next.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.0.3-next.52",
|
|
4
|
+
"description": "Data models for the W3C ODRL information model.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/twinfoundation/standards.git",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"@twin.org/core": "next",
|
|
18
18
|
"@twin.org/data-core": "next",
|
|
19
19
|
"@twin.org/data-json-ld": "next",
|
|
20
|
-
"@twin.org/standards-dublin-core": "0.0.3-next.
|
|
21
|
-
"@twin.org/standards-w3c-vcard": "0.0.3-next.
|
|
20
|
+
"@twin.org/standards-dublin-core": "0.0.3-next.52",
|
|
21
|
+
"@twin.org/standards-w3c-vcard": "0.0.3-next.52",
|
|
22
22
|
"@twin.org/web": "next"
|
|
23
23
|
},
|
|
24
24
|
"main": "./dist/es/index.js",
|