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

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.
@@ -131,10 +131,10 @@ const JsonLdTypes = {
131
131
  JsonValue: "JsonLdJsonValue"
132
132
  };
133
133
 
134
- var type$e = "string";
135
- var description$p = "Helper Types";
134
+ var type$d = "string";
135
+ var description$o = "Helper Types";
136
136
  var JsonLdContainerTypeSchema = {
137
- type: type$e,
137
+ type: type$d,
138
138
  "enum": [
139
139
  "@language",
140
140
  "@index",
@@ -142,7 +142,7 @@ var JsonLdContainerTypeSchema = {
142
142
  "@graph",
143
143
  "@type"
144
144
  ],
145
- description: description$p
145
+ description: description$o
146
146
  };
147
147
 
148
148
  var anyOf$a = [
@@ -319,14 +319,14 @@ var anyOf$a = [
319
319
  maxItems: 2
320
320
  }
321
321
  ];
322
- var description$o = "Helper Types.";
322
+ var description$n = "Helper Types.";
323
323
  var JsonLdContainerTypeArraySchema = {
324
324
  anyOf: anyOf$a,
325
- description: description$o
325
+ description: description$n
326
326
  };
327
327
 
328
- var type$d = "object";
329
- var properties$6 = {
328
+ var type$c = "object";
329
+ var properties$5 = {
330
330
  "@base": {
331
331
  type: [
332
332
  "string",
@@ -383,7 +383,7 @@ var properties$6 = {
383
383
  ]
384
384
  }
385
385
  };
386
- var additionalProperties$b = {
386
+ var additionalProperties$a = {
387
387
  anyOf: [
388
388
  {
389
389
  type: "null"
@@ -396,12 +396,12 @@ var additionalProperties$b = {
396
396
  }
397
397
  ]
398
398
  };
399
- var description$n = "A context definition defines a local context in a node object.";
399
+ var description$m = "A context definition defines a local context in a node object.";
400
400
  var JsonLdContextDefinitionSchema = {
401
- type: type$d,
402
- properties: properties$6,
403
- additionalProperties: additionalProperties$b,
404
- description: description$n
401
+ type: type$c,
402
+ properties: properties$5,
403
+ additionalProperties: additionalProperties$a,
404
+ description: description$m
405
405
  };
406
406
 
407
407
  var anyOf$9 = [
@@ -415,10 +415,10 @@ var anyOf$9 = [
415
415
  $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinition"
416
416
  }
417
417
  ];
418
- var description$m = "A context definition element is used to define the types of a context definition.";
418
+ var description$l = "A context definition element is used to define the types of a context definition.";
419
419
  var JsonLdContextDefinitionElementSchema = {
420
420
  anyOf: anyOf$9,
421
- description: description$m
421
+ description: description$l
422
422
  };
423
423
 
424
424
  var anyOf$8 = [
@@ -432,10 +432,10 @@ var anyOf$8 = [
432
432
  }
433
433
  }
434
434
  ];
435
- var description$l = "A context definition root is used to define the root of a context definition.";
435
+ var description$k = "A context definition root is used to define the root of a context definition.";
436
436
  var JsonLdContextDefinitionRootSchema = {
437
437
  anyOf: anyOf$8,
438
- description: description$l
438
+ description: description$k
439
439
  };
440
440
 
441
441
  var anyOf$7 = [
@@ -481,10 +481,10 @@ var anyOf$7 = [
481
481
  additionalProperties: false
482
482
  }
483
483
  ];
484
- 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.";
484
+ 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.";
485
485
  var JsonLdDocumentSchema = {
486
486
  anyOf: anyOf$7,
487
- description: description$k
487
+ description: description$j
488
488
  };
489
489
 
490
490
  var anyOf$6 = [
@@ -618,14 +618,14 @@ var anyOf$6 = [
618
618
  ]
619
619
  }
620
620
  ];
621
- 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.";
621
+ 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.";
622
622
  var JsonLdExpandedTermDefinitionSchema = {
623
623
  anyOf: anyOf$6,
624
- description: description$j
624
+ description: description$i
625
625
  };
626
626
 
627
- var type$c = "object";
628
- var properties$5 = {
627
+ var type$b = "object";
628
+ var properties$4 = {
629
629
  "@graph": {
630
630
  anyOf: [
631
631
  {
@@ -659,28 +659,28 @@ var properties$5 = {
659
659
  $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
660
660
  }
661
661
  };
662
- var required$3 = [
662
+ var required$2 = [
663
663
  "@graph"
664
664
  ];
665
- var additionalProperties$a = false;
666
- var description$i = "A graph object represents a named graph, which MAY include an explicit graph name.";
665
+ var additionalProperties$9 = false;
666
+ var description$h = "A graph object represents a named graph, which MAY include an explicit graph name.";
667
667
  var JsonLdGraphObjectSchema = {
668
- type: type$c,
669
- properties: properties$5,
670
- required: required$3,
671
- additionalProperties: additionalProperties$a,
672
- description: description$i
668
+ type: type$b,
669
+ properties: properties$4,
670
+ required: required$2,
671
+ additionalProperties: additionalProperties$9,
672
+ description: description$h
673
673
  };
674
674
 
675
- var type$b = "object";
676
- var additionalProperties$9 = {
675
+ var type$a = "object";
676
+ var additionalProperties$8 = {
677
677
  $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
678
678
  };
679
- var description$h = "An id map is used to associate an IRI with a value that allows easy programmatic access.";
679
+ var description$g = "An id map is used to associate an IRI with a value that allows easy programmatic access.";
680
680
  var JsonLdIdMapSchema = {
681
- type: type$b,
682
- additionalProperties: additionalProperties$9,
683
- description: description$h
681
+ type: type$a,
682
+ additionalProperties: additionalProperties$8,
683
+ description: description$g
684
684
  };
685
685
 
686
686
  var anyOf$5 = [
@@ -694,14 +694,14 @@ var anyOf$5 = [
694
694
  }
695
695
  }
696
696
  ];
697
- var description$g = "An included block is used to provide a set of node objects.";
697
+ var description$f = "An included block is used to provide a set of node objects.";
698
698
  var JsonLdIncludedBlockSchema = {
699
699
  anyOf: anyOf$5,
700
- description: description$g
700
+ description: description$f
701
701
  };
702
702
 
703
- var type$a = "object";
704
- var additionalProperties$8 = {
703
+ var type$9 = "object";
704
+ var additionalProperties$7 = {
705
705
  anyOf: [
706
706
  {
707
707
  $ref: "https://schema.twindev.org/json-ld/JsonLdIndexMapItem"
@@ -714,11 +714,11 @@ var additionalProperties$8 = {
714
714
  }
715
715
  ]
716
716
  };
717
- 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.";
717
+ 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.";
718
718
  var JsonLdIndexMapSchema = {
719
- type: type$a,
720
- additionalProperties: additionalProperties$8,
721
- description: description$f
719
+ type: type$9,
720
+ additionalProperties: additionalProperties$7,
721
+ description: description$e
722
722
  };
723
723
 
724
724
  var anyOf$4 = [
@@ -747,25 +747,25 @@ var anyOf$4 = [
747
747
  $ref: "https://schema.twindev.org/json-ld/JsonLdSetObject"
748
748
  }
749
749
  ];
750
- var description$e = "The items that can be stored in an index map.";
750
+ var description$d = "The items that can be stored in an index map.";
751
751
  var JsonLdIndexMapItemSchema = {
752
752
  anyOf: anyOf$4,
753
- description: description$e
753
+ description: description$d
754
754
  };
755
755
 
756
- var type$9 = "array";
756
+ var type$8 = "array";
757
757
  var items = {
758
758
  $ref: "https://schema.twindev.org/json-ld/JsonLdJsonValue"
759
759
  };
760
- var description$d = "JSON Type for array.";
760
+ var description$c = "JSON Type for array.";
761
761
  var JsonLdJsonArraySchema = {
762
- type: type$9,
762
+ type: type$8,
763
763
  items: items,
764
- description: description$d
764
+ description: description$c
765
765
  };
766
766
 
767
- var type$8 = "object";
768
- var additionalProperties$7 = {
767
+ var type$7 = "object";
768
+ var additionalProperties$6 = {
769
769
  anyOf: [
770
770
  {
771
771
  $ref: "https://schema.twindev.org/json-ld/JsonLdJsonValue"
@@ -776,23 +776,23 @@ var additionalProperties$7 = {
776
776
  }
777
777
  ]
778
778
  };
779
- var description$c = "JSON Type for object.";
779
+ var description$b = "JSON Type for object.";
780
780
  var JsonLdJsonObjectSchema = {
781
- type: type$8,
782
- additionalProperties: additionalProperties$7,
783
- description: description$c
781
+ type: type$7,
782
+ additionalProperties: additionalProperties$6,
783
+ description: description$b
784
784
  };
785
785
 
786
- var type$7 = [
786
+ var type$6 = [
787
787
  "string",
788
788
  "number",
789
789
  "boolean",
790
790
  "null"
791
791
  ];
792
- var description$b = "JSON Primitive.";
792
+ var description$a = "JSON Primitive.";
793
793
  var JsonLdJsonPrimitiveSchema = {
794
- type: type$7,
795
- description: description$b
794
+ type: type$6,
795
+ description: description$a
796
796
  };
797
797
 
798
798
  var anyOf$3 = [
@@ -806,224 +806,9 @@ var anyOf$3 = [
806
806
  $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
807
807
  }
808
808
  ];
809
- var description$a = "JSON Value.";
809
+ var description$9 = "JSON Value.";
810
810
  var JsonLdJsonValueSchema = {
811
811
  anyOf: anyOf$3,
812
- description: description$a
813
- };
814
-
815
- var type$6 = "object";
816
- var properties$4 = {
817
- "@base": {
818
- type: [
819
- "string",
820
- "null"
821
- ]
822
- },
823
- "@container": {
824
- anyOf: [
825
- {
826
- type: "string",
827
- "const": "@list"
828
- },
829
- {
830
- type: "string",
831
- "const": "@set"
832
- },
833
- {
834
- $ref: "https://schema.twindev.org/json-ld/JsonLdContainerType"
835
- },
836
- {
837
- type: "array",
838
- items: {
839
- anyOf: [
840
- {
841
- type: "string",
842
- "const": "@list"
843
- },
844
- {
845
- type: "string",
846
- "const": "@set"
847
- },
848
- {
849
- $ref: "https://schema.twindev.org/json-ld/JsonLdContainerType"
850
- }
851
- ]
852
- }
853
- },
854
- {
855
- $ref: "https://schema.twindev.org/json-ld/JsonLdContainerTypeArray"
856
- },
857
- {
858
- type: "null"
859
- }
860
- ]
861
- },
862
- "@context": {
863
- $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
864
- },
865
- "@direction": {
866
- type: [
867
- "string",
868
- "null"
869
- ],
870
- "enum": [
871
- "ltr",
872
- "rtl",
873
- null
874
- ]
875
- },
876
- "@graph": {
877
- anyOf: [
878
- {
879
- $ref: "https://schema.twindev.org/json-ld/JsonLdValueObject"
880
- },
881
- {
882
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
883
- },
884
- {
885
- type: "array",
886
- items: {
887
- anyOf: [
888
- {
889
- $ref: "https://schema.twindev.org/json-ld/JsonLdValueObject"
890
- },
891
- {
892
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
893
- }
894
- ]
895
- }
896
- }
897
- ]
898
- },
899
- "@id": {
900
- anyOf: [
901
- {
902
- type: "string"
903
- },
904
- {
905
- type: "array",
906
- items: {
907
- type: "string"
908
- }
909
- }
910
- ]
911
- },
912
- "@import": {
913
- type: "string"
914
- },
915
- "@included": {
916
- $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
917
- },
918
- "@index": {
919
- type: "string"
920
- },
921
- "@json": {
922
- type: "string",
923
- "const": "@json"
924
- },
925
- "@language": {
926
- type: "string"
927
- },
928
- "@list": {
929
- anyOf: [
930
- {
931
- $ref: "https://schema.twindev.org/json-ld/JsonLdListOrSetItem"
932
- },
933
- {
934
- type: "array",
935
- items: {
936
- $ref: "https://schema.twindev.org/json-ld/JsonLdListOrSetItem"
937
- }
938
- }
939
- ]
940
- },
941
- "@nest": {
942
- type: "object"
943
- },
944
- "@none": {
945
- type: "string",
946
- "const": "@none"
947
- },
948
- "@prefix": {
949
- type: "boolean"
950
- },
951
- "@propagate": {
952
- type: "boolean"
953
- },
954
- "@protected": {
955
- type: "boolean"
956
- },
957
- "@reverse": {
958
- type: "string"
959
- },
960
- "@set": {
961
- anyOf: [
962
- {
963
- $ref: "https://schema.twindev.org/json-ld/JsonLdListOrSetItem"
964
- },
965
- {
966
- type: "array",
967
- items: {
968
- $ref: "https://schema.twindev.org/json-ld/JsonLdListOrSetItem"
969
- }
970
- }
971
- ]
972
- },
973
- "@type": {
974
- type: "string"
975
- },
976
- "@value": {
977
- type: [
978
- "null",
979
- "boolean",
980
- "number",
981
- "string"
982
- ]
983
- },
984
- "@version": {
985
- type: "string",
986
- "const": "1.1"
987
- },
988
- "@vocab": {
989
- type: [
990
- "string",
991
- "null"
992
- ]
993
- }
994
- };
995
- var required$2 = [
996
- "@base",
997
- "@container",
998
- "@context",
999
- "@direction",
1000
- "@graph",
1001
- "@id",
1002
- "@import",
1003
- "@included",
1004
- "@index",
1005
- "@json",
1006
- "@language",
1007
- "@list",
1008
- "@nest",
1009
- "@none",
1010
- "@prefix",
1011
- "@propagate",
1012
- "@protected",
1013
- "@reverse",
1014
- "@set",
1015
- "@type",
1016
- "@value",
1017
- "@version",
1018
- "@vocab"
1019
- ];
1020
- var additionalProperties$6 = false;
1021
- var description$9 = "A list of keywords and their types. Only used for internal reference; not an actual interface. Not for export.";
1022
- var JsonLdKeywordSchema = {
1023
- type: type$6,
1024
- properties: properties$4,
1025
- required: required$2,
1026
- additionalProperties: additionalProperties$6,
1027
812
  description: description$9
1028
813
  };
1029
814
 
@@ -1595,11 +1380,6 @@ class JsonLdDataTypes {
1595
1380
  type: JsonLdTypes.ExpandedTermDefinition,
1596
1381
  jsonSchema: async () => JsonLdExpandedTermDefinitionSchema
1597
1382
  }));
1598
- dataCore.DataTypeHandlerFactory.register(`${JsonLdContexts.ContextRoot}${JsonLdTypes.Keyword}`, () => ({
1599
- context: JsonLdContexts.ContextRoot,
1600
- type: JsonLdTypes.Keyword,
1601
- jsonSchema: async () => JsonLdKeywordSchema
1602
- }));
1603
1383
  dataCore.DataTypeHandlerFactory.register(`${JsonLdContexts.ContextRoot}${JsonLdTypes.ListOrSetItem}`, () => ({
1604
1384
  context: JsonLdContexts.ContextRoot,
1605
1385
  type: JsonLdTypes.ListOrSetItem,