@shaclmate/compiler 4.0.100 → 4.0.101

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.
@@ -1,3 +1,4 @@
1
+ import { expandIri } from "@rdfx/curie";
1
2
  import dataFactory from "@rdfx/data-factory";
2
3
  import { LiteralFactory } from "@rdfx/literal";
3
4
  import { PropertyPath as RdfxResourcePropertyPath, Resource, } from "@rdfx/resource";
@@ -30,9 +31,7 @@ function $convertToIdentifier(value, defaultNamespace) {
30
31
  case "object":
31
32
  return Either.of(value);
32
33
  case "string":
33
- return Either.of(defaultNamespace
34
- ? defaultNamespace(value)
35
- : dataFactory.namedNode(value));
34
+ return expandIri(value, { dataFactory: dataFactory, defaultNamespace });
36
35
  case "undefined":
37
36
  return Either.of(dataFactory.blankNode());
38
37
  }
@@ -45,34 +44,31 @@ function $convertToIdentifierProperty(identifier, defaultNamespace) {
45
44
  const captureIdentifier = identifier;
46
45
  return Either.of(() => captureIdentifier);
47
46
  }
48
- case "string": {
49
- const captureIdentifier = defaultNamespace
50
- ? defaultNamespace(identifier)
51
- : dataFactory.namedNode(identifier);
52
- return Either.of(() => captureIdentifier);
53
- }
47
+ case "string":
48
+ return expandIri(identifier, {
49
+ dataFactory: dataFactory,
50
+ defaultNamespace,
51
+ }).map((iri) => () => iri);
54
52
  case "undefined": {
55
53
  const captureIdentifier = dataFactory.blankNode();
56
54
  return Either.of(() => captureIdentifier);
57
55
  }
58
56
  }
59
57
  }
60
- function $convertToInIri(value, _defaultNamespace) {
58
+ function $convertToIri(value, defaultNamespace) {
61
59
  switch (typeof value) {
62
60
  case "object":
63
61
  return Either.of(value);
64
62
  case "string":
65
- return Either.of(dataFactory.namedNode(value));
63
+ return expandIri(value, { dataFactory: dataFactory, defaultNamespace });
66
64
  }
67
65
  }
68
- function $convertToIri(value, defaultNamespace) {
66
+ function $convertToIriLiteral(value, _defaultNamespace) {
69
67
  switch (typeof value) {
70
68
  case "object":
71
69
  return Either.of(value);
72
70
  case "string":
73
- return Either.of(defaultNamespace
74
- ? defaultNamespace(value)
75
- : dataFactory.namedNode(value));
71
+ return Either.of(dataFactory.namedNode(value));
76
72
  }
77
73
  }
78
74
  function $convertToList(convertToItem) {
@@ -634,11 +630,11 @@ export var BaseShape;
634
630
  minLength: $convertToMaybe($convertToBigInt)(parameters.minLength, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(BaseShape.schema.properties.minLength.type, value)),
635
631
  mutable: $convertToMaybe($identityConversionFunction)(parameters.mutable, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(BaseShape.schema.properties.mutable.type, value)),
636
632
  node: $convertToMaybe($convertToIdentifier)(parameters.node, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(BaseShape.schema.properties.node.type, value)),
637
- nodeKind: $convertToMaybe(($convertToInIri))(parameters.nodeKind, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(BaseShape.schema.properties.nodeKind.type, value)),
633
+ nodeKind: $convertToMaybe(($convertToIriLiteral))(parameters.nodeKind, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(BaseShape.schema.properties.nodeKind.type, value)),
638
634
  not: $convertToScalarSet($convertToIdentifier)(parameters.not, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(BaseShape.schema.properties.not.type, value)),
639
635
  or: $convertToMaybe($convertToList($convertToIdentifier))(parameters.or, parameters.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(BaseShape.schema.properties.or.type, value)),
640
636
  pattern: $convertToMaybe($identityConversionFunction)(parameters.pattern, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(BaseShape.schema.properties.pattern.type, value)),
641
- severity: $convertToMaybe(($convertToInIri))(parameters.severity, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(BaseShape.schema.properties.severity.type, value)),
637
+ severity: $convertToMaybe(($convertToIriLiteral))(parameters.severity, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(BaseShape.schema.properties.severity.type, value)),
642
638
  shaclmateName: $convertToMaybe($identityConversionFunction)(parameters.shaclmateName, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(BaseShape.schema.properties.shaclmateName.type, value)),
643
639
  targetClasses: $convertToScalarSet($convertToIri)(parameters.targetClasses, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(BaseShape.schema.properties.targetClasses.type, value)),
644
640
  targetNodes: $convertToScalarSet($identityConversionFunction)(parameters.targetNodes, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(BaseShape.schema.properties.targetNodes.type, value)),
@@ -657,6 +653,7 @@ export var BaseShape;
657
653
  })(Identifier = BaseShape.Identifier || (BaseShape.Identifier = {}));
658
654
  BaseShape.isBaseShape = (object) => object.$type === "BaseShape";
659
655
  BaseShape.schema = {
656
+ kind: "Object",
660
657
  properties: {
661
658
  $identifier: {
662
659
  kind: "Identifier",
@@ -666,184 +663,182 @@ export var BaseShape;
666
663
  kind: "Shacl",
667
664
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#and"),
668
665
  type: {
669
- kind: "Option",
670
666
  itemType: {
671
- kind: "List",
672
667
  itemType: { kind: "Identifier" },
668
+ kind: "List",
673
669
  },
670
+ kind: "Option",
674
671
  },
675
672
  },
676
673
  classes: {
677
674
  kind: "Shacl",
678
675
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#class"),
679
- type: { kind: "Set", itemType: { kind: "Iri" } },
676
+ type: { itemType: { kind: "Iri" }, kind: "Set" },
680
677
  },
681
678
  comment: {
682
679
  kind: "Shacl",
683
680
  path: $rdfs_comment,
684
681
  type: {
682
+ itemType: { datatype: $xsd_string, kind: "String" },
685
683
  kind: "Option",
686
- itemType: { kind: "String", datatype: $xsd_string },
687
684
  },
688
685
  },
689
686
  datatype: {
690
687
  kind: "Shacl",
691
688
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#datatype"),
692
- type: { kind: "Option", itemType: { kind: "Iri" } },
689
+ type: { itemType: { kind: "Iri" }, kind: "Option" },
693
690
  },
694
691
  deactivated: {
695
692
  kind: "Shacl",
696
693
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#deactivated"),
697
694
  type: {
695
+ itemType: { datatype: $xsd_boolean, kind: "Boolean" },
698
696
  kind: "Option",
699
- itemType: { kind: "Boolean", datatype: $xsd_boolean },
700
697
  },
701
698
  },
702
699
  flags: {
703
700
  kind: "Shacl",
704
701
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#flags"),
705
702
  type: {
703
+ itemType: { datatype: $xsd_string, kind: "String" },
706
704
  kind: "Option",
707
- itemType: { kind: "String", datatype: $xsd_string },
708
705
  },
709
706
  },
710
707
  hasValues: {
711
708
  kind: "Shacl",
712
709
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#hasValue"),
713
710
  type: {
714
- kind: "Set",
715
711
  itemType: { kind: "Term", types: ["NamedNode", "Literal"] },
712
+ kind: "Set",
716
713
  },
717
714
  },
718
715
  ignore: {
719
716
  kind: "Shacl",
720
717
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#ignore"),
721
718
  type: {
722
- kind: "DefaultValue",
723
- itemType: { kind: "Boolean", datatype: $xsd_boolean },
724
719
  defaultValue: dataFactory.literal("false", $xsd_boolean),
720
+ itemType: { datatype: $xsd_boolean, kind: "Boolean" },
721
+ kind: "DefaultValue",
725
722
  },
726
723
  },
727
724
  in_: {
728
725
  kind: "Shacl",
729
726
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#in"),
730
727
  type: {
731
- kind: "Option",
732
728
  itemType: {
733
- kind: "List",
734
729
  itemType: {
735
730
  kind: "Term",
736
731
  types: ["NamedNode", "Literal"],
737
732
  },
733
+ kind: "List",
738
734
  },
735
+ kind: "Option",
739
736
  },
740
737
  },
741
738
  isDefinedBy: {
742
739
  kind: "Shacl",
743
740
  path: $rdfs_isDefinedBy,
744
741
  type: {
745
- kind: "Option",
746
742
  itemType: { kind: "Identifier" },
743
+ kind: "Option",
747
744
  },
748
745
  },
749
746
  label: {
750
747
  kind: "Shacl",
751
748
  path: $rdfs_label,
752
749
  type: {
750
+ itemType: { datatype: $xsd_string, kind: "String" },
753
751
  kind: "Option",
754
- itemType: { kind: "String", datatype: $xsd_string },
755
752
  },
756
753
  },
757
754
  languageIn: {
758
755
  kind: "Shacl",
759
756
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#languageIn"),
760
757
  type: {
761
- kind: "Option",
762
758
  itemType: {
759
+ itemType: { datatype: $xsd_string, kind: "String" },
763
760
  kind: "List",
764
- itemType: { kind: "String", datatype: $xsd_string },
765
761
  },
762
+ kind: "Option",
766
763
  },
767
764
  },
768
765
  maxExclusive: {
769
766
  kind: "Shacl",
770
767
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxExclusive"),
771
768
  type: {
772
- kind: "Option",
773
769
  itemType: { kind: "Literal" },
770
+ kind: "Option",
774
771
  },
775
772
  },
776
773
  maxInclusive: {
777
774
  kind: "Shacl",
778
775
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxInclusive"),
779
776
  type: {
780
- kind: "Option",
781
777
  itemType: { kind: "Literal" },
778
+ kind: "Option",
782
779
  },
783
780
  },
784
781
  maxLength: {
785
782
  kind: "Shacl",
786
783
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxLength"),
787
784
  type: {
785
+ itemType: { datatype: $xsd_integer, kind: "BigInt" },
788
786
  kind: "Option",
789
- itemType: { kind: "BigInt", datatype: $xsd_integer },
790
787
  },
791
788
  },
792
789
  message: {
793
790
  kind: "Shacl",
794
791
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#message"),
795
792
  type: {
793
+ itemType: { datatype: $xsd_string, kind: "String" },
796
794
  kind: "Option",
797
- itemType: { kind: "String", datatype: $xsd_string },
798
795
  },
799
796
  },
800
797
  minExclusive: {
801
798
  kind: "Shacl",
802
799
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minExclusive"),
803
800
  type: {
804
- kind: "Option",
805
801
  itemType: { kind: "Literal" },
802
+ kind: "Option",
806
803
  },
807
804
  },
808
805
  minInclusive: {
809
806
  kind: "Shacl",
810
807
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minInclusive"),
811
808
  type: {
812
- kind: "Option",
813
809
  itemType: { kind: "Literal" },
810
+ kind: "Option",
814
811
  },
815
812
  },
816
813
  minLength: {
817
814
  kind: "Shacl",
818
815
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minLength"),
819
816
  type: {
817
+ itemType: { datatype: $xsd_integer, kind: "BigInt" },
820
818
  kind: "Option",
821
- itemType: { kind: "BigInt", datatype: $xsd_integer },
822
819
  },
823
820
  },
824
821
  mutable: {
825
822
  kind: "Shacl",
826
823
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#mutable"),
827
824
  type: {
825
+ itemType: { datatype: $xsd_boolean, kind: "Boolean" },
828
826
  kind: "Option",
829
- itemType: { kind: "Boolean", datatype: $xsd_boolean },
830
827
  },
831
828
  },
832
829
  node: {
833
830
  kind: "Shacl",
834
831
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#node"),
835
832
  type: {
836
- kind: "Option",
837
833
  itemType: { kind: "Identifier" },
834
+ kind: "Option",
838
835
  },
839
836
  },
840
837
  nodeKind: {
841
838
  kind: "Shacl",
842
839
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#nodeKind"),
843
840
  type: {
844
- kind: "Option",
845
841
  itemType: {
846
- kind: "Iri",
847
842
  in: [
848
843
  dataFactory.namedNode("http://www.w3.org/ns/shacl#BlankNode"),
849
844
  dataFactory.namedNode("http://www.w3.org/ns/shacl#BlankNodeOrIRI"),
@@ -852,34 +847,36 @@ export var BaseShape;
852
847
  dataFactory.namedNode("http://www.w3.org/ns/shacl#IRIOrLiteral"),
853
848
  dataFactory.namedNode("http://www.w3.org/ns/shacl#Literal"),
854
849
  ],
850
+ kind: "Iri",
855
851
  },
852
+ kind: "Option",
856
853
  },
857
854
  },
858
855
  not: {
859
856
  kind: "Shacl",
860
857
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#not"),
861
858
  type: {
862
- kind: "Set",
863
859
  itemType: { kind: "Identifier" },
860
+ kind: "Set",
864
861
  },
865
862
  },
866
863
  or: {
867
864
  kind: "Shacl",
868
865
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#or"),
869
866
  type: {
870
- kind: "Option",
871
867
  itemType: {
872
- kind: "List",
873
868
  itemType: { kind: "Identifier" },
869
+ kind: "List",
874
870
  },
871
+ kind: "Option",
875
872
  },
876
873
  },
877
874
  pattern: {
878
875
  kind: "Shacl",
879
876
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#pattern"),
880
877
  type: {
878
+ itemType: { datatype: $xsd_string, kind: "String" },
881
879
  kind: "Option",
882
- itemType: { kind: "String", datatype: $xsd_string },
883
880
  },
884
881
  },
885
882
  severity: {
@@ -887,10 +884,10 @@ export var BaseShape;
887
884
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#severity"),
888
885
  get type() {
889
886
  return {
890
- kind: "Option",
891
887
  get itemType() {
892
888
  return Severity.schema;
893
889
  },
890
+ kind: "Option",
894
891
  };
895
892
  },
896
893
  },
@@ -898,42 +895,42 @@ export var BaseShape;
898
895
  kind: "Shacl",
899
896
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#name"),
900
897
  type: {
898
+ itemType: { datatype: $xsd_string, kind: "String" },
901
899
  kind: "Option",
902
- itemType: { kind: "String", datatype: $xsd_string },
903
900
  },
904
901
  },
905
902
  targetClasses: {
906
903
  kind: "Shacl",
907
904
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetClass"),
908
- type: { kind: "Set", itemType: { kind: "Iri" } },
905
+ type: { itemType: { kind: "Iri" }, kind: "Set" },
909
906
  },
910
907
  targetNodes: {
911
908
  kind: "Shacl",
912
909
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetNode"),
913
910
  type: {
914
- kind: "Set",
915
911
  itemType: { kind: "Term", types: ["NamedNode", "Literal"] },
912
+ kind: "Set",
916
913
  },
917
914
  },
918
915
  targetObjectsOf: {
919
916
  kind: "Shacl",
920
917
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetObjectsOf"),
921
- type: { kind: "Set", itemType: { kind: "Iri" } },
918
+ type: { itemType: { kind: "Iri" }, kind: "Set" },
922
919
  },
923
920
  targetSubjectsOf: {
924
921
  kind: "Shacl",
925
922
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetSubjectsOf"),
926
- type: { kind: "Set", itemType: { kind: "Iri" } },
923
+ type: { itemType: { kind: "Iri" }, kind: "Set" },
927
924
  },
928
925
  xone: {
929
926
  kind: "Shacl",
930
927
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#xone"),
931
928
  type: {
932
- kind: "Option",
933
929
  itemType: {
934
- kind: "List",
935
930
  itemType: { kind: "Identifier" },
931
+ kind: "List",
936
932
  },
933
+ kind: "Option",
937
934
  },
938
935
  },
939
936
  },
@@ -1062,6 +1059,7 @@ export var NodeShapeSpecificProperties;
1062
1059
  })(Identifier = NodeShapeSpecificProperties.Identifier || (NodeShapeSpecificProperties.Identifier = {}));
1063
1060
  NodeShapeSpecificProperties.isNodeShapeSpecificProperties = (object) => object.$type === "NodeShapeSpecificProperties";
1064
1061
  NodeShapeSpecificProperties.schema = {
1062
+ kind: "Object",
1065
1063
  properties: {
1066
1064
  $identifier: {
1067
1065
  kind: "Identifier",
@@ -1071,77 +1069,77 @@ export var NodeShapeSpecificProperties;
1071
1069
  kind: "Shacl",
1072
1070
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#closed"),
1073
1071
  type: {
1072
+ itemType: { datatype: $xsd_boolean, kind: "Boolean" },
1074
1073
  kind: "Option",
1075
- itemType: { kind: "Boolean", datatype: $xsd_boolean },
1076
1074
  },
1077
1075
  },
1078
1076
  discriminantValue: {
1079
1077
  kind: "Shacl",
1080
1078
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#discriminantValue"),
1081
1079
  type: {
1080
+ itemType: { datatype: $xsd_string, kind: "String" },
1082
1081
  kind: "Option",
1083
- itemType: { kind: "String", datatype: $xsd_string },
1084
1082
  },
1085
1083
  },
1086
1084
  extern: {
1087
1085
  kind: "Shacl",
1088
1086
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#extern"),
1089
1087
  type: {
1088
+ itemType: { datatype: $xsd_boolean, kind: "Boolean" },
1090
1089
  kind: "Option",
1091
- itemType: { kind: "Boolean", datatype: $xsd_boolean },
1092
1090
  },
1093
1091
  },
1094
1092
  fromRdfType: {
1095
1093
  kind: "Shacl",
1096
1094
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#fromRdfType"),
1097
- type: { kind: "Option", itemType: { kind: "Iri" } },
1095
+ type: { itemType: { kind: "Iri" }, kind: "Option" },
1098
1096
  },
1099
1097
  ignoredProperties: {
1100
1098
  kind: "Shacl",
1101
1099
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#ignoredProperties"),
1102
1100
  type: {
1103
- kind: "Option",
1104
1101
  itemType: {
1105
- kind: "List",
1106
1102
  itemType: { kind: "Iri" },
1103
+ kind: "List",
1107
1104
  },
1105
+ kind: "Option",
1108
1106
  },
1109
1107
  },
1110
1108
  properties: {
1111
1109
  kind: "Shacl",
1112
1110
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#property"),
1113
1111
  type: {
1114
- kind: "Set",
1115
1112
  itemType: { kind: "Identifier" },
1113
+ kind: "Set",
1116
1114
  },
1117
1115
  },
1118
1116
  rdfType: {
1119
1117
  kind: "Shacl",
1120
1118
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#rdfType"),
1121
- type: { kind: "Option", itemType: { kind: "Iri" } },
1119
+ type: { itemType: { kind: "Iri" }, kind: "Option" },
1122
1120
  },
1123
1121
  subClassOf: {
1124
1122
  kind: "Shacl",
1125
1123
  path: $rdfs_subClassOf,
1126
- type: { kind: "Set", itemType: { kind: "Iri" } },
1124
+ type: { itemType: { kind: "Iri" }, kind: "Set" },
1127
1125
  },
1128
1126
  toRdfTypes: {
1129
1127
  kind: "Shacl",
1130
1128
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#toRdfType"),
1131
- type: { kind: "Set", itemType: { kind: "Iri" } },
1129
+ type: { itemType: { kind: "Iri" }, kind: "Set" },
1132
1130
  },
1133
1131
  tsImports: {
1134
1132
  kind: "Shacl",
1135
1133
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#tsImport"),
1136
1134
  type: {
1135
+ itemType: { datatype: $xsd_string, kind: "String" },
1137
1136
  kind: "Set",
1138
- itemType: { kind: "String", datatype: $xsd_string },
1139
1137
  },
1140
1138
  },
1141
1139
  types: {
1142
1140
  kind: "Shacl",
1143
1141
  path: $rdf_type,
1144
- type: { kind: "Set", itemType: { kind: "Iri" } },
1142
+ type: { itemType: { kind: "Iri" }, kind: "Set" },
1145
1143
  },
1146
1144
  },
1147
1145
  };
@@ -1191,6 +1189,7 @@ export var Ontology;
1191
1189
  })(Identifier = Ontology.Identifier || (Ontology.Identifier = {}));
1192
1190
  Ontology.isOntology = (object) => object.$type === "Ontology";
1193
1191
  Ontology.schema = {
1192
+ kind: "Object",
1194
1193
  properties: {
1195
1194
  $identifier: {
1196
1195
  kind: "Identifier",
@@ -1200,16 +1199,16 @@ export var Ontology;
1200
1199
  kind: "Shacl",
1201
1200
  path: $rdfs_comment,
1202
1201
  type: {
1202
+ itemType: { datatype: $xsd_string, kind: "String" },
1203
1203
  kind: "Option",
1204
- itemType: { kind: "String", datatype: $xsd_string },
1205
1204
  },
1206
1205
  },
1207
1206
  label: {
1208
1207
  kind: "Shacl",
1209
1208
  path: $rdfs_label,
1210
1209
  type: {
1210
+ itemType: { datatype: $xsd_string, kind: "String" },
1211
1211
  kind: "Option",
1212
- itemType: { kind: "String", datatype: $xsd_string },
1213
1212
  },
1214
1213
  },
1215
1214
  },
@@ -1306,6 +1305,7 @@ export var Operation;
1306
1305
  })(Identifier = Operation.Identifier || (Operation.Identifier = {}));
1307
1306
  Operation.isOperation = (object) => object.$type === "Operation";
1308
1307
  Operation.schema = {
1308
+ kind: "Object",
1309
1309
  properties: {
1310
1310
  $identifier: {
1311
1311
  kind: "Identifier",
@@ -1323,10 +1323,10 @@ export var Operation;
1323
1323
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#binding"),
1324
1324
  get type() {
1325
1325
  return {
1326
- kind: "Set",
1327
1326
  get itemType() {
1328
1327
  return OperationHttpBinding.schema;
1329
1328
  },
1329
+ kind: "Set",
1330
1330
  };
1331
1331
  },
1332
1332
  },
@@ -1334,8 +1334,8 @@ export var Operation;
1334
1334
  kind: "Shacl",
1335
1335
  path: $rdfs_comment,
1336
1336
  type: {
1337
+ itemType: { datatype: $xsd_string, kind: "String" },
1337
1338
  kind: "Option",
1338
- itemType: { kind: "String", datatype: $xsd_string },
1339
1339
  },
1340
1340
  },
1341
1341
  error: {
@@ -1343,10 +1343,10 @@ export var Operation;
1343
1343
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#error"),
1344
1344
  get type() {
1345
1345
  return {
1346
- kind: "Set",
1347
1346
  get itemType() {
1348
1347
  return OperationError.schema;
1349
1348
  },
1349
+ kind: "Set",
1350
1350
  };
1351
1351
  },
1352
1352
  },
@@ -1354,16 +1354,16 @@ export var Operation;
1354
1354
  kind: "Shacl",
1355
1355
  path: $rdfs_label,
1356
1356
  type: {
1357
+ itemType: { datatype: $xsd_string, kind: "String" },
1357
1358
  kind: "Option",
1358
- itemType: { kind: "String", datatype: $xsd_string },
1359
1359
  },
1360
1360
  },
1361
1361
  name: {
1362
1362
  kind: "Shacl",
1363
1363
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#name"),
1364
1364
  type: {
1365
+ itemType: { datatype: $xsd_string, kind: "String" },
1365
1366
  kind: "Option",
1366
- itemType: { kind: "String", datatype: $xsd_string },
1367
1367
  },
1368
1368
  },
1369
1369
  parameter: {
@@ -1371,10 +1371,10 @@ export var Operation;
1371
1371
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#parameter"),
1372
1372
  get type() {
1373
1373
  return {
1374
- kind: "Option",
1375
1374
  get itemType() {
1376
1375
  return OperationParameter.schema;
1377
1376
  },
1377
+ kind: "Option",
1378
1378
  };
1379
1379
  },
1380
1380
  },
@@ -1383,10 +1383,10 @@ export var Operation;
1383
1383
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#result"),
1384
1384
  get type() {
1385
1385
  return {
1386
- kind: "Option",
1387
1386
  get itemType() {
1388
1387
  return OperationResult.schema;
1389
1388
  },
1389
+ kind: "Option",
1390
1390
  };
1391
1391
  },
1392
1392
  },
@@ -1555,10 +1555,10 @@ export var OperationError;
1555
1555
  isDefinedBy: $convertToMaybe($convertToIdentifier)(parameters.isDefinedBy, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(BaseShape.schema.properties.isDefinedBy.type, value)),
1556
1556
  label: $convertToMaybe($identityConversionFunction)(parameters.label, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(BaseShape.schema.properties.label.type, value)),
1557
1557
  message: $convertToMaybe($identityConversionFunction)(parameters.message, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(BaseShape.schema.properties.message.type, value)),
1558
- nodeKind: $convertToMaybe(($convertToInIri))(parameters.nodeKind, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(BaseShape.schema.properties.nodeKind.type, value)),
1558
+ nodeKind: $convertToMaybe(($convertToIriLiteral))(parameters.nodeKind, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(BaseShape.schema.properties.nodeKind.type, value)),
1559
1559
  properties: $convertToScalarSet($convertToIdentifier)(parameters.properties, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(OperationError.schema.properties.properties.type, value)),
1560
1560
  rdfType: $convertToMaybe($convertToIri)(parameters.rdfType, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShapeSpecificProperties.schema.properties.rdfType.type, value)),
1561
- severity: $convertToMaybe(($convertToInIri))(parameters.severity, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(BaseShape.schema.properties.severity.type, value)),
1561
+ severity: $convertToMaybe(($convertToIriLiteral))(parameters.severity, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(BaseShape.schema.properties.severity.type, value)),
1562
1562
  shaclmateName: $convertToMaybe($identityConversionFunction)(parameters.shaclmateName, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(BaseShape.schema.properties.shaclmateName.type, value)),
1563
1563
  subClassOf: $convertToScalarSet($convertToIri)(parameters.subClassOf, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShapeSpecificProperties.schema.properties.subClassOf.type, value)),
1564
1564
  toRdfTypes: $convertToScalarSet($convertToIri)(parameters.toRdfTypes, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShapeSpecificProperties.schema.properties.toRdfTypes.type, value)),
@@ -1576,6 +1576,7 @@ export var OperationError;
1576
1576
  })(Identifier = OperationError.Identifier || (OperationError.Identifier = {}));
1577
1577
  OperationError.isOperationError = (object) => object.$type === "OperationError";
1578
1578
  OperationError.schema = {
1579
+ kind: "Object",
1579
1580
  properties: {
1580
1581
  $identifier: {
1581
1582
  kind: "Identifier",
@@ -1584,87 +1585,85 @@ export var OperationError;
1584
1585
  classes: {
1585
1586
  kind: "Shacl",
1586
1587
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#class"),
1587
- type: { kind: "Set", itemType: { kind: "Iri" } },
1588
+ type: { itemType: { kind: "Iri" }, kind: "Set" },
1588
1589
  },
1589
1590
  closed: {
1590
1591
  kind: "Shacl",
1591
1592
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#closed"),
1592
1593
  type: {
1594
+ itemType: { datatype: $xsd_boolean, kind: "Boolean" },
1593
1595
  kind: "Option",
1594
- itemType: { kind: "Boolean", datatype: $xsd_boolean },
1595
1596
  },
1596
1597
  },
1597
1598
  comment: {
1598
1599
  kind: "Shacl",
1599
1600
  path: $rdfs_comment,
1600
1601
  type: {
1602
+ itemType: { datatype: $xsd_string, kind: "String" },
1601
1603
  kind: "Option",
1602
- itemType: { kind: "String", datatype: $xsd_string },
1603
1604
  },
1604
1605
  },
1605
1606
  deactivated: {
1606
1607
  kind: "Shacl",
1607
1608
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#deactivated"),
1608
1609
  type: {
1610
+ itemType: { datatype: $xsd_boolean, kind: "Boolean" },
1609
1611
  kind: "Option",
1610
- itemType: { kind: "Boolean", datatype: $xsd_boolean },
1611
1612
  },
1612
1613
  },
1613
1614
  extern: {
1614
1615
  kind: "Shacl",
1615
1616
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#extern"),
1616
1617
  type: {
1618
+ itemType: { datatype: $xsd_boolean, kind: "Boolean" },
1617
1619
  kind: "Option",
1618
- itemType: { kind: "Boolean", datatype: $xsd_boolean },
1619
1620
  },
1620
1621
  },
1621
1622
  fromRdfType: {
1622
1623
  kind: "Shacl",
1623
1624
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#fromRdfType"),
1624
- type: { kind: "Option", itemType: { kind: "Iri" } },
1625
+ type: { itemType: { kind: "Iri" }, kind: "Option" },
1625
1626
  },
1626
1627
  ignoredProperties: {
1627
1628
  kind: "Shacl",
1628
1629
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#ignoredProperties"),
1629
1630
  type: {
1630
- kind: "Option",
1631
1631
  itemType: {
1632
- kind: "List",
1633
1632
  itemType: { kind: "Iri" },
1633
+ kind: "List",
1634
1634
  },
1635
+ kind: "Option",
1635
1636
  },
1636
1637
  },
1637
1638
  isDefinedBy: {
1638
1639
  kind: "Shacl",
1639
1640
  path: $rdfs_isDefinedBy,
1640
1641
  type: {
1641
- kind: "Option",
1642
1642
  itemType: { kind: "Identifier" },
1643
+ kind: "Option",
1643
1644
  },
1644
1645
  },
1645
1646
  label: {
1646
1647
  kind: "Shacl",
1647
1648
  path: $rdfs_label,
1648
1649
  type: {
1650
+ itemType: { datatype: $xsd_string, kind: "String" },
1649
1651
  kind: "Option",
1650
- itemType: { kind: "String", datatype: $xsd_string },
1651
1652
  },
1652
1653
  },
1653
1654
  message: {
1654
1655
  kind: "Shacl",
1655
1656
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#message"),
1656
1657
  type: {
1658
+ itemType: { datatype: $xsd_string, kind: "String" },
1657
1659
  kind: "Option",
1658
- itemType: { kind: "String", datatype: $xsd_string },
1659
1660
  },
1660
1661
  },
1661
1662
  nodeKind: {
1662
1663
  kind: "Shacl",
1663
1664
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#nodeKind"),
1664
1665
  type: {
1665
- kind: "Option",
1666
1666
  itemType: {
1667
- kind: "Iri",
1668
1667
  in: [
1669
1668
  dataFactory.namedNode("http://www.w3.org/ns/shacl#BlankNode"),
1670
1669
  dataFactory.namedNode("http://www.w3.org/ns/shacl#BlankNodeOrIRI"),
@@ -1673,32 +1672,34 @@ export var OperationError;
1673
1672
  dataFactory.namedNode("http://www.w3.org/ns/shacl#IRIOrLiteral"),
1674
1673
  dataFactory.namedNode("http://www.w3.org/ns/shacl#Literal"),
1675
1674
  ],
1675
+ kind: "Iri",
1676
1676
  },
1677
+ kind: "Option",
1677
1678
  },
1678
1679
  },
1679
1680
  properties: {
1680
1681
  kind: "Shacl",
1681
1682
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#property"),
1682
1683
  type: {
1683
- kind: "Set",
1684
1684
  itemType: { kind: "Identifier" },
1685
+ kind: "Set",
1685
1686
  minCount: 1,
1686
1687
  },
1687
1688
  },
1688
1689
  rdfType: {
1689
1690
  kind: "Shacl",
1690
1691
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#rdfType"),
1691
- type: { kind: "Option", itemType: { kind: "Iri" } },
1692
+ type: { itemType: { kind: "Iri" }, kind: "Option" },
1692
1693
  },
1693
1694
  severity: {
1694
1695
  kind: "Shacl",
1695
1696
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#severity"),
1696
1697
  get type() {
1697
1698
  return {
1698
- kind: "Option",
1699
1699
  get itemType() {
1700
1700
  return Severity.schema;
1701
1701
  },
1702
+ kind: "Option",
1702
1703
  };
1703
1704
  },
1704
1705
  },
@@ -1706,32 +1707,32 @@ export var OperationError;
1706
1707
  kind: "Shacl",
1707
1708
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#name"),
1708
1709
  type: {
1710
+ itemType: { datatype: $xsd_string, kind: "String" },
1709
1711
  kind: "Option",
1710
- itemType: { kind: "String", datatype: $xsd_string },
1711
1712
  },
1712
1713
  },
1713
1714
  subClassOf: {
1714
1715
  kind: "Shacl",
1715
1716
  path: $rdfs_subClassOf,
1716
- type: { kind: "Set", itemType: { kind: "Iri" } },
1717
+ type: { itemType: { kind: "Iri" }, kind: "Set" },
1717
1718
  },
1718
1719
  toRdfTypes: {
1719
1720
  kind: "Shacl",
1720
1721
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#toRdfType"),
1721
- type: { kind: "Set", itemType: { kind: "Iri" } },
1722
+ type: { itemType: { kind: "Iri" }, kind: "Set" },
1722
1723
  },
1723
1724
  tsImports: {
1724
1725
  kind: "Shacl",
1725
1726
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#tsImport"),
1726
1727
  type: {
1728
+ itemType: { datatype: $xsd_string, kind: "String" },
1727
1729
  kind: "Set",
1728
- itemType: { kind: "String", datatype: $xsd_string },
1729
1730
  },
1730
1731
  },
1731
1732
  types: {
1732
1733
  kind: "Shacl",
1733
1734
  path: $rdf_type,
1734
- type: { kind: "Set", itemType: { kind: "Iri" } },
1735
+ type: { itemType: { kind: "Iri" }, kind: "Set" },
1735
1736
  },
1736
1737
  },
1737
1738
  };
@@ -1779,6 +1780,7 @@ export var OperationErrorHttpBinding;
1779
1780
  })(Identifier = OperationErrorHttpBinding.Identifier || (OperationErrorHttpBinding.Identifier = {}));
1780
1781
  OperationErrorHttpBinding.isOperationErrorHttpBinding = (object) => object.$type === "OperationErrorHttpBinding";
1781
1782
  OperationErrorHttpBinding.schema = {
1783
+ kind: "Object",
1782
1784
  properties: {
1783
1785
  $identifier: {
1784
1786
  kind: "Identifier",
@@ -1800,13 +1802,13 @@ export var OperationErrorHttpBinding;
1800
1802
  export var OperationErrorHttpBindingStatusCode;
1801
1803
  (function (OperationErrorHttpBindingStatusCode) {
1802
1804
  OperationErrorHttpBindingStatusCode.schema = {
1803
- kind: "Int",
1805
+ datatype: $xsd_int,
1804
1806
  in: [
1805
1807
  400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414,
1806
1808
  415, 416, 417, 418, 421, 422, 423, 424, 425, 426, 428, 429, 431, 451, 500,
1807
1809
  501, 502, 503, 504, 505, 506, 507, 508, 510, 511,
1808
1810
  ],
1809
- datatype: $xsd_int,
1811
+ kind: "Int",
1810
1812
  };
1811
1813
  })(OperationErrorHttpBindingStatusCode || (OperationErrorHttpBindingStatusCode = {}));
1812
1814
  export var OperationHttpBinding;
@@ -1851,6 +1853,7 @@ export var OperationHttpBinding;
1851
1853
  })(Identifier = OperationHttpBinding.Identifier || (OperationHttpBinding.Identifier = {}));
1852
1854
  OperationHttpBinding.isOperationHttpBinding = (object) => object.$type === "OperationHttpBinding";
1853
1855
  OperationHttpBinding.schema = {
1856
+ kind: "Object",
1854
1857
  properties: {
1855
1858
  $identifier: {
1856
1859
  kind: "Identifier",
@@ -1861,17 +1864,17 @@ export var OperationHttpBinding;
1861
1864
  path: dataFactory.namedNode("http://schema.org/httpMethod"),
1862
1865
  get type() {
1863
1866
  return {
1864
- kind: "Option",
1865
1867
  get itemType() {
1866
1868
  return OperationHttpBindingMethod.schema;
1867
1869
  },
1870
+ kind: "Option",
1868
1871
  };
1869
1872
  },
1870
1873
  },
1871
1874
  urlTemplate: {
1872
1875
  kind: "Shacl",
1873
1876
  path: dataFactory.namedNode("http://schema.org/urlTemplate"),
1874
- type: { kind: "String", datatype: $xsd_string },
1877
+ type: { datatype: $xsd_string, kind: "String" },
1875
1878
  },
1876
1879
  },
1877
1880
  };
@@ -1882,17 +1885,17 @@ export var OperationHttpBinding;
1882
1885
  export var OperationHttpBindingMethod;
1883
1886
  (function (OperationHttpBindingMethod) {
1884
1887
  OperationHttpBindingMethod.schema = {
1885
- kind: "String",
1886
- in: ["DELETE", "GET", "POST", "PUT"],
1887
1888
  datatype: $xsd_string,
1889
+ in: ["DELETE", "GET", "POST", "PUT"],
1890
+ kind: "String",
1888
1891
  };
1889
1892
  })(OperationHttpBindingMethod || (OperationHttpBindingMethod = {}));
1890
1893
  export var OperationHttpBindingStatusCode;
1891
1894
  (function (OperationHttpBindingStatusCode) {
1892
1895
  OperationHttpBindingStatusCode.schema = {
1893
- kind: "Int",
1894
- in: [200, 201, 202, 203, 204, 205, 206, 207, 208, 226],
1895
1896
  datatype: $xsd_int,
1897
+ in: [200, 201, 202, 203, 204, 205, 206, 207, 208, 226],
1898
+ kind: "Int",
1896
1899
  };
1897
1900
  })(OperationHttpBindingStatusCode || (OperationHttpBindingStatusCode = {}));
1898
1901
  export var OperationParameter;
@@ -1902,9 +1905,9 @@ export var OperationParameter;
1902
1905
  export var OperationParameterHttpBindingContentType;
1903
1906
  (function (OperationParameterHttpBindingContentType) {
1904
1907
  OperationParameterHttpBindingContentType.schema = {
1905
- kind: "String",
1906
- in: ["application/json"],
1907
1908
  datatype: $xsd_string,
1909
+ in: ["application/json"],
1910
+ kind: "String",
1908
1911
  };
1909
1912
  })(OperationParameterHttpBindingContentType || (OperationParameterHttpBindingContentType = {}));
1910
1913
  export var OperationResult;
@@ -1914,9 +1917,9 @@ export var OperationResult;
1914
1917
  export var OperationResultHttpBindingContentType;
1915
1918
  (function (OperationResultHttpBindingContentType) {
1916
1919
  OperationResultHttpBindingContentType.schema = {
1917
- kind: "String",
1918
- in: ["application/json"],
1919
1920
  datatype: $xsd_string,
1921
+ in: ["application/json"],
1922
+ kind: "String",
1920
1923
  };
1921
1924
  })(OperationResultHttpBindingContentType || (OperationResultHttpBindingContentType = {}));
1922
1925
  export var PropertyGroup;
@@ -1961,6 +1964,7 @@ export var PropertyGroup;
1961
1964
  })(Identifier = PropertyGroup.Identifier || (PropertyGroup.Identifier = {}));
1962
1965
  PropertyGroup.isPropertyGroup = (object) => object.$type === "PropertyGroup";
1963
1966
  PropertyGroup.schema = {
1967
+ kind: "Object",
1964
1968
  properties: {
1965
1969
  $identifier: {
1966
1970
  kind: "Identifier",
@@ -1970,16 +1974,16 @@ export var PropertyGroup;
1970
1974
  kind: "Shacl",
1971
1975
  path: $rdfs_comment,
1972
1976
  type: {
1977
+ itemType: { datatype: $xsd_string, kind: "String" },
1973
1978
  kind: "Option",
1974
- itemType: { kind: "String", datatype: $xsd_string },
1975
1979
  },
1976
1980
  },
1977
1981
  label: {
1978
1982
  kind: "Shacl",
1979
1983
  path: $rdfs_label,
1980
1984
  type: {
1985
+ itemType: { datatype: $xsd_string, kind: "String" },
1981
1986
  kind: "Option",
1982
- itemType: { kind: "String", datatype: $xsd_string },
1983
1987
  },
1984
1988
  },
1985
1989
  },
@@ -2175,6 +2179,7 @@ export var PropertyShapeSpecificProperties;
2175
2179
  })(Identifier = PropertyShapeSpecificProperties.Identifier || (PropertyShapeSpecificProperties.Identifier = {}));
2176
2180
  PropertyShapeSpecificProperties.isPropertyShapeSpecificProperties = (object) => object.$type === "PropertyShapeSpecificProperties";
2177
2181
  PropertyShapeSpecificProperties.schema = {
2182
+ kind: "Object",
2178
2183
  properties: {
2179
2184
  $identifier: {
2180
2185
  kind: "Identifier",
@@ -2184,85 +2189,85 @@ export var PropertyShapeSpecificProperties;
2184
2189
  kind: "Shacl",
2185
2190
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#defaultValue"),
2186
2191
  type: {
2187
- kind: "Option",
2188
2192
  itemType: { kind: "Term", types: ["NamedNode", "Literal"] },
2193
+ kind: "Option",
2189
2194
  },
2190
2195
  },
2191
2196
  description: {
2192
2197
  kind: "Shacl",
2193
2198
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#description"),
2194
2199
  type: {
2200
+ itemType: { datatype: $xsd_string, kind: "String" },
2195
2201
  kind: "Option",
2196
- itemType: { kind: "String", datatype: $xsd_string },
2197
2202
  },
2198
2203
  },
2199
2204
  disjoint: {
2200
2205
  kind: "Shacl",
2201
2206
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#disjoint"),
2202
- type: { kind: "Set", itemType: { kind: "Iri" } },
2207
+ type: { itemType: { kind: "Iri" }, kind: "Set" },
2203
2208
  },
2204
2209
  display: {
2205
2210
  kind: "Shacl",
2206
2211
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#display"),
2207
2212
  type: {
2208
- kind: "DefaultValue",
2209
- itemType: { kind: "Boolean", datatype: $xsd_boolean },
2210
2213
  defaultValue: dataFactory.literal("false", $xsd_boolean),
2214
+ itemType: { datatype: $xsd_boolean, kind: "Boolean" },
2215
+ kind: "DefaultValue",
2211
2216
  },
2212
2217
  },
2213
2218
  equals: {
2214
2219
  kind: "Shacl",
2215
2220
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#equals"),
2216
- type: { kind: "Set", itemType: { kind: "Iri" } },
2221
+ type: { itemType: { kind: "Iri" }, kind: "Set" },
2217
2222
  },
2218
2223
  groups: {
2219
2224
  kind: "Shacl",
2220
2225
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#group"),
2221
2226
  type: {
2222
- kind: "Set",
2223
2227
  itemType: { kind: "Identifier" },
2228
+ kind: "Set",
2224
2229
  },
2225
2230
  },
2226
2231
  lessThan: {
2227
2232
  kind: "Shacl",
2228
2233
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#lessThan"),
2229
- type: { kind: "Set", itemType: { kind: "Iri" } },
2234
+ type: { itemType: { kind: "Iri" }, kind: "Set" },
2230
2235
  },
2231
2236
  lessThanOrEquals: {
2232
2237
  kind: "Shacl",
2233
2238
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#lessThanOrEquals"),
2234
- type: { kind: "Set", itemType: { kind: "Iri" } },
2239
+ type: { itemType: { kind: "Iri" }, kind: "Set" },
2235
2240
  },
2236
2241
  maxCount: {
2237
2242
  kind: "Shacl",
2238
2243
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxCount"),
2239
2244
  type: {
2245
+ itemType: { datatype: $xsd_integer, kind: "BigInt" },
2240
2246
  kind: "Option",
2241
- itemType: { kind: "BigInt", datatype: $xsd_integer },
2242
2247
  },
2243
2248
  },
2244
2249
  minCount: {
2245
2250
  kind: "Shacl",
2246
2251
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minCount"),
2247
2252
  type: {
2253
+ itemType: { datatype: $xsd_integer, kind: "BigInt" },
2248
2254
  kind: "Option",
2249
- itemType: { kind: "BigInt", datatype: $xsd_integer },
2250
2255
  },
2251
2256
  },
2252
2257
  name: {
2253
2258
  kind: "Shacl",
2254
2259
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#name"),
2255
2260
  type: {
2261
+ itemType: { datatype: $xsd_string, kind: "String" },
2256
2262
  kind: "Option",
2257
- itemType: { kind: "String", datatype: $xsd_string },
2258
2263
  },
2259
2264
  },
2260
2265
  order: {
2261
2266
  kind: "Shacl",
2262
2267
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#order"),
2263
2268
  type: {
2269
+ itemType: { datatype: $xsd_double, kind: "Float" },
2264
2270
  kind: "Option",
2265
- itemType: { kind: "Float", datatype: $xsd_double },
2266
2271
  },
2267
2272
  },
2268
2273
  path: {
@@ -2276,48 +2281,48 @@ export var PropertyShapeSpecificProperties;
2276
2281
  kind: "Shacl",
2277
2282
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#qualifiedMaxCount"),
2278
2283
  type: {
2284
+ itemType: { datatype: $xsd_integer, kind: "BigInt" },
2279
2285
  kind: "Option",
2280
- itemType: { kind: "BigInt", datatype: $xsd_integer },
2281
2286
  },
2282
2287
  },
2283
2288
  qualifiedMinCount: {
2284
2289
  kind: "Shacl",
2285
2290
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#qualifiedMinCount"),
2286
2291
  type: {
2292
+ itemType: { datatype: $xsd_integer, kind: "BigInt" },
2287
2293
  kind: "Option",
2288
- itemType: { kind: "BigInt", datatype: $xsd_integer },
2289
2294
  },
2290
2295
  },
2291
2296
  qualifiedValueShape: {
2292
2297
  kind: "Shacl",
2293
2298
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#qualifiedValueShape"),
2294
2299
  type: {
2295
- kind: "Option",
2296
2300
  itemType: { kind: "Identifier" },
2301
+ kind: "Option",
2297
2302
  },
2298
2303
  },
2299
2304
  qualifiedValueShapesDisjoint: {
2300
2305
  kind: "Shacl",
2301
2306
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#qualifiedValueShapesDisjoint"),
2302
2307
  type: {
2308
+ itemType: { datatype: $xsd_boolean, kind: "Boolean" },
2303
2309
  kind: "Option",
2304
- itemType: { kind: "Boolean", datatype: $xsd_boolean },
2305
2310
  },
2306
2311
  },
2307
2312
  resolve: {
2308
2313
  kind: "Shacl",
2309
2314
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#resolve"),
2310
2315
  type: {
2311
- kind: "Option",
2312
2316
  itemType: { kind: "Identifier" },
2317
+ kind: "Option",
2313
2318
  },
2314
2319
  },
2315
2320
  uniqueLang: {
2316
2321
  kind: "Shacl",
2317
2322
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#uniqueLang"),
2318
2323
  type: {
2324
+ itemType: { datatype: $xsd_boolean, kind: "Boolean" },
2319
2325
  kind: "Option",
2320
- itemType: { kind: "Boolean", datatype: $xsd_boolean },
2321
2326
  },
2322
2327
  },
2323
2328
  },
@@ -2391,6 +2396,7 @@ export var Service;
2391
2396
  })(Identifier = Service.Identifier || (Service.Identifier = {}));
2392
2397
  Service.isService = (object) => object.$type === "Service";
2393
2398
  Service.schema = {
2399
+ kind: "Object",
2394
2400
  properties: {
2395
2401
  $identifier: {
2396
2402
  kind: "Identifier",
@@ -2407,24 +2413,24 @@ export var Service;
2407
2413
  kind: "Shacl",
2408
2414
  path: $rdfs_comment,
2409
2415
  type: {
2416
+ itemType: { datatype: $xsd_string, kind: "String" },
2410
2417
  kind: "Option",
2411
- itemType: { kind: "String", datatype: $xsd_string },
2412
2418
  },
2413
2419
  },
2414
2420
  label: {
2415
2421
  kind: "Shacl",
2416
2422
  path: $rdfs_label,
2417
2423
  type: {
2424
+ itemType: { datatype: $xsd_string, kind: "String" },
2418
2425
  kind: "Option",
2419
- itemType: { kind: "String", datatype: $xsd_string },
2420
2426
  },
2421
2427
  },
2422
2428
  name: {
2423
2429
  kind: "Shacl",
2424
2430
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#name"),
2425
2431
  type: {
2432
+ itemType: { datatype: $xsd_string, kind: "String" },
2426
2433
  kind: "Option",
2427
- itemType: { kind: "String", datatype: $xsd_string },
2428
2434
  },
2429
2435
  },
2430
2436
  operations: {
@@ -2432,10 +2438,10 @@ export var Service;
2432
2438
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#operation"),
2433
2439
  get type() {
2434
2440
  return {
2435
- kind: "Set",
2436
2441
  get itemType() {
2437
2442
  return Operation.schema;
2438
2443
  },
2444
+ kind: "Set",
2439
2445
  };
2440
2446
  },
2441
2447
  },
@@ -2455,9 +2461,9 @@ export var Severity;
2455
2461
  "http://www.w3.org/ns/shacl#Violation",
2456
2462
  ];
2457
2463
  Severity.schema = {
2458
- kind: "Iri",
2459
2464
  in: inValues.map((inValue) => dataFactory.namedNode(inValue)),
2460
2465
  inValues,
2466
+ kind: "Iri",
2461
2467
  };
2462
2468
  })(Severity || (Severity = {}));
2463
2469
  export var ValidationReport;
@@ -2515,6 +2521,7 @@ export var ValidationReport;
2515
2521
  })(Identifier = ValidationReport.Identifier || (ValidationReport.Identifier = {}));
2516
2522
  ValidationReport.isValidationReport = (object) => object.$type === "ValidationReport";
2517
2523
  ValidationReport.schema = {
2524
+ kind: "Object",
2518
2525
  properties: {
2519
2526
  $identifier: {
2520
2527
  kind: "Identifier",
@@ -2530,17 +2537,17 @@ export var ValidationReport;
2530
2537
  conforms: {
2531
2538
  kind: "Shacl",
2532
2539
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#conforms"),
2533
- type: { kind: "Boolean", datatype: $xsd_boolean },
2540
+ type: { datatype: $xsd_boolean, kind: "Boolean" },
2534
2541
  },
2535
2542
  results: {
2536
2543
  kind: "Shacl",
2537
2544
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#result"),
2538
2545
  get type() {
2539
2546
  return {
2540
- kind: "Set",
2541
2547
  get itemType() {
2542
2548
  return ValidationResult.schema;
2543
2549
  },
2550
+ kind: "Set",
2544
2551
  };
2545
2552
  },
2546
2553
  },
@@ -2548,8 +2555,8 @@ export var ValidationReport;
2548
2555
  kind: "Shacl",
2549
2556
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#shapesGraphWellFormed"),
2550
2557
  type: {
2558
+ itemType: { datatype: $xsd_boolean, kind: "Boolean" },
2551
2559
  kind: "Option",
2552
- itemType: { kind: "Boolean", datatype: $xsd_boolean },
2553
2560
  },
2554
2561
  },
2555
2562
  },
@@ -2635,7 +2642,7 @@ export var ValidationResult;
2635
2642
  focusNode: Either.of(parameters.focusNode),
2636
2643
  message: $convertToMaybe($identityConversionFunction)(parameters.message, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(ValidationResult.schema.properties.message.type, value)),
2637
2644
  path: $convertToMaybe($identityConversionFunction)(parameters.path, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(ValidationResult.schema.properties.path.type, value)),
2638
- severity: $convertToInIri(parameters.severity, parameters.$defaultNamespace),
2645
+ severity: $convertToIriLiteral(parameters.severity, parameters.$defaultNamespace),
2639
2646
  sourceConstraintComponent: $convertToIri(parameters.sourceConstraintComponent, parameters.$defaultNamespace),
2640
2647
  sourceShape: $convertToMaybe($convertToIdentifier)(parameters.sourceShape, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(ValidationResult.schema.properties.sourceShape.type, value)),
2641
2648
  value: $convertToMaybe($identityConversionFunction)(parameters.value, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(ValidationResult.schema.properties.value.type, value)),
@@ -2651,6 +2658,7 @@ export var ValidationResult;
2651
2658
  })(Identifier = ValidationResult.Identifier || (ValidationResult.Identifier = {}));
2652
2659
  ValidationResult.isValidationResult = (object) => object.$type === "ValidationResult";
2653
2660
  ValidationResult.schema = {
2661
+ kind: "Object",
2654
2662
  properties: {
2655
2663
  $identifier: {
2656
2664
  kind: "Identifier",
@@ -2667,11 +2675,11 @@ export var ValidationResult;
2667
2675
  kind: "Shacl",
2668
2676
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#detail"),
2669
2677
  type: {
2670
- kind: "Set",
2671
2678
  itemType: {
2672
2679
  kind: "Term",
2673
2680
  types: ["BlankNode", "NamedNode", "Literal"],
2674
2681
  },
2682
+ kind: "Set",
2675
2683
  },
2676
2684
  },
2677
2685
  focusNode: {
@@ -2686,8 +2694,8 @@ export var ValidationResult;
2686
2694
  kind: "Shacl",
2687
2695
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#resultMessage"),
2688
2696
  type: {
2697
+ itemType: { datatype: $xsd_string, kind: "String" },
2689
2698
  kind: "Option",
2690
- itemType: { kind: "String", datatype: $xsd_string },
2691
2699
  },
2692
2700
  },
2693
2701
  path: {
@@ -2695,10 +2703,10 @@ export var ValidationResult;
2695
2703
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#resultPath"),
2696
2704
  get type() {
2697
2705
  return {
2698
- kind: "Option",
2699
2706
  get itemType() {
2700
2707
  return $PropertyPath.schema;
2701
2708
  },
2709
+ kind: "Option",
2702
2710
  };
2703
2711
  },
2704
2712
  },
@@ -2718,19 +2726,19 @@ export var ValidationResult;
2718
2726
  kind: "Shacl",
2719
2727
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#sourceShape"),
2720
2728
  type: {
2721
- kind: "Option",
2722
2729
  itemType: { kind: "Identifier" },
2730
+ kind: "Option",
2723
2731
  },
2724
2732
  },
2725
2733
  value: {
2726
2734
  kind: "Shacl",
2727
2735
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#value"),
2728
2736
  type: {
2729
- kind: "Option",
2730
2737
  itemType: {
2731
2738
  kind: "Term",
2732
2739
  types: ["BlankNode", "NamedNode", "Literal"],
2733
2740
  },
2741
+ kind: "Option",
2734
2742
  },
2735
2743
  },
2736
2744
  },