@twin.org/data-json-ld 0.0.1-next.35 → 0.0.1-next.37

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.
@@ -129,25 +129,34 @@ const JsonLdTypes = {
129
129
  JsonValue: "JsonLdJsonValue"
130
130
  };
131
131
 
132
- var type$e = "string";
133
- var description$p = "Helper Types";
132
+ var $schema$o = "https://json-schema.org/draft/2020-12/schema";
133
+ var $id$o = "https://schema.twindev.org/json-ld/JsonLdContainerType";
134
+ var description$o = "JSON-LD container types.";
135
+ var type$d = "string";
134
136
  var JsonLdContainerTypeSchema = {
135
- type: type$e,
137
+ $schema: $schema$o,
138
+ $id: $id$o,
139
+ description: description$o,
140
+ type: type$d,
136
141
  "enum": [
137
142
  "@language",
138
143
  "@index",
139
144
  "@id",
140
145
  "@graph",
141
146
  "@type"
142
- ],
143
- description: description$p
147
+ ]
144
148
  };
145
149
 
150
+ var $schema$n = "https://json-schema.org/draft/2020-12/schema";
151
+ var $id$n = "https://schema.twindev.org/json-ld/JsonLdContainerTypeArray";
152
+ var description$n = "JSON-LD container type array.";
146
153
  var anyOf$a = [
147
154
  {
148
155
  type: "array",
149
156
  minItems: 2,
150
- items: [
157
+ items: false,
158
+ maxItems: 2,
159
+ prefixItems: [
151
160
  {
152
161
  type: "string",
153
162
  "const": "@graph"
@@ -156,13 +165,14 @@ var anyOf$a = [
156
165
  type: "string",
157
166
  "const": "@id"
158
167
  }
159
- ],
160
- maxItems: 2
168
+ ]
161
169
  },
162
170
  {
163
171
  type: "array",
164
172
  minItems: 2,
165
- items: [
173
+ items: false,
174
+ maxItems: 2,
175
+ prefixItems: [
166
176
  {
167
177
  type: "string",
168
178
  "const": "@id"
@@ -171,13 +181,14 @@ var anyOf$a = [
171
181
  type: "string",
172
182
  "const": "@graph"
173
183
  }
174
- ],
175
- maxItems: 2
184
+ ]
176
185
  },
177
186
  {
178
187
  type: "array",
179
188
  minItems: 3,
180
- items: [
189
+ items: false,
190
+ maxItems: 3,
191
+ prefixItems: [
181
192
  {
182
193
  type: "string",
183
194
  "const": "@set"
@@ -190,13 +201,14 @@ var anyOf$a = [
190
201
  type: "string",
191
202
  "const": "@id"
192
203
  }
193
- ],
194
- maxItems: 3
204
+ ]
195
205
  },
196
206
  {
197
207
  type: "array",
198
208
  minItems: 3,
199
- items: [
209
+ items: false,
210
+ maxItems: 3,
211
+ prefixItems: [
200
212
  {
201
213
  type: "string",
202
214
  "const": "@set"
@@ -209,13 +221,14 @@ var anyOf$a = [
209
221
  type: "string",
210
222
  "const": "@graph"
211
223
  }
212
- ],
213
- maxItems: 3
224
+ ]
214
225
  },
215
226
  {
216
227
  type: "array",
217
228
  minItems: 3,
218
- items: [
229
+ items: false,
230
+ maxItems: 3,
231
+ prefixItems: [
219
232
  {
220
233
  type: "string",
221
234
  "const": "@graph"
@@ -228,13 +241,14 @@ var anyOf$a = [
228
241
  type: "string",
229
242
  "const": "@id"
230
243
  }
231
- ],
232
- maxItems: 3
244
+ ]
233
245
  },
234
246
  {
235
247
  type: "array",
236
248
  minItems: 3,
237
- items: [
249
+ items: false,
250
+ maxItems: 3,
251
+ prefixItems: [
238
252
  {
239
253
  type: "string",
240
254
  "const": "@id"
@@ -247,13 +261,14 @@ var anyOf$a = [
247
261
  type: "string",
248
262
  "const": "@graph"
249
263
  }
250
- ],
251
- maxItems: 3
264
+ ]
252
265
  },
253
266
  {
254
267
  type: "array",
255
268
  minItems: 3,
256
- items: [
269
+ items: false,
270
+ maxItems: 3,
271
+ prefixItems: [
257
272
  {
258
273
  type: "string",
259
274
  "const": "@graph"
@@ -266,13 +281,14 @@ var anyOf$a = [
266
281
  type: "string",
267
282
  "const": "@set"
268
283
  }
269
- ],
270
- maxItems: 3
284
+ ]
271
285
  },
272
286
  {
273
287
  type: "array",
274
288
  minItems: 3,
275
- items: [
289
+ items: false,
290
+ maxItems: 3,
291
+ prefixItems: [
276
292
  {
277
293
  type: "string",
278
294
  "const": "@id"
@@ -285,13 +301,14 @@ var anyOf$a = [
285
301
  type: "string",
286
302
  "const": "@set"
287
303
  }
288
- ],
289
- maxItems: 3
304
+ ]
290
305
  },
291
306
  {
292
307
  type: "array",
293
308
  minItems: 2,
294
- items: [
309
+ items: false,
310
+ maxItems: 2,
311
+ prefixItems: [
295
312
  {
296
313
  type: "string",
297
314
  "const": "@set"
@@ -299,13 +316,14 @@ var anyOf$a = [
299
316
  {
300
317
  $ref: "https://schema.twindev.org/json-ld/JsonLdContainerType"
301
318
  }
302
- ],
303
- maxItems: 2
319
+ ]
304
320
  },
305
321
  {
306
322
  type: "array",
307
323
  minItems: 2,
308
- items: [
324
+ items: false,
325
+ maxItems: 2,
326
+ prefixItems: [
309
327
  {
310
328
  $ref: "https://schema.twindev.org/json-ld/JsonLdContainerType"
311
329
  },
@@ -313,18 +331,21 @@ var anyOf$a = [
313
331
  type: "string",
314
332
  "const": "@set"
315
333
  }
316
- ],
317
- maxItems: 2
334
+ ]
318
335
  }
319
336
  ];
320
- var description$o = "Helper Types.";
321
337
  var JsonLdContainerTypeArraySchema = {
322
- anyOf: anyOf$a,
323
- description: description$o
338
+ $schema: $schema$n,
339
+ $id: $id$n,
340
+ description: description$n,
341
+ anyOf: anyOf$a
324
342
  };
325
343
 
326
- var type$d = "object";
327
- var properties$6 = {
344
+ var $schema$m = "https://json-schema.org/draft/2020-12/schema";
345
+ var $id$m = "https://schema.twindev.org/json-ld/JsonLdContextDefinition";
346
+ var description$m = "A context definition defines a local context in a node object.";
347
+ var type$c = "object";
348
+ var properties$5 = {
328
349
  "@base": {
329
350
  type: [
330
351
  "string",
@@ -381,7 +402,7 @@ var properties$6 = {
381
402
  ]
382
403
  }
383
404
  };
384
- var additionalProperties$b = {
405
+ var additionalProperties$a = {
385
406
  anyOf: [
386
407
  {
387
408
  type: "null"
@@ -394,14 +415,18 @@ var additionalProperties$b = {
394
415
  }
395
416
  ]
396
417
  };
397
- var description$n = "A context definition defines a local context in a node object.";
398
418
  var JsonLdContextDefinitionSchema = {
399
- type: type$d,
400
- properties: properties$6,
401
- additionalProperties: additionalProperties$b,
402
- description: description$n
419
+ $schema: $schema$m,
420
+ $id: $id$m,
421
+ description: description$m,
422
+ type: type$c,
423
+ properties: properties$5,
424
+ additionalProperties: additionalProperties$a
403
425
  };
404
426
 
427
+ var $schema$l = "https://json-schema.org/draft/2020-12/schema";
428
+ var $id$l = "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement";
429
+ var description$l = "A context definition element is used to define the types of a context definition.";
405
430
  var anyOf$9 = [
406
431
  {
407
432
  type: "null"
@@ -413,38 +438,52 @@ var anyOf$9 = [
413
438
  $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinition"
414
439
  }
415
440
  ];
416
- var description$m = "A context definition element is used to define the types of a context definition.";
417
441
  var JsonLdContextDefinitionElementSchema = {
418
- anyOf: anyOf$9,
419
- description: description$m
442
+ $schema: $schema$l,
443
+ $id: $id$l,
444
+ description: description$l,
445
+ anyOf: anyOf$9
420
446
  };
421
447
 
448
+ var $schema$k = "https://json-schema.org/draft/2020-12/schema";
449
+ var $id$k = "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot";
450
+ var description$k = "A context definition root is used to define the root of a context definition.";
422
451
  var anyOf$8 = [
423
452
  {
424
453
  $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
425
454
  },
426
455
  {
427
456
  type: "array",
428
- items: {
429
- $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
430
- }
457
+ items: false,
458
+ prefixItems: [
459
+ {
460
+ $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
461
+ }
462
+ ]
431
463
  }
432
464
  ];
433
- var description$l = "A context definition root is used to define the root of a context definition.";
434
465
  var JsonLdContextDefinitionRootSchema = {
435
- anyOf: anyOf$8,
436
- description: description$l
466
+ $schema: $schema$k,
467
+ $id: $id$k,
468
+ description: description$k,
469
+ anyOf: anyOf$8
437
470
  };
438
471
 
472
+ var $schema$j = "https://json-schema.org/draft/2020-12/schema";
473
+ var $id$j = "https://schema.twindev.org/json-ld/JsonLdDocument";
474
+ var description$j = "A JSON-LD document MUST be valid JSON text as described in [RFC8259], or some format that can be represented in the JSON-LD internal representation that is equivalent to valid JSON text.";
439
475
  var anyOf$7 = [
440
476
  {
441
477
  $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
442
478
  },
443
479
  {
444
480
  type: "array",
445
- items: {
446
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
447
- }
481
+ items: false,
482
+ prefixItems: [
483
+ {
484
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
485
+ }
486
+ ]
448
487
  },
449
488
  {
450
489
  type: "object",
@@ -462,16 +501,19 @@ var anyOf$7 = [
462
501
  },
463
502
  {
464
503
  type: "array",
465
- items: {
466
- anyOf: [
467
- {
468
- $ref: "https://schema.twindev.org/json-ld/JsonLdValueObject"
469
- },
470
- {
471
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
472
- }
473
- ]
474
- }
504
+ items: false,
505
+ prefixItems: [
506
+ {
507
+ anyOf: [
508
+ {
509
+ $ref: "https://schema.twindev.org/json-ld/JsonLdValueObject"
510
+ },
511
+ {
512
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
513
+ }
514
+ ]
515
+ }
516
+ ]
475
517
  }
476
518
  ]
477
519
  }
@@ -479,12 +521,16 @@ var anyOf$7 = [
479
521
  additionalProperties: false
480
522
  }
481
523
  ];
482
- var description$k = "A JSON-LD document MUST be valid JSON text as described in [RFC8259], or some format that can be represented in the JSON-LD internal representation that is equivalent to valid JSON text.";
483
524
  var JsonLdDocumentSchema = {
484
- anyOf: anyOf$7,
485
- description: description$k
525
+ $schema: $schema$j,
526
+ $id: $id$j,
527
+ description: description$j,
528
+ anyOf: anyOf$7
486
529
  };
487
530
 
531
+ var $schema$i = "https://json-schema.org/draft/2020-12/schema";
532
+ var $id$i = "https://schema.twindev.org/json-ld/JsonLdExpandedTermDefinition";
533
+ var description$i = "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.";
488
534
  var anyOf$6 = [
489
535
  {
490
536
  type: "object",
@@ -497,9 +543,12 @@ var anyOf$6 = [
497
543
  },
498
544
  {
499
545
  type: "array",
500
- items: {
501
- type: "string"
502
- }
546
+ items: false,
547
+ prefixItems: [
548
+ {
549
+ type: "string"
550
+ }
551
+ ]
503
552
  },
504
553
  {
505
554
  type: "null"
@@ -524,21 +573,24 @@ var anyOf$6 = [
524
573
  },
525
574
  {
526
575
  type: "array",
527
- items: {
528
- anyOf: [
529
- {
530
- type: "string",
531
- "const": "@list"
532
- },
533
- {
534
- type: "string",
535
- "const": "@set"
536
- },
537
- {
538
- $ref: "https://schema.twindev.org/json-ld/JsonLdContainerType"
539
- }
540
- ]
541
- }
576
+ items: false,
577
+ prefixItems: [
578
+ {
579
+ anyOf: [
580
+ {
581
+ type: "string",
582
+ "const": "@list"
583
+ },
584
+ {
585
+ type: "string",
586
+ "const": "@set"
587
+ },
588
+ {
589
+ $ref: "https://schema.twindev.org/json-ld/JsonLdContainerType"
590
+ }
591
+ ]
592
+ }
593
+ ]
542
594
  },
543
595
  {
544
596
  $ref: "https://schema.twindev.org/json-ld/JsonLdContainerTypeArray"
@@ -616,14 +668,18 @@ var anyOf$6 = [
616
668
  ]
617
669
  }
618
670
  ];
619
- var description$j = "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.";
620
671
  var JsonLdExpandedTermDefinitionSchema = {
621
- anyOf: anyOf$6,
622
- description: description$j
672
+ $schema: $schema$i,
673
+ $id: $id$i,
674
+ description: description$i,
675
+ anyOf: anyOf$6
623
676
  };
624
677
 
625
- var type$c = "object";
626
- var properties$5 = {
678
+ var $schema$h = "https://json-schema.org/draft/2020-12/schema";
679
+ var $id$h = "https://schema.twindev.org/json-ld/JsonLdGraphObject";
680
+ var description$h = "A graph object represents a named graph, which MAY include an explicit graph name.";
681
+ var type$b = "object";
682
+ var properties$4 = {
627
683
  "@graph": {
628
684
  anyOf: [
629
685
  {
@@ -631,9 +687,12 @@ var properties$5 = {
631
687
  },
632
688
  {
633
689
  type: "array",
634
- items: {
635
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
636
- }
690
+ items: false,
691
+ prefixItems: [
692
+ {
693
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
694
+ }
695
+ ]
637
696
  }
638
697
  ]
639
698
  },
@@ -647,9 +706,12 @@ var properties$5 = {
647
706
  },
648
707
  {
649
708
  type: "array",
650
- items: {
651
- type: "string"
652
- }
709
+ items: false,
710
+ prefixItems: [
711
+ {
712
+ type: "string"
713
+ }
714
+ ]
653
715
  }
654
716
  ]
655
717
  },
@@ -657,68 +719,90 @@ var properties$5 = {
657
719
  $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
658
720
  }
659
721
  };
660
- var required$3 = [
722
+ var required$2 = [
661
723
  "@graph"
662
724
  ];
663
- var additionalProperties$a = false;
664
- var description$i = "A graph object represents a named graph, which MAY include an explicit graph name.";
725
+ var additionalProperties$9 = false;
665
726
  var JsonLdGraphObjectSchema = {
666
- type: type$c,
667
- properties: properties$5,
668
- required: required$3,
669
- additionalProperties: additionalProperties$a,
670
- description: description$i
727
+ $schema: $schema$h,
728
+ $id: $id$h,
729
+ description: description$h,
730
+ type: type$b,
731
+ properties: properties$4,
732
+ required: required$2,
733
+ additionalProperties: additionalProperties$9
671
734
  };
672
735
 
673
- var type$b = "object";
674
- var additionalProperties$9 = {
736
+ var $schema$g = "https://json-schema.org/draft/2020-12/schema";
737
+ var $id$g = "https://schema.twindev.org/json-ld/JsonLdIdMap";
738
+ var description$g = "An id map is used to associate an IRI with a value that allows easy programmatic access.";
739
+ var type$a = "object";
740
+ var additionalProperties$8 = {
675
741
  $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
676
742
  };
677
- var description$h = "An id map is used to associate an IRI with a value that allows easy programmatic access.";
678
743
  var JsonLdIdMapSchema = {
679
- type: type$b,
680
- additionalProperties: additionalProperties$9,
681
- description: description$h
744
+ $schema: $schema$g,
745
+ $id: $id$g,
746
+ description: description$g,
747
+ type: type$a,
748
+ additionalProperties: additionalProperties$8
682
749
  };
683
750
 
751
+ var $schema$f = "https://json-schema.org/draft/2020-12/schema";
752
+ var $id$f = "https://schema.twindev.org/json-ld/JsonLdIncludedBlock";
753
+ var description$f = "An included block is used to provide a set of node objects.";
684
754
  var anyOf$5 = [
685
755
  {
686
756
  $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
687
757
  },
688
758
  {
689
759
  type: "array",
690
- items: {
691
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
692
- }
760
+ items: false,
761
+ prefixItems: [
762
+ {
763
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
764
+ }
765
+ ]
693
766
  }
694
767
  ];
695
- var description$g = "An included block is used to provide a set of node objects.";
696
768
  var JsonLdIncludedBlockSchema = {
697
- anyOf: anyOf$5,
698
- description: description$g
769
+ $schema: $schema$f,
770
+ $id: $id$f,
771
+ description: description$f,
772
+ anyOf: anyOf$5
699
773
  };
700
774
 
701
- var type$a = "object";
702
- var additionalProperties$8 = {
775
+ var $schema$e = "https://json-schema.org/draft/2020-12/schema";
776
+ var $id$e = "https://schema.twindev.org/json-ld/JsonLdIndexMap";
777
+ var description$e = "An index map allows keys that have no semantic meaning, but should be preserved regardless, to be used in JSON-LD documents.";
778
+ var type$9 = "object";
779
+ var additionalProperties$7 = {
703
780
  anyOf: [
704
781
  {
705
782
  $ref: "https://schema.twindev.org/json-ld/JsonLdIndexMapItem"
706
783
  },
707
784
  {
708
785
  type: "array",
709
- items: {
710
- $ref: "https://schema.twindev.org/json-ld/JsonLdIndexMapItem"
711
- }
786
+ items: false,
787
+ prefixItems: [
788
+ {
789
+ $ref: "https://schema.twindev.org/json-ld/JsonLdIndexMapItem"
790
+ }
791
+ ]
712
792
  }
713
793
  ]
714
794
  };
715
- var description$f = "An index map allows keys that have no semantic meaning, but should be preserved regardless, to be used in JSON-LD documents.";
716
795
  var JsonLdIndexMapSchema = {
717
- type: type$a,
718
- additionalProperties: additionalProperties$8,
719
- description: description$f
796
+ $schema: $schema$e,
797
+ $id: $id$e,
798
+ description: description$e,
799
+ type: type$9,
800
+ additionalProperties: additionalProperties$7
720
801
  };
721
802
 
803
+ var $schema$d = "https://json-schema.org/draft/2020-12/schema";
804
+ var $id$d = "https://schema.twindev.org/json-ld/JsonLdIndexMapItem";
805
+ var description$d = "The items that can be stored in an index map.";
722
806
  var anyOf$4 = [
723
807
  {
724
808
  type: "null"
@@ -745,25 +829,37 @@ var anyOf$4 = [
745
829
  $ref: "https://schema.twindev.org/json-ld/JsonLdSetObject"
746
830
  }
747
831
  ];
748
- var description$e = "The items that can be stored in an index map.";
749
832
  var JsonLdIndexMapItemSchema = {
750
- anyOf: anyOf$4,
751
- description: description$e
833
+ $schema: $schema$d,
834
+ $id: $id$d,
835
+ description: description$d,
836
+ anyOf: anyOf$4
752
837
  };
753
838
 
754
- var type$9 = "array";
755
- var items = {
756
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonValue"
757
- };
758
- var description$d = "JSON Type for array.";
839
+ var $schema$c = "https://json-schema.org/draft/2020-12/schema";
840
+ var $id$c = "https://schema.twindev.org/json-ld/JsonLdJsonArray";
841
+ var description$c = "JSON Type for array.";
842
+ var type$8 = "array";
843
+ var items = false;
844
+ var prefixItems = [
845
+ {
846
+ $ref: "https://schema.twindev.org/json-ld/JsonLdJsonValue"
847
+ }
848
+ ];
759
849
  var JsonLdJsonArraySchema = {
760
- type: type$9,
850
+ $schema: $schema$c,
851
+ $id: $id$c,
852
+ description: description$c,
853
+ type: type$8,
761
854
  items: items,
762
- description: description$d
855
+ prefixItems: prefixItems
763
856
  };
764
857
 
765
- var type$8 = "object";
766
- var additionalProperties$7 = {
858
+ var $schema$b = "https://json-schema.org/draft/2020-12/schema";
859
+ var $id$b = "https://schema.twindev.org/json-ld/JsonLdJsonObject";
860
+ var description$b = "JSON Type for object.";
861
+ var type$7 = "object";
862
+ var additionalProperties$6 = {
767
863
  anyOf: [
768
864
  {
769
865
  $ref: "https://schema.twindev.org/json-ld/JsonLdJsonValue"
@@ -774,25 +870,33 @@ var additionalProperties$7 = {
774
870
  }
775
871
  ]
776
872
  };
777
- var description$c = "JSON Type for object.";
778
873
  var JsonLdJsonObjectSchema = {
779
- type: type$8,
780
- additionalProperties: additionalProperties$7,
781
- description: description$c
874
+ $schema: $schema$b,
875
+ $id: $id$b,
876
+ description: description$b,
877
+ type: type$7,
878
+ additionalProperties: additionalProperties$6
782
879
  };
783
880
 
784
- var type$7 = [
881
+ var $schema$a = "https://json-schema.org/draft/2020-12/schema";
882
+ var $id$a = "https://schema.twindev.org/json-ld/JsonLdJsonPrimitive";
883
+ var description$a = "JSON Primitive.";
884
+ var type$6 = [
785
885
  "string",
786
886
  "number",
787
887
  "boolean",
788
888
  "null"
789
889
  ];
790
- var description$b = "JSON Primitive.";
791
890
  var JsonLdJsonPrimitiveSchema = {
792
- type: type$7,
793
- description: description$b
891
+ $schema: $schema$a,
892
+ $id: $id$a,
893
+ description: description$a,
894
+ type: type$6
794
895
  };
795
896
 
897
+ var $schema$9 = "https://json-schema.org/draft/2020-12/schema";
898
+ var $id$9 = "https://schema.twindev.org/json-ld/JsonLdJsonValue";
899
+ var description$9 = "JSON Value.";
796
900
  var anyOf$3 = [
797
901
  {
798
902
  $ref: "https://schema.twindev.org/json-ld/JsonLdJsonPrimitive"
@@ -804,227 +908,16 @@ var anyOf$3 = [
804
908
  $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
805
909
  }
806
910
  ];
807
- var description$a = "JSON Value.";
808
911
  var JsonLdJsonValueSchema = {
809
- anyOf: anyOf$3,
810
- description: description$a
811
- };
812
-
813
- var type$6 = "object";
814
- var properties$4 = {
815
- "@base": {
816
- type: [
817
- "string",
818
- "null"
819
- ]
820
- },
821
- "@container": {
822
- anyOf: [
823
- {
824
- type: "string",
825
- "const": "@list"
826
- },
827
- {
828
- type: "string",
829
- "const": "@set"
830
- },
831
- {
832
- $ref: "https://schema.twindev.org/json-ld/JsonLdContainerType"
833
- },
834
- {
835
- type: "array",
836
- items: {
837
- anyOf: [
838
- {
839
- type: "string",
840
- "const": "@list"
841
- },
842
- {
843
- type: "string",
844
- "const": "@set"
845
- },
846
- {
847
- $ref: "https://schema.twindev.org/json-ld/JsonLdContainerType"
848
- }
849
- ]
850
- }
851
- },
852
- {
853
- $ref: "https://schema.twindev.org/json-ld/JsonLdContainerTypeArray"
854
- },
855
- {
856
- type: "null"
857
- }
858
- ]
859
- },
860
- "@context": {
861
- $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
862
- },
863
- "@direction": {
864
- type: [
865
- "string",
866
- "null"
867
- ],
868
- "enum": [
869
- "ltr",
870
- "rtl",
871
- null
872
- ]
873
- },
874
- "@graph": {
875
- anyOf: [
876
- {
877
- $ref: "https://schema.twindev.org/json-ld/JsonLdValueObject"
878
- },
879
- {
880
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
881
- },
882
- {
883
- type: "array",
884
- items: {
885
- anyOf: [
886
- {
887
- $ref: "https://schema.twindev.org/json-ld/JsonLdValueObject"
888
- },
889
- {
890
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
891
- }
892
- ]
893
- }
894
- }
895
- ]
896
- },
897
- "@id": {
898
- anyOf: [
899
- {
900
- type: "string"
901
- },
902
- {
903
- type: "array",
904
- items: {
905
- type: "string"
906
- }
907
- }
908
- ]
909
- },
910
- "@import": {
911
- type: "string"
912
- },
913
- "@included": {
914
- $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
915
- },
916
- "@index": {
917
- type: "string"
918
- },
919
- "@json": {
920
- type: "string",
921
- "const": "@json"
922
- },
923
- "@language": {
924
- type: "string"
925
- },
926
- "@list": {
927
- anyOf: [
928
- {
929
- $ref: "https://schema.twindev.org/json-ld/JsonLdListOrSetItem"
930
- },
931
- {
932
- type: "array",
933
- items: {
934
- $ref: "https://schema.twindev.org/json-ld/JsonLdListOrSetItem"
935
- }
936
- }
937
- ]
938
- },
939
- "@nest": {
940
- type: "object"
941
- },
942
- "@none": {
943
- type: "string",
944
- "const": "@none"
945
- },
946
- "@prefix": {
947
- type: "boolean"
948
- },
949
- "@propagate": {
950
- type: "boolean"
951
- },
952
- "@protected": {
953
- type: "boolean"
954
- },
955
- "@reverse": {
956
- type: "string"
957
- },
958
- "@set": {
959
- anyOf: [
960
- {
961
- $ref: "https://schema.twindev.org/json-ld/JsonLdListOrSetItem"
962
- },
963
- {
964
- type: "array",
965
- items: {
966
- $ref: "https://schema.twindev.org/json-ld/JsonLdListOrSetItem"
967
- }
968
- }
969
- ]
970
- },
971
- "@type": {
972
- type: "string"
973
- },
974
- "@value": {
975
- type: [
976
- "null",
977
- "boolean",
978
- "number",
979
- "string"
980
- ]
981
- },
982
- "@version": {
983
- type: "string",
984
- "const": "1.1"
985
- },
986
- "@vocab": {
987
- type: [
988
- "string",
989
- "null"
990
- ]
991
- }
992
- };
993
- var required$2 = [
994
- "@base",
995
- "@container",
996
- "@context",
997
- "@direction",
998
- "@graph",
999
- "@id",
1000
- "@import",
1001
- "@included",
1002
- "@index",
1003
- "@json",
1004
- "@language",
1005
- "@list",
1006
- "@nest",
1007
- "@none",
1008
- "@prefix",
1009
- "@propagate",
1010
- "@protected",
1011
- "@reverse",
1012
- "@set",
1013
- "@type",
1014
- "@value",
1015
- "@version",
1016
- "@vocab"
1017
- ];
1018
- var additionalProperties$6 = false;
1019
- var description$9 = "A list of keywords and their types. Only used for internal reference; not an actual interface. Not for export.";
1020
- var JsonLdKeywordSchema = {
1021
- type: type$6,
1022
- properties: properties$4,
1023
- required: required$2,
1024
- additionalProperties: additionalProperties$6,
1025
- description: description$9
912
+ $schema: $schema$9,
913
+ $id: $id$9,
914
+ description: description$9,
915
+ anyOf: anyOf$3
1026
916
  };
1027
917
 
918
+ var $schema$8 = "https://json-schema.org/draft/2020-12/schema";
919
+ var $id$8 = "https://schema.twindev.org/json-ld/JsonLdLanguageMap";
920
+ var description$8 = "A language map is used to associate a language with a value in a way that allows easy programmatic access.";
1028
921
  var type$5 = "object";
1029
922
  var additionalProperties$5 = {
1030
923
  anyOf: [
@@ -1036,19 +929,26 @@ var additionalProperties$5 = {
1036
929
  },
1037
930
  {
1038
931
  type: "array",
1039
- items: {
1040
- type: "string"
1041
- }
932
+ items: false,
933
+ prefixItems: [
934
+ {
935
+ type: "string"
936
+ }
937
+ ]
1042
938
  }
1043
939
  ]
1044
940
  };
1045
- var description$8 = "A language map is used to associate a language with a value in a way that allows easy programmatic access.";
1046
941
  var JsonLdLanguageMapSchema = {
942
+ $schema: $schema$8,
943
+ $id: $id$8,
944
+ description: description$8,
1047
945
  type: type$5,
1048
- additionalProperties: additionalProperties$5,
1049
- description: description$8
946
+ additionalProperties: additionalProperties$5
1050
947
  };
1051
948
 
949
+ var $schema$7 = "https://json-schema.org/draft/2020-12/schema";
950
+ var $id$7 = "https://schema.twindev.org/json-ld/JsonLdListObject";
951
+ var description$7 = "A list represents an ordered set of values.";
1052
952
  var type$4 = "object";
1053
953
  var properties$3 = {
1054
954
  "@list": {
@@ -1058,9 +958,12 @@ var properties$3 = {
1058
958
  },
1059
959
  {
1060
960
  type: "array",
1061
- items: {
1062
- $ref: "https://schema.twindev.org/json-ld/JsonLdListOrSetItem"
1063
- }
961
+ items: false,
962
+ prefixItems: [
963
+ {
964
+ $ref: "https://schema.twindev.org/json-ld/JsonLdListOrSetItem"
965
+ }
966
+ ]
1064
967
  }
1065
968
  ]
1066
969
  },
@@ -1072,15 +975,19 @@ var required$1 = [
1072
975
  "@list"
1073
976
  ];
1074
977
  var additionalProperties$4 = false;
1075
- var description$7 = "A list represents an ordered set of values.";
1076
978
  var JsonLdListObjectSchema = {
979
+ $schema: $schema$7,
980
+ $id: $id$7,
981
+ description: description$7,
1077
982
  type: type$4,
1078
983
  properties: properties$3,
1079
984
  required: required$1,
1080
- additionalProperties: additionalProperties$4,
1081
- description: description$7
985
+ additionalProperties: additionalProperties$4
1082
986
  };
1083
987
 
988
+ var $schema$6 = "https://json-schema.org/draft/2020-12/schema";
989
+ var $id$6 = "https://schema.twindev.org/json-ld/JsonLdListOrSetItem";
990
+ var description$6 = "A list or set item can be a null, boolean, number, string, node object, or value object.";
1084
991
  var anyOf$2 = [
1085
992
  {
1086
993
  type: "null"
@@ -1101,12 +1008,16 @@ var anyOf$2 = [
1101
1008
  $ref: "https://schema.twindev.org/json-ld/JsonLdValueObject"
1102
1009
  }
1103
1010
  ];
1104
- var description$6 = "A list or set item can be a null, boolean, number, string, node object, or value object.";
1105
1011
  var JsonLdListOrSetItemSchema = {
1106
- anyOf: anyOf$2,
1107
- description: description$6
1012
+ $schema: $schema$6,
1013
+ $id: $id$6,
1014
+ description: description$6,
1015
+ anyOf: anyOf$2
1108
1016
  };
1109
1017
 
1018
+ var $schema$5 = "https://json-schema.org/draft/2020-12/schema";
1019
+ var $id$5 = "https://schema.twindev.org/json-ld/JsonLdNodeObject";
1020
+ var description$5 = "A node object represents zero or more properties of a node in the graph serialized by the JSON-LD document.";
1110
1021
  var type$3 = "object";
1111
1022
  var additionalProperties$3 = {
1112
1023
  anyOf: [
@@ -1144,9 +1055,12 @@ var properties$2 = {
1144
1055
  },
1145
1056
  {
1146
1057
  type: "array",
1147
- items: {
1148
- type: "string"
1149
- }
1058
+ items: false,
1059
+ prefixItems: [
1060
+ {
1061
+ type: "string"
1062
+ }
1063
+ ]
1150
1064
  }
1151
1065
  ]
1152
1066
  },
@@ -1160,9 +1074,12 @@ var properties$2 = {
1160
1074
  },
1161
1075
  {
1162
1076
  type: "array",
1163
- items: {
1164
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1165
- }
1077
+ items: false,
1078
+ prefixItems: [
1079
+ {
1080
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1081
+ }
1082
+ ]
1166
1083
  }
1167
1084
  ]
1168
1085
  },
@@ -1173,9 +1090,12 @@ var properties$2 = {
1173
1090
  },
1174
1091
  {
1175
1092
  type: "array",
1176
- items: {
1177
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
1178
- }
1093
+ items: false,
1094
+ prefixItems: [
1095
+ {
1096
+ $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
1097
+ }
1098
+ ]
1179
1099
  }
1180
1100
  ]
1181
1101
  },
@@ -1186,9 +1106,12 @@ var properties$2 = {
1186
1106
  },
1187
1107
  {
1188
1108
  type: "array",
1189
- items: {
1190
- type: "string"
1191
- }
1109
+ items: false,
1110
+ prefixItems: [
1111
+ {
1112
+ type: "string"
1113
+ }
1114
+ ]
1192
1115
  }
1193
1116
  ]
1194
1117
  },
@@ -1202,14 +1125,18 @@ var properties$2 = {
1202
1125
  type: "string"
1203
1126
  }
1204
1127
  };
1205
- var description$5 = "A node object represents zero or more properties of a node in the graph serialized by the JSON-LD document.";
1206
1128
  var JsonLdNodeObjectSchema = {
1129
+ $schema: $schema$5,
1130
+ $id: $id$5,
1131
+ description: description$5,
1207
1132
  type: type$3,
1208
1133
  additionalProperties: additionalProperties$3,
1209
- properties: properties$2,
1210
- description: description$5
1134
+ properties: properties$2
1211
1135
  };
1212
1136
 
1137
+ var $schema$4 = "https://json-schema.org/draft/2020-12/schema";
1138
+ var $id$4 = "https://schema.twindev.org/json-ld/JsonLdNodePrimitive";
1139
+ var description$4 = "A node primitive is a JSON-LD value which is not one of the defined NodeObject properties.";
1213
1140
  var anyOf$1 = [
1214
1141
  {
1215
1142
  type: "null"
@@ -1239,12 +1166,16 @@ var anyOf$1 = [
1239
1166
  $ref: "https://schema.twindev.org/json-ld/JsonLdSetObject"
1240
1167
  }
1241
1168
  ];
1242
- var description$4 = "A node primitive is a JSON-LD value which is not one of the defined NodeObject properties.";
1243
1169
  var JsonLdNodePrimitiveSchema = {
1244
- anyOf: anyOf$1,
1245
- description: description$4
1170
+ $schema: $schema$4,
1171
+ $id: $id$4,
1172
+ description: description$4,
1173
+ anyOf: anyOf$1
1246
1174
  };
1247
1175
 
1176
+ var $schema$3 = "https://json-schema.org/draft/2020-12/schema";
1177
+ var $id$3 = "https://schema.twindev.org/json-ld/JsonLdObject";
1178
+ var description$3 = "An object represents the pre-defined properties of the node object in the graph serialized by the JSON-LD document.";
1248
1179
  var type$2 = "object";
1249
1180
  var properties$1 = {
1250
1181
  "@context": {
@@ -1257,9 +1188,12 @@ var properties$1 = {
1257
1188
  },
1258
1189
  {
1259
1190
  type: "array",
1260
- items: {
1261
- type: "string"
1262
- }
1191
+ items: false,
1192
+ prefixItems: [
1193
+ {
1194
+ type: "string"
1195
+ }
1196
+ ]
1263
1197
  }
1264
1198
  ]
1265
1199
  },
@@ -1273,9 +1207,12 @@ var properties$1 = {
1273
1207
  },
1274
1208
  {
1275
1209
  type: "array",
1276
- items: {
1277
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1278
- }
1210
+ items: false,
1211
+ prefixItems: [
1212
+ {
1213
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1214
+ }
1215
+ ]
1279
1216
  }
1280
1217
  ]
1281
1218
  },
@@ -1286,9 +1223,12 @@ var properties$1 = {
1286
1223
  },
1287
1224
  {
1288
1225
  type: "array",
1289
- items: {
1290
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
1291
- }
1226
+ items: false,
1227
+ prefixItems: [
1228
+ {
1229
+ $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
1230
+ }
1231
+ ]
1292
1232
  }
1293
1233
  ]
1294
1234
  },
@@ -1299,9 +1239,12 @@ var properties$1 = {
1299
1239
  },
1300
1240
  {
1301
1241
  type: "array",
1302
- items: {
1303
- type: "string"
1304
- }
1242
+ items: false,
1243
+ prefixItems: [
1244
+ {
1245
+ type: "string"
1246
+ }
1247
+ ]
1305
1248
  }
1306
1249
  ]
1307
1250
  },
@@ -1316,14 +1259,18 @@ var properties$1 = {
1316
1259
  }
1317
1260
  };
1318
1261
  var additionalProperties$2 = false;
1319
- var description$3 = "An object represents the pre-defined properties of the node object in the graph serialized by the JSON-LD document.";
1320
1262
  var JsonLdObjectSchema = {
1263
+ $schema: $schema$3,
1264
+ $id: $id$3,
1265
+ description: description$3,
1321
1266
  type: type$2,
1322
1267
  properties: properties$1,
1323
- additionalProperties: additionalProperties$2,
1324
- description: description$3
1268
+ additionalProperties: additionalProperties$2
1325
1269
  };
1326
1270
 
1271
+ var $schema$2 = "https://json-schema.org/draft/2020-12/schema";
1272
+ var $id$2 = "https://schema.twindev.org/json-ld/JsonLdSetObject";
1273
+ var description$2 = "A set represents an unordered set of values.";
1327
1274
  var type$1 = "object";
1328
1275
  var properties = {
1329
1276
  "@set": {
@@ -1333,9 +1280,12 @@ var properties = {
1333
1280
  },
1334
1281
  {
1335
1282
  type: "array",
1336
- items: {
1337
- $ref: "https://schema.twindev.org/json-ld/JsonLdListOrSetItem"
1338
- }
1283
+ items: false,
1284
+ prefixItems: [
1285
+ {
1286
+ $ref: "https://schema.twindev.org/json-ld/JsonLdListOrSetItem"
1287
+ }
1288
+ ]
1339
1289
  }
1340
1290
  ]
1341
1291
  },
@@ -1347,15 +1297,19 @@ var required = [
1347
1297
  "@set"
1348
1298
  ];
1349
1299
  var additionalProperties$1 = false;
1350
- var description$2 = "A set represents an unordered set of values.";
1351
1300
  var JsonLdSetObjectSchema = {
1301
+ $schema: $schema$2,
1302
+ $id: $id$2,
1303
+ description: description$2,
1352
1304
  type: type$1,
1353
1305
  properties: properties,
1354
1306
  required: required,
1355
- additionalProperties: additionalProperties$1,
1356
- description: description$2
1307
+ additionalProperties: additionalProperties$1
1357
1308
  };
1358
1309
 
1310
+ var $schema$1 = "https://json-schema.org/draft/2020-12/schema";
1311
+ var $id$1 = "https://schema.twindev.org/json-ld/JsonLdTypeMap";
1312
+ var description$1 = "A type map is used to associate an IRI with a value that allows easy programmatic access.";
1359
1313
  var type = "object";
1360
1314
  var additionalProperties = {
1361
1315
  anyOf: [
@@ -1367,13 +1321,17 @@ var additionalProperties = {
1367
1321
  }
1368
1322
  ]
1369
1323
  };
1370
- var description$1 = "A type map is used to associate an IRI with a value that allows easy programmatic access.";
1371
1324
  var JsonLdTypeMapSchema = {
1325
+ $schema: $schema$1,
1326
+ $id: $id$1,
1327
+ description: description$1,
1372
1328
  type: type,
1373
- additionalProperties: additionalProperties,
1374
- description: description$1
1329
+ additionalProperties: additionalProperties
1375
1330
  };
1376
1331
 
1332
+ var $schema = "https://json-schema.org/draft/2020-12/schema";
1333
+ var $id = "https://schema.twindev.org/json-ld/JsonLdValueObject";
1334
+ var description = "A value object is used to explicitly associate a type or a language with a value to create a typed value or a language-tagged string and possibly associate a base direction.";
1377
1335
  var anyOf = [
1378
1336
  {
1379
1337
  type: "object",
@@ -1482,10 +1440,11 @@ var anyOf = [
1482
1440
  ]
1483
1441
  }
1484
1442
  ];
1485
- var description = "A value object is used to explicitly associate a type or a language with a value to create a typed value or a language-tagged string and possibly associate a base direction.";
1486
1443
  var JsonLdValueObjectSchema = {
1487
- anyOf: anyOf,
1488
- description: description
1444
+ $schema: $schema,
1445
+ $id: $id,
1446
+ description: description,
1447
+ anyOf: anyOf
1489
1448
  };
1490
1449
 
1491
1450
  // Copyright 2024 IOTA Stiftung.
@@ -1593,11 +1552,6 @@ class JsonLdDataTypes {
1593
1552
  type: JsonLdTypes.ExpandedTermDefinition,
1594
1553
  jsonSchema: async () => JsonLdExpandedTermDefinitionSchema
1595
1554
  }));
1596
- DataTypeHandlerFactory.register(`${JsonLdContexts.ContextRoot}${JsonLdTypes.Keyword}`, () => ({
1597
- context: JsonLdContexts.ContextRoot,
1598
- type: JsonLdTypes.Keyword,
1599
- jsonSchema: async () => JsonLdKeywordSchema
1600
- }));
1601
1555
  DataTypeHandlerFactory.register(`${JsonLdContexts.ContextRoot}${JsonLdTypes.ListOrSetItem}`, () => ({
1602
1556
  context: JsonLdContexts.ContextRoot,
1603
1557
  type: JsonLdTypes.ListOrSetItem,