@twin.org/data-json-ld 0.0.3-next.17 → 0.0.3-next.19
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/dist/es/schemas/JsonLdContainerType.json +17 -7
- package/dist/es/schemas/JsonLdContainerTypeArray.json +129 -142
- package/dist/es/schemas/JsonLdContextDefinition.json +75 -16
- package/dist/es/schemas/JsonLdContextDefinitionElement.json +1 -0
- package/dist/es/schemas/JsonLdContextDefinitionRoot.json +1 -0
- package/dist/es/schemas/JsonLdDocument.json +2 -1
- package/dist/es/schemas/JsonLdExpandedTermDefinition.json +101 -87
- package/dist/es/schemas/JsonLdGraphObject.json +1 -0
- package/dist/es/schemas/JsonLdIdMap.json +1 -0
- package/dist/es/schemas/JsonLdIncludedBlock.json +1 -0
- package/dist/es/schemas/JsonLdIndexMap.json +2 -1
- package/dist/es/schemas/JsonLdIndexMapItem.json +1 -0
- package/dist/es/schemas/JsonLdJsonArray.json +1 -0
- package/dist/es/schemas/JsonLdJsonObject.json +2 -8
- package/dist/es/schemas/JsonLdJsonPrimitive.json +14 -5
- package/dist/es/schemas/JsonLdJsonValue.json +1 -0
- package/dist/es/schemas/JsonLdLanguageMap.json +1 -0
- package/dist/es/schemas/JsonLdListObject.json +1 -0
- package/dist/es/schemas/JsonLdListOrSetItem.json +1 -0
- package/dist/es/schemas/JsonLdNodeObject.json +12 -72
- package/dist/es/schemas/JsonLdNodePrimitive.json +1 -0
- package/dist/es/schemas/JsonLdObject.json +2 -1
- package/dist/es/schemas/JsonLdSetObject.json +1 -0
- package/dist/es/schemas/JsonLdTypeMap.json +1 -0
- package/dist/es/schemas/JsonLdValueObject.json +99 -84
- package/docs/changelog.md +28 -0
- package/docs/reference/classes/JsonLdDataTypes.md +1 -1
- package/docs/reference/classes/JsonLdHelper.md +11 -11
- package/docs/reference/classes/JsonLdProcessor.md +22 -32
- package/docs/reference/interfaces/IJsonLdContextDefinition.md +20 -20
- package/docs/reference/interfaces/IJsonLdGraphObject.md +7 -7
- package/docs/reference/interfaces/IJsonLdIdMap.md +1 -1
- package/docs/reference/interfaces/IJsonLdIndexMap.md +1 -1
- package/docs/reference/interfaces/IJsonLdJsonObject.md +1 -1
- package/docs/reference/interfaces/IJsonLdLanguageMap.md +1 -1
- package/docs/reference/interfaces/IJsonLdListObject.md +3 -3
- package/docs/reference/interfaces/IJsonLdNodeObject.md +17 -17
- package/docs/reference/interfaces/IJsonLdObject.md +16 -16
- package/docs/reference/interfaces/IJsonLdSetObject.md +3 -3
- package/docs/reference/interfaces/IJsonLdTypeMap.md +1 -1
- package/docs/reference/type-aliases/IJsonLdExpandedTermDefinition.md +7 -7
- package/docs/reference/type-aliases/IJsonLdValueObject.md +2 -2
- package/docs/reference/type-aliases/JsonLdObjectWithOptionalAtId.md +1 -1
- package/docs/reference/type-aliases/JsonLdObjectWithOptionalAtType.md +1 -1
- package/docs/reference/type-aliases/JsonLdObjectWithOptionalContext.md +1 -1
- package/docs/reference/type-aliases/JsonLdObjectWithOptionalId.md +1 -1
- package/docs/reference/type-aliases/JsonLdObjectWithOptionalType.md +1 -1
- package/docs/reference/variables/JsonLdContexts.md +3 -3
- package/docs/reference/variables/JsonLdTypes.md +26 -26
- package/package.json +2 -2
|
@@ -1,109 +1,124 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://schema.twindev.org/json-ld/JsonLdValueObject",
|
|
4
|
-
"
|
|
5
|
-
"
|
|
4
|
+
"title": "JsonLdValueObject",
|
|
5
|
+
"description": "A value object is used to explicitly associate a type or a language with a value\nto create a typed value or a language-tagged string and possibly associate a base direction.",
|
|
6
|
+
"allOf": [
|
|
6
7
|
{
|
|
7
8
|
"type": "object",
|
|
8
9
|
"properties": {
|
|
9
|
-
"@value": {
|
|
10
|
-
"type": [
|
|
11
|
-
"null",
|
|
12
|
-
"boolean",
|
|
13
|
-
"number",
|
|
14
|
-
"string"
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
"@language": {
|
|
18
|
-
"type": "string"
|
|
19
|
-
},
|
|
20
|
-
"@direction": {
|
|
21
|
-
"type": [
|
|
22
|
-
"string",
|
|
23
|
-
"null"
|
|
24
|
-
],
|
|
25
|
-
"enum": [
|
|
26
|
-
"ltr",
|
|
27
|
-
"rtl",
|
|
28
|
-
null
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
10
|
"@index": {
|
|
32
11
|
"type": "string"
|
|
33
12
|
},
|
|
34
13
|
"@context": {
|
|
35
14
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
36
15
|
}
|
|
37
|
-
}
|
|
38
|
-
"required": [
|
|
39
|
-
"@value"
|
|
40
|
-
]
|
|
16
|
+
}
|
|
41
17
|
},
|
|
42
18
|
{
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
"required": [
|
|
64
|
-
"@type",
|
|
65
|
-
"@value"
|
|
66
|
-
]
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"type": "object",
|
|
70
|
-
"properties": {
|
|
71
|
-
"@value": {
|
|
72
|
-
"anyOf": [
|
|
73
|
-
{
|
|
74
|
-
"type": "null"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"type": "boolean"
|
|
19
|
+
"anyOf": [
|
|
20
|
+
{
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {
|
|
23
|
+
"@value": {
|
|
24
|
+
"anyOf": [
|
|
25
|
+
{
|
|
26
|
+
"type": "null"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "boolean"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "number"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "string"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
78
38
|
},
|
|
79
|
-
{
|
|
80
|
-
"type": "number"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
39
|
+
"@language": {
|
|
83
40
|
"type": "string"
|
|
84
41
|
},
|
|
85
|
-
{
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
42
|
+
"@direction": {
|
|
43
|
+
"anyOf": [
|
|
44
|
+
{
|
|
45
|
+
"const": "ltr"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"const": "rtl"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"type": "null"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
90
54
|
}
|
|
55
|
+
},
|
|
56
|
+
"required": [
|
|
57
|
+
"@value"
|
|
91
58
|
]
|
|
92
59
|
},
|
|
93
|
-
|
|
94
|
-
"type": "
|
|
95
|
-
"
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
60
|
+
{
|
|
61
|
+
"type": "object",
|
|
62
|
+
"properties": {
|
|
63
|
+
"@value": {
|
|
64
|
+
"anyOf": [
|
|
65
|
+
{
|
|
66
|
+
"type": "null"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "boolean"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "number"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"type": "string"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"@type": {
|
|
80
|
+
"type": "string"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"required": [
|
|
84
|
+
"@value",
|
|
85
|
+
"@type"
|
|
86
|
+
]
|
|
99
87
|
},
|
|
100
|
-
|
|
101
|
-
"
|
|
88
|
+
{
|
|
89
|
+
"type": "object",
|
|
90
|
+
"properties": {
|
|
91
|
+
"@value": {
|
|
92
|
+
"anyOf": [
|
|
93
|
+
{
|
|
94
|
+
"type": "null"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"type": "boolean"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"type": "number"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"type": "string"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonArray"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"@type": {
|
|
114
|
+
"const": "@json"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"required": [
|
|
118
|
+
"@value",
|
|
119
|
+
"@type"
|
|
120
|
+
]
|
|
102
121
|
}
|
|
103
|
-
},
|
|
104
|
-
"required": [
|
|
105
|
-
"@type",
|
|
106
|
-
"@value"
|
|
107
122
|
]
|
|
108
123
|
}
|
|
109
124
|
]
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.19](https://github.com/twinfoundation/data/compare/data-json-ld-v0.0.3-next.18...data-json-ld-v0.0.3-next.19) (2026-03-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* use local LD context fixture in tests instead of remotes ([#60](https://github.com/twinfoundation/data/issues/60)) ([df18303](https://github.com/twinfoundation/data/commit/df18303301f031a5032850c900eea24b094a99a5))
|
|
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.18 to 0.0.3-next.19
|
|
16
|
+
|
|
17
|
+
## [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)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Miscellaneous Chores
|
|
21
|
+
|
|
22
|
+
* **data-json-ld:** Synchronize repo versions
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Dependencies
|
|
26
|
+
|
|
27
|
+
* The following workspace dependencies were updated
|
|
28
|
+
* dependencies
|
|
29
|
+
* @twin.org/data-core bumped from 0.0.3-next.17 to 0.0.3-next.18
|
|
30
|
+
|
|
3
31
|
## [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
32
|
|
|
5
33
|
|
|
@@ -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
|
|
|
@@ -44,21 +44,11 @@ The document loader to use for retrieving JSON-LD documents.
|
|
|
44
44
|
|
|
45
45
|
The document loader.
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
##### Parameters
|
|
50
|
-
|
|
51
|
-
###### url
|
|
52
|
-
|
|
53
|
-
`string`
|
|
54
|
-
|
|
55
|
-
##### Returns
|
|
56
|
-
|
|
57
|
-
`Promise`\<`RemoteDocument`\>
|
|
47
|
+
(`url`) => `Promise`\<`RemoteDocument`\>
|
|
58
48
|
|
|
59
49
|
***
|
|
60
50
|
|
|
61
|
-
### setCacheLimit()
|
|
51
|
+
### setCacheLimit() {#setcachelimit}
|
|
62
52
|
|
|
63
53
|
> `static` **setCacheLimit**(`cacheLimitMs`): `void`
|
|
64
54
|
|
|
@@ -78,7 +68,7 @@ The cache limit in milliseconds.
|
|
|
78
68
|
|
|
79
69
|
***
|
|
80
70
|
|
|
81
|
-
### getCacheLimit()
|
|
71
|
+
### getCacheLimit() {#getcachelimit}
|
|
82
72
|
|
|
83
73
|
> `static` **getCacheLimit**(): `number`
|
|
84
74
|
|
|
@@ -92,7 +82,7 @@ The document loader.
|
|
|
92
82
|
|
|
93
83
|
***
|
|
94
84
|
|
|
95
|
-
### setRedirects()
|
|
85
|
+
### setRedirects() {#setredirects}
|
|
96
86
|
|
|
97
87
|
> `static` **setRedirects**(`redirects`): `void`
|
|
98
88
|
|
|
@@ -112,7 +102,7 @@ The redirects to use.
|
|
|
112
102
|
|
|
113
103
|
***
|
|
114
104
|
|
|
115
|
-
### getRedirects()
|
|
105
|
+
### getRedirects() {#getredirects}
|
|
116
106
|
|
|
117
107
|
> `static` **getRedirects**(): `object`[]
|
|
118
108
|
|
|
@@ -126,7 +116,7 @@ The registered redirects.
|
|
|
126
116
|
|
|
127
117
|
***
|
|
128
118
|
|
|
129
|
-
### compact()
|
|
119
|
+
### compact() {#compact}
|
|
130
120
|
|
|
131
121
|
> `static` **compact**\<`T`\>(`document`, `context?`, `options?`): `Promise`\<`T`\>
|
|
132
122
|
|
|
@@ -170,7 +160,7 @@ The compacted JSON-LD document.
|
|
|
170
160
|
|
|
171
161
|
***
|
|
172
162
|
|
|
173
|
-
### expand()
|
|
163
|
+
### expand() {#expand}
|
|
174
164
|
|
|
175
165
|
> `static` **expand**\<`T`\>(`compacted`): `Promise`\<[`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md)[]\>
|
|
176
166
|
|
|
@@ -198,7 +188,7 @@ The expanded JSON-LD document.
|
|
|
198
188
|
|
|
199
189
|
***
|
|
200
190
|
|
|
201
|
-
### canonize()
|
|
191
|
+
### canonize() {#canonize}
|
|
202
192
|
|
|
203
193
|
> `static` **canonize**\<`T`\>(`document`, `options?`): `Promise`\<`string`\>
|
|
204
194
|
|
|
@@ -236,7 +226,7 @@ The canonized document.
|
|
|
236
226
|
|
|
237
227
|
***
|
|
238
228
|
|
|
239
|
-
### addRedirect()
|
|
229
|
+
### addRedirect() {#addredirect}
|
|
240
230
|
|
|
241
231
|
> `static` **addRedirect**(`from`, `to`): `void`
|
|
242
232
|
|
|
@@ -262,7 +252,7 @@ The URL to redirect to.
|
|
|
262
252
|
|
|
263
253
|
***
|
|
264
254
|
|
|
265
|
-
### combineContexts()
|
|
255
|
+
### combineContexts() {#combinecontexts}
|
|
266
256
|
|
|
267
257
|
> `static` **combineContexts**(`context1`, `context2`): [`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md) \| `undefined`
|
|
268
258
|
|
|
@@ -272,15 +262,15 @@ Combine contexts.
|
|
|
272
262
|
|
|
273
263
|
##### context1
|
|
274
264
|
|
|
275
|
-
|
|
265
|
+
[`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md) \| `undefined`
|
|
276
266
|
|
|
277
|
-
|
|
267
|
+
The first JSON-LD context to combine.
|
|
278
268
|
|
|
279
269
|
##### context2
|
|
280
270
|
|
|
281
|
-
|
|
271
|
+
[`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md) \| `undefined`
|
|
282
272
|
|
|
283
|
-
|
|
273
|
+
The second JSON-LD context to combine.
|
|
284
274
|
|
|
285
275
|
#### Returns
|
|
286
276
|
|
|
@@ -290,7 +280,7 @@ The combined context.
|
|
|
290
280
|
|
|
291
281
|
***
|
|
292
282
|
|
|
293
|
-
### gatherContexts()
|
|
283
|
+
### gatherContexts() {#gathercontexts}
|
|
294
284
|
|
|
295
285
|
> `static` **gatherContexts**\<`T`\>(`element`, `initial?`): [`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md) \| `undefined`
|
|
296
286
|
|
|
@@ -324,7 +314,7 @@ The combined contexts.
|
|
|
324
314
|
|
|
325
315
|
***
|
|
326
316
|
|
|
327
|
-
### removeContexts()
|
|
317
|
+
### removeContexts() {#removecontexts}
|
|
328
318
|
|
|
329
319
|
> `static` **removeContexts**(`context`, `match?`): [`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md) \| `undefined`
|
|
330
320
|
|
|
@@ -334,9 +324,9 @@ Remove all the contexts that match the pattern.
|
|
|
334
324
|
|
|
335
325
|
##### context
|
|
336
326
|
|
|
337
|
-
|
|
327
|
+
[`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md) \| `undefined`
|
|
338
328
|
|
|
339
|
-
|
|
329
|
+
The context to remove the entries from.
|
|
340
330
|
|
|
341
331
|
##### match?
|
|
342
332
|
|
|
@@ -352,7 +342,7 @@ The updated contexts.
|
|
|
352
342
|
|
|
353
343
|
***
|
|
354
344
|
|
|
355
|
-
### documentCacheAdd()
|
|
345
|
+
### documentCacheAdd() {#documentcacheadd}
|
|
356
346
|
|
|
357
347
|
> `static` **documentCacheAdd**(`url`, `ldContext`): `Promise`\<`void`\>
|
|
358
348
|
|
|
@@ -380,7 +370,7 @@ Nothing.
|
|
|
380
370
|
|
|
381
371
|
***
|
|
382
372
|
|
|
383
|
-
### documentCacheRemove()
|
|
373
|
+
### documentCacheRemove() {#documentcacheremove}
|
|
384
374
|
|
|
385
375
|
> `static` **documentCacheRemove**(`url`): `Promise`\<`void`\>
|
|
386
376
|
|
|
@@ -8,49 +8,49 @@ https://www.w3.org/TR/json-ld11/#context-definitions
|
|
|
8
8
|
|
|
9
9
|
## Indexable
|
|
10
10
|
|
|
11
|
-
\[`key`: `string`\]: `string` \| `boolean` \| [`IJsonLdExpandedTermDefinition`](../type-aliases/IJsonLdExpandedTermDefinition.md) \| \{ `@container`: `"@set"`; `@protected?`: `boolean`; \} \| `null` \| `undefined`
|
|
11
|
+
> \[`key`: `string`\]: `string` \| `boolean` \| [`IJsonLdExpandedTermDefinition`](../type-aliases/IJsonLdExpandedTermDefinition.md) \| \{ `@container`: `"@set"`; `@protected?`: `boolean`; \} \| `null` \| `undefined`
|
|
12
12
|
|
|
13
13
|
## Properties
|
|
14
14
|
|
|
15
|
-
### @base?
|
|
15
|
+
### @base? {#base}
|
|
16
16
|
|
|
17
|
-
> `optional` **@base
|
|
17
|
+
> `optional` **@base?**: `string` \| `null`
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
21
|
-
### @direction?
|
|
21
|
+
### @direction? {#direction}
|
|
22
22
|
|
|
23
|
-
> `optional` **@direction
|
|
23
|
+
> `optional` **@direction?**: `"ltr"` \| `"rtl"` \| `null`
|
|
24
24
|
|
|
25
25
|
***
|
|
26
26
|
|
|
27
|
-
### @import?
|
|
27
|
+
### @import? {#import}
|
|
28
28
|
|
|
29
|
-
> `optional` **@import
|
|
29
|
+
> `optional` **@import?**: `string`
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
33
|
-
### @language?
|
|
33
|
+
### @language? {#language}
|
|
34
34
|
|
|
35
|
-
> `optional` **@language
|
|
35
|
+
> `optional` **@language?**: `string`
|
|
36
36
|
|
|
37
37
|
***
|
|
38
38
|
|
|
39
|
-
### @propagate?
|
|
39
|
+
### @propagate? {#propagate}
|
|
40
40
|
|
|
41
|
-
> `optional` **@propagate
|
|
41
|
+
> `optional` **@propagate?**: `boolean`
|
|
42
42
|
|
|
43
43
|
***
|
|
44
44
|
|
|
45
|
-
### @protected?
|
|
45
|
+
### @protected? {#protected}
|
|
46
46
|
|
|
47
|
-
> `optional` **@protected
|
|
47
|
+
> `optional` **@protected?**: `boolean`
|
|
48
48
|
|
|
49
49
|
***
|
|
50
50
|
|
|
51
|
-
### @type?
|
|
51
|
+
### @type? {#type}
|
|
52
52
|
|
|
53
|
-
> `optional` **@type
|
|
53
|
+
> `optional` **@type?**: `object`
|
|
54
54
|
|
|
55
55
|
#### @container
|
|
56
56
|
|
|
@@ -58,16 +58,16 @@ https://www.w3.org/TR/json-ld11/#context-definitions
|
|
|
58
58
|
|
|
59
59
|
#### @protected?
|
|
60
60
|
|
|
61
|
-
> `optional` **@protected
|
|
61
|
+
> `optional` **@protected?**: `boolean`
|
|
62
62
|
|
|
63
63
|
***
|
|
64
64
|
|
|
65
|
-
### @version?
|
|
65
|
+
### @version? {#version}
|
|
66
66
|
|
|
67
|
-
> `optional` **@version
|
|
67
|
+
> `optional` **@version?**: `"1.1"`
|
|
68
68
|
|
|
69
69
|
***
|
|
70
70
|
|
|
71
|
-
### @vocab?
|
|
71
|
+
### @vocab? {#vocab}
|
|
72
72
|
|
|
73
|
-
> `optional` **@vocab
|
|
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
|
-
> `optional` **@index
|
|
19
|
+
> `optional` **@index?**: `string`
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
-
### @id?
|
|
23
|
+
### @id? {#id}
|
|
24
24
|
|
|
25
|
-
> `optional` **@id
|
|
25
|
+
> `optional` **@id?**: `string` \| `string`[]
|
|
26
26
|
|
|
27
27
|
***
|
|
28
28
|
|
|
29
|
-
### @context?
|
|
29
|
+
### @context? {#context}
|
|
30
30
|
|
|
31
|
-
> `optional` **@context
|
|
31
|
+
> `optional` **@context?**: [`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md)
|
|
@@ -9,4 +9,4 @@ https://www.w3.org/TR/json-ld11/#index-maps
|
|
|
9
9
|
|
|
10
10
|
## Indexable
|
|
11
11
|
|
|
12
|
-
\[`key`: `string`\]: [`IJsonLdIndexMapItem`](../type-aliases/IJsonLdIndexMapItem.md) \| [`IJsonLdIndexMapItem`](../type-aliases/IJsonLdIndexMapItem.md)[]
|
|
12
|
+
> \[`key`: `string`\]: [`IJsonLdIndexMapItem`](../type-aliases/IJsonLdIndexMapItem.md) \| [`IJsonLdIndexMapItem`](../type-aliases/IJsonLdIndexMapItem.md)[]
|