@twin.org/data-json-ld 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.
- package/docs/changelog.md +14 -0
- package/docs/reference/classes/JsonLdDataTypes.md +1 -1
- package/docs/reference/classes/JsonLdHelper.md +11 -11
- package/docs/reference/classes/JsonLdProcessor.md +15 -15
- package/docs/reference/interfaces/IJsonLdContextDefinition.md +9 -9
- package/docs/reference/interfaces/IJsonLdGraphObject.md +4 -4
- package/docs/reference/interfaces/IJsonLdListObject.md +2 -2
- package/docs/reference/interfaces/IJsonLdNodeObject.md +8 -8
- package/docs/reference/interfaces/IJsonLdObject.md +8 -8
- package/docs/reference/interfaces/IJsonLdSetObject.md +2 -2
- package/docs/reference/variables/JsonLdContexts.md +3 -3
- package/docs/reference/variables/JsonLdTypes.md +26 -26
- package/package.json +2 -2
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.18](https://github.com/twinfoundation/data/compare/data-json-ld-v0.0.3-next.17...data-json-ld-v0.0.3-next.18) (2026-03-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* **data-json-ld:** Synchronize repo versions
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/data-core bumped from 0.0.3-next.17 to 0.0.3-next.18
|
|
16
|
+
|
|
3
17
|
## [0.0.3-next.17](https://github.com/twinfoundation/data/compare/data-json-ld-v0.0.3-next.16...data-json-ld-v0.0.3-next.17) (2026-03-12)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -14,7 +14,7 @@ Class to help with JSON LD.
|
|
|
14
14
|
|
|
15
15
|
## Methods
|
|
16
16
|
|
|
17
|
-
### validate()
|
|
17
|
+
### validate() {#validate}
|
|
18
18
|
|
|
19
19
|
> `static` **validate**\<`T`\>(`document`, `validationFailures`, `options?`): `Promise`\<`boolean`\>
|
|
20
20
|
|
|
@@ -64,7 +64,7 @@ True if the document was valid.
|
|
|
64
64
|
|
|
65
65
|
***
|
|
66
66
|
|
|
67
|
-
### toNodeObject()
|
|
67
|
+
### toNodeObject() {#tonodeobject}
|
|
68
68
|
|
|
69
69
|
> `static` **toNodeObject**\<`T`\>(`object`): `T` & [`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md)
|
|
70
70
|
|
|
@@ -92,7 +92,7 @@ The JSON-LD node object.
|
|
|
92
92
|
|
|
93
93
|
***
|
|
94
94
|
|
|
95
|
-
### toStructuredObject()
|
|
95
|
+
### toStructuredObject() {#tostructuredobject}
|
|
96
96
|
|
|
97
97
|
> `static` **toStructuredObject**\<`T`\>(`nodeObject`): `T`
|
|
98
98
|
|
|
@@ -120,7 +120,7 @@ The structured object.
|
|
|
120
120
|
|
|
121
121
|
***
|
|
122
122
|
|
|
123
|
-
### expand()
|
|
123
|
+
### expand() {#expand}
|
|
124
124
|
|
|
125
125
|
> `static` **expand**(`document`): `Promise`\<[`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md)[]\>
|
|
126
126
|
|
|
@@ -142,7 +142,7 @@ The expanded JSON-LD document.
|
|
|
142
142
|
|
|
143
143
|
***
|
|
144
144
|
|
|
145
|
-
### isType()
|
|
145
|
+
### isType() {#istype}
|
|
146
146
|
|
|
147
147
|
> `static` **isType**(`documentOrExpanded`, `type`): `Promise`\<`boolean`\>
|
|
148
148
|
|
|
@@ -170,7 +170,7 @@ True if the document is of the specified type.
|
|
|
170
170
|
|
|
171
171
|
***
|
|
172
172
|
|
|
173
|
-
### getType()
|
|
173
|
+
### getType() {#gettype}
|
|
174
174
|
|
|
175
175
|
> `static` **getType**(`documentOrExpanded`): `Promise`\<`string`[]\>
|
|
176
176
|
|
|
@@ -192,7 +192,7 @@ The type(s) extracted from the document.
|
|
|
192
192
|
|
|
193
193
|
***
|
|
194
194
|
|
|
195
|
-
### getId()
|
|
195
|
+
### getId() {#getid}
|
|
196
196
|
|
|
197
197
|
> `static` **getId**(`documentOrExpanded`, `additionalIdProperties?`): `Promise`\<`string` \| `undefined`\>
|
|
198
198
|
|
|
@@ -220,7 +220,7 @@ The id extracted from the document.
|
|
|
220
220
|
|
|
221
221
|
***
|
|
222
222
|
|
|
223
|
-
### getPropertyValue()
|
|
223
|
+
### getPropertyValue() {#getpropertyvalue}
|
|
224
224
|
|
|
225
225
|
> `static` **getPropertyValue**(`documentOrExpanded`, `propertyFullName`, `language?`): `Promise`\<[`IJsonLdNodePrimitive`](../type-aliases/IJsonLdNodePrimitive.md)[] \| `undefined`\>
|
|
226
226
|
|
|
@@ -254,7 +254,7 @@ Matching property values for the input property.
|
|
|
254
254
|
|
|
255
255
|
***
|
|
256
256
|
|
|
257
|
-
### getPropertyValues()
|
|
257
|
+
### getPropertyValues() {#getpropertyvalues}
|
|
258
258
|
|
|
259
259
|
> `static` **getPropertyValues**(`documentOrExpanded`, `propertyFullNames`, `language?`): `Promise`\<([`IJsonLdNodePrimitive`](../type-aliases/IJsonLdNodePrimitive.md)[] \| `undefined`)[]\>
|
|
260
260
|
|
|
@@ -288,7 +288,7 @@ Matching property values for each input property, in the same index order.
|
|
|
288
288
|
|
|
289
289
|
***
|
|
290
290
|
|
|
291
|
-
### prefixProperties()
|
|
291
|
+
### prefixProperties() {#prefixproperties}
|
|
292
292
|
|
|
293
293
|
> `static` **prefixProperties**\<`T`\>(`nodeObject`, `prefix`, `properties?`): [`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md)
|
|
294
294
|
|
|
@@ -330,7 +330,7 @@ A new JSON-LD node object with the properties prefixed.
|
|
|
330
330
|
|
|
331
331
|
***
|
|
332
332
|
|
|
333
|
-
### stripPrefixProperties()
|
|
333
|
+
### stripPrefixProperties() {#stripprefixproperties}
|
|
334
334
|
|
|
335
335
|
> `static` **stripPrefixProperties**\<`T`\>(`nodeObject`, `prefix`, `properties?`): [`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md)
|
|
336
336
|
|
|
@@ -14,7 +14,7 @@ JSON-LD Processor.
|
|
|
14
14
|
|
|
15
15
|
## Methods
|
|
16
16
|
|
|
17
|
-
### setDocumentLoader()
|
|
17
|
+
### setDocumentLoader() {#setdocumentloader}
|
|
18
18
|
|
|
19
19
|
> `static` **setDocumentLoader**(`documentLoader`): `void`
|
|
20
20
|
|
|
@@ -34,7 +34,7 @@ The document loader to use.
|
|
|
34
34
|
|
|
35
35
|
***
|
|
36
36
|
|
|
37
|
-
### getDocumentLoader()
|
|
37
|
+
### getDocumentLoader() {#getdocumentloader}
|
|
38
38
|
|
|
39
39
|
> `static` **getDocumentLoader**(): (`url`) => `Promise`\<`RemoteDocument`\>
|
|
40
40
|
|
|
@@ -58,7 +58,7 @@ The document loader.
|
|
|
58
58
|
|
|
59
59
|
***
|
|
60
60
|
|
|
61
|
-
### setCacheLimit()
|
|
61
|
+
### setCacheLimit() {#setcachelimit}
|
|
62
62
|
|
|
63
63
|
> `static` **setCacheLimit**(`cacheLimitMs`): `void`
|
|
64
64
|
|
|
@@ -78,7 +78,7 @@ The cache limit in milliseconds.
|
|
|
78
78
|
|
|
79
79
|
***
|
|
80
80
|
|
|
81
|
-
### getCacheLimit()
|
|
81
|
+
### getCacheLimit() {#getcachelimit}
|
|
82
82
|
|
|
83
83
|
> `static` **getCacheLimit**(): `number`
|
|
84
84
|
|
|
@@ -92,7 +92,7 @@ The document loader.
|
|
|
92
92
|
|
|
93
93
|
***
|
|
94
94
|
|
|
95
|
-
### setRedirects()
|
|
95
|
+
### setRedirects() {#setredirects}
|
|
96
96
|
|
|
97
97
|
> `static` **setRedirects**(`redirects`): `void`
|
|
98
98
|
|
|
@@ -112,7 +112,7 @@ The redirects to use.
|
|
|
112
112
|
|
|
113
113
|
***
|
|
114
114
|
|
|
115
|
-
### getRedirects()
|
|
115
|
+
### getRedirects() {#getredirects}
|
|
116
116
|
|
|
117
117
|
> `static` **getRedirects**(): `object`[]
|
|
118
118
|
|
|
@@ -126,7 +126,7 @@ The registered redirects.
|
|
|
126
126
|
|
|
127
127
|
***
|
|
128
128
|
|
|
129
|
-
### compact()
|
|
129
|
+
### compact() {#compact}
|
|
130
130
|
|
|
131
131
|
> `static` **compact**\<`T`\>(`document`, `context?`, `options?`): `Promise`\<`T`\>
|
|
132
132
|
|
|
@@ -170,7 +170,7 @@ The compacted JSON-LD document.
|
|
|
170
170
|
|
|
171
171
|
***
|
|
172
172
|
|
|
173
|
-
### expand()
|
|
173
|
+
### expand() {#expand}
|
|
174
174
|
|
|
175
175
|
> `static` **expand**\<`T`\>(`compacted`): `Promise`\<[`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md)[]\>
|
|
176
176
|
|
|
@@ -198,7 +198,7 @@ The expanded JSON-LD document.
|
|
|
198
198
|
|
|
199
199
|
***
|
|
200
200
|
|
|
201
|
-
### canonize()
|
|
201
|
+
### canonize() {#canonize}
|
|
202
202
|
|
|
203
203
|
> `static` **canonize**\<`T`\>(`document`, `options?`): `Promise`\<`string`\>
|
|
204
204
|
|
|
@@ -236,7 +236,7 @@ The canonized document.
|
|
|
236
236
|
|
|
237
237
|
***
|
|
238
238
|
|
|
239
|
-
### addRedirect()
|
|
239
|
+
### addRedirect() {#addredirect}
|
|
240
240
|
|
|
241
241
|
> `static` **addRedirect**(`from`, `to`): `void`
|
|
242
242
|
|
|
@@ -262,7 +262,7 @@ The URL to redirect to.
|
|
|
262
262
|
|
|
263
263
|
***
|
|
264
264
|
|
|
265
|
-
### combineContexts()
|
|
265
|
+
### combineContexts() {#combinecontexts}
|
|
266
266
|
|
|
267
267
|
> `static` **combineContexts**(`context1`, `context2`): [`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md) \| `undefined`
|
|
268
268
|
|
|
@@ -290,7 +290,7 @@ The combined context.
|
|
|
290
290
|
|
|
291
291
|
***
|
|
292
292
|
|
|
293
|
-
### gatherContexts()
|
|
293
|
+
### gatherContexts() {#gathercontexts}
|
|
294
294
|
|
|
295
295
|
> `static` **gatherContexts**\<`T`\>(`element`, `initial?`): [`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md) \| `undefined`
|
|
296
296
|
|
|
@@ -324,7 +324,7 @@ The combined contexts.
|
|
|
324
324
|
|
|
325
325
|
***
|
|
326
326
|
|
|
327
|
-
### removeContexts()
|
|
327
|
+
### removeContexts() {#removecontexts}
|
|
328
328
|
|
|
329
329
|
> `static` **removeContexts**(`context`, `match?`): [`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md) \| `undefined`
|
|
330
330
|
|
|
@@ -352,7 +352,7 @@ The updated contexts.
|
|
|
352
352
|
|
|
353
353
|
***
|
|
354
354
|
|
|
355
|
-
### documentCacheAdd()
|
|
355
|
+
### documentCacheAdd() {#documentcacheadd}
|
|
356
356
|
|
|
357
357
|
> `static` **documentCacheAdd**(`url`, `ldContext`): `Promise`\<`void`\>
|
|
358
358
|
|
|
@@ -380,7 +380,7 @@ Nothing.
|
|
|
380
380
|
|
|
381
381
|
***
|
|
382
382
|
|
|
383
|
-
### documentCacheRemove()
|
|
383
|
+
### documentCacheRemove() {#documentcacheremove}
|
|
384
384
|
|
|
385
385
|
> `static` **documentCacheRemove**(`url`): `Promise`\<`void`\>
|
|
386
386
|
|
|
@@ -12,43 +12,43 @@ https://www.w3.org/TR/json-ld11/#context-definitions
|
|
|
12
12
|
|
|
13
13
|
## Properties
|
|
14
14
|
|
|
15
|
-
### @base?
|
|
15
|
+
### @base? {#base}
|
|
16
16
|
|
|
17
17
|
> `optional` **@base**: `string` \| `null`
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
21
|
-
### @direction?
|
|
21
|
+
### @direction? {#direction}
|
|
22
22
|
|
|
23
23
|
> `optional` **@direction**: `"ltr"` \| `"rtl"` \| `null`
|
|
24
24
|
|
|
25
25
|
***
|
|
26
26
|
|
|
27
|
-
### @import?
|
|
27
|
+
### @import? {#import}
|
|
28
28
|
|
|
29
29
|
> `optional` **@import**: `string`
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
33
|
-
### @language?
|
|
33
|
+
### @language? {#language}
|
|
34
34
|
|
|
35
35
|
> `optional` **@language**: `string`
|
|
36
36
|
|
|
37
37
|
***
|
|
38
38
|
|
|
39
|
-
### @propagate?
|
|
39
|
+
### @propagate? {#propagate}
|
|
40
40
|
|
|
41
41
|
> `optional` **@propagate**: `boolean`
|
|
42
42
|
|
|
43
43
|
***
|
|
44
44
|
|
|
45
|
-
### @protected?
|
|
45
|
+
### @protected? {#protected}
|
|
46
46
|
|
|
47
47
|
> `optional` **@protected**: `boolean`
|
|
48
48
|
|
|
49
49
|
***
|
|
50
50
|
|
|
51
|
-
### @type?
|
|
51
|
+
### @type? {#type}
|
|
52
52
|
|
|
53
53
|
> `optional` **@type**: `object`
|
|
54
54
|
|
|
@@ -62,12 +62,12 @@ https://www.w3.org/TR/json-ld11/#context-definitions
|
|
|
62
62
|
|
|
63
63
|
***
|
|
64
64
|
|
|
65
|
-
### @version?
|
|
65
|
+
### @version? {#version}
|
|
66
66
|
|
|
67
67
|
> `optional` **@version**: `"1.1"`
|
|
68
68
|
|
|
69
69
|
***
|
|
70
70
|
|
|
71
|
-
### @vocab?
|
|
71
|
+
### @vocab? {#vocab}
|
|
72
72
|
|
|
73
73
|
> `optional` **@vocab**: `string` \| `null`
|
|
@@ -8,24 +8,24 @@ https://www.w3.org/TR/json-ld11/#graph-objects
|
|
|
8
8
|
|
|
9
9
|
## Properties
|
|
10
10
|
|
|
11
|
-
### @graph
|
|
11
|
+
### @graph {#graph}
|
|
12
12
|
|
|
13
13
|
> **@graph**: [`IJsonLdNodeObject`](IJsonLdNodeObject.md) \| [`IJsonLdNodeObject`](IJsonLdNodeObject.md)[]
|
|
14
14
|
|
|
15
15
|
***
|
|
16
16
|
|
|
17
|
-
### @index?
|
|
17
|
+
### @index? {#index}
|
|
18
18
|
|
|
19
19
|
> `optional` **@index**: `string`
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
-
### @id?
|
|
23
|
+
### @id? {#id}
|
|
24
24
|
|
|
25
25
|
> `optional` **@id**: `string` \| `string`[]
|
|
26
26
|
|
|
27
27
|
***
|
|
28
28
|
|
|
29
|
-
### @context?
|
|
29
|
+
### @context? {#context}
|
|
30
30
|
|
|
31
31
|
> `optional` **@context**: [`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md)
|
|
@@ -8,12 +8,12 @@ https://www.w3.org/TR/json-ld11/#lists-and-sets
|
|
|
8
8
|
|
|
9
9
|
## Properties
|
|
10
10
|
|
|
11
|
-
### @list
|
|
11
|
+
### @list {#list}
|
|
12
12
|
|
|
13
13
|
> **@list**: [`IJsonLdListOrSetItem`](../type-aliases/IJsonLdListOrSetItem.md) \| [`IJsonLdListOrSetItem`](../type-aliases/IJsonLdListOrSetItem.md)[]
|
|
14
14
|
|
|
15
15
|
***
|
|
16
16
|
|
|
17
|
-
### @index?
|
|
17
|
+
### @index? {#index}
|
|
18
18
|
|
|
19
19
|
> `optional` **@index**: `string`
|
|
@@ -17,7 +17,7 @@ https://www.w3.org/TR/json-ld11/#node-objects
|
|
|
17
17
|
|
|
18
18
|
## Properties
|
|
19
19
|
|
|
20
|
-
### @context?
|
|
20
|
+
### @context? {#context}
|
|
21
21
|
|
|
22
22
|
> `optional` **@context**: [`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md)
|
|
23
23
|
|
|
@@ -27,7 +27,7 @@ https://www.w3.org/TR/json-ld11/#node-objects
|
|
|
27
27
|
|
|
28
28
|
***
|
|
29
29
|
|
|
30
|
-
### @id?
|
|
30
|
+
### @id? {#id}
|
|
31
31
|
|
|
32
32
|
> `optional` **@id**: `string` \| `string`[]
|
|
33
33
|
|
|
@@ -37,7 +37,7 @@ https://www.w3.org/TR/json-ld11/#node-objects
|
|
|
37
37
|
|
|
38
38
|
***
|
|
39
39
|
|
|
40
|
-
### @included?
|
|
40
|
+
### @included? {#included}
|
|
41
41
|
|
|
42
42
|
> `optional` **@included**: [`IJsonLdIncludedBlock`](../type-aliases/IJsonLdIncludedBlock.md)
|
|
43
43
|
|
|
@@ -47,7 +47,7 @@ https://www.w3.org/TR/json-ld11/#node-objects
|
|
|
47
47
|
|
|
48
48
|
***
|
|
49
49
|
|
|
50
|
-
### @graph?
|
|
50
|
+
### @graph? {#graph}
|
|
51
51
|
|
|
52
52
|
> `optional` **@graph**: `IJsonLdNodeObject` \| `IJsonLdNodeObject`[]
|
|
53
53
|
|
|
@@ -57,7 +57,7 @@ https://www.w3.org/TR/json-ld11/#node-objects
|
|
|
57
57
|
|
|
58
58
|
***
|
|
59
59
|
|
|
60
|
-
### @nest?
|
|
60
|
+
### @nest? {#nest}
|
|
61
61
|
|
|
62
62
|
> `optional` **@nest**: [`IJsonLdJsonObject`](IJsonLdJsonObject.md) \| [`IJsonLdJsonObject`](IJsonLdJsonObject.md)[]
|
|
63
63
|
|
|
@@ -67,7 +67,7 @@ https://www.w3.org/TR/json-ld11/#node-objects
|
|
|
67
67
|
|
|
68
68
|
***
|
|
69
69
|
|
|
70
|
-
### @type?
|
|
70
|
+
### @type? {#type}
|
|
71
71
|
|
|
72
72
|
> `optional` **@type**: `string` \| `string`[]
|
|
73
73
|
|
|
@@ -77,7 +77,7 @@ https://www.w3.org/TR/json-ld11/#node-objects
|
|
|
77
77
|
|
|
78
78
|
***
|
|
79
79
|
|
|
80
|
-
### @reverse?
|
|
80
|
+
### @reverse? {#reverse}
|
|
81
81
|
|
|
82
82
|
> `optional` **@reverse**: `object`
|
|
83
83
|
|
|
@@ -91,7 +91,7 @@ https://www.w3.org/TR/json-ld11/#node-objects
|
|
|
91
91
|
|
|
92
92
|
***
|
|
93
93
|
|
|
94
|
-
### @index?
|
|
94
|
+
### @index? {#index}
|
|
95
95
|
|
|
96
96
|
> `optional` **@index**: `string`
|
|
97
97
|
|
|
@@ -13,43 +13,43 @@ https://www.w3.org/TR/json-ld11/#node-objects
|
|
|
13
13
|
|
|
14
14
|
## Properties
|
|
15
15
|
|
|
16
|
-
### @context?
|
|
16
|
+
### @context? {#context}
|
|
17
17
|
|
|
18
18
|
> `optional` **@context**: [`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md)
|
|
19
19
|
|
|
20
20
|
***
|
|
21
21
|
|
|
22
|
-
### @id?
|
|
22
|
+
### @id? {#id}
|
|
23
23
|
|
|
24
24
|
> `optional` **@id**: `string` \| `string`[]
|
|
25
25
|
|
|
26
26
|
***
|
|
27
27
|
|
|
28
|
-
### @included?
|
|
28
|
+
### @included? {#included}
|
|
29
29
|
|
|
30
30
|
> `optional` **@included**: [`IJsonLdIncludedBlock`](../type-aliases/IJsonLdIncludedBlock.md)
|
|
31
31
|
|
|
32
32
|
***
|
|
33
33
|
|
|
34
|
-
### @graph?
|
|
34
|
+
### @graph? {#graph}
|
|
35
35
|
|
|
36
36
|
> `optional` **@graph**: [`IJsonLdNodeObject`](IJsonLdNodeObject.md) \| [`IJsonLdNodeObject`](IJsonLdNodeObject.md)[]
|
|
37
37
|
|
|
38
38
|
***
|
|
39
39
|
|
|
40
|
-
### @nest?
|
|
40
|
+
### @nest? {#nest}
|
|
41
41
|
|
|
42
42
|
> `optional` **@nest**: [`IJsonLdJsonObject`](IJsonLdJsonObject.md) \| [`IJsonLdJsonObject`](IJsonLdJsonObject.md)[]
|
|
43
43
|
|
|
44
44
|
***
|
|
45
45
|
|
|
46
|
-
### @type?
|
|
46
|
+
### @type? {#type}
|
|
47
47
|
|
|
48
48
|
> `optional` **@type**: `string` \| `string`[]
|
|
49
49
|
|
|
50
50
|
***
|
|
51
51
|
|
|
52
|
-
### @reverse?
|
|
52
|
+
### @reverse? {#reverse}
|
|
53
53
|
|
|
54
54
|
> `optional` **@reverse**: `object`
|
|
55
55
|
|
|
@@ -59,6 +59,6 @@ https://www.w3.org/TR/json-ld11/#node-objects
|
|
|
59
59
|
|
|
60
60
|
***
|
|
61
61
|
|
|
62
|
-
### @index?
|
|
62
|
+
### @index? {#index}
|
|
63
63
|
|
|
64
64
|
> `optional` **@index**: `string`
|
|
@@ -8,12 +8,12 @@ https://www.w3.org/TR/json-ld11/#lists-and-sets
|
|
|
8
8
|
|
|
9
9
|
## Properties
|
|
10
10
|
|
|
11
|
-
### @set
|
|
11
|
+
### @set {#set}
|
|
12
12
|
|
|
13
13
|
> **@set**: [`IJsonLdListOrSetItem`](../type-aliases/IJsonLdListOrSetItem.md) \| [`IJsonLdListOrSetItem`](../type-aliases/IJsonLdListOrSetItem.md)[]
|
|
14
14
|
|
|
15
15
|
***
|
|
16
16
|
|
|
17
|
-
### @index?
|
|
17
|
+
### @index? {#index}
|
|
18
18
|
|
|
19
19
|
> `optional` **@index**: `string`
|
|
@@ -6,19 +6,19 @@ The contexts of JSON-LD data.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
### Namespace
|
|
9
|
+
### Namespace {#namespace}
|
|
10
10
|
|
|
11
11
|
> `readonly` **Namespace**: `"https://schema.twindev.org/json-ld/"` = `"https://schema.twindev.org/json-ld/"`
|
|
12
12
|
|
|
13
13
|
The canonical RDF namespace URI for JSON-LD.
|
|
14
14
|
|
|
15
|
-
### Context
|
|
15
|
+
### Context {#context}
|
|
16
16
|
|
|
17
17
|
> `readonly` **Context**: `"https://schema.twindev.org/json-ld/"` = `"https://schema.twindev.org/json-ld/"`
|
|
18
18
|
|
|
19
19
|
The value to use in JSON-LD context for JSON-LD.
|
|
20
20
|
|
|
21
|
-
### JsonLdContext
|
|
21
|
+
### JsonLdContext {#jsonldcontext}
|
|
22
22
|
|
|
23
23
|
> `readonly` **JsonLdContext**: `"https://schema.twindev.org/json-ld/types.jsonld"` = `"https://schema.twindev.org/json-ld/types.jsonld"`
|
|
24
24
|
|
|
@@ -6,157 +6,157 @@ The types of JSON-LD data.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
### Document
|
|
9
|
+
### Document {#document}
|
|
10
10
|
|
|
11
11
|
> `readonly` **Document**: `"JsonLdDocument"` = `"JsonLdDocument"`
|
|
12
12
|
|
|
13
13
|
Represents JSON-LD Document.
|
|
14
14
|
|
|
15
|
-
### Object
|
|
15
|
+
### Object {#object}
|
|
16
16
|
|
|
17
17
|
> `readonly` **Object**: `"JsonLdObject"` = `"JsonLdObject"`
|
|
18
18
|
|
|
19
19
|
Represents JSON-LD Object.
|
|
20
20
|
|
|
21
|
-
### NodeObject
|
|
21
|
+
### NodeObject {#nodeobject}
|
|
22
22
|
|
|
23
23
|
> `readonly` **NodeObject**: `"JsonLdNodeObject"` = `"JsonLdNodeObject"`
|
|
24
24
|
|
|
25
25
|
Represents JSON-LD Node Object.
|
|
26
26
|
|
|
27
|
-
### NodePrimitive
|
|
27
|
+
### NodePrimitive {#nodeprimitive}
|
|
28
28
|
|
|
29
29
|
> `readonly` **NodePrimitive**: `"JsonLdNodePrimitive"` = `"JsonLdNodePrimitive"`
|
|
30
30
|
|
|
31
31
|
Represents JSON-LD Node Primitive.
|
|
32
32
|
|
|
33
|
-
### GraphObject
|
|
33
|
+
### GraphObject {#graphobject}
|
|
34
34
|
|
|
35
35
|
> `readonly` **GraphObject**: `"JsonLdGraphObject"` = `"JsonLdGraphObject"`
|
|
36
36
|
|
|
37
37
|
Represents JSON-LD Graph Object.
|
|
38
38
|
|
|
39
|
-
### ValueObject
|
|
39
|
+
### ValueObject {#valueobject}
|
|
40
40
|
|
|
41
41
|
> `readonly` **ValueObject**: `"JsonLdValueObject"` = `"JsonLdValueObject"`
|
|
42
42
|
|
|
43
43
|
Represents JSON-LD Value Object.
|
|
44
44
|
|
|
45
|
-
### ListObject
|
|
45
|
+
### ListObject {#listobject}
|
|
46
46
|
|
|
47
47
|
> `readonly` **ListObject**: `"JsonLdListObject"` = `"JsonLdListObject"`
|
|
48
48
|
|
|
49
49
|
Represents JSON-LD List Object.
|
|
50
50
|
|
|
51
|
-
### SetObject
|
|
51
|
+
### SetObject {#setobject}
|
|
52
52
|
|
|
53
53
|
> `readonly` **SetObject**: `"JsonLdSetObject"` = `"JsonLdSetObject"`
|
|
54
54
|
|
|
55
55
|
Represents JSON-LD Set Object.
|
|
56
56
|
|
|
57
|
-
### LanguageMap
|
|
57
|
+
### LanguageMap {#languagemap}
|
|
58
58
|
|
|
59
59
|
> `readonly` **LanguageMap**: `"JsonLdLanguageMap"` = `"JsonLdLanguageMap"`
|
|
60
60
|
|
|
61
61
|
Represents JSON-LD Language Map.
|
|
62
62
|
|
|
63
|
-
### IndexMap
|
|
63
|
+
### IndexMap {#indexmap}
|
|
64
64
|
|
|
65
65
|
> `readonly` **IndexMap**: `"JsonLdIndexMap"` = `"JsonLdIndexMap"`
|
|
66
66
|
|
|
67
67
|
Represents JSON-LD Index Map.
|
|
68
68
|
|
|
69
|
-
### IndexMapItem
|
|
69
|
+
### IndexMapItem {#indexmapitem}
|
|
70
70
|
|
|
71
71
|
> `readonly` **IndexMapItem**: `"JsonLdIndexMapItem"` = `"JsonLdIndexMapItem"`
|
|
72
72
|
|
|
73
73
|
Represents JSON-LD Index Map Item.
|
|
74
74
|
|
|
75
|
-
### IdMap
|
|
75
|
+
### IdMap {#idmap}
|
|
76
76
|
|
|
77
77
|
> `readonly` **IdMap**: `"JsonLdIdMap"` = `"JsonLdIdMap"`
|
|
78
78
|
|
|
79
79
|
Represents JSON-LD Id Map.
|
|
80
80
|
|
|
81
|
-
### TypeMap
|
|
81
|
+
### TypeMap {#typemap}
|
|
82
82
|
|
|
83
83
|
> `readonly` **TypeMap**: `"JsonLdTypeMap"` = `"JsonLdTypeMap"`
|
|
84
84
|
|
|
85
85
|
Represents JSON-LD Type Map.
|
|
86
86
|
|
|
87
|
-
### IncludedBlock
|
|
87
|
+
### IncludedBlock {#includedblock}
|
|
88
88
|
|
|
89
89
|
> `readonly` **IncludedBlock**: `"JsonLdIncludedBlock"` = `"JsonLdIncludedBlock"`
|
|
90
90
|
|
|
91
91
|
Represents JSON-LD Included block.
|
|
92
92
|
|
|
93
|
-
### ContextDefinition
|
|
93
|
+
### ContextDefinition {#contextdefinition}
|
|
94
94
|
|
|
95
95
|
> `readonly` **ContextDefinition**: `"JsonLdContextDefinition"` = `"JsonLdContextDefinition"`
|
|
96
96
|
|
|
97
97
|
Represents JSON-LD Context Definition.
|
|
98
98
|
|
|
99
|
-
### ContextDefinitionElement
|
|
99
|
+
### ContextDefinitionElement {#contextdefinitionelement}
|
|
100
100
|
|
|
101
101
|
> `readonly` **ContextDefinitionElement**: `"JsonLdContextDefinitionElement"` = `"JsonLdContextDefinitionElement"`
|
|
102
102
|
|
|
103
103
|
Represents JSON-LD Context Definition Element.
|
|
104
104
|
|
|
105
|
-
### ContextDefinitionRoot
|
|
105
|
+
### ContextDefinitionRoot {#contextdefinitionroot}
|
|
106
106
|
|
|
107
107
|
> `readonly` **ContextDefinitionRoot**: `"JsonLdContextDefinitionRoot"` = `"JsonLdContextDefinitionRoot"`
|
|
108
108
|
|
|
109
109
|
Represents JSON-LD Context Definition Root.
|
|
110
110
|
|
|
111
|
-
### ExpandedTermDefinition
|
|
111
|
+
### ExpandedTermDefinition {#expandedtermdefinition}
|
|
112
112
|
|
|
113
113
|
> `readonly` **ExpandedTermDefinition**: `"JsonLdExpandedTermDefinition"` = `"JsonLdExpandedTermDefinition"`
|
|
114
114
|
|
|
115
115
|
Represents JSON-LD Expanded Term Definition.
|
|
116
116
|
|
|
117
|
-
### Keyword
|
|
117
|
+
### Keyword {#keyword}
|
|
118
118
|
|
|
119
119
|
> `readonly` **Keyword**: `"JsonLdKeyword"` = `"JsonLdKeyword"`
|
|
120
120
|
|
|
121
121
|
Represents JSON-LD Keyword.
|
|
122
122
|
|
|
123
|
-
### ListOrSetItem
|
|
123
|
+
### ListOrSetItem {#listorsetitem}
|
|
124
124
|
|
|
125
125
|
> `readonly` **ListOrSetItem**: `"JsonLdListOrSetItem"` = `"JsonLdListOrSetItem"`
|
|
126
126
|
|
|
127
127
|
Represents JSON-LD List or Set Item.
|
|
128
128
|
|
|
129
|
-
### ContainerType
|
|
129
|
+
### ContainerType {#containertype}
|
|
130
130
|
|
|
131
131
|
> `readonly` **ContainerType**: `"JsonLdContainerType"` = `"JsonLdContainerType"`
|
|
132
132
|
|
|
133
133
|
Represents JSON-LD Container Type.
|
|
134
134
|
|
|
135
|
-
### ContainerTypeArray
|
|
135
|
+
### ContainerTypeArray {#containertypearray}
|
|
136
136
|
|
|
137
137
|
> `readonly` **ContainerTypeArray**: `"JsonLdContainerTypeArray"` = `"JsonLdContainerTypeArray"`
|
|
138
138
|
|
|
139
139
|
Represents JSON-LD Container Type Array.
|
|
140
140
|
|
|
141
|
-
### JsonPrimitive
|
|
141
|
+
### JsonPrimitive {#jsonprimitive}
|
|
142
142
|
|
|
143
143
|
> `readonly` **JsonPrimitive**: `"JsonLdJsonPrimitive"` = `"JsonLdJsonPrimitive"`
|
|
144
144
|
|
|
145
145
|
Represents JSON-LD JSON Primitive.
|
|
146
146
|
|
|
147
|
-
### JsonArray
|
|
147
|
+
### JsonArray {#jsonarray}
|
|
148
148
|
|
|
149
149
|
> `readonly` **JsonArray**: `"JsonLdJsonArray"` = `"JsonLdJsonArray"`
|
|
150
150
|
|
|
151
151
|
Represents JSON-LD JSON Array.
|
|
152
152
|
|
|
153
|
-
### JsonObject
|
|
153
|
+
### JsonObject {#jsonobject}
|
|
154
154
|
|
|
155
155
|
> `readonly` **JsonObject**: `"JsonLdJsonObject"` = `"JsonLdJsonObject"`
|
|
156
156
|
|
|
157
157
|
Represents JSON-LD JSON Object.
|
|
158
158
|
|
|
159
|
-
### JsonValue
|
|
159
|
+
### JsonValue {#jsonvalue}
|
|
160
160
|
|
|
161
161
|
> `readonly` **JsonValue**: `"JsonLdJsonValue"` = `"JsonLdJsonValue"`
|
|
162
162
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/data-json-ld",
|
|
3
|
-
"version": "0.0.3-next.
|
|
3
|
+
"version": "0.0.3-next.18",
|
|
4
4
|
"description": "JSON-LD data models and helpers for working with linked data documents.",
|
|
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.3-next.
|
|
18
|
+
"@twin.org/data-core": "0.0.3-next.18",
|
|
19
19
|
"@twin.org/entity": "next",
|
|
20
20
|
"@twin.org/nameof": "next",
|
|
21
21
|
"@twin.org/web": "next",
|