@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.
@@ -129,10 +129,10 @@ const JsonLdTypes = {
129
129
  JsonValue: "JsonLdJsonValue"
130
130
  };
131
131
 
132
- var type$e = "string";
133
- var description$p = "Helper Types";
132
+ var type$d = "string";
133
+ var description$o = "Helper Types";
134
134
  var JsonLdContainerTypeSchema = {
135
- type: type$e,
135
+ type: type$d,
136
136
  "enum": [
137
137
  "@language",
138
138
  "@index",
@@ -140,7 +140,7 @@ var JsonLdContainerTypeSchema = {
140
140
  "@graph",
141
141
  "@type"
142
142
  ],
143
- description: description$p
143
+ description: description$o
144
144
  };
145
145
 
146
146
  var anyOf$a = [
@@ -317,14 +317,14 @@ var anyOf$a = [
317
317
  maxItems: 2
318
318
  }
319
319
  ];
320
- var description$o = "Helper Types.";
320
+ var description$n = "Helper Types.";
321
321
  var JsonLdContainerTypeArraySchema = {
322
322
  anyOf: anyOf$a,
323
- description: description$o
323
+ description: description$n
324
324
  };
325
325
 
326
- var type$d = "object";
327
- var properties$6 = {
326
+ var type$c = "object";
327
+ var properties$5 = {
328
328
  "@base": {
329
329
  type: [
330
330
  "string",
@@ -381,7 +381,7 @@ var properties$6 = {
381
381
  ]
382
382
  }
383
383
  };
384
- var additionalProperties$b = {
384
+ var additionalProperties$a = {
385
385
  anyOf: [
386
386
  {
387
387
  type: "null"
@@ -394,12 +394,12 @@ var additionalProperties$b = {
394
394
  }
395
395
  ]
396
396
  };
397
- var description$n = "A context definition defines a local context in a node object.";
397
+ var description$m = "A context definition defines a local context in a node object.";
398
398
  var JsonLdContextDefinitionSchema = {
399
- type: type$d,
400
- properties: properties$6,
401
- additionalProperties: additionalProperties$b,
402
- description: description$n
399
+ type: type$c,
400
+ properties: properties$5,
401
+ additionalProperties: additionalProperties$a,
402
+ description: description$m
403
403
  };
404
404
 
405
405
  var anyOf$9 = [
@@ -413,10 +413,10 @@ var anyOf$9 = [
413
413
  $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinition"
414
414
  }
415
415
  ];
416
- var description$m = "A context definition element is used to define the types of a context definition.";
416
+ var description$l = "A context definition element is used to define the types of a context definition.";
417
417
  var JsonLdContextDefinitionElementSchema = {
418
418
  anyOf: anyOf$9,
419
- description: description$m
419
+ description: description$l
420
420
  };
421
421
 
422
422
  var anyOf$8 = [
@@ -430,10 +430,10 @@ var anyOf$8 = [
430
430
  }
431
431
  }
432
432
  ];
433
- var description$l = "A context definition root is used to define the root of a context definition.";
433
+ var description$k = "A context definition root is used to define the root of a context definition.";
434
434
  var JsonLdContextDefinitionRootSchema = {
435
435
  anyOf: anyOf$8,
436
- description: description$l
436
+ description: description$k
437
437
  };
438
438
 
439
439
  var anyOf$7 = [
@@ -479,10 +479,10 @@ var anyOf$7 = [
479
479
  additionalProperties: false
480
480
  }
481
481
  ];
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.";
482
+ 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.";
483
483
  var JsonLdDocumentSchema = {
484
484
  anyOf: anyOf$7,
485
- description: description$k
485
+ description: description$j
486
486
  };
487
487
 
488
488
  var anyOf$6 = [
@@ -616,14 +616,14 @@ var anyOf$6 = [
616
616
  ]
617
617
  }
618
618
  ];
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.";
619
+ 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.";
620
620
  var JsonLdExpandedTermDefinitionSchema = {
621
621
  anyOf: anyOf$6,
622
- description: description$j
622
+ description: description$i
623
623
  };
624
624
 
625
- var type$c = "object";
626
- var properties$5 = {
625
+ var type$b = "object";
626
+ var properties$4 = {
627
627
  "@graph": {
628
628
  anyOf: [
629
629
  {
@@ -657,28 +657,28 @@ var properties$5 = {
657
657
  $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
658
658
  }
659
659
  };
660
- var required$3 = [
660
+ var required$2 = [
661
661
  "@graph"
662
662
  ];
663
- var additionalProperties$a = false;
664
- var description$i = "A graph object represents a named graph, which MAY include an explicit graph name.";
663
+ var additionalProperties$9 = false;
664
+ var description$h = "A graph object represents a named graph, which MAY include an explicit graph name.";
665
665
  var JsonLdGraphObjectSchema = {
666
- type: type$c,
667
- properties: properties$5,
668
- required: required$3,
669
- additionalProperties: additionalProperties$a,
670
- description: description$i
666
+ type: type$b,
667
+ properties: properties$4,
668
+ required: required$2,
669
+ additionalProperties: additionalProperties$9,
670
+ description: description$h
671
671
  };
672
672
 
673
- var type$b = "object";
674
- var additionalProperties$9 = {
673
+ var type$a = "object";
674
+ var additionalProperties$8 = {
675
675
  $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
676
676
  };
677
- var description$h = "An id map is used to associate an IRI with a value that allows easy programmatic access.";
677
+ var description$g = "An id map is used to associate an IRI with a value that allows easy programmatic access.";
678
678
  var JsonLdIdMapSchema = {
679
- type: type$b,
680
- additionalProperties: additionalProperties$9,
681
- description: description$h
679
+ type: type$a,
680
+ additionalProperties: additionalProperties$8,
681
+ description: description$g
682
682
  };
683
683
 
684
684
  var anyOf$5 = [
@@ -692,14 +692,14 @@ var anyOf$5 = [
692
692
  }
693
693
  }
694
694
  ];
695
- var description$g = "An included block is used to provide a set of node objects.";
695
+ var description$f = "An included block is used to provide a set of node objects.";
696
696
  var JsonLdIncludedBlockSchema = {
697
697
  anyOf: anyOf$5,
698
- description: description$g
698
+ description: description$f
699
699
  };
700
700
 
701
- var type$a = "object";
702
- var additionalProperties$8 = {
701
+ var type$9 = "object";
702
+ var additionalProperties$7 = {
703
703
  anyOf: [
704
704
  {
705
705
  $ref: "https://schema.twindev.org/json-ld/JsonLdIndexMapItem"
@@ -712,11 +712,11 @@ var additionalProperties$8 = {
712
712
  }
713
713
  ]
714
714
  };
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.";
715
+ 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.";
716
716
  var JsonLdIndexMapSchema = {
717
- type: type$a,
718
- additionalProperties: additionalProperties$8,
719
- description: description$f
717
+ type: type$9,
718
+ additionalProperties: additionalProperties$7,
719
+ description: description$e
720
720
  };
721
721
 
722
722
  var anyOf$4 = [
@@ -745,25 +745,25 @@ var anyOf$4 = [
745
745
  $ref: "https://schema.twindev.org/json-ld/JsonLdSetObject"
746
746
  }
747
747
  ];
748
- var description$e = "The items that can be stored in an index map.";
748
+ var description$d = "The items that can be stored in an index map.";
749
749
  var JsonLdIndexMapItemSchema = {
750
750
  anyOf: anyOf$4,
751
- description: description$e
751
+ description: description$d
752
752
  };
753
753
 
754
- var type$9 = "array";
754
+ var type$8 = "array";
755
755
  var items = {
756
756
  $ref: "https://schema.twindev.org/json-ld/JsonLdJsonValue"
757
757
  };
758
- var description$d = "JSON Type for array.";
758
+ var description$c = "JSON Type for array.";
759
759
  var JsonLdJsonArraySchema = {
760
- type: type$9,
760
+ type: type$8,
761
761
  items: items,
762
- description: description$d
762
+ description: description$c
763
763
  };
764
764
 
765
- var type$8 = "object";
766
- var additionalProperties$7 = {
765
+ var type$7 = "object";
766
+ var additionalProperties$6 = {
767
767
  anyOf: [
768
768
  {
769
769
  $ref: "https://schema.twindev.org/json-ld/JsonLdJsonValue"
@@ -774,23 +774,23 @@ var additionalProperties$7 = {
774
774
  }
775
775
  ]
776
776
  };
777
- var description$c = "JSON Type for object.";
777
+ var description$b = "JSON Type for object.";
778
778
  var JsonLdJsonObjectSchema = {
779
- type: type$8,
780
- additionalProperties: additionalProperties$7,
781
- description: description$c
779
+ type: type$7,
780
+ additionalProperties: additionalProperties$6,
781
+ description: description$b
782
782
  };
783
783
 
784
- var type$7 = [
784
+ var type$6 = [
785
785
  "string",
786
786
  "number",
787
787
  "boolean",
788
788
  "null"
789
789
  ];
790
- var description$b = "JSON Primitive.";
790
+ var description$a = "JSON Primitive.";
791
791
  var JsonLdJsonPrimitiveSchema = {
792
- type: type$7,
793
- description: description$b
792
+ type: type$6,
793
+ description: description$a
794
794
  };
795
795
 
796
796
  var anyOf$3 = [
@@ -804,224 +804,9 @@ var anyOf$3 = [
804
804
  $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
805
805
  }
806
806
  ];
807
- var description$a = "JSON Value.";
807
+ var description$9 = "JSON Value.";
808
808
  var JsonLdJsonValueSchema = {
809
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
810
  description: description$9
1026
811
  };
1027
812
 
@@ -1593,11 +1378,6 @@ class JsonLdDataTypes {
1593
1378
  type: JsonLdTypes.ExpandedTermDefinition,
1594
1379
  jsonSchema: async () => JsonLdExpandedTermDefinitionSchema
1595
1380
  }));
1596
- DataTypeHandlerFactory.register(`${JsonLdContexts.ContextRoot}${JsonLdTypes.Keyword}`, () => ({
1597
- context: JsonLdContexts.ContextRoot,
1598
- type: JsonLdTypes.Keyword,
1599
- jsonSchema: async () => JsonLdKeywordSchema
1600
- }));
1601
1381
  DataTypeHandlerFactory.register(`${JsonLdContexts.ContextRoot}${JsonLdTypes.ListOrSetItem}`, () => ({
1602
1382
  context: JsonLdContexts.ContextRoot,
1603
1383
  type: JsonLdTypes.ListOrSetItem,
@@ -15,7 +15,6 @@ export * from "./models/IJsonLdJsonArray";
15
15
  export * from "./models/IJsonLdJsonObject";
16
16
  export * from "./models/IJsonLdJsonPrimitive";
17
17
  export * from "./models/IJsonLdJsonValue";
18
- export * from "./models/IJsonLdKeyword";
19
18
  export * from "./models/IJsonLdLanguageMap";
20
19
  export * from "./models/IJsonLdListObject";
21
20
  export * from "./models/IJsonLdListOrSetItem";
@@ -1,5 +1,4 @@
1
1
  import type { IJsonLdExpandedTermDefinition } from "./IJsonLdExpandedTermDefinition";
2
- import type { IJsonLdKeyword } from "./IJsonLdKeyword";
3
2
  /**
4
3
  * This is a copy of the types from the npm jsonld package. This is necessary as the JSON schema generators
5
4
  * that are used in other packages cannot understand some of the types e.g. OrArray
@@ -10,16 +9,16 @@ import type { IJsonLdKeyword } from "./IJsonLdKeyword";
10
9
  */
11
10
  export interface IJsonLdContextDefinition {
12
11
  [key: string]: null | string | IJsonLdExpandedTermDefinition | IJsonLdContextDefinition[keyof IJsonLdContextDefinition];
13
- "@base"?: IJsonLdKeyword["@base"] | undefined;
14
- "@direction"?: IJsonLdKeyword["@direction"] | undefined;
15
- "@import"?: IJsonLdKeyword["@import"] | undefined;
16
- "@language"?: IJsonLdKeyword["@language"] | undefined;
17
- "@propagate"?: IJsonLdKeyword["@propagate"] | undefined;
18
- "@protected"?: IJsonLdKeyword["@protected"] | undefined;
12
+ "@base"?: string | null | undefined;
13
+ "@direction"?: "ltr" | "rtl" | null | undefined;
14
+ "@import"?: string | undefined;
15
+ "@language"?: string | undefined;
16
+ "@propagate"?: boolean | undefined;
17
+ "@protected"?: boolean | undefined;
19
18
  "@type"?: {
20
19
  "@container": "@set";
21
- "@protected"?: IJsonLdKeyword["@protected"] | undefined;
20
+ "@protected"?: boolean | undefined;
22
21
  } | undefined;
23
- "@version"?: IJsonLdKeyword["@version"] | undefined;
24
- "@vocab"?: IJsonLdKeyword["@vocab"] | undefined;
22
+ "@version"?: "1.1" | undefined;
23
+ "@vocab"?: string | null | undefined;
25
24
  }
@@ -1,5 +1,6 @@
1
- import type { IJsonLdKeyword } from "./IJsonLdKeyword";
1
+ import type { IJsonLdContextDefinitionRoot } from "./IJsonLdContextDefinitionRoot";
2
2
  import type { IJsonLdNodeObject } from "./IJsonLdNodeObject";
3
+ import type { IJsonLdValueObject } from "./IJsonLdValueObject";
3
4
  /**
4
5
  * This is a copy of the types from the npm jsonld package. This is necessary as the JSON schema generators
5
6
  * that are used in other packages cannot understand some of the types e.g. OrArray
@@ -15,6 +16,6 @@ import type { IJsonLdNodeObject } from "./IJsonLdNodeObject";
15
16
  * @see https://www.w3.org/TR/json-ld11/#json-ld-grammar
16
17
  */
17
18
  export type IJsonLdDocument = IJsonLdNodeObject | IJsonLdNodeObject[] | {
18
- "@context"?: IJsonLdKeyword["@context"] | undefined;
19
- "@graph"?: IJsonLdKeyword["@graph"] | undefined;
19
+ "@context"?: IJsonLdContextDefinitionRoot | undefined;
20
+ "@graph"?: IJsonLdValueObject | IJsonLdNodeObject | (IJsonLdValueObject | IJsonLdNodeObject)[] | undefined;
20
21
  };
@@ -1,5 +1,6 @@
1
+ import type { IJsonLdContainerType } from "./IJsonLdContainerType";
2
+ import type { IJsonLdContainerTypeArray } from "./IJsonLdContainerTypeArray";
1
3
  import type { IJsonLdContextDefinition } from "./IJsonLdContextDefinition";
2
- import type { IJsonLdKeyword } from "./IJsonLdKeyword";
3
4
  /**
4
5
  * This is a copy of the types from the npm jsonld package. This is necessary as the JSON schema generators
5
6
  * that are used in other packages cannot understand some of the types e.g. OrArray
@@ -12,17 +13,17 @@ import type { IJsonLdKeyword } from "./IJsonLdKeyword";
12
13
  */
13
14
  export type IJsonLdExpandedTermDefinition = {
14
15
  "@type"?: "@id" | "@json" | "@none" | "@vocab" | string | undefined;
15
- "@language"?: IJsonLdKeyword["@language"] | undefined;
16
- "@index"?: IJsonLdKeyword["@index"] | undefined;
16
+ "@language"?: string | undefined;
17
+ "@index"?: string | undefined;
17
18
  "@context"?: IJsonLdContextDefinition | undefined;
18
- "@prefix"?: IJsonLdKeyword["@prefix"] | undefined;
19
- "@propagate"?: IJsonLdKeyword["@propagate"] | undefined;
20
- "@protected"?: IJsonLdKeyword["@protected"] | undefined;
19
+ "@prefix"?: boolean | undefined;
20
+ "@propagate"?: boolean | undefined;
21
+ "@protected"?: boolean | undefined;
21
22
  } & ({
22
- "@id"?: IJsonLdKeyword["@id"] | null | undefined;
23
+ "@id"?: string | string[] | null | undefined;
23
24
  "@nest"?: "@nest" | string | undefined;
24
- "@container"?: IJsonLdKeyword["@container"] | undefined;
25
+ "@container"?: ("@list" | "@set" | IJsonLdContainerType) | ("@list" | "@set" | IJsonLdContainerType)[] | IJsonLdContainerTypeArray | null | undefined;
25
26
  } | {
26
- "@reverse": IJsonLdKeyword["@reverse"];
27
+ "@reverse": string;
27
28
  "@container"?: "@set" | "@index" | null | undefined;
28
29
  });
@@ -1,4 +1,4 @@
1
- import type { IJsonLdKeyword } from "./IJsonLdKeyword";
1
+ import type { IJsonLdContextDefinitionRoot } from "./IJsonLdContextDefinitionRoot";
2
2
  import type { IJsonLdNodeObject } from "./IJsonLdNodeObject";
3
3
  /**
4
4
  * This is a copy of the types from the npm jsonld package. This is necessary as the JSON schema generators
@@ -10,7 +10,7 @@ import type { IJsonLdNodeObject } from "./IJsonLdNodeObject";
10
10
  */
11
11
  export interface IJsonLdGraphObject {
12
12
  "@graph": IJsonLdNodeObject | IJsonLdNodeObject[];
13
- "@index"?: IJsonLdKeyword["@index"] | undefined;
14
- "@id"?: IJsonLdKeyword["@id"] | undefined;
15
- "@context"?: IJsonLdKeyword["@context"] | undefined;
13
+ "@index"?: string | undefined;
14
+ "@id"?: string | string[] | undefined;
15
+ "@context"?: IJsonLdContextDefinitionRoot | undefined;
16
16
  }
@@ -1,4 +1,4 @@
1
- import type { IJsonLdKeyword } from "./IJsonLdKeyword";
1
+ import type { IJsonLdListOrSetItem } from "./IJsonLdListOrSetItem";
2
2
  /**
3
3
  * This is a copy of the types from the npm jsonld package. This is necessary as the JSON schema generators
4
4
  * that are used in other packages cannot understand some of the types e.g. OrArray
@@ -8,6 +8,6 @@ import type { IJsonLdKeyword } from "./IJsonLdKeyword";
8
8
  * @see https://www.w3.org/TR/json-ld11/#lists-and-sets
9
9
  */
10
10
  export interface IJsonLdListObject {
11
- "@list": IJsonLdKeyword["@list"];
12
- "@index"?: IJsonLdKeyword["@index"] | undefined;
11
+ "@list": IJsonLdListOrSetItem | IJsonLdListOrSetItem[];
12
+ "@index"?: string | undefined;
13
13
  }
@@ -1,5 +1,6 @@
1
+ import type { IJsonLdContextDefinitionRoot } from "./IJsonLdContextDefinitionRoot";
2
+ import type { IJsonLdIncludedBlock } from "./IJsonLdIncludedBlock";
1
3
  import type { IJsonLdJsonObject } from "./IJsonLdJsonObject";
2
- import type { IJsonLdKeyword } from "./IJsonLdKeyword";
3
4
  import type { IJsonLdNodeObject } from "./IJsonLdNodeObject";
4
5
  /**
5
6
  * This is a copy of the types from the npm jsonld package. This is necessary as the JSON schema generators
@@ -11,14 +12,14 @@ import type { IJsonLdNodeObject } from "./IJsonLdNodeObject";
11
12
  * @see https://www.w3.org/TR/json-ld11/#node-objects
12
13
  */
13
14
  export interface IJsonLdObject {
14
- "@context"?: IJsonLdKeyword["@context"] | undefined;
15
- "@id"?: IJsonLdKeyword["@id"] | undefined;
16
- "@included"?: IJsonLdKeyword["@included"] | undefined;
15
+ "@context"?: IJsonLdContextDefinitionRoot | undefined;
16
+ "@id"?: string | string[] | undefined;
17
+ "@included"?: IJsonLdIncludedBlock | undefined;
17
18
  "@graph"?: IJsonLdNodeObject | IJsonLdNodeObject[] | undefined;
18
19
  "@nest"?: IJsonLdJsonObject | IJsonLdJsonObject[] | undefined;
19
- "@type"?: IJsonLdKeyword["@type"] | IJsonLdKeyword["@type"][] | undefined;
20
+ "@type"?: string | string[] | undefined;
20
21
  "@reverse"?: {
21
- [key: string]: IJsonLdKeyword["@reverse"];
22
+ [key: string]: string;
22
23
  } | undefined;
23
- "@index"?: IJsonLdKeyword["@index"] | undefined;
24
+ "@index"?: string | undefined;
24
25
  }
@@ -1,4 +1,4 @@
1
- import type { IJsonLdKeyword } from "./IJsonLdKeyword";
1
+ import type { IJsonLdListOrSetItem } from "./IJsonLdListOrSetItem";
2
2
  /**
3
3
  * This is a copy of the types from the npm jsonld package. This is necessary as the JSON schema generators
4
4
  * that are used in other packages cannot understand some of the types e.g. OrArray
@@ -8,6 +8,6 @@ import type { IJsonLdKeyword } from "./IJsonLdKeyword";
8
8
  * @see https://www.w3.org/TR/json-ld11/#lists-and-sets
9
9
  */
10
10
  export interface IJsonLdSetObject {
11
- "@set": IJsonLdKeyword["@set"];
12
- "@index"?: IJsonLdKeyword["@index"] | undefined;
11
+ "@set": IJsonLdListOrSetItem | IJsonLdListOrSetItem[];
12
+ "@index"?: string | undefined;
13
13
  }