@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,13 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://schema.twindev.org/json-ld/JsonLdContainerType",
|
|
4
|
+
"title": "JsonLdContainerType",
|
|
4
5
|
"description": "JSON-LD container types.",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
"anyOf": [
|
|
7
|
+
{
|
|
8
|
+
"const": "@language"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"const": "@index"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"const": "@id"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"const": "@graph"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"const": "@type"
|
|
21
|
+
}
|
|
12
22
|
]
|
|
13
23
|
}
|
|
@@ -1,179 +1,166 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://schema.twindev.org/json-ld/JsonLdContainerTypeArray",
|
|
4
|
+
"title": "JsonLdContainerTypeArray",
|
|
4
5
|
"description": "JSON-LD container type array.",
|
|
5
6
|
"anyOf": [
|
|
6
7
|
{
|
|
7
8
|
"type": "array",
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
9
|
+
"prefixItems": [
|
|
10
|
+
{
|
|
11
|
+
"const": "@graph"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"const": "@id"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"items": false,
|
|
18
|
+
"minItems": 2,
|
|
19
|
+
"maxItems": 2
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
"type": "array",
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
23
|
+
"prefixItems": [
|
|
24
|
+
{
|
|
25
|
+
"const": "@id"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"const": "@graph"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"items": false,
|
|
32
|
+
"minItems": 2,
|
|
33
|
+
"maxItems": 2
|
|
35
34
|
},
|
|
36
35
|
{
|
|
37
36
|
"type": "array",
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
]
|
|
53
|
-
}
|
|
37
|
+
"prefixItems": [
|
|
38
|
+
{
|
|
39
|
+
"const": "@set"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"const": "@graph"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"const": "@id"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"items": false,
|
|
49
|
+
"minItems": 3,
|
|
50
|
+
"maxItems": 3
|
|
54
51
|
},
|
|
55
52
|
{
|
|
56
53
|
"type": "array",
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
]
|
|
72
|
-
}
|
|
54
|
+
"prefixItems": [
|
|
55
|
+
{
|
|
56
|
+
"const": "@set"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"const": "@id"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"const": "@graph"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"items": false,
|
|
66
|
+
"minItems": 3,
|
|
67
|
+
"maxItems": 3
|
|
73
68
|
},
|
|
74
69
|
{
|
|
75
70
|
"type": "array",
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
]
|
|
91
|
-
}
|
|
71
|
+
"prefixItems": [
|
|
72
|
+
{
|
|
73
|
+
"const": "@graph"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"const": "@set"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"const": "@id"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"items": false,
|
|
83
|
+
"minItems": 3,
|
|
84
|
+
"maxItems": 3
|
|
92
85
|
},
|
|
93
86
|
{
|
|
94
87
|
"type": "array",
|
|
95
|
-
"
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
]
|
|
110
|
-
}
|
|
88
|
+
"prefixItems": [
|
|
89
|
+
{
|
|
90
|
+
"const": "@id"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"const": "@set"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"const": "@graph"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"items": false,
|
|
100
|
+
"minItems": 3,
|
|
101
|
+
"maxItems": 3
|
|
111
102
|
},
|
|
112
103
|
{
|
|
113
104
|
"type": "array",
|
|
114
|
-
"
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
]
|
|
129
|
-
}
|
|
105
|
+
"prefixItems": [
|
|
106
|
+
{
|
|
107
|
+
"const": "@graph"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"const": "@id"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"const": "@set"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"items": false,
|
|
117
|
+
"minItems": 3,
|
|
118
|
+
"maxItems": 3
|
|
130
119
|
},
|
|
131
120
|
{
|
|
132
121
|
"type": "array",
|
|
133
|
-
"
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
]
|
|
148
|
-
}
|
|
122
|
+
"prefixItems": [
|
|
123
|
+
{
|
|
124
|
+
"const": "@id"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"const": "@graph"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"const": "@set"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"items": false,
|
|
134
|
+
"minItems": 3,
|
|
135
|
+
"maxItems": 3
|
|
149
136
|
},
|
|
150
137
|
{
|
|
151
138
|
"type": "array",
|
|
152
|
-
"
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
139
|
+
"prefixItems": [
|
|
140
|
+
{
|
|
141
|
+
"const": "@set"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContainerType"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"items": false,
|
|
148
|
+
"minItems": 2,
|
|
149
|
+
"maxItems": 2
|
|
163
150
|
},
|
|
164
151
|
{
|
|
165
152
|
"type": "array",
|
|
166
|
-
"
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
153
|
+
"prefixItems": [
|
|
154
|
+
{
|
|
155
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContainerType"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"const": "@set"
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
"items": false,
|
|
162
|
+
"minItems": 2,
|
|
163
|
+
"maxItems": 2
|
|
177
164
|
}
|
|
178
165
|
]
|
|
179
166
|
}
|
|
@@ -1,24 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://schema.twindev.org/json-ld/JsonLdContextDefinition",
|
|
4
|
+
"title": "JsonLdContextDefinition",
|
|
4
5
|
"description": "A context definition defines a local context in a node object.",
|
|
5
6
|
"type": "object",
|
|
6
7
|
"properties": {
|
|
7
8
|
"@base": {
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
"anyOf": [
|
|
10
|
+
{
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "null"
|
|
15
|
+
}
|
|
11
16
|
]
|
|
12
17
|
},
|
|
13
18
|
"@direction": {
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
"anyOf": [
|
|
20
|
+
{
|
|
21
|
+
"const": "ltr"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"const": "rtl"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"type": "null"
|
|
28
|
+
}
|
|
22
29
|
]
|
|
23
30
|
},
|
|
24
31
|
"@import": {
|
|
@@ -37,7 +44,6 @@
|
|
|
37
44
|
"type": "object",
|
|
38
45
|
"properties": {
|
|
39
46
|
"@container": {
|
|
40
|
-
"type": "string",
|
|
41
47
|
"const": "@set"
|
|
42
48
|
},
|
|
43
49
|
"@protected": {
|
|
@@ -49,13 +55,16 @@
|
|
|
49
55
|
]
|
|
50
56
|
},
|
|
51
57
|
"@version": {
|
|
52
|
-
"type": "string",
|
|
53
58
|
"const": "1.1"
|
|
54
59
|
},
|
|
55
60
|
"@vocab": {
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
61
|
+
"anyOf": [
|
|
62
|
+
{
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "null"
|
|
67
|
+
}
|
|
59
68
|
]
|
|
60
69
|
}
|
|
61
70
|
},
|
|
@@ -69,6 +78,56 @@
|
|
|
69
78
|
},
|
|
70
79
|
{
|
|
71
80
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdExpandedTermDefinition"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"anyOf": [
|
|
84
|
+
{
|
|
85
|
+
"anyOf": [
|
|
86
|
+
{
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"type": "null"
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"anyOf": [
|
|
96
|
+
{
|
|
97
|
+
"const": "ltr"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"const": "rtl"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"type": "null"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"type": "boolean"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"type": "object",
|
|
115
|
+
"properties": {
|
|
116
|
+
"@container": {
|
|
117
|
+
"const": "@set"
|
|
118
|
+
},
|
|
119
|
+
"@protected": {
|
|
120
|
+
"type": "boolean"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"required": [
|
|
124
|
+
"@container"
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"const": "1.1"
|
|
129
|
+
}
|
|
130
|
+
]
|
|
72
131
|
}
|
|
73
132
|
]
|
|
74
133
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement",
|
|
4
|
+
"title": "JsonLdContextDefinitionElement",
|
|
4
5
|
"description": "A context definition element is used to define the types of a context definition.",
|
|
5
6
|
"anyOf": [
|
|
6
7
|
{
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot",
|
|
4
|
+
"title": "JsonLdContextDefinitionRoot",
|
|
4
5
|
"description": "A context definition root is used to define the root of a context definition.",
|
|
5
6
|
"anyOf": [
|
|
6
7
|
{
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://schema.twindev.org/json-ld/JsonLdDocument",
|
|
4
|
-
"
|
|
4
|
+
"title": "JsonLdDocument",
|
|
5
|
+
"description": "A JSON-LD document MUST be valid JSON text as described in [RFC8259],\nor some format that can be represented in the JSON-LD internal representation\nthat is equivalent to valid JSON text.",
|
|
5
6
|
"anyOf": [
|
|
6
7
|
{
|
|
7
8
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|