@twin.org/standards-w3c-odrl 0.0.3-next.17 → 0.0.3-next.18

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.
@@ -11,10 +11,9 @@ export const OdrlContexts = {
11
11
  Namespace: "http://www.w3.org/ns/odrl/2/",
12
12
  /**
13
13
  * The value to use in @context.
14
- * Note: Context differs from Namespace (no trailing slash) as per ODRL 2.2 specification.
15
- * The ODRL JSON-LD context URL format does not include a trailing slash.
14
+ * Note: Context points to the JSON-LD url as per ODRL 2.2 specification.
16
15
  */
17
- Context: "http://www.w3.org/ns/odrl/2",
16
+ Context: "http://www.w3.org/ns/odrl.jsonld",
18
17
  /**
19
18
  * The JSON-LD Context URL.
20
19
  */
@@ -1 +1 @@
1
- {"version":3,"file":"odrlContexts.js","sourceRoot":"","sources":["../../../src/models/odrlContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B;;OAEG;IACH,SAAS,EAAE,8BAA8B;IAEzC;;;;OAIG;IACH,OAAO,EAAE,6BAA6B;IAEtC;;OAEG;IACH,aAAa,EAAE,kCAAkC;CACxC,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The contexts for ODRL.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const OdrlContexts = {\n\t/**\n\t * The canonical RDF namespace URI.\n\t */\n\tNamespace: \"http://www.w3.org/ns/odrl/2/\",\n\n\t/**\n\t * The value to use in @context.\n\t * Note: Context differs from Namespace (no trailing slash) as per ODRL 2.2 specification.\n\t * The ODRL JSON-LD context URL format does not include a trailing slash.\n\t */\n\tContext: \"http://www.w3.org/ns/odrl/2\",\n\n\t/**\n\t * The JSON-LD Context URL.\n\t */\n\tJsonLdContext: \"http://www.w3.org/ns/odrl.jsonld\"\n} as const;\n\n/**\n * The contexts for ODRL.\n */\nexport type OdrlContexts = (typeof OdrlContexts)[keyof typeof OdrlContexts];\n"]}
1
+ {"version":3,"file":"odrlContexts.js","sourceRoot":"","sources":["../../../src/models/odrlContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B;;OAEG;IACH,SAAS,EAAE,8BAA8B;IAEzC;;;OAGG;IACH,OAAO,EAAE,kCAAkC;IAE3C;;OAEG;IACH,aAAa,EAAE,kCAAkC;CACxC,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The contexts for ODRL.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const OdrlContexts = {\n\t/**\n\t * The canonical RDF namespace URI.\n\t */\n\tNamespace: \"http://www.w3.org/ns/odrl/2/\",\n\n\t/**\n\t * The value to use in @context.\n\t * Note: Context points to the JSON-LD url as per ODRL 2.2 specification.\n\t */\n\tContext: \"http://www.w3.org/ns/odrl.jsonld\",\n\n\t/**\n\t * The JSON-LD Context URL.\n\t */\n\tJsonLdContext: \"http://www.w3.org/ns/odrl.jsonld\"\n} as const;\n\n/**\n * The contexts for ODRL.\n */\nexport type OdrlContexts = (typeof OdrlContexts)[keyof typeof OdrlContexts];\n"]}
@@ -9,13 +9,13 @@
9
9
  "anyOf": [
10
10
  {
11
11
  "type": "string",
12
- "const": "http://www.w3.org/ns/odrl/2"
12
+ "const": "http://www.w3.org/ns/odrl.jsonld"
13
13
  },
14
14
  {
15
15
  "type": "array",
16
16
  "items": {
17
17
  "type": "string",
18
- "const": "http://www.w3.org/ns/odrl/2"
18
+ "const": "http://www.w3.org/ns/odrl.jsonld"
19
19
  },
20
20
  "minItems": 1,
21
21
  "maxItems": 1
@@ -26,7 +26,7 @@
26
26
  "prefixItems": [
27
27
  {
28
28
  "type": "string",
29
- "const": "http://www.w3.org/ns/odrl/2"
29
+ "const": "http://www.w3.org/ns/odrl.jsonld"
30
30
  },
31
31
  {
32
32
  "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
@@ -45,7 +45,7 @@
45
45
  },
46
46
  {
47
47
  "type": "string",
48
- "const": "http://www.w3.org/ns/odrl/2"
48
+ "const": "http://www.w3.org/ns/odrl.jsonld"
49
49
  }
50
50
  ],
51
51
  "items": {
@@ -9,13 +9,13 @@
9
9
  "anyOf": [
10
10
  {
11
11
  "type": "string",
12
- "const": "http://www.w3.org/ns/odrl/2"
12
+ "const": "http://www.w3.org/ns/odrl.jsonld"
13
13
  },
14
14
  {
15
15
  "type": "array",
16
16
  "items": {
17
17
  "type": "string",
18
- "const": "http://www.w3.org/ns/odrl/2"
18
+ "const": "http://www.w3.org/ns/odrl.jsonld"
19
19
  },
20
20
  "minItems": 1,
21
21
  "maxItems": 1
@@ -26,7 +26,7 @@
26
26
  "prefixItems": [
27
27
  {
28
28
  "type": "string",
29
- "const": "http://www.w3.org/ns/odrl/2"
29
+ "const": "http://www.w3.org/ns/odrl.jsonld"
30
30
  },
31
31
  {
32
32
  "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
@@ -45,7 +45,7 @@
45
45
  },
46
46
  {
47
47
  "type": "string",
48
- "const": "http://www.w3.org/ns/odrl/2"
48
+ "const": "http://www.w3.org/ns/odrl.jsonld"
49
49
  }
50
50
  ],
51
51
  "items": {
@@ -9,13 +9,13 @@
9
9
  "anyOf": [
10
10
  {
11
11
  "type": "string",
12
- "const": "http://www.w3.org/ns/odrl/2"
12
+ "const": "http://www.w3.org/ns/odrl.jsonld"
13
13
  },
14
14
  {
15
15
  "type": "array",
16
16
  "items": {
17
17
  "type": "string",
18
- "const": "http://www.w3.org/ns/odrl/2"
18
+ "const": "http://www.w3.org/ns/odrl.jsonld"
19
19
  },
20
20
  "minItems": 1,
21
21
  "maxItems": 1
@@ -26,7 +26,7 @@
26
26
  "prefixItems": [
27
27
  {
28
28
  "type": "string",
29
- "const": "http://www.w3.org/ns/odrl/2"
29
+ "const": "http://www.w3.org/ns/odrl.jsonld"
30
30
  },
31
31
  {
32
32
  "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
@@ -45,7 +45,7 @@
45
45
  },
46
46
  {
47
47
  "type": "string",
48
- "const": "http://www.w3.org/ns/odrl/2"
48
+ "const": "http://www.w3.org/ns/odrl.jsonld"
49
49
  }
50
50
  ],
51
51
  "items": {
@@ -9,13 +9,13 @@
9
9
  "anyOf": [
10
10
  {
11
11
  "type": "string",
12
- "const": "http://www.w3.org/ns/odrl/2"
12
+ "const": "http://www.w3.org/ns/odrl.jsonld"
13
13
  },
14
14
  {
15
15
  "type": "array",
16
16
  "items": {
17
17
  "type": "string",
18
- "const": "http://www.w3.org/ns/odrl/2"
18
+ "const": "http://www.w3.org/ns/odrl.jsonld"
19
19
  },
20
20
  "minItems": 1,
21
21
  "maxItems": 1
@@ -26,7 +26,7 @@
26
26
  "prefixItems": [
27
27
  {
28
28
  "type": "string",
29
- "const": "http://www.w3.org/ns/odrl/2"
29
+ "const": "http://www.w3.org/ns/odrl.jsonld"
30
30
  },
31
31
  {
32
32
  "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
@@ -45,7 +45,7 @@
45
45
  },
46
46
  {
47
47
  "type": "string",
48
- "const": "http://www.w3.org/ns/odrl/2"
48
+ "const": "http://www.w3.org/ns/odrl.jsonld"
49
49
  }
50
50
  ],
51
51
  "items": {
@@ -8,10 +8,9 @@ export declare const OdrlContexts: {
8
8
  readonly Namespace: "http://www.w3.org/ns/odrl/2/";
9
9
  /**
10
10
  * The value to use in @context.
11
- * Note: Context differs from Namespace (no trailing slash) as per ODRL 2.2 specification.
12
- * The ODRL JSON-LD context URL format does not include a trailing slash.
11
+ * Note: Context points to the JSON-LD url as per ODRL 2.2 specification.
13
12
  */
14
- readonly Context: "http://www.w3.org/ns/odrl/2";
13
+ readonly Context: "http://www.w3.org/ns/odrl.jsonld";
15
14
  /**
16
15
  * The JSON-LD Context URL.
17
16
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @twin.org/standards-w3c-odrl - Changelog
2
2
 
3
+ ## [0.0.3-next.18](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.3-next.17...standards-w3c-odrl-v0.0.3-next.18) (2026-01-21)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * json-ld context for odrl ([78b694d](https://github.com/twinfoundation/standards/commit/78b694d922b1f3a5b57978c8d4586d22ff19970a))
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.17 to 0.0.3-next.18
16
+ * @twin.org/standards-dublin-core bumped from 0.0.3-next.17 to 0.0.3-next.18
17
+
3
18
  ## [0.0.3-next.17](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.3-next.16...standards-w3c-odrl-v0.0.3-next.17) (2026-01-21)
4
19
 
5
20
 
@@ -14,11 +14,10 @@ The canonical RDF namespace URI.
14
14
 
15
15
  ### Context
16
16
 
17
- > `readonly` **Context**: `"http://www.w3.org/ns/odrl/2"` = `"http://www.w3.org/ns/odrl/2"`
17
+ > `readonly` **Context**: `"http://www.w3.org/ns/odrl.jsonld"` = `"http://www.w3.org/ns/odrl.jsonld"`
18
18
 
19
19
  The value to use in @context.
20
- Note: Context differs from Namespace (no trailing slash) as per ODRL 2.2 specification.
21
- The ODRL JSON-LD context URL format does not include a trailing slash.
20
+ Note: Context points to the JSON-LD url as per ODRL 2.2 specification.
22
21
 
23
22
  ### JsonLdContext
24
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/standards-w3c-odrl",
3
- "version": "0.0.3-next.17",
3
+ "version": "0.0.3-next.18",
4
4
  "description": "Models which define the structure of W3C ODRL Standard",
5
5
  "repository": {
6
6
  "type": "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.17",
21
- "@twin.org/standards-w3c-vcard": "0.0.3-next.17",
20
+ "@twin.org/standards-dublin-core": "0.0.3-next.18",
21
+ "@twin.org/standards-w3c-vcard": "0.0.3-next.18",
22
22
  "@twin.org/web": "next"
23
23
  },
24
24
  "main": "./dist/es/index.js",