@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.
- package/dist/cjs/index.cjs +63 -283
- package/dist/esm/index.mjs +63 -283
- package/dist/types/index.d.ts +0 -1
- package/dist/types/models/IJsonLdContextDefinition.d.ts +9 -10
- package/dist/types/models/IJsonLdDocument.d.ts +4 -3
- package/dist/types/models/IJsonLdExpandedTermDefinition.d.ts +10 -9
- package/dist/types/models/IJsonLdGraphObject.d.ts +4 -4
- package/dist/types/models/IJsonLdListObject.d.ts +3 -3
- package/dist/types/models/IJsonLdObject.d.ts +8 -7
- package/dist/types/models/IJsonLdSetObject.d.ts +3 -3
- package/dist/types/models/IJsonLdValueObject.d.ts +9 -9
- package/docs/changelog.md +14 -0
- package/docs/reference/index.md +0 -1
- package/docs/reference/interfaces/IJsonLdContextDefinition.md +1 -1
- package/docs/reference/interfaces/IJsonLdNodeObject.md +1 -1
- package/docs/reference/type-aliases/IJsonLdDocument.md +1 -1
- package/docs/reference/type-aliases/IJsonLdExpandedTermDefinition.md +6 -6
- package/docs/reference/type-aliases/IJsonLdValueObject.md +3 -3
- package/package.json +2 -3
- package/dist/types/models/IJsonLdKeyword.d.ts +0 -42
- package/docs/reference/type-aliases/IJsonLdKeyword.md +0 -149
package/dist/esm/index.mjs
CHANGED
|
@@ -129,10 +129,10 @@ const JsonLdTypes = {
|
|
|
129
129
|
JsonValue: "JsonLdJsonValue"
|
|
130
130
|
};
|
|
131
131
|
|
|
132
|
-
var type$
|
|
133
|
-
var description$
|
|
132
|
+
var type$d = "string";
|
|
133
|
+
var description$o = "Helper Types";
|
|
134
134
|
var JsonLdContainerTypeSchema = {
|
|
135
|
-
type: type$
|
|
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$
|
|
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$
|
|
320
|
+
var description$n = "Helper Types.";
|
|
321
321
|
var JsonLdContainerTypeArraySchema = {
|
|
322
322
|
anyOf: anyOf$a,
|
|
323
|
-
description: description$
|
|
323
|
+
description: description$n
|
|
324
324
|
};
|
|
325
325
|
|
|
326
|
-
var type$
|
|
327
|
-
var properties$
|
|
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$
|
|
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$
|
|
397
|
+
var description$m = "A context definition defines a local context in a node object.";
|
|
398
398
|
var JsonLdContextDefinitionSchema = {
|
|
399
|
-
type: type$
|
|
400
|
-
properties: properties$
|
|
401
|
-
additionalProperties: additionalProperties$
|
|
402
|
-
description: description$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
622
|
+
description: description$i
|
|
623
623
|
};
|
|
624
624
|
|
|
625
|
-
var type$
|
|
626
|
-
var properties$
|
|
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$
|
|
660
|
+
var required$2 = [
|
|
661
661
|
"@graph"
|
|
662
662
|
];
|
|
663
|
-
var additionalProperties$
|
|
664
|
-
var description$
|
|
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$
|
|
667
|
-
properties: properties$
|
|
668
|
-
required: required$
|
|
669
|
-
additionalProperties: additionalProperties$
|
|
670
|
-
description: description$
|
|
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$
|
|
674
|
-
var additionalProperties$
|
|
673
|
+
var type$a = "object";
|
|
674
|
+
var additionalProperties$8 = {
|
|
675
675
|
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
676
676
|
};
|
|
677
|
-
var description$
|
|
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$
|
|
680
|
-
additionalProperties: additionalProperties$
|
|
681
|
-
description: description$
|
|
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$
|
|
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$
|
|
698
|
+
description: description$f
|
|
699
699
|
};
|
|
700
700
|
|
|
701
|
-
var type$
|
|
702
|
-
var additionalProperties$
|
|
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$
|
|
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$
|
|
718
|
-
additionalProperties: additionalProperties$
|
|
719
|
-
description: description$
|
|
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$
|
|
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$
|
|
751
|
+
description: description$d
|
|
752
752
|
};
|
|
753
753
|
|
|
754
|
-
var type$
|
|
754
|
+
var type$8 = "array";
|
|
755
755
|
var items = {
|
|
756
756
|
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonValue"
|
|
757
757
|
};
|
|
758
|
-
var description$
|
|
758
|
+
var description$c = "JSON Type for array.";
|
|
759
759
|
var JsonLdJsonArraySchema = {
|
|
760
|
-
type: type$
|
|
760
|
+
type: type$8,
|
|
761
761
|
items: items,
|
|
762
|
-
description: description$
|
|
762
|
+
description: description$c
|
|
763
763
|
};
|
|
764
764
|
|
|
765
|
-
var type$
|
|
766
|
-
var additionalProperties$
|
|
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$
|
|
777
|
+
var description$b = "JSON Type for object.";
|
|
778
778
|
var JsonLdJsonObjectSchema = {
|
|
779
|
-
type: type$
|
|
780
|
-
additionalProperties: additionalProperties$
|
|
781
|
-
description: description$
|
|
779
|
+
type: type$7,
|
|
780
|
+
additionalProperties: additionalProperties$6,
|
|
781
|
+
description: description$b
|
|
782
782
|
};
|
|
783
783
|
|
|
784
|
-
var type$
|
|
784
|
+
var type$6 = [
|
|
785
785
|
"string",
|
|
786
786
|
"number",
|
|
787
787
|
"boolean",
|
|
788
788
|
"null"
|
|
789
789
|
];
|
|
790
|
-
var description$
|
|
790
|
+
var description$a = "JSON Primitive.";
|
|
791
791
|
var JsonLdJsonPrimitiveSchema = {
|
|
792
|
-
type: type$
|
|
793
|
-
description: description$
|
|
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$
|
|
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,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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"?:
|
|
14
|
-
"@direction"?:
|
|
15
|
-
"@import"?:
|
|
16
|
-
"@language"?:
|
|
17
|
-
"@propagate"?:
|
|
18
|
-
"@protected"?:
|
|
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"?:
|
|
20
|
+
"@protected"?: boolean | undefined;
|
|
22
21
|
} | undefined;
|
|
23
|
-
"@version"?:
|
|
24
|
-
"@vocab"?:
|
|
22
|
+
"@version"?: "1.1" | undefined;
|
|
23
|
+
"@vocab"?: string | null | undefined;
|
|
25
24
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
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"?:
|
|
19
|
-
"@graph"?:
|
|
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"?:
|
|
16
|
-
"@index"?:
|
|
16
|
+
"@language"?: string | undefined;
|
|
17
|
+
"@index"?: string | undefined;
|
|
17
18
|
"@context"?: IJsonLdContextDefinition | undefined;
|
|
18
|
-
"@prefix"?:
|
|
19
|
-
"@propagate"?:
|
|
20
|
-
"@protected"?:
|
|
19
|
+
"@prefix"?: boolean | undefined;
|
|
20
|
+
"@propagate"?: boolean | undefined;
|
|
21
|
+
"@protected"?: boolean | undefined;
|
|
21
22
|
} & ({
|
|
22
|
-
"@id"?:
|
|
23
|
+
"@id"?: string | string[] | null | undefined;
|
|
23
24
|
"@nest"?: "@nest" | string | undefined;
|
|
24
|
-
"@container"?:
|
|
25
|
+
"@container"?: ("@list" | "@set" | IJsonLdContainerType) | ("@list" | "@set" | IJsonLdContainerType)[] | IJsonLdContainerTypeArray | null | undefined;
|
|
25
26
|
} | {
|
|
26
|
-
"@reverse":
|
|
27
|
+
"@reverse": string;
|
|
27
28
|
"@container"?: "@set" | "@index" | null | undefined;
|
|
28
29
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
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"?:
|
|
14
|
-
"@id"?:
|
|
15
|
-
"@context"?:
|
|
13
|
+
"@index"?: string | undefined;
|
|
14
|
+
"@id"?: string | string[] | undefined;
|
|
15
|
+
"@context"?: IJsonLdContextDefinitionRoot | undefined;
|
|
16
16
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
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":
|
|
12
|
-
"@index"?:
|
|
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"?:
|
|
15
|
-
"@id"?:
|
|
16
|
-
"@included"?:
|
|
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"?:
|
|
20
|
+
"@type"?: string | string[] | undefined;
|
|
20
21
|
"@reverse"?: {
|
|
21
|
-
[key: string]:
|
|
22
|
+
[key: string]: string;
|
|
22
23
|
} | undefined;
|
|
23
|
-
"@index"?:
|
|
24
|
+
"@index"?: string | undefined;
|
|
24
25
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
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":
|
|
12
|
-
"@index"?:
|
|
11
|
+
"@set": IJsonLdListOrSetItem | IJsonLdListOrSetItem[];
|
|
12
|
+
"@index"?: string | undefined;
|
|
13
13
|
}
|