@shaclmate/shacl-ast 4.0.90 → 4.0.92

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.
@@ -166,7 +166,6 @@ export declare namespace NodeShape {
166
166
  }
167
167
  const isNodeShape: (object: $Object) => object is NodeShape;
168
168
  const schema: {
169
- readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#NodeShape">;
170
169
  readonly properties: {
171
170
  readonly $identifier: {
172
171
  readonly kind: "Identifier";
@@ -174,6 +173,11 @@ export declare namespace NodeShape {
174
173
  readonly kind: "Identifier";
175
174
  };
176
175
  };
176
+ readonly $rdfType: {
177
+ readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#NodeShape">;
178
+ readonly kind: "RdfType";
179
+ readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#NodeShape">];
180
+ };
177
181
  readonly $type: {
178
182
  readonly kind: "Discriminant";
179
183
  readonly value: "NodeShape";
@@ -543,7 +547,6 @@ export declare namespace NodeShape {
543
547
  };
544
548
  };
545
549
  };
546
- readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#NodeShape">];
547
550
  };
548
551
  type Schema = typeof schema;
549
552
  const toStringRecord: (_nodeShape: NodeShape) => Record<string, string>;
@@ -578,7 +581,6 @@ export declare namespace Ontology {
578
581
  }
579
582
  const isOntology: (object: $Object) => object is Ontology;
580
583
  const schema: {
581
- readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2002/07/owl#Ontology">;
582
584
  readonly properties: {
583
585
  readonly $identifier: {
584
586
  readonly kind: "Identifier";
@@ -586,6 +588,11 @@ export declare namespace Ontology {
586
588
  readonly kind: "Identifier";
587
589
  };
588
590
  };
591
+ readonly $rdfType: {
592
+ readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2002/07/owl#Ontology">;
593
+ readonly kind: "RdfType";
594
+ readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2002/07/owl#Ontology">];
595
+ };
589
596
  readonly $type: {
590
597
  readonly kind: "Discriminant";
591
598
  readonly value: "Ontology";
@@ -611,7 +618,6 @@ export declare namespace Ontology {
611
618
  };
612
619
  };
613
620
  };
614
- readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2002/07/owl#Ontology">];
615
621
  };
616
622
  type Schema = typeof schema;
617
623
  const toStringRecord: (_ontology: Ontology) => Record<string, string>;
@@ -646,7 +652,6 @@ export declare namespace PropertyGroup {
646
652
  }
647
653
  const isPropertyGroup: (object: $Object) => object is PropertyGroup;
648
654
  const schema: {
649
- readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#PropertyGroup">;
650
655
  readonly properties: {
651
656
  readonly $identifier: {
652
657
  readonly kind: "Identifier";
@@ -654,6 +659,11 @@ export declare namespace PropertyGroup {
654
659
  readonly kind: "Identifier";
655
660
  };
656
661
  };
662
+ readonly $rdfType: {
663
+ readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#PropertyGroup">;
664
+ readonly kind: "RdfType";
665
+ readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#PropertyGroup">];
666
+ };
657
667
  readonly $type: {
658
668
  readonly kind: "Discriminant";
659
669
  readonly value: "PropertyGroup";
@@ -679,7 +689,6 @@ export declare namespace PropertyGroup {
679
689
  };
680
690
  };
681
691
  };
682
- readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#PropertyGroup">];
683
692
  };
684
693
  type Schema = typeof schema;
685
694
  const toStringRecord: (_propertyGroup: PropertyGroup) => Record<string, string>;
@@ -846,7 +855,6 @@ export declare namespace PropertyShape {
846
855
  }
847
856
  const isPropertyShape: (object: $Object) => object is PropertyShape;
848
857
  const schema: {
849
- readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#PropertyShape">;
850
858
  readonly properties: {
851
859
  readonly $identifier: {
852
860
  readonly kind: "Identifier";
@@ -854,6 +862,11 @@ export declare namespace PropertyShape {
854
862
  readonly kind: "Identifier";
855
863
  };
856
864
  };
865
+ readonly $rdfType: {
866
+ readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#PropertyShape">;
867
+ readonly kind: "RdfType";
868
+ readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#PropertyShape">];
869
+ };
857
870
  readonly $type: {
858
871
  readonly kind: "Discriminant";
859
872
  readonly value: "PropertyShape";
@@ -1336,7 +1349,6 @@ export declare namespace PropertyShape {
1336
1349
  };
1337
1350
  };
1338
1351
  };
1339
- readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#PropertyShape">];
1340
1352
  };
1341
1353
  type Schema = typeof schema;
1342
1354
  const toStringRecord: (_propertyShape: PropertyShape) => Record<string, string>;
@@ -1382,7 +1394,6 @@ export declare namespace ValidationReport {
1382
1394
  }
1383
1395
  const isValidationReport: (object: $Object) => object is ValidationReport;
1384
1396
  const schema: {
1385
- readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationReport">;
1386
1397
  readonly properties: {
1387
1398
  readonly $identifier: {
1388
1399
  readonly kind: "Identifier";
@@ -1390,6 +1401,11 @@ export declare namespace ValidationReport {
1390
1401
  readonly kind: "Identifier";
1391
1402
  };
1392
1403
  };
1404
+ readonly $rdfType: {
1405
+ readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationReport">;
1406
+ readonly kind: "RdfType";
1407
+ readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationReport">];
1408
+ };
1393
1409
  readonly $type: {
1394
1410
  readonly kind: "Discriminant";
1395
1411
  readonly value: "ValidationReport";
@@ -1407,7 +1423,6 @@ export declare namespace ValidationReport {
1407
1423
  readonly type: {
1408
1424
  kind: "Set";
1409
1425
  readonly itemType: {
1410
- readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationResult">;
1411
1426
  readonly properties: {
1412
1427
  readonly $identifier: {
1413
1428
  readonly kind: "Identifier";
@@ -1415,6 +1430,11 @@ export declare namespace ValidationReport {
1415
1430
  readonly kind: "Identifier";
1416
1431
  };
1417
1432
  };
1433
+ readonly $rdfType: {
1434
+ readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationResult">;
1435
+ readonly kind: "RdfType";
1436
+ readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationResult">];
1437
+ };
1418
1438
  readonly $type: {
1419
1439
  readonly kind: "Discriminant";
1420
1440
  readonly value: "ValidationResult";
@@ -1494,7 +1514,6 @@ export declare namespace ValidationReport {
1494
1514
  };
1495
1515
  };
1496
1516
  };
1497
- readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationResult">];
1498
1517
  };
1499
1518
  };
1500
1519
  };
@@ -1509,7 +1528,6 @@ export declare namespace ValidationReport {
1509
1528
  };
1510
1529
  };
1511
1530
  };
1512
- readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationReport">];
1513
1531
  };
1514
1532
  type Schema = typeof schema;
1515
1533
  const toStringRecord: (_validationReport: ValidationReport) => Record<string, string>;
@@ -1562,7 +1580,6 @@ export declare namespace ValidationResult {
1562
1580
  }
1563
1581
  const isValidationResult: (object: $Object) => object is ValidationResult;
1564
1582
  const schema: {
1565
- readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationResult">;
1566
1583
  readonly properties: {
1567
1584
  readonly $identifier: {
1568
1585
  readonly kind: "Identifier";
@@ -1570,6 +1587,11 @@ export declare namespace ValidationResult {
1570
1587
  readonly kind: "Identifier";
1571
1588
  };
1572
1589
  };
1590
+ readonly $rdfType: {
1591
+ readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationResult">;
1592
+ readonly kind: "RdfType";
1593
+ readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationResult">];
1594
+ };
1573
1595
  readonly $type: {
1574
1596
  readonly kind: "Discriminant";
1575
1597
  readonly value: "ValidationResult";
@@ -1649,7 +1671,6 @@ export declare namespace ValidationResult {
1649
1671
  };
1650
1672
  };
1651
1673
  };
1652
- readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationResult">];
1653
1674
  };
1654
1675
  type Schema = typeof schema;
1655
1676
  const toStringRecord: (_validationResult: ValidationResult) => Record<string, string>;
@@ -1671,7 +1692,6 @@ export declare namespace Shape {
1671
1692
  readonly NodeShape: {
1672
1693
  readonly discriminantValues: readonly ["NodeShape"];
1673
1694
  readonly type: {
1674
- readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#NodeShape">;
1675
1695
  readonly properties: {
1676
1696
  readonly $identifier: {
1677
1697
  readonly kind: "Identifier";
@@ -1679,6 +1699,11 @@ export declare namespace Shape {
1679
1699
  readonly kind: "Identifier";
1680
1700
  };
1681
1701
  };
1702
+ readonly $rdfType: {
1703
+ readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#NodeShape">;
1704
+ readonly kind: "RdfType";
1705
+ readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#NodeShape">];
1706
+ };
1682
1707
  readonly $type: {
1683
1708
  readonly kind: "Discriminant";
1684
1709
  readonly value: "NodeShape";
@@ -2048,13 +2073,11 @@ export declare namespace Shape {
2048
2073
  };
2049
2074
  };
2050
2075
  };
2051
- readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#NodeShape">];
2052
2076
  };
2053
2077
  };
2054
2078
  readonly PropertyShape: {
2055
2079
  readonly discriminantValues: readonly ["PropertyShape"];
2056
2080
  readonly type: {
2057
- readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#PropertyShape">;
2058
2081
  readonly properties: {
2059
2082
  readonly $identifier: {
2060
2083
  readonly kind: "Identifier";
@@ -2062,6 +2085,11 @@ export declare namespace Shape {
2062
2085
  readonly kind: "Identifier";
2063
2086
  };
2064
2087
  };
2088
+ readonly $rdfType: {
2089
+ readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#PropertyShape">;
2090
+ readonly kind: "RdfType";
2091
+ readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#PropertyShape">];
2092
+ };
2065
2093
  readonly $type: {
2066
2094
  readonly kind: "Discriminant";
2067
2095
  readonly value: "PropertyShape";
@@ -2544,7 +2572,6 @@ export declare namespace Shape {
2544
2572
  };
2545
2573
  };
2546
2574
  };
2547
- readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#PropertyShape">];
2548
2575
  };
2549
2576
  };
2550
2577
  };
@@ -384,9 +384,7 @@ function $wrap_FromRdfResourceFunction(_fromRdfResourceFunction) {
384
384
  export var NodeShape;
385
385
  (function (NodeShape) {
386
386
  NodeShape._fromRdfResource = (resource, options) => (!options.ignoreRdfType
387
- ? $ensureRdfResourceType(resource, [NodeShape.schema.fromRdfType], {
388
- graph: options.graph,
389
- })
387
+ ? $ensureRdfResourceType(resource, [NodeShape.schema.properties.$rdfType.fromRdfType], { graph: options.graph })
390
388
  : Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
391
389
  $identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
392
390
  ...options,
@@ -688,12 +686,18 @@ export var NodeShape;
688
686
  })(Identifier = NodeShape.Identifier || (NodeShape.Identifier = {}));
689
687
  NodeShape.isNodeShape = (object) => object.$type === "NodeShape";
690
688
  NodeShape.schema = {
691
- fromRdfType: dataFactory.namedNode("http://www.w3.org/ns/shacl#NodeShape"),
692
689
  properties: {
693
690
  $identifier: {
694
691
  kind: "Identifier",
695
692
  type: { kind: "Identifier" },
696
693
  },
694
+ $rdfType: {
695
+ fromRdfType: dataFactory.namedNode("http://www.w3.org/ns/shacl#NodeShape"),
696
+ kind: "RdfType",
697
+ toRdfTypes: [
698
+ dataFactory.namedNode("http://www.w3.org/ns/shacl#NodeShape"),
699
+ ],
700
+ },
697
701
  $type: { kind: "Discriminant", value: "NodeShape" },
698
702
  and: {
699
703
  kind: "Shacl",
@@ -982,7 +986,6 @@ export var NodeShape;
982
986
  },
983
987
  },
984
988
  },
985
- toRdfTypes: [dataFactory.namedNode("http://www.w3.org/ns/shacl#NodeShape")],
986
989
  };
987
990
  NodeShape.toStringRecord = (_nodeShape) => $compactRecord({
988
991
  $identifier: _nodeShape.$identifier().toString(),
@@ -992,9 +995,7 @@ export var NodeShape;
992
995
  export var Ontology;
993
996
  (function (Ontology) {
994
997
  Ontology._fromRdfResource = (resource, options) => (!options.ignoreRdfType
995
- ? $ensureRdfResourceType(resource, [Ontology.schema.fromRdfType], {
996
- graph: options.graph,
997
- })
998
+ ? $ensureRdfResourceType(resource, [Ontology.schema.properties.$rdfType.fromRdfType], { graph: options.graph })
998
999
  : Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
999
1000
  $identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
1000
1001
  ...options,
@@ -1040,12 +1041,18 @@ export var Ontology;
1040
1041
  })(Identifier = Ontology.Identifier || (Ontology.Identifier = {}));
1041
1042
  Ontology.isOntology = (object) => object.$type === "Ontology";
1042
1043
  Ontology.schema = {
1043
- fromRdfType: dataFactory.namedNode("http://www.w3.org/2002/07/owl#Ontology"),
1044
1044
  properties: {
1045
1045
  $identifier: {
1046
1046
  kind: "Identifier",
1047
1047
  type: { kind: "Identifier" },
1048
1048
  },
1049
+ $rdfType: {
1050
+ fromRdfType: dataFactory.namedNode("http://www.w3.org/2002/07/owl#Ontology"),
1051
+ kind: "RdfType",
1052
+ toRdfTypes: [
1053
+ dataFactory.namedNode("http://www.w3.org/2002/07/owl#Ontology"),
1054
+ ],
1055
+ },
1049
1056
  $type: { kind: "Discriminant", value: "Ontology" },
1050
1057
  comment: {
1051
1058
  kind: "Shacl",
@@ -1064,9 +1071,6 @@ export var Ontology;
1064
1071
  },
1065
1072
  },
1066
1073
  },
1067
- toRdfTypes: [
1068
- dataFactory.namedNode("http://www.w3.org/2002/07/owl#Ontology"),
1069
- ],
1070
1074
  };
1071
1075
  Ontology.toStringRecord = (_ontology) => $compactRecord({
1072
1076
  $identifier: _ontology.$identifier().toString(),
@@ -1076,7 +1080,7 @@ export var Ontology;
1076
1080
  export var PropertyGroup;
1077
1081
  (function (PropertyGroup) {
1078
1082
  PropertyGroup._fromRdfResource = (resource, options) => (!options.ignoreRdfType
1079
- ? $ensureRdfResourceType(resource, [PropertyGroup.schema.fromRdfType], {
1083
+ ? $ensureRdfResourceType(resource, [PropertyGroup.schema.properties.$rdfType.fromRdfType], {
1080
1084
  graph: options.graph,
1081
1085
  })
1082
1086
  : Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
@@ -1124,12 +1128,18 @@ export var PropertyGroup;
1124
1128
  })(Identifier = PropertyGroup.Identifier || (PropertyGroup.Identifier = {}));
1125
1129
  PropertyGroup.isPropertyGroup = (object) => object.$type === "PropertyGroup";
1126
1130
  PropertyGroup.schema = {
1127
- fromRdfType: dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyGroup"),
1128
1131
  properties: {
1129
1132
  $identifier: {
1130
1133
  kind: "Identifier",
1131
1134
  type: { kind: "Identifier" },
1132
1135
  },
1136
+ $rdfType: {
1137
+ fromRdfType: dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyGroup"),
1138
+ kind: "RdfType",
1139
+ toRdfTypes: [
1140
+ dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyGroup"),
1141
+ ],
1142
+ },
1133
1143
  $type: { kind: "Discriminant", value: "PropertyGroup" },
1134
1144
  comment: {
1135
1145
  kind: "Shacl",
@@ -1148,9 +1158,6 @@ export var PropertyGroup;
1148
1158
  },
1149
1159
  },
1150
1160
  },
1151
- toRdfTypes: [
1152
- dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyGroup"),
1153
- ],
1154
1161
  };
1155
1162
  PropertyGroup.toStringRecord = (_propertyGroup) => $compactRecord({
1156
1163
  $identifier: _propertyGroup.$identifier().toString(),
@@ -1160,7 +1167,7 @@ export var PropertyGroup;
1160
1167
  export var PropertyShape;
1161
1168
  (function (PropertyShape) {
1162
1169
  PropertyShape._fromRdfResource = (resource, options) => (!options.ignoreRdfType
1163
- ? $ensureRdfResourceType(resource, [PropertyShape.schema.fromRdfType], {
1170
+ ? $ensureRdfResourceType(resource, [PropertyShape.schema.properties.$rdfType.fromRdfType], {
1164
1171
  graph: options.graph,
1165
1172
  })
1166
1173
  : Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
@@ -1560,12 +1567,18 @@ export var PropertyShape;
1560
1567
  })(Identifier = PropertyShape.Identifier || (PropertyShape.Identifier = {}));
1561
1568
  PropertyShape.isPropertyShape = (object) => object.$type === "PropertyShape";
1562
1569
  PropertyShape.schema = {
1563
- fromRdfType: dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyShape"),
1564
1570
  properties: {
1565
1571
  $identifier: {
1566
1572
  kind: "Identifier",
1567
1573
  type: { kind: "Identifier" },
1568
1574
  },
1575
+ $rdfType: {
1576
+ fromRdfType: dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyShape"),
1577
+ kind: "RdfType",
1578
+ toRdfTypes: [
1579
+ dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyShape"),
1580
+ ],
1581
+ },
1569
1582
  $type: { kind: "Discriminant", value: "PropertyShape" },
1570
1583
  and: {
1571
1584
  kind: "Shacl",
@@ -1937,9 +1950,6 @@ export var PropertyShape;
1937
1950
  },
1938
1951
  },
1939
1952
  },
1940
- toRdfTypes: [
1941
- dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyShape"),
1942
- ],
1943
1953
  };
1944
1954
  PropertyShape.toStringRecord = (_propertyShape) => $compactRecord({
1945
1955
  $identifier: _propertyShape.$identifier().toString(),
@@ -1964,7 +1974,9 @@ export var Severity;
1964
1974
  export var ValidationReport;
1965
1975
  (function (ValidationReport) {
1966
1976
  ValidationReport._fromRdfResource = (resource, options) => (!options.ignoreRdfType
1967
- ? $ensureRdfResourceType(resource, [ValidationReport.schema.fromRdfType], { graph: options.graph })
1977
+ ? $ensureRdfResourceType(resource, [ValidationReport.schema.properties.$rdfType.fromRdfType], {
1978
+ graph: options.graph,
1979
+ })
1968
1980
  : Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
1969
1981
  $identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
1970
1982
  ...options,
@@ -2021,12 +2033,18 @@ export var ValidationReport;
2021
2033
  })(Identifier = ValidationReport.Identifier || (ValidationReport.Identifier = {}));
2022
2034
  ValidationReport.isValidationReport = (object) => object.$type === "ValidationReport";
2023
2035
  ValidationReport.schema = {
2024
- fromRdfType: dataFactory.namedNode("http://www.w3.org/ns/shacl#ValidationReport"),
2025
2036
  properties: {
2026
2037
  $identifier: {
2027
2038
  kind: "Identifier",
2028
2039
  type: { kind: "Identifier" },
2029
2040
  },
2041
+ $rdfType: {
2042
+ fromRdfType: dataFactory.namedNode("http://www.w3.org/ns/shacl#ValidationReport"),
2043
+ kind: "RdfType",
2044
+ toRdfTypes: [
2045
+ dataFactory.namedNode("http://www.w3.org/ns/shacl#ValidationReport"),
2046
+ ],
2047
+ },
2030
2048
  $type: { kind: "Discriminant", value: "ValidationReport" },
2031
2049
  conforms: {
2032
2050
  kind: "Shacl",
@@ -2054,16 +2072,15 @@ export var ValidationReport;
2054
2072
  },
2055
2073
  },
2056
2074
  },
2057
- toRdfTypes: [
2058
- dataFactory.namedNode("http://www.w3.org/ns/shacl#ValidationReport"),
2059
- ],
2060
2075
  };
2061
2076
  ValidationReport.toStringRecord = (_validationReport) => $compactRecord({ $identifier: _validationReport.$identifier().toString() });
2062
2077
  })(ValidationReport || (ValidationReport = {}));
2063
2078
  export var ValidationResult;
2064
2079
  (function (ValidationResult) {
2065
2080
  ValidationResult._fromRdfResource = (resource, options) => (!options.ignoreRdfType
2066
- ? $ensureRdfResourceType(resource, [ValidationResult.schema.fromRdfType], { graph: options.graph })
2081
+ ? $ensureRdfResourceType(resource, [ValidationResult.schema.properties.$rdfType.fromRdfType], {
2082
+ graph: options.graph,
2083
+ })
2067
2084
  : Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
2068
2085
  $identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
2069
2086
  ...options,
@@ -2160,12 +2177,18 @@ export var ValidationResult;
2160
2177
  })(Identifier = ValidationResult.Identifier || (ValidationResult.Identifier = {}));
2161
2178
  ValidationResult.isValidationResult = (object) => object.$type === "ValidationResult";
2162
2179
  ValidationResult.schema = {
2163
- fromRdfType: dataFactory.namedNode("http://www.w3.org/ns/shacl#ValidationResult"),
2164
2180
  properties: {
2165
2181
  $identifier: {
2166
2182
  kind: "Identifier",
2167
2183
  type: { kind: "Identifier" },
2168
2184
  },
2185
+ $rdfType: {
2186
+ fromRdfType: dataFactory.namedNode("http://www.w3.org/ns/shacl#ValidationResult"),
2187
+ kind: "RdfType",
2188
+ toRdfTypes: [
2189
+ dataFactory.namedNode("http://www.w3.org/ns/shacl#ValidationResult"),
2190
+ ],
2191
+ },
2169
2192
  $type: { kind: "Discriminant", value: "ValidationResult" },
2170
2193
  details: {
2171
2194
  kind: "Shacl",
@@ -2238,9 +2261,6 @@ export var ValidationResult;
2238
2261
  },
2239
2262
  },
2240
2263
  },
2241
- toRdfTypes: [
2242
- dataFactory.namedNode("http://www.w3.org/ns/shacl#ValidationResult"),
2243
- ],
2244
2264
  };
2245
2265
  ValidationResult.toStringRecord = (_validationResult) => $compactRecord({ $identifier: _validationResult.$identifier().toString() });
2246
2266
  })(ValidationResult || (ValidationResult = {}));
@@ -2266,10 +2286,12 @@ export var Shape;
2266
2286
  const valueAsValues = value.toValues();
2267
2287
  return NodeShape.fromRdfResourceValues(valueAsValues, {
2268
2288
  ...options,
2289
+ ignoreRdfType: false,
2269
2290
  schema: options.schema.members["NodeShape"].type,
2270
2291
  })
2271
2292
  .altLazy(() => PropertyShape.fromRdfResourceValues(valueAsValues, {
2272
2293
  ...options,
2294
+ ignoreRdfType: false,
2273
2295
  schema: options.schema.members["PropertyShape"].type,
2274
2296
  }))
2275
2297
  .chain((values) => values.head());
package/package.json CHANGED
@@ -52,5 +52,5 @@
52
52
  },
53
53
  "type": "module",
54
54
  "types": "./dist/index.d.ts",
55
- "version": "4.0.90"
55
+ "version": "4.0.92"
56
56
  }