@twin.org/data-json-ld 0.0.1-next.34 → 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 +173 -316
- package/dist/esm/index.mjs +173 -316
- 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 +28 -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/cjs/index.cjs
CHANGED
|
@@ -131,10 +131,10 @@ const JsonLdTypes = {
|
|
|
131
131
|
JsonValue: "JsonLdJsonValue"
|
|
132
132
|
};
|
|
133
133
|
|
|
134
|
-
var type$
|
|
135
|
-
var description$
|
|
134
|
+
var type$d = "string";
|
|
135
|
+
var description$o = "Helper Types";
|
|
136
136
|
var JsonLdContainerTypeSchema = {
|
|
137
|
-
type: type$
|
|
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$
|
|
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$
|
|
322
|
+
var description$n = "Helper Types.";
|
|
323
323
|
var JsonLdContainerTypeArraySchema = {
|
|
324
324
|
anyOf: anyOf$a,
|
|
325
|
-
description: description$
|
|
325
|
+
description: description$n
|
|
326
326
|
};
|
|
327
327
|
|
|
328
|
-
var type$
|
|
329
|
-
var properties$
|
|
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$
|
|
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$
|
|
399
|
+
var description$m = "A context definition defines a local context in a node object.";
|
|
400
400
|
var JsonLdContextDefinitionSchema = {
|
|
401
|
-
type: type$
|
|
402
|
-
properties: properties$
|
|
403
|
-
additionalProperties: additionalProperties$
|
|
404
|
-
description: description$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
624
|
+
description: description$i
|
|
625
625
|
};
|
|
626
626
|
|
|
627
|
-
var type$
|
|
628
|
-
var properties$
|
|
627
|
+
var type$b = "object";
|
|
628
|
+
var properties$4 = {
|
|
629
629
|
"@graph": {
|
|
630
630
|
anyOf: [
|
|
631
631
|
{
|
|
@@ -640,37 +640,47 @@ var properties$5 = {
|
|
|
640
640
|
]
|
|
641
641
|
},
|
|
642
642
|
"@index": {
|
|
643
|
-
|
|
643
|
+
type: "string"
|
|
644
644
|
},
|
|
645
645
|
"@id": {
|
|
646
|
-
|
|
646
|
+
anyOf: [
|
|
647
|
+
{
|
|
648
|
+
type: "string"
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
type: "array",
|
|
652
|
+
items: {
|
|
653
|
+
type: "string"
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
]
|
|
647
657
|
},
|
|
648
658
|
"@context": {
|
|
649
|
-
$ref: "https://schema.twindev.org/json-ld/
|
|
659
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
650
660
|
}
|
|
651
661
|
};
|
|
652
|
-
var required$
|
|
662
|
+
var required$2 = [
|
|
653
663
|
"@graph"
|
|
654
664
|
];
|
|
655
|
-
var additionalProperties$
|
|
656
|
-
var description$
|
|
665
|
+
var additionalProperties$9 = false;
|
|
666
|
+
var description$h = "A graph object represents a named graph, which MAY include an explicit graph name.";
|
|
657
667
|
var JsonLdGraphObjectSchema = {
|
|
658
|
-
type: type$
|
|
659
|
-
properties: properties$
|
|
660
|
-
required: required$
|
|
661
|
-
additionalProperties: additionalProperties$
|
|
662
|
-
description: description$
|
|
668
|
+
type: type$b,
|
|
669
|
+
properties: properties$4,
|
|
670
|
+
required: required$2,
|
|
671
|
+
additionalProperties: additionalProperties$9,
|
|
672
|
+
description: description$h
|
|
663
673
|
};
|
|
664
674
|
|
|
665
|
-
var type$
|
|
666
|
-
var additionalProperties$
|
|
675
|
+
var type$a = "object";
|
|
676
|
+
var additionalProperties$8 = {
|
|
667
677
|
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
668
678
|
};
|
|
669
|
-
var description$
|
|
679
|
+
var description$g = "An id map is used to associate an IRI with a value that allows easy programmatic access.";
|
|
670
680
|
var JsonLdIdMapSchema = {
|
|
671
|
-
type: type$
|
|
672
|
-
additionalProperties: additionalProperties$
|
|
673
|
-
description: description$
|
|
681
|
+
type: type$a,
|
|
682
|
+
additionalProperties: additionalProperties$8,
|
|
683
|
+
description: description$g
|
|
674
684
|
};
|
|
675
685
|
|
|
676
686
|
var anyOf$5 = [
|
|
@@ -684,14 +694,14 @@ var anyOf$5 = [
|
|
|
684
694
|
}
|
|
685
695
|
}
|
|
686
696
|
];
|
|
687
|
-
var description$
|
|
697
|
+
var description$f = "An included block is used to provide a set of node objects.";
|
|
688
698
|
var JsonLdIncludedBlockSchema = {
|
|
689
699
|
anyOf: anyOf$5,
|
|
690
|
-
description: description$
|
|
700
|
+
description: description$f
|
|
691
701
|
};
|
|
692
702
|
|
|
693
|
-
var type$
|
|
694
|
-
var additionalProperties$
|
|
703
|
+
var type$9 = "object";
|
|
704
|
+
var additionalProperties$7 = {
|
|
695
705
|
anyOf: [
|
|
696
706
|
{
|
|
697
707
|
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMapItem"
|
|
@@ -704,11 +714,11 @@ var additionalProperties$8 = {
|
|
|
704
714
|
}
|
|
705
715
|
]
|
|
706
716
|
};
|
|
707
|
-
var description$
|
|
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.";
|
|
708
718
|
var JsonLdIndexMapSchema = {
|
|
709
|
-
type: type$
|
|
710
|
-
additionalProperties: additionalProperties$
|
|
711
|
-
description: description$
|
|
719
|
+
type: type$9,
|
|
720
|
+
additionalProperties: additionalProperties$7,
|
|
721
|
+
description: description$e
|
|
712
722
|
};
|
|
713
723
|
|
|
714
724
|
var anyOf$4 = [
|
|
@@ -737,25 +747,25 @@ var anyOf$4 = [
|
|
|
737
747
|
$ref: "https://schema.twindev.org/json-ld/JsonLdSetObject"
|
|
738
748
|
}
|
|
739
749
|
];
|
|
740
|
-
var description$
|
|
750
|
+
var description$d = "The items that can be stored in an index map.";
|
|
741
751
|
var JsonLdIndexMapItemSchema = {
|
|
742
752
|
anyOf: anyOf$4,
|
|
743
|
-
description: description$
|
|
753
|
+
description: description$d
|
|
744
754
|
};
|
|
745
755
|
|
|
746
|
-
var type$
|
|
756
|
+
var type$8 = "array";
|
|
747
757
|
var items = {
|
|
748
758
|
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonValue"
|
|
749
759
|
};
|
|
750
|
-
var description$
|
|
760
|
+
var description$c = "JSON Type for array.";
|
|
751
761
|
var JsonLdJsonArraySchema = {
|
|
752
|
-
type: type$
|
|
762
|
+
type: type$8,
|
|
753
763
|
items: items,
|
|
754
|
-
description: description$
|
|
764
|
+
description: description$c
|
|
755
765
|
};
|
|
756
766
|
|
|
757
|
-
var type$
|
|
758
|
-
var additionalProperties$
|
|
767
|
+
var type$7 = "object";
|
|
768
|
+
var additionalProperties$6 = {
|
|
759
769
|
anyOf: [
|
|
760
770
|
{
|
|
761
771
|
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonValue"
|
|
@@ -766,23 +776,23 @@ var additionalProperties$7 = {
|
|
|
766
776
|
}
|
|
767
777
|
]
|
|
768
778
|
};
|
|
769
|
-
var description$
|
|
779
|
+
var description$b = "JSON Type for object.";
|
|
770
780
|
var JsonLdJsonObjectSchema = {
|
|
771
|
-
type: type$
|
|
772
|
-
additionalProperties: additionalProperties$
|
|
773
|
-
description: description$
|
|
781
|
+
type: type$7,
|
|
782
|
+
additionalProperties: additionalProperties$6,
|
|
783
|
+
description: description$b
|
|
774
784
|
};
|
|
775
785
|
|
|
776
|
-
var type$
|
|
786
|
+
var type$6 = [
|
|
777
787
|
"string",
|
|
778
788
|
"number",
|
|
779
789
|
"boolean",
|
|
780
790
|
"null"
|
|
781
791
|
];
|
|
782
|
-
var description$
|
|
792
|
+
var description$a = "JSON Primitive.";
|
|
783
793
|
var JsonLdJsonPrimitiveSchema = {
|
|
784
|
-
type: type$
|
|
785
|
-
description: description$
|
|
794
|
+
type: type$6,
|
|
795
|
+
description: description$a
|
|
786
796
|
};
|
|
787
797
|
|
|
788
798
|
var anyOf$3 = [
|
|
@@ -796,224 +806,9 @@ var anyOf$3 = [
|
|
|
796
806
|
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
797
807
|
}
|
|
798
808
|
];
|
|
799
|
-
var description$
|
|
809
|
+
var description$9 = "JSON Value.";
|
|
800
810
|
var JsonLdJsonValueSchema = {
|
|
801
811
|
anyOf: anyOf$3,
|
|
802
|
-
description: description$a
|
|
803
|
-
};
|
|
804
|
-
|
|
805
|
-
var type$6 = "object";
|
|
806
|
-
var properties$4 = {
|
|
807
|
-
"@base": {
|
|
808
|
-
type: [
|
|
809
|
-
"string",
|
|
810
|
-
"null"
|
|
811
|
-
]
|
|
812
|
-
},
|
|
813
|
-
"@container": {
|
|
814
|
-
anyOf: [
|
|
815
|
-
{
|
|
816
|
-
type: "string",
|
|
817
|
-
"const": "@list"
|
|
818
|
-
},
|
|
819
|
-
{
|
|
820
|
-
type: "string",
|
|
821
|
-
"const": "@set"
|
|
822
|
-
},
|
|
823
|
-
{
|
|
824
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContainerType"
|
|
825
|
-
},
|
|
826
|
-
{
|
|
827
|
-
type: "array",
|
|
828
|
-
items: {
|
|
829
|
-
anyOf: [
|
|
830
|
-
{
|
|
831
|
-
type: "string",
|
|
832
|
-
"const": "@list"
|
|
833
|
-
},
|
|
834
|
-
{
|
|
835
|
-
type: "string",
|
|
836
|
-
"const": "@set"
|
|
837
|
-
},
|
|
838
|
-
{
|
|
839
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContainerType"
|
|
840
|
-
}
|
|
841
|
-
]
|
|
842
|
-
}
|
|
843
|
-
},
|
|
844
|
-
{
|
|
845
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContainerTypeArray"
|
|
846
|
-
},
|
|
847
|
-
{
|
|
848
|
-
type: "null"
|
|
849
|
-
}
|
|
850
|
-
]
|
|
851
|
-
},
|
|
852
|
-
"@context": {
|
|
853
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
854
|
-
},
|
|
855
|
-
"@direction": {
|
|
856
|
-
type: [
|
|
857
|
-
"string",
|
|
858
|
-
"null"
|
|
859
|
-
],
|
|
860
|
-
"enum": [
|
|
861
|
-
"ltr",
|
|
862
|
-
"rtl",
|
|
863
|
-
null
|
|
864
|
-
]
|
|
865
|
-
},
|
|
866
|
-
"@graph": {
|
|
867
|
-
anyOf: [
|
|
868
|
-
{
|
|
869
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdValueObject"
|
|
870
|
-
},
|
|
871
|
-
{
|
|
872
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
873
|
-
},
|
|
874
|
-
{
|
|
875
|
-
type: "array",
|
|
876
|
-
items: {
|
|
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
|
-
}
|
|
886
|
-
}
|
|
887
|
-
]
|
|
888
|
-
},
|
|
889
|
-
"@id": {
|
|
890
|
-
anyOf: [
|
|
891
|
-
{
|
|
892
|
-
type: "string"
|
|
893
|
-
},
|
|
894
|
-
{
|
|
895
|
-
type: "array",
|
|
896
|
-
items: {
|
|
897
|
-
type: "string"
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
]
|
|
901
|
-
},
|
|
902
|
-
"@import": {
|
|
903
|
-
type: "string"
|
|
904
|
-
},
|
|
905
|
-
"@included": {
|
|
906
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
907
|
-
},
|
|
908
|
-
"@index": {
|
|
909
|
-
type: "string"
|
|
910
|
-
},
|
|
911
|
-
"@json": {
|
|
912
|
-
type: "string",
|
|
913
|
-
"const": "@json"
|
|
914
|
-
},
|
|
915
|
-
"@language": {
|
|
916
|
-
type: "string"
|
|
917
|
-
},
|
|
918
|
-
"@list": {
|
|
919
|
-
anyOf: [
|
|
920
|
-
{
|
|
921
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdListOrSetItem"
|
|
922
|
-
},
|
|
923
|
-
{
|
|
924
|
-
type: "array",
|
|
925
|
-
items: {
|
|
926
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdListOrSetItem"
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
]
|
|
930
|
-
},
|
|
931
|
-
"@nest": {
|
|
932
|
-
type: "object"
|
|
933
|
-
},
|
|
934
|
-
"@none": {
|
|
935
|
-
type: "string",
|
|
936
|
-
"const": "@none"
|
|
937
|
-
},
|
|
938
|
-
"@prefix": {
|
|
939
|
-
type: "boolean"
|
|
940
|
-
},
|
|
941
|
-
"@propagate": {
|
|
942
|
-
type: "boolean"
|
|
943
|
-
},
|
|
944
|
-
"@protected": {
|
|
945
|
-
type: "boolean"
|
|
946
|
-
},
|
|
947
|
-
"@reverse": {
|
|
948
|
-
type: "string"
|
|
949
|
-
},
|
|
950
|
-
"@set": {
|
|
951
|
-
anyOf: [
|
|
952
|
-
{
|
|
953
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdListOrSetItem"
|
|
954
|
-
},
|
|
955
|
-
{
|
|
956
|
-
type: "array",
|
|
957
|
-
items: {
|
|
958
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdListOrSetItem"
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
]
|
|
962
|
-
},
|
|
963
|
-
"@type": {
|
|
964
|
-
type: "string"
|
|
965
|
-
},
|
|
966
|
-
"@value": {
|
|
967
|
-
type: [
|
|
968
|
-
"null",
|
|
969
|
-
"boolean",
|
|
970
|
-
"number",
|
|
971
|
-
"string"
|
|
972
|
-
]
|
|
973
|
-
},
|
|
974
|
-
"@version": {
|
|
975
|
-
type: "string",
|
|
976
|
-
"const": "1.1"
|
|
977
|
-
},
|
|
978
|
-
"@vocab": {
|
|
979
|
-
type: [
|
|
980
|
-
"string",
|
|
981
|
-
"null"
|
|
982
|
-
]
|
|
983
|
-
}
|
|
984
|
-
};
|
|
985
|
-
var required$2 = [
|
|
986
|
-
"@base",
|
|
987
|
-
"@container",
|
|
988
|
-
"@context",
|
|
989
|
-
"@direction",
|
|
990
|
-
"@graph",
|
|
991
|
-
"@id",
|
|
992
|
-
"@import",
|
|
993
|
-
"@included",
|
|
994
|
-
"@index",
|
|
995
|
-
"@json",
|
|
996
|
-
"@language",
|
|
997
|
-
"@list",
|
|
998
|
-
"@nest",
|
|
999
|
-
"@none",
|
|
1000
|
-
"@prefix",
|
|
1001
|
-
"@propagate",
|
|
1002
|
-
"@protected",
|
|
1003
|
-
"@reverse",
|
|
1004
|
-
"@set",
|
|
1005
|
-
"@type",
|
|
1006
|
-
"@value",
|
|
1007
|
-
"@version",
|
|
1008
|
-
"@vocab"
|
|
1009
|
-
];
|
|
1010
|
-
var additionalProperties$6 = false;
|
|
1011
|
-
var description$9 = "A list of keywords and their types. Only used for internal reference; not an actual interface. Not for export.";
|
|
1012
|
-
var JsonLdKeywordSchema = {
|
|
1013
|
-
type: type$6,
|
|
1014
|
-
properties: properties$4,
|
|
1015
|
-
required: required$2,
|
|
1016
|
-
additionalProperties: additionalProperties$6,
|
|
1017
812
|
description: description$9
|
|
1018
813
|
};
|
|
1019
814
|
|
|
@@ -1044,10 +839,20 @@ var JsonLdLanguageMapSchema = {
|
|
|
1044
839
|
var type$4 = "object";
|
|
1045
840
|
var properties$3 = {
|
|
1046
841
|
"@list": {
|
|
1047
|
-
|
|
842
|
+
anyOf: [
|
|
843
|
+
{
|
|
844
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdListOrSetItem"
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
type: "array",
|
|
848
|
+
items: {
|
|
849
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdListOrSetItem"
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
]
|
|
1048
853
|
},
|
|
1049
854
|
"@index": {
|
|
1050
|
-
|
|
855
|
+
type: "string"
|
|
1051
856
|
}
|
|
1052
857
|
};
|
|
1053
858
|
var required$1 = [
|
|
@@ -1117,13 +922,23 @@ var additionalProperties$3 = {
|
|
|
1117
922
|
};
|
|
1118
923
|
var properties$2 = {
|
|
1119
924
|
"@context": {
|
|
1120
|
-
$ref: "https://schema.twindev.org/json-ld/
|
|
925
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
1121
926
|
},
|
|
1122
927
|
"@id": {
|
|
1123
|
-
|
|
928
|
+
anyOf: [
|
|
929
|
+
{
|
|
930
|
+
type: "string"
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
type: "array",
|
|
934
|
+
items: {
|
|
935
|
+
type: "string"
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
]
|
|
1124
939
|
},
|
|
1125
940
|
"@included": {
|
|
1126
|
-
$ref: "https://schema.twindev.org/json-ld/
|
|
941
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1127
942
|
},
|
|
1128
943
|
"@graph": {
|
|
1129
944
|
anyOf: [
|
|
@@ -1154,12 +969,12 @@ var properties$2 = {
|
|
|
1154
969
|
"@type": {
|
|
1155
970
|
anyOf: [
|
|
1156
971
|
{
|
|
1157
|
-
|
|
972
|
+
type: "string"
|
|
1158
973
|
},
|
|
1159
974
|
{
|
|
1160
975
|
type: "array",
|
|
1161
976
|
items: {
|
|
1162
|
-
|
|
977
|
+
type: "string"
|
|
1163
978
|
}
|
|
1164
979
|
}
|
|
1165
980
|
]
|
|
@@ -1167,11 +982,11 @@ var properties$2 = {
|
|
|
1167
982
|
"@reverse": {
|
|
1168
983
|
type: "object",
|
|
1169
984
|
additionalProperties: {
|
|
1170
|
-
|
|
985
|
+
type: "string"
|
|
1171
986
|
}
|
|
1172
987
|
},
|
|
1173
988
|
"@index": {
|
|
1174
|
-
|
|
989
|
+
type: "string"
|
|
1175
990
|
}
|
|
1176
991
|
};
|
|
1177
992
|
var description$5 = "A node object represents zero or more properties of a node in the graph serialized by the JSON-LD document.";
|
|
@@ -1220,13 +1035,23 @@ var JsonLdNodePrimitiveSchema = {
|
|
|
1220
1035
|
var type$2 = "object";
|
|
1221
1036
|
var properties$1 = {
|
|
1222
1037
|
"@context": {
|
|
1223
|
-
$ref: "https://schema.twindev.org/json-ld/
|
|
1038
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
1224
1039
|
},
|
|
1225
1040
|
"@id": {
|
|
1226
|
-
|
|
1041
|
+
anyOf: [
|
|
1042
|
+
{
|
|
1043
|
+
type: "string"
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
type: "array",
|
|
1047
|
+
items: {
|
|
1048
|
+
type: "string"
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
]
|
|
1227
1052
|
},
|
|
1228
1053
|
"@included": {
|
|
1229
|
-
$ref: "https://schema.twindev.org/json-ld/
|
|
1054
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1230
1055
|
},
|
|
1231
1056
|
"@graph": {
|
|
1232
1057
|
anyOf: [
|
|
@@ -1257,12 +1082,12 @@ var properties$1 = {
|
|
|
1257
1082
|
"@type": {
|
|
1258
1083
|
anyOf: [
|
|
1259
1084
|
{
|
|
1260
|
-
|
|
1085
|
+
type: "string"
|
|
1261
1086
|
},
|
|
1262
1087
|
{
|
|
1263
1088
|
type: "array",
|
|
1264
1089
|
items: {
|
|
1265
|
-
|
|
1090
|
+
type: "string"
|
|
1266
1091
|
}
|
|
1267
1092
|
}
|
|
1268
1093
|
]
|
|
@@ -1270,11 +1095,11 @@ var properties$1 = {
|
|
|
1270
1095
|
"@reverse": {
|
|
1271
1096
|
type: "object",
|
|
1272
1097
|
additionalProperties: {
|
|
1273
|
-
|
|
1098
|
+
type: "string"
|
|
1274
1099
|
}
|
|
1275
1100
|
},
|
|
1276
1101
|
"@index": {
|
|
1277
|
-
|
|
1102
|
+
type: "string"
|
|
1278
1103
|
}
|
|
1279
1104
|
};
|
|
1280
1105
|
var additionalProperties$2 = false;
|
|
@@ -1289,10 +1114,20 @@ var JsonLdObjectSchema = {
|
|
|
1289
1114
|
var type$1 = "object";
|
|
1290
1115
|
var properties = {
|
|
1291
1116
|
"@set": {
|
|
1292
|
-
|
|
1117
|
+
anyOf: [
|
|
1118
|
+
{
|
|
1119
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdListOrSetItem"
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
type: "array",
|
|
1123
|
+
items: {
|
|
1124
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdListOrSetItem"
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
]
|
|
1293
1128
|
},
|
|
1294
1129
|
"@index": {
|
|
1295
|
-
|
|
1130
|
+
type: "string"
|
|
1296
1131
|
}
|
|
1297
1132
|
};
|
|
1298
1133
|
var required = [
|
|
@@ -1332,19 +1167,32 @@ var anyOf = [
|
|
|
1332
1167
|
additionalProperties: false,
|
|
1333
1168
|
properties: {
|
|
1334
1169
|
"@value": {
|
|
1335
|
-
|
|
1170
|
+
type: [
|
|
1171
|
+
"null",
|
|
1172
|
+
"boolean",
|
|
1173
|
+
"number",
|
|
1174
|
+
"string"
|
|
1175
|
+
]
|
|
1336
1176
|
},
|
|
1337
1177
|
"@language": {
|
|
1338
|
-
|
|
1178
|
+
type: "string"
|
|
1339
1179
|
},
|
|
1340
1180
|
"@direction": {
|
|
1341
|
-
|
|
1181
|
+
type: [
|
|
1182
|
+
"string",
|
|
1183
|
+
"null"
|
|
1184
|
+
],
|
|
1185
|
+
"enum": [
|
|
1186
|
+
"ltr",
|
|
1187
|
+
"rtl",
|
|
1188
|
+
null
|
|
1189
|
+
]
|
|
1342
1190
|
},
|
|
1343
1191
|
"@index": {
|
|
1344
|
-
|
|
1192
|
+
type: "string"
|
|
1345
1193
|
},
|
|
1346
1194
|
"@context": {
|
|
1347
|
-
$ref: "https://schema.twindev.org/json-ld/
|
|
1195
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
1348
1196
|
}
|
|
1349
1197
|
},
|
|
1350
1198
|
required: [
|
|
@@ -1356,16 +1204,21 @@ var anyOf = [
|
|
|
1356
1204
|
additionalProperties: false,
|
|
1357
1205
|
properties: {
|
|
1358
1206
|
"@value": {
|
|
1359
|
-
|
|
1207
|
+
type: [
|
|
1208
|
+
"null",
|
|
1209
|
+
"boolean",
|
|
1210
|
+
"number",
|
|
1211
|
+
"string"
|
|
1212
|
+
]
|
|
1360
1213
|
},
|
|
1361
1214
|
"@type": {
|
|
1362
|
-
|
|
1215
|
+
type: "string"
|
|
1363
1216
|
},
|
|
1364
1217
|
"@index": {
|
|
1365
|
-
|
|
1218
|
+
type: "string"
|
|
1366
1219
|
},
|
|
1367
1220
|
"@context": {
|
|
1368
|
-
$ref: "https://schema.twindev.org/json-ld/
|
|
1221
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
1369
1222
|
}
|
|
1370
1223
|
},
|
|
1371
1224
|
required: [
|
|
@@ -1380,7 +1233,16 @@ var anyOf = [
|
|
|
1380
1233
|
"@value": {
|
|
1381
1234
|
anyOf: [
|
|
1382
1235
|
{
|
|
1383
|
-
|
|
1236
|
+
type: "null"
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
type: "boolean"
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
type: "number"
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
type: "string"
|
|
1384
1246
|
},
|
|
1385
1247
|
{
|
|
1386
1248
|
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
@@ -1395,10 +1257,10 @@ var anyOf = [
|
|
|
1395
1257
|
"const": "@json"
|
|
1396
1258
|
},
|
|
1397
1259
|
"@index": {
|
|
1398
|
-
|
|
1260
|
+
type: "string"
|
|
1399
1261
|
},
|
|
1400
1262
|
"@context": {
|
|
1401
|
-
$ref: "https://schema.twindev.org/json-ld/
|
|
1263
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
1402
1264
|
}
|
|
1403
1265
|
},
|
|
1404
1266
|
required: [
|
|
@@ -1518,11 +1380,6 @@ class JsonLdDataTypes {
|
|
|
1518
1380
|
type: JsonLdTypes.ExpandedTermDefinition,
|
|
1519
1381
|
jsonSchema: async () => JsonLdExpandedTermDefinitionSchema
|
|
1520
1382
|
}));
|
|
1521
|
-
dataCore.DataTypeHandlerFactory.register(`${JsonLdContexts.ContextRoot}${JsonLdTypes.Keyword}`, () => ({
|
|
1522
|
-
context: JsonLdContexts.ContextRoot,
|
|
1523
|
-
type: JsonLdTypes.Keyword,
|
|
1524
|
-
jsonSchema: async () => JsonLdKeywordSchema
|
|
1525
|
-
}));
|
|
1526
1383
|
dataCore.DataTypeHandlerFactory.register(`${JsonLdContexts.ContextRoot}${JsonLdTypes.ListOrSetItem}`, () => ({
|
|
1527
1384
|
context: JsonLdContexts.ContextRoot,
|
|
1528
1385
|
type: JsonLdTypes.ListOrSetItem,
|