@twin.org/data-json-ld 0.0.1-next.29 → 0.0.1-next.30

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.
Files changed (26) hide show
  1. package/dist/cjs/index.cjs +61 -11
  2. package/dist/esm/index.mjs +62 -12
  3. package/dist/types/utils/jsonLdProcessor.d.ts +32 -4
  4. package/docs/changelog.md +14 -0
  5. package/docs/reference/classes/JsonLdDataTypes.md +3 -3
  6. package/docs/reference/classes/JsonLdHelper.md +7 -5
  7. package/docs/reference/classes/JsonLdProcessor.md +117 -15
  8. package/docs/reference/interfaces/IJsonLdNodeObject.md +10 -10
  9. package/docs/reference/type-aliases/IJsonLdContainerType.md +1 -1
  10. package/docs/reference/type-aliases/IJsonLdContainerTypeArray.md +1 -1
  11. package/docs/reference/type-aliases/IJsonLdContextDefinitionElement.md +1 -1
  12. package/docs/reference/type-aliases/IJsonLdContextDefinitionRoot.md +1 -1
  13. package/docs/reference/type-aliases/IJsonLdDocument.md +1 -1
  14. package/docs/reference/type-aliases/IJsonLdExpandedTermDefinition.md +1 -1
  15. package/docs/reference/type-aliases/IJsonLdIncludedBlock.md +1 -1
  16. package/docs/reference/type-aliases/IJsonLdIndexMapItem.md +1 -1
  17. package/docs/reference/type-aliases/IJsonLdJsonArray.md +1 -1
  18. package/docs/reference/type-aliases/IJsonLdJsonPrimitive.md +1 -1
  19. package/docs/reference/type-aliases/IJsonLdJsonValue.md +1 -1
  20. package/docs/reference/type-aliases/IJsonLdKeyword.md +50 -6
  21. package/docs/reference/type-aliases/IJsonLdListOrSetItem.md +1 -1
  22. package/docs/reference/type-aliases/IJsonLdNodePrimitive.md +1 -1
  23. package/docs/reference/type-aliases/IJsonLdValueObject.md +1 -1
  24. package/docs/reference/type-aliases/JsonLdContexts.md +1 -1
  25. package/docs/reference/type-aliases/JsonLdTypes.md +1 -1
  26. package/package.json +2 -2
@@ -1533,13 +1533,61 @@ class JsonLdProcessor {
1533
1533
  */
1534
1534
  static _CLASS_NAME = "JsonLdProcessor";
1535
1535
  /**
1536
- * Redirects to use during document resolution.
1536
+ * The document loader to use.
1537
+ * @param documentLoader The document loader to use.
1537
1538
  */
1538
- static _redirects = [];
1539
+ static setDocumentLoader(documentLoader) {
1540
+ core.SharedStore.set("jsonLdDocumentLoader", documentLoader);
1541
+ }
1539
1542
  /**
1540
- * The document loader to use.
1543
+ * The document loader to use for retrieving JSON-LD documents.
1544
+ * @returns The document loader.
1545
+ */
1546
+ static getDocumentLoader() {
1547
+ let documentLoader = core.SharedStore.get("jsonLdDocumentLoader");
1548
+ if (core.Is.empty(documentLoader)) {
1549
+ documentLoader = async (url) => JsonLdProcessor.documentLoader(url);
1550
+ }
1551
+ return documentLoader;
1552
+ }
1553
+ /**
1554
+ * Set the cache time limit for documents.
1555
+ * @param cacheLimitMs The cache limit in milliseconds.
1556
+ */
1557
+ static setCacheLimit(cacheLimitMs) {
1558
+ core.SharedStore.set("jsonLdDocumentCacheLimit", cacheLimitMs);
1559
+ }
1560
+ /**
1561
+ * Get the cache limit for documents.
1562
+ * @returns The document loader.
1541
1563
  */
1542
- static DOCUMENT_LOADER = async (url) => JsonLdProcessor.documentLoader(url);
1564
+ static getCacheLimit() {
1565
+ let cacheLimitMs = core.SharedStore.get("jsonLdDocumentCacheLimit");
1566
+ if (core.Is.empty(cacheLimitMs)) {
1567
+ cacheLimitMs = 3600000;
1568
+ core.SharedStore.set("jsonLdDocumentCacheLimit", cacheLimitMs);
1569
+ }
1570
+ return cacheLimitMs;
1571
+ }
1572
+ /**
1573
+ * Set the global redirects for JSON-LD, use addRedirect for default handling.
1574
+ * @param redirects The redirects to use.
1575
+ */
1576
+ static setRedirects(redirects) {
1577
+ core.SharedStore.set("jsonLdRedirects", redirects);
1578
+ }
1579
+ /**
1580
+ * Get the global redirects for JSON-LD.
1581
+ * @returns The registered redirects.
1582
+ */
1583
+ static getRedirects() {
1584
+ let redirects = core.SharedStore.get("jsonLdRedirects");
1585
+ if (core.Is.empty(redirects)) {
1586
+ redirects = [];
1587
+ core.SharedStore.set("jsonLdRedirects", redirects);
1588
+ }
1589
+ return redirects;
1590
+ }
1543
1591
  /**
1544
1592
  * Compact a document according to a particular context.
1545
1593
  * @param document The JSON-LD document to compact.
@@ -1566,7 +1614,7 @@ class JsonLdProcessor {
1566
1614
  }
1567
1615
  }
1568
1616
  const compacted = await jsonLd.compact(core.ObjectHelper.removeEmptyProperties(document), context, {
1569
- documentLoader: JsonLdProcessor.DOCUMENT_LOADER
1617
+ documentLoader: JsonLdProcessor.getDocumentLoader()
1570
1618
  });
1571
1619
  return compacted;
1572
1620
  }
@@ -1586,7 +1634,7 @@ class JsonLdProcessor {
1586
1634
  try {
1587
1635
  if (core.Is.object(compacted)) {
1588
1636
  const expanded = await jsonLd.expand(core.ObjectHelper.removeEmptyProperties(compacted), {
1589
- documentLoader: JsonLdProcessor.DOCUMENT_LOADER
1637
+ documentLoader: JsonLdProcessor.getDocumentLoader()
1590
1638
  });
1591
1639
  return expanded;
1592
1640
  }
@@ -1609,7 +1657,7 @@ class JsonLdProcessor {
1609
1657
  const normalized = await jsonLd.canonize(core.ObjectHelper.removeEmptyProperties(document), {
1610
1658
  algorithm: options?.algorithm ?? "URDNA2015",
1611
1659
  format: "application/n-quads",
1612
- documentLoader: JsonLdProcessor.DOCUMENT_LOADER
1660
+ documentLoader: JsonLdProcessor.getDocumentLoader()
1613
1661
  });
1614
1662
  return normalized;
1615
1663
  }
@@ -1624,8 +1672,9 @@ class JsonLdProcessor {
1624
1672
  * @param to The URL to redirect to.
1625
1673
  */
1626
1674
  static addRedirect(from, to) {
1627
- if (!this._redirects.some(r => r.from === from)) {
1628
- this._redirects.push({ from, to });
1675
+ const redirects = JsonLdProcessor.getRedirects();
1676
+ if (!redirects.some(r => r.from === from)) {
1677
+ redirects.push({ from, to });
1629
1678
  }
1630
1679
  }
1631
1680
  /**
@@ -1773,7 +1822,8 @@ class JsonLdProcessor {
1773
1822
  * @internal
1774
1823
  */
1775
1824
  static async documentLoader(url) {
1776
- for (const redirect of JsonLdProcessor._redirects) {
1825
+ const redirects = JsonLdProcessor.getRedirects();
1826
+ for (const redirect of redirects) {
1777
1827
  if (redirect.from.test(url)) {
1778
1828
  url = redirect.to;
1779
1829
  break;
@@ -1781,7 +1831,7 @@ class JsonLdProcessor {
1781
1831
  }
1782
1832
  // Cache the results for an hour
1783
1833
  const response = await web.FetchHelper.fetchJson(JsonLdProcessor._CLASS_NAME, url, web.HttpMethod.GET, undefined, {
1784
- cacheTtlMs: 3600000,
1834
+ cacheTtlMs: JsonLdProcessor.getCacheLimit(),
1785
1835
  headers: {
1786
1836
  [web.HeaderTypes.Accept]: `${web.MimeTypes.JsonLd},${web.MimeTypes.Json}`
1787
1837
  }
@@ -1,5 +1,5 @@
1
1
  import { DataTypeHandlerFactory, DataTypeHelper } from '@twin.org/data-core';
2
- import { Is, ObjectHelper, GeneralError } from '@twin.org/core';
2
+ import { Is, SharedStore, ObjectHelper, GeneralError } from '@twin.org/core';
3
3
  import { FetchHelper, HttpMethod, MimeTypes, HeaderTypes } from '@twin.org/web';
4
4
  import jsonLd from 'jsonld';
5
5
 
@@ -1531,13 +1531,61 @@ class JsonLdProcessor {
1531
1531
  */
1532
1532
  static _CLASS_NAME = "JsonLdProcessor";
1533
1533
  /**
1534
- * Redirects to use during document resolution.
1534
+ * The document loader to use.
1535
+ * @param documentLoader The document loader to use.
1535
1536
  */
1536
- static _redirects = [];
1537
+ static setDocumentLoader(documentLoader) {
1538
+ SharedStore.set("jsonLdDocumentLoader", documentLoader);
1539
+ }
1537
1540
  /**
1538
- * The document loader to use.
1541
+ * The document loader to use for retrieving JSON-LD documents.
1542
+ * @returns The document loader.
1543
+ */
1544
+ static getDocumentLoader() {
1545
+ let documentLoader = SharedStore.get("jsonLdDocumentLoader");
1546
+ if (Is.empty(documentLoader)) {
1547
+ documentLoader = async (url) => JsonLdProcessor.documentLoader(url);
1548
+ }
1549
+ return documentLoader;
1550
+ }
1551
+ /**
1552
+ * Set the cache time limit for documents.
1553
+ * @param cacheLimitMs The cache limit in milliseconds.
1554
+ */
1555
+ static setCacheLimit(cacheLimitMs) {
1556
+ SharedStore.set("jsonLdDocumentCacheLimit", cacheLimitMs);
1557
+ }
1558
+ /**
1559
+ * Get the cache limit for documents.
1560
+ * @returns The document loader.
1539
1561
  */
1540
- static DOCUMENT_LOADER = async (url) => JsonLdProcessor.documentLoader(url);
1562
+ static getCacheLimit() {
1563
+ let cacheLimitMs = SharedStore.get("jsonLdDocumentCacheLimit");
1564
+ if (Is.empty(cacheLimitMs)) {
1565
+ cacheLimitMs = 3600000;
1566
+ SharedStore.set("jsonLdDocumentCacheLimit", cacheLimitMs);
1567
+ }
1568
+ return cacheLimitMs;
1569
+ }
1570
+ /**
1571
+ * Set the global redirects for JSON-LD, use addRedirect for default handling.
1572
+ * @param redirects The redirects to use.
1573
+ */
1574
+ static setRedirects(redirects) {
1575
+ SharedStore.set("jsonLdRedirects", redirects);
1576
+ }
1577
+ /**
1578
+ * Get the global redirects for JSON-LD.
1579
+ * @returns The registered redirects.
1580
+ */
1581
+ static getRedirects() {
1582
+ let redirects = SharedStore.get("jsonLdRedirects");
1583
+ if (Is.empty(redirects)) {
1584
+ redirects = [];
1585
+ SharedStore.set("jsonLdRedirects", redirects);
1586
+ }
1587
+ return redirects;
1588
+ }
1541
1589
  /**
1542
1590
  * Compact a document according to a particular context.
1543
1591
  * @param document The JSON-LD document to compact.
@@ -1564,7 +1612,7 @@ class JsonLdProcessor {
1564
1612
  }
1565
1613
  }
1566
1614
  const compacted = await jsonLd.compact(ObjectHelper.removeEmptyProperties(document), context, {
1567
- documentLoader: JsonLdProcessor.DOCUMENT_LOADER
1615
+ documentLoader: JsonLdProcessor.getDocumentLoader()
1568
1616
  });
1569
1617
  return compacted;
1570
1618
  }
@@ -1584,7 +1632,7 @@ class JsonLdProcessor {
1584
1632
  try {
1585
1633
  if (Is.object(compacted)) {
1586
1634
  const expanded = await jsonLd.expand(ObjectHelper.removeEmptyProperties(compacted), {
1587
- documentLoader: JsonLdProcessor.DOCUMENT_LOADER
1635
+ documentLoader: JsonLdProcessor.getDocumentLoader()
1588
1636
  });
1589
1637
  return expanded;
1590
1638
  }
@@ -1607,7 +1655,7 @@ class JsonLdProcessor {
1607
1655
  const normalized = await jsonLd.canonize(ObjectHelper.removeEmptyProperties(document), {
1608
1656
  algorithm: options?.algorithm ?? "URDNA2015",
1609
1657
  format: "application/n-quads",
1610
- documentLoader: JsonLdProcessor.DOCUMENT_LOADER
1658
+ documentLoader: JsonLdProcessor.getDocumentLoader()
1611
1659
  });
1612
1660
  return normalized;
1613
1661
  }
@@ -1622,8 +1670,9 @@ class JsonLdProcessor {
1622
1670
  * @param to The URL to redirect to.
1623
1671
  */
1624
1672
  static addRedirect(from, to) {
1625
- if (!this._redirects.some(r => r.from === from)) {
1626
- this._redirects.push({ from, to });
1673
+ const redirects = JsonLdProcessor.getRedirects();
1674
+ if (!redirects.some(r => r.from === from)) {
1675
+ redirects.push({ from, to });
1627
1676
  }
1628
1677
  }
1629
1678
  /**
@@ -1771,7 +1820,8 @@ class JsonLdProcessor {
1771
1820
  * @internal
1772
1821
  */
1773
1822
  static async documentLoader(url) {
1774
- for (const redirect of JsonLdProcessor._redirects) {
1823
+ const redirects = JsonLdProcessor.getRedirects();
1824
+ for (const redirect of redirects) {
1775
1825
  if (redirect.from.test(url)) {
1776
1826
  url = redirect.to;
1777
1827
  break;
@@ -1779,7 +1829,7 @@ class JsonLdProcessor {
1779
1829
  }
1780
1830
  // Cache the results for an hour
1781
1831
  const response = await FetchHelper.fetchJson(JsonLdProcessor._CLASS_NAME, url, HttpMethod.GET, undefined, {
1782
- cacheTtlMs: 3600000,
1832
+ cacheTtlMs: JsonLdProcessor.getCacheLimit(),
1783
1833
  headers: {
1784
1834
  [HeaderTypes.Accept]: `${MimeTypes.JsonLd},${MimeTypes.Json}`
1785
1835
  }
@@ -7,13 +7,41 @@ import type { IJsonLdNodeObject } from "../models/IJsonLdNodeObject";
7
7
  */
8
8
  export declare class JsonLdProcessor {
9
9
  /**
10
- * Redirects to use during document resolution.
10
+ * The document loader to use.
11
+ * @param documentLoader The document loader to use.
11
12
  */
12
- private static readonly _redirects;
13
+ static setDocumentLoader(documentLoader: (url: Url) => Promise<RemoteDocument>): void;
13
14
  /**
14
- * The document loader to use.
15
+ * The document loader to use for retrieving JSON-LD documents.
16
+ * @returns The document loader.
17
+ */
18
+ static getDocumentLoader(): (url: Url) => Promise<RemoteDocument>;
19
+ /**
20
+ * Set the cache time limit for documents.
21
+ * @param cacheLimitMs The cache limit in milliseconds.
22
+ */
23
+ static setCacheLimit(cacheLimitMs: number): void;
24
+ /**
25
+ * Get the cache limit for documents.
26
+ * @returns The document loader.
27
+ */
28
+ static getCacheLimit(): number;
29
+ /**
30
+ * Set the global redirects for JSON-LD, use addRedirect for default handling.
31
+ * @param redirects The redirects to use.
32
+ */
33
+ static setRedirects(redirects: {
34
+ from: RegExp;
35
+ to: string;
36
+ }[]): void;
37
+ /**
38
+ * Get the global redirects for JSON-LD.
39
+ * @returns The registered redirects.
15
40
  */
16
- static DOCUMENT_LOADER: (url: Url) => Promise<RemoteDocument>;
41
+ static getRedirects(): {
42
+ from: RegExp;
43
+ to: string;
44
+ }[];
17
45
  /**
18
46
  * Compact a document according to a particular context.
19
47
  * @param document The JSON-LD document to compact.
package/docs/changelog.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @twin.org/data-json-ld - Changelog
2
2
 
3
+ ## [0.0.1-next.30](https://github.com/twinfoundation/data/compare/data-json-ld-v0.0.1-next.29...data-json-ld-v0.0.1-next.30) (2025-04-17)
4
+
5
+
6
+ ### Features
7
+
8
+ * use shared store mechanism ([#3](https://github.com/twinfoundation/data/issues/3)) ([33eb221](https://github.com/twinfoundation/data/commit/33eb221ccec2b4a79549c06e9a04225009b93a46))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/data-core bumped from 0.0.1-next.29 to 0.0.1-next.30
16
+
3
17
  ## [0.0.1-next.29](https://github.com/twinfoundation/data/compare/data-json-ld-v0.0.1-next.28...data-json-ld-v0.0.1-next.29) (2025-03-28)
4
18
 
5
19
 
@@ -4,13 +4,13 @@ Handle all the data types for JSON-LD.
4
4
 
5
5
  ## Constructors
6
6
 
7
- ### new JsonLdDataTypes()
7
+ ### Constructor
8
8
 
9
- > **new JsonLdDataTypes**(): [`JsonLdDataTypes`](JsonLdDataTypes.md)
9
+ > **new JsonLdDataTypes**(): `JsonLdDataTypes`
10
10
 
11
11
  #### Returns
12
12
 
13
- [`JsonLdDataTypes`](JsonLdDataTypes.md)
13
+ `JsonLdDataTypes`
14
14
 
15
15
  ## Methods
16
16
 
@@ -4,25 +4,27 @@ Class to help with JSON LD.
4
4
 
5
5
  ## Constructors
6
6
 
7
- ### new JsonLdHelper()
7
+ ### Constructor
8
8
 
9
- > **new JsonLdHelper**(): [`JsonLdHelper`](JsonLdHelper.md)
9
+ > **new JsonLdHelper**(): `JsonLdHelper`
10
10
 
11
11
  #### Returns
12
12
 
13
- [`JsonLdHelper`](JsonLdHelper.md)
13
+ `JsonLdHelper`
14
14
 
15
15
  ## Methods
16
16
 
17
17
  ### validate()
18
18
 
19
- > `static` **validate**\<`T`\>(`document`, `validationFailures`, `validationMode`?): `Promise`\<`boolean`\>
19
+ > `static` **validate**\<`T`\>(`document`, `validationFailures`, `validationMode?`): `Promise`\<`boolean`\>
20
20
 
21
21
  Validate a JSON-LD document.
22
22
 
23
23
  #### Type Parameters
24
24
 
25
- **T** *extends* [`IJsonLdDocument`](../type-aliases/IJsonLdDocument.md) = [`IJsonLdDocument`](../type-aliases/IJsonLdDocument.md)
25
+ ##### T
26
+
27
+ `T` *extends* [`IJsonLdDocument`](../type-aliases/IJsonLdDocument.md) = [`IJsonLdDocument`](../type-aliases/IJsonLdDocument.md)
26
28
 
27
29
  #### Parameters
28
30
 
@@ -4,43 +4,139 @@ JSON-LD Processor.
4
4
 
5
5
  ## Constructors
6
6
 
7
- ### new JsonLdProcessor()
7
+ ### Constructor
8
8
 
9
- > **new JsonLdProcessor**(): [`JsonLdProcessor`](JsonLdProcessor.md)
9
+ > **new JsonLdProcessor**(): `JsonLdProcessor`
10
10
 
11
11
  #### Returns
12
12
 
13
- [`JsonLdProcessor`](JsonLdProcessor.md)
13
+ `JsonLdProcessor`
14
14
 
15
15
  ## Methods
16
16
 
17
- ### DOCUMENT\_LOADER()
17
+ ### setDocumentLoader()
18
18
 
19
- > `static` **DOCUMENT\_LOADER**(`url`): `Promise`\<`RemoteDocument`\>
19
+ > `static` **setDocumentLoader**(`documentLoader`): `void`
20
20
 
21
21
  The document loader to use.
22
22
 
23
23
  #### Parameters
24
24
 
25
- ##### url
25
+ ##### documentLoader
26
26
 
27
- `string`
27
+ (`url`) => `Promise`\<`RemoteDocument`\>
28
+
29
+ The document loader to use.
28
30
 
29
31
  #### Returns
30
32
 
33
+ `void`
34
+
35
+ ***
36
+
37
+ ### getDocumentLoader()
38
+
39
+ > `static` **getDocumentLoader**(): (`url`) => `Promise`\<`RemoteDocument`\>
40
+
41
+ The document loader to use for retrieving JSON-LD documents.
42
+
43
+ #### Returns
44
+
45
+ The document loader.
46
+
47
+ > (`url`): `Promise`\<`RemoteDocument`\>
48
+
49
+ ##### Parameters
50
+
51
+ ###### url
52
+
53
+ `string`
54
+
55
+ ##### Returns
56
+
31
57
  `Promise`\<`RemoteDocument`\>
32
58
 
33
59
  ***
34
60
 
61
+ ### setCacheLimit()
62
+
63
+ > `static` **setCacheLimit**(`cacheLimitMs`): `void`
64
+
65
+ Set the cache time limit for documents.
66
+
67
+ #### Parameters
68
+
69
+ ##### cacheLimitMs
70
+
71
+ `number`
72
+
73
+ The cache limit in milliseconds.
74
+
75
+ #### Returns
76
+
77
+ `void`
78
+
79
+ ***
80
+
81
+ ### getCacheLimit()
82
+
83
+ > `static` **getCacheLimit**(): `number`
84
+
85
+ Get the cache limit for documents.
86
+
87
+ #### Returns
88
+
89
+ `number`
90
+
91
+ The document loader.
92
+
93
+ ***
94
+
95
+ ### setRedirects()
96
+
97
+ > `static` **setRedirects**(`redirects`): `void`
98
+
99
+ Set the global redirects for JSON-LD, use addRedirect for default handling.
100
+
101
+ #### Parameters
102
+
103
+ ##### redirects
104
+
105
+ `object`[]
106
+
107
+ The redirects to use.
108
+
109
+ #### Returns
110
+
111
+ `void`
112
+
113
+ ***
114
+
115
+ ### getRedirects()
116
+
117
+ > `static` **getRedirects**(): `object`[]
118
+
119
+ Get the global redirects for JSON-LD.
120
+
121
+ #### Returns
122
+
123
+ `object`[]
124
+
125
+ The registered redirects.
126
+
127
+ ***
128
+
35
129
  ### compact()
36
130
 
37
- > `static` **compact**\<`T`\>(`document`, `context`?): `Promise`\<`T`\>
131
+ > `static` **compact**\<`T`\>(`document`, `context?`): `Promise`\<`T`\>
38
132
 
39
133
  Compact a document according to a particular context.
40
134
 
41
135
  #### Type Parameters
42
136
 
43
- **T**
137
+ ##### T
138
+
139
+ `T`
44
140
 
45
141
  #### Parameters
46
142
 
@@ -72,7 +168,9 @@ Expand a document, removing its context.
72
168
 
73
169
  #### Type Parameters
74
170
 
75
- **T**
171
+ ##### T
172
+
173
+ `T`
76
174
 
77
175
  #### Parameters
78
176
 
@@ -92,13 +190,15 @@ The expanded JSON-LD document.
92
190
 
93
191
  ### canonize()
94
192
 
95
- > `static` **canonize**\<`T`\>(`document`, `options`?): `Promise`\<`string`\>
193
+ > `static` **canonize**\<`T`\>(`document`, `options?`): `Promise`\<`string`\>
96
194
 
97
195
  Canonize a document.
98
196
 
99
197
  #### Type Parameters
100
198
 
101
- **T** *extends* [`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md)
199
+ ##### T
200
+
201
+ `T` *extends* [`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md)
102
202
 
103
203
  #### Parameters
104
204
 
@@ -182,13 +282,15 @@ The combined context.
182
282
 
183
283
  ### gatherContexts()
184
284
 
185
- > `static` **gatherContexts**\<`T`\>(`element`, `initial`?): `undefined` \| [`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md)
285
+ > `static` **gatherContexts**\<`T`\>(`element`, `initial?`): `undefined` \| [`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md)
186
286
 
187
287
  Gather all the contexts from the element and it's children.
188
288
 
189
289
  #### Type Parameters
190
290
 
191
- **T**
291
+ ##### T
292
+
293
+ `T`
192
294
 
193
295
  #### Parameters
194
296
 
@@ -214,7 +316,7 @@ The combined contexts.
214
316
 
215
317
  ### removeContexts()
216
318
 
217
- > `static` **removeContexts**(`context`, `match`?): `undefined` \| [`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md)
319
+ > `static` **removeContexts**(`context`, `match?`): `undefined` \| [`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md)
218
320
 
219
321
  Remove all the contexts that match the pattern.
220
322
 
@@ -13,7 +13,7 @@ https://www.w3.org/TR/json-ld11/#node-objects
13
13
 
14
14
  ## Indexable
15
15
 
16
- \[`key`: `string`\]: `undefined` \| `null` \| `string` \| `number` \| `boolean` \| `string`[] \| [`IJsonLdContextDefinition`](IJsonLdContextDefinition.md) \| [`IJsonLdContextDefinitionElement`](../type-aliases/IJsonLdContextDefinitionElement.md)[] \| [`IJsonLdIdMap`](IJsonLdIdMap.md) \| [`IJsonLdNodeObject`](IJsonLdNodeObject.md) \| [`IJsonLdListObject`](IJsonLdListObject.md) \| `object` & `object` \| `object` & `object` \| `object` & `object` \| [`IJsonLdSetObject`](IJsonLdSetObject.md) \| [`IJsonLdJsonObject`](IJsonLdJsonObject.md) \| [`IJsonLdIndexMap`](IJsonLdIndexMap.md) \| [`IJsonLdLanguageMap`](IJsonLdLanguageMap.md) \| [`IJsonLdGraphObject`](IJsonLdGraphObject.md) \| [`IJsonLdNodeObject`](IJsonLdNodeObject.md)[] \| [`IJsonLdJsonObject`](IJsonLdJsonObject.md)[] \| \{\} \| [`IJsonLdTypeMap`](IJsonLdTypeMap.md) \| [`IJsonLdNodePrimitive`](../type-aliases/IJsonLdNodePrimitive.md)[]
16
+ \[`key`: `string`\]: `undefined` \| `null` \| `string` \| `number` \| `boolean` \| `string`[] \| [`IJsonLdContextDefinition`](IJsonLdContextDefinition.md) \| [`IJsonLdContextDefinitionElement`](../type-aliases/IJsonLdContextDefinitionElement.md)[] \| [`IJsonLdIdMap`](IJsonLdIdMap.md) \| `IJsonLdNodeObject` \| [`IJsonLdListObject`](IJsonLdListObject.md) \| `object` & `object` \| `object` & `object` \| `object` & `object` \| [`IJsonLdSetObject`](IJsonLdSetObject.md) \| [`IJsonLdJsonObject`](IJsonLdJsonObject.md) \| [`IJsonLdIndexMap`](IJsonLdIndexMap.md) \| [`IJsonLdLanguageMap`](IJsonLdLanguageMap.md) \| [`IJsonLdGraphObject`](IJsonLdGraphObject.md) \| `IJsonLdNodeObject`[] \| [`IJsonLdJsonObject`](IJsonLdJsonObject.md)[] \| \{[`key`: `string`]: `string`; \} \| [`IJsonLdTypeMap`](IJsonLdTypeMap.md) \| [`IJsonLdNodePrimitive`](../type-aliases/IJsonLdNodePrimitive.md)[]
17
17
 
18
18
  ## Properties
19
19
 
@@ -23,7 +23,7 @@ https://www.w3.org/TR/json-ld11/#node-objects
23
23
 
24
24
  #### Inherited from
25
25
 
26
- [`IJsonLdObject`](IJsonLdObject.md).[`@context`](IJsonLdObject.md#@context)
26
+ [`IJsonLdObject`](IJsonLdObject.md).[`@context`](IJsonLdObject.md#context)
27
27
 
28
28
  ***
29
29
 
@@ -33,7 +33,7 @@ https://www.w3.org/TR/json-ld11/#node-objects
33
33
 
34
34
  #### Inherited from
35
35
 
36
- [`IJsonLdObject`](IJsonLdObject.md).[`@id`](IJsonLdObject.md#@id)
36
+ [`IJsonLdObject`](IJsonLdObject.md).[`@id`](IJsonLdObject.md#id)
37
37
 
38
38
  ***
39
39
 
@@ -43,17 +43,17 @@ https://www.w3.org/TR/json-ld11/#node-objects
43
43
 
44
44
  #### Inherited from
45
45
 
46
- [`IJsonLdObject`](IJsonLdObject.md).[`@included`](IJsonLdObject.md#@included)
46
+ [`IJsonLdObject`](IJsonLdObject.md).[`@included`](IJsonLdObject.md#included)
47
47
 
48
48
  ***
49
49
 
50
50
  ### @graph?
51
51
 
52
- > `optional` **@graph**: [`IJsonLdNodeObject`](IJsonLdNodeObject.md) \| [`IJsonLdNodeObject`](IJsonLdNodeObject.md)[]
52
+ > `optional` **@graph**: `IJsonLdNodeObject` \| `IJsonLdNodeObject`[]
53
53
 
54
54
  #### Inherited from
55
55
 
56
- [`IJsonLdObject`](IJsonLdObject.md).[`@graph`](IJsonLdObject.md#@graph)
56
+ [`IJsonLdObject`](IJsonLdObject.md).[`@graph`](IJsonLdObject.md#graph)
57
57
 
58
58
  ***
59
59
 
@@ -63,7 +63,7 @@ https://www.w3.org/TR/json-ld11/#node-objects
63
63
 
64
64
  #### Inherited from
65
65
 
66
- [`IJsonLdObject`](IJsonLdObject.md).[`@nest`](IJsonLdObject.md#@nest)
66
+ [`IJsonLdObject`](IJsonLdObject.md).[`@nest`](IJsonLdObject.md#nest)
67
67
 
68
68
  ***
69
69
 
@@ -73,7 +73,7 @@ https://www.w3.org/TR/json-ld11/#node-objects
73
73
 
74
74
  #### Inherited from
75
75
 
76
- [`IJsonLdObject`](IJsonLdObject.md).[`@type`](IJsonLdObject.md#@type)
76
+ [`IJsonLdObject`](IJsonLdObject.md).[`@type`](IJsonLdObject.md#type)
77
77
 
78
78
  ***
79
79
 
@@ -87,7 +87,7 @@ https://www.w3.org/TR/json-ld11/#node-objects
87
87
 
88
88
  #### Inherited from
89
89
 
90
- [`IJsonLdObject`](IJsonLdObject.md).[`@reverse`](IJsonLdObject.md#@reverse)
90
+ [`IJsonLdObject`](IJsonLdObject.md).[`@reverse`](IJsonLdObject.md#reverse)
91
91
 
92
92
  ***
93
93
 
@@ -97,4 +97,4 @@ https://www.w3.org/TR/json-ld11/#node-objects
97
97
 
98
98
  #### Inherited from
99
99
 
100
- [`IJsonLdObject`](IJsonLdObject.md).[`@index`](IJsonLdObject.md#@index)
100
+ [`IJsonLdObject`](IJsonLdObject.md).[`@index`](IJsonLdObject.md#index)
@@ -1,5 +1,5 @@
1
1
  # Type Alias: IJsonLdContainerType
2
2
 
3
- > **IJsonLdContainerType**: `"@language"` \| `"@index"` \| `"@id"` \| `"@graph"` \| `"@type"`
3
+ > **IJsonLdContainerType** = `"@language"` \| `"@index"` \| `"@id"` \| `"@graph"` \| `"@type"`
4
4
 
5
5
  Helper Types
@@ -1,5 +1,5 @@
1
1
  # Type Alias: IJsonLdContainerTypeArray
2
2
 
3
- > **IJsonLdContainerTypeArray**: \[`"@graph"`, `"@id"`\] \| \[`"@id"`, `"@graph"`\] \| \[`"@set"`, `"@graph"`, `"@id"`\] \| \[`"@set"`, `"@id"`, `"@graph"`\] \| \[`"@graph"`, `"@set"`, `"@id"`\] \| \[`"@id"`, `"@set"`, `"@graph"`\] \| \[`"@graph"`, `"@id"`, `"@set"`\] \| \[`"@id"`, `"@graph"`, `"@set"`\] \| \[`"@set"`, [`IJsonLdContainerType`](IJsonLdContainerType.md)\] \| \[[`IJsonLdContainerType`](IJsonLdContainerType.md), `"@set"`\]
3
+ > **IJsonLdContainerTypeArray** = \[`"@graph"`, `"@id"`\] \| \[`"@id"`, `"@graph"`\] \| \[`"@set"`, `"@graph"`, `"@id"`\] \| \[`"@set"`, `"@id"`, `"@graph"`\] \| \[`"@graph"`, `"@set"`, `"@id"`\] \| \[`"@id"`, `"@set"`, `"@graph"`\] \| \[`"@graph"`, `"@id"`, `"@set"`\] \| \[`"@id"`, `"@graph"`, `"@set"`\] \| \[`"@set"`, [`IJsonLdContainerType`](IJsonLdContainerType.md)\] \| \[[`IJsonLdContainerType`](IJsonLdContainerType.md), `"@set"`\]
4
4
 
5
5
  Helper Types.
@@ -1,5 +1,5 @@
1
1
  # Type Alias: IJsonLdContextDefinitionElement
2
2
 
3
- > **IJsonLdContextDefinitionElement**: `null` \| `string` \| [`IJsonLdContextDefinition`](../interfaces/IJsonLdContextDefinition.md)
3
+ > **IJsonLdContextDefinitionElement** = `null` \| `string` \| [`IJsonLdContextDefinition`](../interfaces/IJsonLdContextDefinition.md)
4
4
 
5
5
  A context definition element is used to define the types of a context definition.
@@ -1,5 +1,5 @@
1
1
  # Type Alias: IJsonLdContextDefinitionRoot
2
2
 
3
- > **IJsonLdContextDefinitionRoot**: [`IJsonLdContextDefinitionElement`](IJsonLdContextDefinitionElement.md) \| [`IJsonLdContextDefinitionElement`](IJsonLdContextDefinitionElement.md)[]
3
+ > **IJsonLdContextDefinitionRoot** = [`IJsonLdContextDefinitionElement`](IJsonLdContextDefinitionElement.md) \| [`IJsonLdContextDefinitionElement`](IJsonLdContextDefinitionElement.md)[]
4
4
 
5
5
  A context definition root is used to define the root of a context definition.
@@ -1,6 +1,6 @@
1
1
  # Type Alias: IJsonLdDocument
2
2
 
3
- > **IJsonLdDocument**: [`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md) \| [`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md)[] \| \{ `@context`: [`IJsonLdKeyword`](IJsonLdKeyword.md)\[`"@context"`\]; `@graph`: [`IJsonLdKeyword`](IJsonLdKeyword.md)\[`"@graph"`\]; \}
3
+ > **IJsonLdDocument** = [`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md) \| [`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md)[] \| \{ `@context`: [`IJsonLdKeyword`](IJsonLdKeyword.md)\[`"@context"`\]; `@graph`: [`IJsonLdKeyword`](IJsonLdKeyword.md)\[`"@graph"`\]; \}
4
4
 
5
5
  A JSON-LD document MUST be valid JSON text as described in [RFC8259],
6
6
  or some format that can be represented in the JSON-LD internal representation
@@ -1,6 +1,6 @@
1
1
  # Type Alias: IJsonLdExpandedTermDefinition
2
2
 
3
- > **IJsonLdExpandedTermDefinition**: `object` & \{ `@id`: [`IJsonLdKeyword`](IJsonLdKeyword.md)\[`"@id"`\] \| `null`; `@nest`: `"@nest"` \| `string`; `@container`: [`IJsonLdKeyword`](IJsonLdKeyword.md)\[`"@container"`\]; \} \| \{ `@reverse`: [`IJsonLdKeyword`](IJsonLdKeyword.md)\[`"@reverse"`\]; `@container`: `"@set"` \| `"@index"` \| `null`; \}
3
+ > **IJsonLdExpandedTermDefinition** = `object` & \{ `@id`: [`IJsonLdKeyword`](IJsonLdKeyword.md)\[`"@id"`\] \| `null`; `@nest`: `"@nest"` \| `string`; `@container`: [`IJsonLdKeyword`](IJsonLdKeyword.md)\[`"@container"`\]; \} \| \{ `@reverse`: [`IJsonLdKeyword`](IJsonLdKeyword.md)\[`"@reverse"`\]; `@container`: `"@set"` \| `"@index"` \| `null`; \}
4
4
 
5
5
  An expanded term definition is used to describe the mapping between a term
6
6
  and its expanded identifier, as well as other properties of the value
@@ -1,6 +1,6 @@
1
1
  # Type Alias: IJsonLdIncludedBlock
2
2
 
3
- > **IJsonLdIncludedBlock**: [`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md) \| [`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md)[]
3
+ > **IJsonLdIncludedBlock** = [`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md) \| [`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md)[]
4
4
 
5
5
  An included block is used to provide a set of node objects.
6
6
 
@@ -1,5 +1,5 @@
1
1
  # Type Alias: IJsonLdIndexMapItem
2
2
 
3
- > **IJsonLdIndexMapItem**: `null` \| `boolean` \| `number` \| `string` \| [`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md) \| [`IJsonLdValueObject`](IJsonLdValueObject.md) \| [`IJsonLdListObject`](../interfaces/IJsonLdListObject.md) \| [`IJsonLdSetObject`](../interfaces/IJsonLdSetObject.md)
3
+ > **IJsonLdIndexMapItem** = `null` \| `boolean` \| `number` \| `string` \| [`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md) \| [`IJsonLdValueObject`](IJsonLdValueObject.md) \| [`IJsonLdListObject`](../interfaces/IJsonLdListObject.md) \| [`IJsonLdSetObject`](../interfaces/IJsonLdSetObject.md)
4
4
 
5
5
  The items that can be stored in an index map.
@@ -1,5 +1,5 @@
1
1
  # Type Alias: IJsonLdJsonArray
2
2
 
3
- > **IJsonLdJsonArray**: [`IJsonLdJsonValue`](IJsonLdJsonValue.md)[]
3
+ > **IJsonLdJsonArray** = [`IJsonLdJsonValue`](IJsonLdJsonValue.md)[]
4
4
 
5
5
  JSON Type for array.
@@ -1,5 +1,5 @@
1
1
  # Type Alias: IJsonLdJsonPrimitive
2
2
 
3
- > **IJsonLdJsonPrimitive**: `string` \| `number` \| `boolean` \| `null`
3
+ > **IJsonLdJsonPrimitive** = `string` \| `number` \| `boolean` \| `null`
4
4
 
5
5
  JSON Primitive.
@@ -1,5 +1,5 @@
1
1
  # Type Alias: IJsonLdJsonValue
2
2
 
3
- > **IJsonLdJsonValue**: [`IJsonLdJsonPrimitive`](IJsonLdJsonPrimitive.md) \| [`IJsonLdJsonArray`](IJsonLdJsonArray.md) \| [`IJsonLdJsonObject`](../interfaces/IJsonLdJsonObject.md)
3
+ > **IJsonLdJsonValue** = [`IJsonLdJsonPrimitive`](IJsonLdJsonPrimitive.md) \| [`IJsonLdJsonArray`](IJsonLdJsonArray.md) \| [`IJsonLdJsonObject`](../interfaces/IJsonLdJsonObject.md)
4
4
 
5
5
  JSON Value.
@@ -1,105 +1,149 @@
1
1
  # Type Alias: IJsonLdKeyword
2
2
 
3
- > **IJsonLdKeyword**: `object`
3
+ > **IJsonLdKeyword** = `object`
4
4
 
5
5
  A list of keywords and their types.
6
6
  Only used for internal reference; not an actual interface.
7
7
  Not for export.
8
8
 
9
- ## Type declaration
9
+ ## See
10
+
11
+ https://www.w3.org/TR/json-ld/#keywords
12
+
13
+ ## Properties
10
14
 
11
15
  ### @base
12
16
 
13
17
  > **@base**: `string` \| `null`
14
18
 
19
+ ***
20
+
15
21
  ### @container
16
22
 
17
23
  > **@container**: `"@list"` \| `"@set"` \| [`IJsonLdContainerType`](IJsonLdContainerType.md) \| (`"@list"` \| `"@set"` \| [`IJsonLdContainerType`](IJsonLdContainerType.md))[] \| [`IJsonLdContainerTypeArray`](IJsonLdContainerTypeArray.md) \| `null`
18
24
 
25
+ ***
26
+
19
27
  ### @context
20
28
 
21
29
  > **@context**: [`IJsonLdContextDefinitionRoot`](IJsonLdContextDefinitionRoot.md)
22
30
 
31
+ ***
32
+
23
33
  ### @direction
24
34
 
25
35
  > **@direction**: `"ltr"` \| `"rtl"` \| `null`
26
36
 
37
+ ***
38
+
27
39
  ### @graph
28
40
 
29
41
  > **@graph**: [`IJsonLdValueObject`](IJsonLdValueObject.md) \| [`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md) \| ([`IJsonLdValueObject`](IJsonLdValueObject.md) \| [`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md))[]
30
42
 
43
+ ***
44
+
31
45
  ### @id
32
46
 
33
47
  > **@id**: `string` \| `string`[]
34
48
 
49
+ ***
50
+
35
51
  ### @import
36
52
 
37
53
  > **@import**: `string`
38
54
 
55
+ ***
56
+
39
57
  ### @included
40
58
 
41
59
  > **@included**: [`IJsonLdIncludedBlock`](IJsonLdIncludedBlock.md)
42
60
 
61
+ ***
62
+
43
63
  ### @index
44
64
 
45
65
  > **@index**: `string`
46
66
 
67
+ ***
68
+
47
69
  ### @json
48
70
 
49
71
  > **@json**: `"@json"`
50
72
 
73
+ ***
74
+
51
75
  ### @language
52
76
 
53
77
  > **@language**: `string`
54
78
 
79
+ ***
80
+
55
81
  ### @list
56
82
 
57
83
  > **@list**: [`IJsonLdListOrSetItem`](IJsonLdListOrSetItem.md) \| [`IJsonLdListOrSetItem`](IJsonLdListOrSetItem.md)[]
58
84
 
85
+ ***
86
+
59
87
  ### @nest
60
88
 
61
89
  > **@nest**: `object`
62
90
 
91
+ ***
92
+
63
93
  ### @none
64
94
 
65
95
  > **@none**: `"@none"`
66
96
 
97
+ ***
98
+
67
99
  ### @prefix
68
100
 
69
101
  > **@prefix**: `boolean`
70
102
 
103
+ ***
104
+
71
105
  ### @propagate
72
106
 
73
107
  > **@propagate**: `boolean`
74
108
 
109
+ ***
110
+
75
111
  ### @protected
76
112
 
77
113
  > **@protected**: `boolean`
78
114
 
115
+ ***
116
+
79
117
  ### @reverse
80
118
 
81
119
  > **@reverse**: `string`
82
120
 
121
+ ***
122
+
83
123
  ### @set
84
124
 
85
125
  > **@set**: [`IJsonLdListOrSetItem`](IJsonLdListOrSetItem.md) \| [`IJsonLdListOrSetItem`](IJsonLdListOrSetItem.md)[]
86
126
 
127
+ ***
128
+
87
129
  ### @type
88
130
 
89
131
  > **@type**: `string`
90
132
 
133
+ ***
134
+
91
135
  ### @value
92
136
 
93
137
  > **@value**: `null` \| `boolean` \| `number` \| `string`
94
138
 
139
+ ***
140
+
95
141
  ### @version
96
142
 
97
143
  > **@version**: `"1.1"`
98
144
 
145
+ ***
146
+
99
147
  ### @vocab
100
148
 
101
149
  > **@vocab**: `string` \| `null`
102
-
103
- ## See
104
-
105
- https://www.w3.org/TR/json-ld/#keywords
@@ -1,5 +1,5 @@
1
1
  # Type Alias: IJsonLdListOrSetItem
2
2
 
3
- > **IJsonLdListOrSetItem**: `null` \| `boolean` \| `number` \| `string` \| [`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md) \| [`IJsonLdValueObject`](IJsonLdValueObject.md)
3
+ > **IJsonLdListOrSetItem** = `null` \| `boolean` \| `number` \| `string` \| [`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md) \| [`IJsonLdValueObject`](IJsonLdValueObject.md)
4
4
 
5
5
  A list or set item can be a null, boolean, number, string, node object, or value object.
@@ -1,5 +1,5 @@
1
1
  # Type Alias: IJsonLdNodePrimitive
2
2
 
3
- > **IJsonLdNodePrimitive**: `null` \| `boolean` \| `number` \| `string` \| [`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md) \| [`IJsonLdGraphObject`](../interfaces/IJsonLdGraphObject.md) \| [`IJsonLdValueObject`](IJsonLdValueObject.md) \| [`IJsonLdListObject`](../interfaces/IJsonLdListObject.md) \| [`IJsonLdSetObject`](../interfaces/IJsonLdSetObject.md)
3
+ > **IJsonLdNodePrimitive** = `null` \| `boolean` \| `number` \| `string` \| [`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md) \| [`IJsonLdGraphObject`](../interfaces/IJsonLdGraphObject.md) \| [`IJsonLdValueObject`](IJsonLdValueObject.md) \| [`IJsonLdListObject`](../interfaces/IJsonLdListObject.md) \| [`IJsonLdSetObject`](../interfaces/IJsonLdSetObject.md)
4
4
 
5
5
  A node primitive is a JSON-LD value which is not one of the defined NodeObject properties.
@@ -1,6 +1,6 @@
1
1
  # Type Alias: IJsonLdValueObject
2
2
 
3
- > **IJsonLdValueObject**: `object` & \{ `@value`: [`IJsonLdKeyword`](IJsonLdKeyword.md)\[`"@value"`\]; `@language`: [`IJsonLdKeyword`](IJsonLdKeyword.md)\[`"@language"`\]; `@direction`: [`IJsonLdKeyword`](IJsonLdKeyword.md)\[`"@direction"`\]; \} \| \{ `@value`: [`IJsonLdKeyword`](IJsonLdKeyword.md)\[`"@value"`\]; `@type`: [`IJsonLdKeyword`](IJsonLdKeyword.md)\[`"@type"`\]; \} \| \{ `@value`: [`IJsonLdKeyword`](IJsonLdKeyword.md)\[`"@value"`\] \| [`IJsonLdJsonObject`](../interfaces/IJsonLdJsonObject.md) \| [`IJsonLdJsonArray`](IJsonLdJsonArray.md); `@type`: `"@json"`; \}
3
+ > **IJsonLdValueObject** = `object` & \{ `@value`: [`IJsonLdKeyword`](IJsonLdKeyword.md)\[`"@value"`\]; `@language`: [`IJsonLdKeyword`](IJsonLdKeyword.md)\[`"@language"`\]; `@direction`: [`IJsonLdKeyword`](IJsonLdKeyword.md)\[`"@direction"`\]; \} \| \{ `@value`: [`IJsonLdKeyword`](IJsonLdKeyword.md)\[`"@value"`\]; `@type`: [`IJsonLdKeyword`](IJsonLdKeyword.md)\[`"@type"`\]; \} \| \{ `@value`: [`IJsonLdKeyword`](IJsonLdKeyword.md)\[`"@value"`\] \| [`IJsonLdJsonObject`](../interfaces/IJsonLdJsonObject.md) \| [`IJsonLdJsonArray`](IJsonLdJsonArray.md); `@type`: `"@json"`; \}
4
4
 
5
5
  A value object is used to explicitly associate a type or a language with a value
6
6
  to create a typed value or a language-tagged string and possibly associate a base direction.
@@ -1,5 +1,5 @@
1
1
  # Type Alias: JsonLdContexts
2
2
 
3
- > **JsonLdContexts**: *typeof* [`JsonLdContexts`](../variables/JsonLdContexts.md)\[keyof *typeof* [`JsonLdContexts`](../variables/JsonLdContexts.md)\]
3
+ > **JsonLdContexts** = *typeof* [`JsonLdContexts`](../variables/JsonLdContexts.md)\[keyof *typeof* [`JsonLdContexts`](../variables/JsonLdContexts.md)\]
4
4
 
5
5
  The contexts of JSON-LD data.
@@ -1,5 +1,5 @@
1
1
  # Type Alias: JsonLdTypes
2
2
 
3
- > **JsonLdTypes**: *typeof* [`JsonLdTypes`](../variables/JsonLdTypes.md)\[keyof *typeof* [`JsonLdTypes`](../variables/JsonLdTypes.md)\]
3
+ > **JsonLdTypes** = *typeof* [`JsonLdTypes`](../variables/JsonLdTypes.md)\[keyof *typeof* [`JsonLdTypes`](../variables/JsonLdTypes.md)\]
4
4
 
5
5
  The types of JSON-LD data.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/data-json-ld",
3
- "version": "0.0.1-next.29",
3
+ "version": "0.0.1-next.30",
4
4
  "description": "Models which define the structure of JSON LD",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@twin.org/core": "next",
18
- "@twin.org/data-core": "0.0.1-next.29",
18
+ "@twin.org/data-core": "0.0.1-next.30",
19
19
  "@twin.org/entity": "next",
20
20
  "@twin.org/nameof": "next",
21
21
  "@twin.org/web": "next",