@twin.org/data-json-ld 0.0.3-next.9 → 0.9.0-next.1

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 (151) hide show
  1. package/README.md +1 -1
  2. package/dist/es/helpers/jsonLdAliasKey.js +4 -0
  3. package/dist/es/helpers/jsonLdAliasKey.js.map +1 -0
  4. package/dist/es/helpers/jsonLdExistingProperty.js +4 -0
  5. package/dist/es/helpers/jsonLdExistingProperty.js.map +1 -0
  6. package/dist/es/helpers/jsonLdExistingPropertyEither.js +2 -0
  7. package/dist/es/helpers/jsonLdExistingPropertyEither.js.map +1 -0
  8. package/dist/es/helpers/jsonLdKeys.js +4 -0
  9. package/dist/es/helpers/jsonLdKeys.js.map +1 -0
  10. package/dist/es/helpers/jsonLdObjectWithAliases.js +2 -0
  11. package/dist/es/helpers/jsonLdObjectWithAliases.js.map +1 -0
  12. package/dist/es/helpers/jsonLdObjectWithAtId.js +2 -0
  13. package/dist/es/helpers/jsonLdObjectWithAtId.js.map +1 -0
  14. package/dist/es/helpers/jsonLdObjectWithAtType.js +2 -0
  15. package/dist/es/helpers/jsonLdObjectWithAtType.js.map +1 -0
  16. package/dist/es/helpers/jsonLdObjectWithContext.js +2 -0
  17. package/dist/es/helpers/jsonLdObjectWithContext.js.map +1 -0
  18. package/dist/es/helpers/jsonLdObjectWithId.js +2 -0
  19. package/dist/es/helpers/jsonLdObjectWithId.js.map +1 -0
  20. package/dist/es/helpers/jsonLdObjectWithNoAtId.js +4 -0
  21. package/dist/es/helpers/jsonLdObjectWithNoAtId.js.map +1 -0
  22. package/dist/es/helpers/jsonLdObjectWithNoAtType.js +4 -0
  23. package/dist/es/helpers/jsonLdObjectWithNoAtType.js.map +1 -0
  24. package/dist/es/helpers/jsonLdObjectWithNoContext.js +4 -0
  25. package/dist/es/helpers/jsonLdObjectWithNoContext.js.map +1 -0
  26. package/dist/es/helpers/jsonLdObjectWithNoId.js +4 -0
  27. package/dist/es/helpers/jsonLdObjectWithNoId.js.map +1 -0
  28. package/dist/es/helpers/jsonLdObjectWithNoType.js +4 -0
  29. package/dist/es/helpers/jsonLdObjectWithNoType.js.map +1 -0
  30. package/dist/es/helpers/jsonLdObjectWithOptionalAtId.js +2 -0
  31. package/dist/es/helpers/jsonLdObjectWithOptionalAtId.js.map +1 -0
  32. package/dist/es/helpers/jsonLdObjectWithOptionalAtType.js +2 -0
  33. package/dist/es/helpers/jsonLdObjectWithOptionalAtType.js.map +1 -0
  34. package/dist/es/helpers/jsonLdObjectWithOptionalContext.js +2 -0
  35. package/dist/es/helpers/jsonLdObjectWithOptionalContext.js.map +1 -0
  36. package/dist/es/helpers/jsonLdObjectWithOptionalId.js +2 -0
  37. package/dist/es/helpers/jsonLdObjectWithOptionalId.js.map +1 -0
  38. package/dist/es/helpers/jsonLdObjectWithOptionalType.js +2 -0
  39. package/dist/es/helpers/jsonLdObjectWithOptionalType.js.map +1 -0
  40. package/dist/es/helpers/jsonLdObjectWithType.js +2 -0
  41. package/dist/es/helpers/jsonLdObjectWithType.js.map +1 -0
  42. package/dist/es/helpers/jsonLdOptionalKeys.js +4 -0
  43. package/dist/es/helpers/jsonLdOptionalKeys.js.map +1 -0
  44. package/dist/es/helpers/jsonLdRequiredKeys.js +2 -0
  45. package/dist/es/helpers/jsonLdRequiredKeys.js.map +1 -0
  46. package/dist/es/helpers/jsonLdWithAliases.js +2 -0
  47. package/dist/es/helpers/jsonLdWithAliases.js.map +1 -0
  48. package/dist/es/index.js +23 -0
  49. package/dist/es/index.js.map +1 -1
  50. package/dist/es/models/IJsonLdDocument.js.map +1 -1
  51. package/dist/es/schemas/JsonLdContainerType.json +17 -7
  52. package/dist/es/schemas/JsonLdContainerTypeArray.json +129 -142
  53. package/dist/es/schemas/JsonLdContextDefinition.json +76 -18
  54. package/dist/es/schemas/JsonLdContextDefinitionElement.json +1 -0
  55. package/dist/es/schemas/JsonLdContextDefinitionRoot.json +1 -0
  56. package/dist/es/schemas/JsonLdDocument.json +3 -3
  57. package/dist/es/schemas/JsonLdExpandedTermDefinition.json +101 -89
  58. package/dist/es/schemas/JsonLdGraphObject.json +2 -2
  59. package/dist/es/schemas/JsonLdIdMap.json +1 -0
  60. package/dist/es/schemas/JsonLdIncludedBlock.json +1 -0
  61. package/dist/es/schemas/JsonLdIndexMap.json +2 -1
  62. package/dist/es/schemas/JsonLdIndexMapItem.json +1 -0
  63. package/dist/es/schemas/JsonLdJsonArray.json +1 -0
  64. package/dist/es/schemas/JsonLdJsonObject.json +2 -8
  65. package/dist/es/schemas/JsonLdJsonPrimitive.json +14 -5
  66. package/dist/es/schemas/JsonLdJsonValue.json +1 -0
  67. package/dist/es/schemas/JsonLdLanguageMap.json +1 -0
  68. package/dist/es/schemas/JsonLdListObject.json +2 -2
  69. package/dist/es/schemas/JsonLdListOrSetItem.json +1 -0
  70. package/dist/es/schemas/JsonLdNodeObject.json +12 -72
  71. package/dist/es/schemas/JsonLdNodePrimitive.json +1 -0
  72. package/dist/es/schemas/JsonLdObject.json +3 -3
  73. package/dist/es/schemas/JsonLdSetObject.json +2 -2
  74. package/dist/es/schemas/JsonLdTypeMap.json +1 -0
  75. package/dist/es/schemas/JsonLdValueObject.json +99 -87
  76. package/dist/es/utils/jsonLdHelper.js +85 -11
  77. package/dist/es/utils/jsonLdHelper.js.map +1 -1
  78. package/dist/es/utils/jsonLdProcessor.js +134 -40
  79. package/dist/es/utils/jsonLdProcessor.js.map +1 -1
  80. package/dist/types/helpers/jsonLdAliasKey.d.ts +4 -0
  81. package/dist/types/helpers/jsonLdExistingProperty.d.ts +6 -0
  82. package/dist/types/helpers/jsonLdExistingPropertyEither.d.ts +6 -0
  83. package/dist/types/helpers/jsonLdKeys.d.ts +4 -0
  84. package/dist/types/helpers/jsonLdObjectWithAliases.d.ts +7 -0
  85. package/dist/types/helpers/jsonLdObjectWithAtId.d.ts +7 -0
  86. package/dist/types/helpers/jsonLdObjectWithAtType.d.ts +7 -0
  87. package/dist/types/helpers/jsonLdObjectWithContext.d.ts +7 -0
  88. package/dist/types/helpers/jsonLdObjectWithId.d.ts +7 -0
  89. package/dist/types/helpers/jsonLdObjectWithNoAtId.d.ts +4 -0
  90. package/dist/types/helpers/jsonLdObjectWithNoAtType.d.ts +4 -0
  91. package/dist/types/helpers/jsonLdObjectWithNoContext.d.ts +5 -0
  92. package/dist/types/helpers/jsonLdObjectWithNoId.d.ts +4 -0
  93. package/dist/types/helpers/jsonLdObjectWithNoType.d.ts +4 -0
  94. package/dist/types/helpers/jsonLdObjectWithOptionalAtId.d.ts +7 -0
  95. package/dist/types/helpers/jsonLdObjectWithOptionalAtType.d.ts +7 -0
  96. package/dist/types/helpers/jsonLdObjectWithOptionalContext.d.ts +9 -0
  97. package/dist/types/helpers/jsonLdObjectWithOptionalId.d.ts +7 -0
  98. package/dist/types/helpers/jsonLdObjectWithOptionalType.d.ts +7 -0
  99. package/dist/types/helpers/jsonLdObjectWithType.d.ts +7 -0
  100. package/dist/types/helpers/jsonLdOptionalKeys.d.ts +6 -0
  101. package/dist/types/helpers/jsonLdRequiredKeys.d.ts +5 -0
  102. package/dist/types/helpers/jsonLdWithAliases.d.ts +13 -0
  103. package/dist/types/index.d.ts +23 -0
  104. package/dist/types/models/IJsonLdDocument.d.ts +0 -4
  105. package/dist/types/utils/jsonLdHelper.d.ts +31 -4
  106. package/dist/types/utils/jsonLdProcessor.d.ts +16 -13
  107. package/docs/changelog.md +381 -74
  108. package/docs/examples.md +214 -1
  109. package/docs/reference/classes/JsonLdDataTypes.md +1 -1
  110. package/docs/reference/classes/JsonLdHelper.md +130 -12
  111. package/docs/reference/classes/JsonLdProcessor.md +57 -64
  112. package/docs/reference/index.md +23 -0
  113. package/docs/reference/interfaces/IJsonLdContextDefinition.md +20 -20
  114. package/docs/reference/interfaces/IJsonLdGraphObject.md +7 -7
  115. package/docs/reference/interfaces/IJsonLdIdMap.md +1 -1
  116. package/docs/reference/interfaces/IJsonLdIndexMap.md +1 -1
  117. package/docs/reference/interfaces/IJsonLdJsonObject.md +1 -1
  118. package/docs/reference/interfaces/IJsonLdLanguageMap.md +1 -1
  119. package/docs/reference/interfaces/IJsonLdListObject.md +3 -3
  120. package/docs/reference/interfaces/IJsonLdNodeObject.md +17 -17
  121. package/docs/reference/interfaces/IJsonLdObject.md +16 -16
  122. package/docs/reference/interfaces/IJsonLdSetObject.md +3 -3
  123. package/docs/reference/interfaces/IJsonLdTypeMap.md +1 -1
  124. package/docs/reference/type-aliases/IJsonLdExpandedTermDefinition.md +7 -7
  125. package/docs/reference/type-aliases/IJsonLdValueObject.md +2 -2
  126. package/docs/reference/type-aliases/JsonLdAliasKey.md +15 -0
  127. package/docs/reference/type-aliases/JsonLdExistingProperty.md +19 -0
  128. package/docs/reference/type-aliases/JsonLdExistingPropertyEither.md +24 -0
  129. package/docs/reference/type-aliases/JsonLdKeys.md +11 -0
  130. package/docs/reference/type-aliases/JsonLdObjectWithAliases.md +16 -0
  131. package/docs/reference/type-aliases/JsonLdObjectWithAtId.md +21 -0
  132. package/docs/reference/type-aliases/JsonLdObjectWithAtType.md +21 -0
  133. package/docs/reference/type-aliases/JsonLdObjectWithContext.md +21 -0
  134. package/docs/reference/type-aliases/JsonLdObjectWithId.md +21 -0
  135. package/docs/reference/type-aliases/JsonLdObjectWithNoAtId.md +11 -0
  136. package/docs/reference/type-aliases/JsonLdObjectWithNoAtType.md +11 -0
  137. package/docs/reference/type-aliases/JsonLdObjectWithNoContext.md +12 -0
  138. package/docs/reference/type-aliases/JsonLdObjectWithNoId.md +11 -0
  139. package/docs/reference/type-aliases/JsonLdObjectWithNoType.md +11 -0
  140. package/docs/reference/type-aliases/JsonLdObjectWithOptionalAtId.md +21 -0
  141. package/docs/reference/type-aliases/JsonLdObjectWithOptionalAtType.md +21 -0
  142. package/docs/reference/type-aliases/JsonLdObjectWithOptionalContext.md +22 -0
  143. package/docs/reference/type-aliases/JsonLdObjectWithOptionalId.md +21 -0
  144. package/docs/reference/type-aliases/JsonLdObjectWithOptionalType.md +21 -0
  145. package/docs/reference/type-aliases/JsonLdObjectWithType.md +21 -0
  146. package/docs/reference/type-aliases/JsonLdOptionalKeys.md +11 -0
  147. package/docs/reference/type-aliases/JsonLdRequiredKeys.md +11 -0
  148. package/docs/reference/type-aliases/JsonLdWithAliases.md +17 -0
  149. package/docs/reference/variables/JsonLdContexts.md +3 -3
  150. package/docs/reference/variables/JsonLdTypes.md +26 -26
  151. package/package.json +10 -10
@@ -1,73 +1,31 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://schema.twindev.org/json-ld/JsonLdExpandedTermDefinition",
4
- "description": "An expanded term definition is used to describe the mapping between a term and its expanded identifier, as well as other properties of the value associated with the term when it is used as key in a node object.",
5
- "anyOf": [
4
+ "title": "JsonLdExpandedTermDefinition",
5
+ "description": "An expanded term definition is used to describe the mapping between a term\nand its expanded identifier, as well as other properties of the value\nassociated with the term when it is used as key in a node object.",
6
+ "allOf": [
6
7
  {
7
8
  "type": "object",
8
- "additionalProperties": false,
9
9
  "properties": {
10
- "@id": {
11
- "anyOf": [
12
- {
13
- "type": "string"
14
- },
15
- {
16
- "type": "array",
17
- "items": {
18
- "type": "string"
19
- }
20
- },
21
- {
22
- "type": "null"
23
- }
24
- ]
25
- },
26
- "@nest": {
27
- "type": "string"
28
- },
29
- "@container": {
10
+ "@type": {
30
11
  "anyOf": [
31
12
  {
32
- "type": "string",
33
- "const": "@list"
13
+ "const": "@id"
34
14
  },
35
15
  {
36
- "type": "string",
37
- "const": "@set"
16
+ "const": "@json"
38
17
  },
39
18
  {
40
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContainerType"
19
+ "const": "@none"
41
20
  },
42
21
  {
43
- "type": "array",
44
- "items": {
45
- "anyOf": [
46
- {
47
- "type": "string",
48
- "const": "@list"
49
- },
50
- {
51
- "type": "string",
52
- "const": "@set"
53
- },
54
- {
55
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContainerType"
56
- }
57
- ]
58
- }
59
- },
60
- {
61
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContainerTypeArray"
22
+ "const": "@vocab"
62
23
  },
63
24
  {
64
- "type": "null"
25
+ "type": "string"
65
26
  }
66
27
  ]
67
28
  },
68
- "@type": {
69
- "type": "string"
70
- },
71
29
  "@language": {
72
30
  "type": "string"
73
31
  },
@@ -89,47 +47,101 @@
89
47
  }
90
48
  },
91
49
  {
92
- "type": "object",
93
- "additionalProperties": false,
94
- "properties": {
95
- "@reverse": {
96
- "type": "string"
50
+ "anyOf": [
51
+ {
52
+ "type": "object",
53
+ "properties": {
54
+ "@id": {
55
+ "anyOf": [
56
+ {
57
+ "type": "string"
58
+ },
59
+ {
60
+ "type": "array",
61
+ "items": {
62
+ "type": "string"
63
+ }
64
+ },
65
+ {
66
+ "type": "null"
67
+ }
68
+ ]
69
+ },
70
+ "@nest": {
71
+ "anyOf": [
72
+ {
73
+ "const": "@nest"
74
+ },
75
+ {
76
+ "type": "string"
77
+ }
78
+ ]
79
+ },
80
+ "@container": {
81
+ "anyOf": [
82
+ {
83
+ "anyOf": [
84
+ {
85
+ "const": "@list"
86
+ },
87
+ {
88
+ "const": "@set"
89
+ },
90
+ {
91
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdContainerType"
92
+ }
93
+ ]
94
+ },
95
+ {
96
+ "type": "array",
97
+ "items": {
98
+ "anyOf": [
99
+ {
100
+ "const": "@list"
101
+ },
102
+ {
103
+ "const": "@set"
104
+ },
105
+ {
106
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdContainerType"
107
+ }
108
+ ]
109
+ }
110
+ },
111
+ {
112
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdContainerTypeArray"
113
+ },
114
+ {
115
+ "type": "null"
116
+ }
117
+ ]
118
+ }
119
+ }
97
120
  },
98
- "@container": {
99
- "type": [
100
- "string",
101
- "null"
102
- ],
103
- "enum": [
104
- "@set",
105
- "@index",
106
- null
121
+ {
122
+ "type": "object",
123
+ "properties": {
124
+ "@reverse": {
125
+ "type": "string"
126
+ },
127
+ "@container": {
128
+ "anyOf": [
129
+ {
130
+ "const": "@set"
131
+ },
132
+ {
133
+ "const": "@index"
134
+ },
135
+ {
136
+ "type": "null"
137
+ }
138
+ ]
139
+ }
140
+ },
141
+ "required": [
142
+ "@reverse"
107
143
  ]
108
- },
109
- "@type": {
110
- "type": "string"
111
- },
112
- "@language": {
113
- "type": "string"
114
- },
115
- "@index": {
116
- "type": "string"
117
- },
118
- "@context": {
119
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinition"
120
- },
121
- "@prefix": {
122
- "type": "boolean"
123
- },
124
- "@propagate": {
125
- "type": "boolean"
126
- },
127
- "@protected": {
128
- "type": "boolean"
129
144
  }
130
- },
131
- "required": [
132
- "@reverse"
133
145
  ]
134
146
  }
135
147
  ]
@@ -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/JsonLdGraphObject",
4
+ "title": "JsonLdGraphObject",
4
5
  "description": "A graph object represents a named graph, which MAY include an explicit graph name.",
5
6
  "type": "object",
6
7
  "properties": {
@@ -39,6 +40,5 @@
39
40
  },
40
41
  "required": [
41
42
  "@graph"
42
- ],
43
- "additionalProperties": false
43
+ ]
44
44
  }
@@ -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/JsonLdIdMap",
4
+ "title": "JsonLdIdMap",
4
5
  "description": "An id map is used to associate an IRI with a value that allows easy programmatic access.",
5
6
  "type": "object",
6
7
  "additionalProperties": {
@@ -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/JsonLdIncludedBlock",
4
+ "title": "JsonLdIncludedBlock",
4
5
  "description": "An included block is used to provide a set of node objects.",
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/JsonLdIndexMap",
4
- "description": "An index map allows keys that have no semantic meaning, but should be preserved regardless, to be used in JSON-LD documents.",
4
+ "title": "JsonLdIndexMap",
5
+ "description": "An index map allows keys that have no semantic meaning, but should be preserved regardless,\nto be used in JSON-LD documents.",
5
6
  "type": "object",
6
7
  "additionalProperties": {
7
8
  "anyOf": [
@@ -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/JsonLdIndexMapItem",
4
+ "title": "JsonLdIndexMapItem",
4
5
  "description": "The items that can be stored in an index map.",
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/JsonLdJsonArray",
4
+ "title": "JsonLdJsonArray",
4
5
  "description": "JSON Type for array.",
5
6
  "type": "array",
6
7
  "items": {
@@ -1,16 +1,10 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://schema.twindev.org/json-ld/JsonLdJsonObject",
4
+ "title": "JsonLdJsonObject",
4
5
  "description": "JSON Type for object.",
5
6
  "type": "object",
6
7
  "additionalProperties": {
7
- "anyOf": [
8
- {
9
- "$ref": "https://schema.twindev.org/json-ld/JsonLdJsonValue"
10
- },
11
- {
12
- "not": {}
13
- }
14
- ]
8
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdJsonValue"
15
9
  }
16
10
  }
@@ -1,11 +1,20 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://schema.twindev.org/json-ld/JsonLdJsonPrimitive",
4
+ "title": "JsonLdJsonPrimitive",
4
5
  "description": "JSON Primitive.",
5
- "type": [
6
- "string",
7
- "number",
8
- "boolean",
9
- "null"
6
+ "anyOf": [
7
+ {
8
+ "type": "string"
9
+ },
10
+ {
11
+ "type": "number"
12
+ },
13
+ {
14
+ "type": "boolean"
15
+ },
16
+ {
17
+ "type": "null"
18
+ }
10
19
  ]
11
20
  }
@@ -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/JsonLdJsonValue",
4
+ "title": "JsonLdJsonValue",
4
5
  "description": "JSON Value.",
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/JsonLdLanguageMap",
4
+ "title": "JsonLdLanguageMap",
4
5
  "description": "A language map is used to associate a language with a value in a way that allows easy programmatic access.",
5
6
  "type": "object",
6
7
  "additionalProperties": {
@@ -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/JsonLdListObject",
4
+ "title": "JsonLdListObject",
4
5
  "description": "A list represents an ordered set of values.",
5
6
  "type": "object",
6
7
  "properties": {
@@ -23,6 +24,5 @@
23
24
  },
24
25
  "required": [
25
26
  "@list"
26
- ],
27
- "additionalProperties": false
27
+ ]
28
28
  }
@@ -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/JsonLdListOrSetItem",
4
+ "title": "JsonLdListOrSetItem",
4
5
  "description": "A list or set item can be a null, boolean, number, string, node object, or value object.",
5
6
  "anyOf": [
6
7
  {
@@ -1,13 +1,20 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
4
- "description": "A node object represents zero or more properties of a node in the graph serialized by the JSON-LD document.",
4
+ "title": "JsonLdNodeObject",
5
+ "description": "A node object represents zero or more properties of a node\nin the graph serialized by the JSON-LD document.",
5
6
  "type": "object",
6
7
  "additionalProperties": {
7
8
  "anyOf": [
8
9
  {
9
10
  "$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
10
11
  },
12
+ {
13
+ "type": "array",
14
+ "items": {
15
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
16
+ }
17
+ },
11
18
  {
12
19
  "$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
13
20
  },
@@ -22,79 +29,12 @@
22
29
  },
23
30
  {
24
31
  "$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
25
- },
26
- {
27
- "type": "array"
28
32
  }
29
33
  ]
30
34
  },
31
- "properties": {
32
- "@context": {
33
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
34
- },
35
- "@id": {
36
- "anyOf": [
37
- {
38
- "type": "string"
39
- },
40
- {
41
- "type": "array",
42
- "items": {
43
- "type": "string"
44
- }
45
- }
46
- ]
47
- },
48
- "@included": {
49
- "$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
50
- },
51
- "@graph": {
52
- "anyOf": [
53
- {
54
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
55
- },
56
- {
57
- "type": "array",
58
- "items": {
59
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
60
- }
61
- }
62
- ]
63
- },
64
- "@nest": {
65
- "anyOf": [
66
- {
67
- "$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
68
- },
69
- {
70
- "type": "array",
71
- "items": {
72
- "$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
73
- }
74
- }
75
- ]
76
- },
77
- "@type": {
78
- "anyOf": [
79
- {
80
- "type": "string"
81
- },
82
- {
83
- "type": "array",
84
- "items": {
85
- "type": "string"
86
- }
87
- }
88
- ]
89
- },
90
- "@reverse": {
91
- "type": "object",
92
- "additionalProperties": {
93
- "type": "string"
94
- }
95
- },
96
- "@index": {
97
- "type": "string"
35
+ "allOf": [
36
+ {
37
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdObject"
98
38
  }
99
- }
39
+ ]
100
40
  }
@@ -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/JsonLdNodePrimitive",
4
+ "title": "JsonLdNodePrimitive",
4
5
  "description": "A node primitive is a JSON-LD value which is not one of the defined NodeObject properties.",
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/JsonLdObject",
4
- "description": "An object represents the pre-defined properties of the node object in the graph serialized by the JSON-LD document.",
4
+ "title": "JsonLdObject",
5
+ "description": "An object represents the pre-defined properties of the node object\nin the graph serialized by the JSON-LD document.",
5
6
  "type": "object",
6
7
  "properties": {
7
8
  "@context": {
@@ -71,6 +72,5 @@
71
72
  "@index": {
72
73
  "type": "string"
73
74
  }
74
- },
75
- "additionalProperties": false
75
+ }
76
76
  }
@@ -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/JsonLdSetObject",
4
+ "title": "JsonLdSetObject",
4
5
  "description": "A set represents an unordered set of values.",
5
6
  "type": "object",
6
7
  "properties": {
@@ -23,6 +24,5 @@
23
24
  },
24
25
  "required": [
25
26
  "@set"
26
- ],
27
- "additionalProperties": false
27
+ ]
28
28
  }
@@ -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/JsonLdTypeMap",
4
+ "title": "JsonLdTypeMap",
4
5
  "description": "A type map is used to associate an IRI with a value that allows easy programmatic access.",
5
6
  "type": "object",
6
7
  "additionalProperties": {