@shaclmate/shacl-ast 4.0.43 → 4.0.44

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.
@@ -87,7 +87,7 @@ export type NodeShape = {
87
87
  readonly or: Maybe<readonly (BlankNode | NamedNode)[]>;
88
88
  readonly pattern: Maybe<string>;
89
89
  readonly properties: readonly (BlankNode | NamedNode)[];
90
- readonly severity: Maybe<NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation">>;
90
+ readonly severity: Maybe<Severity>;
91
91
  readonly subClassOf: readonly NamedNode[];
92
92
  readonly targetClasses: readonly NamedNode[];
93
93
  readonly targetNodes: readonly (NamedNode | Literal)[];
@@ -125,7 +125,7 @@ export declare namespace NodeShape {
125
125
  readonly or?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
126
126
  readonly pattern?: string | Maybe<string>;
127
127
  readonly properties?: BlankNode | NamedNode | string | readonly (BlankNode | NamedNode | string | undefined)[];
128
- readonly severity?: ("http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation") | NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation"> | Maybe<NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation">>;
128
+ readonly severity?: ("http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation") | Severity | Maybe<Severity>;
129
129
  readonly subClassOf?: string | NamedNode | readonly (string | NamedNode)[];
130
130
  readonly targetClasses?: string | NamedNode | readonly (string | NamedNode)[];
131
131
  readonly targetNodes?: (NamedNode | Literal) | readonly (NamedNode | Literal)[];
@@ -162,7 +162,7 @@ export declare namespace NodeShape {
162
162
  readonly or?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
163
163
  readonly pattern?: string | Maybe<string>;
164
164
  readonly properties?: BlankNode | NamedNode | string | readonly (BlankNode | NamedNode | string | undefined)[];
165
- readonly severity?: ("http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation") | NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation"> | Maybe<NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation">>;
165
+ readonly severity?: ("http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation") | Severity | Maybe<Severity>;
166
166
  readonly subClassOf?: string | NamedNode | readonly (string | NamedNode)[];
167
167
  readonly targetClasses?: string | NamedNode | readonly (string | NamedNode)[];
168
168
  readonly targetNodes?: (NamedNode | Literal) | readonly (NamedNode | Literal)[];
@@ -471,10 +471,10 @@ export declare namespace NodeShape {
471
471
  readonly kind: "Shacl";
472
472
  readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#severity">;
473
473
  readonly type: {
474
- readonly kind: "Option";
474
+ kind: "Option";
475
475
  readonly itemType: {
476
- readonly kind: "Iri";
477
- readonly in: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Warning">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Violation">];
476
+ kind: "Iri";
477
+ in: (import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Warning"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Violation">)[];
478
478
  };
479
479
  };
480
480
  };
@@ -728,7 +728,7 @@ export type PropertyShape = {
728
728
  readonly qualifiedMinCount: Maybe<bigint>;
729
729
  readonly qualifiedValueShape: Maybe<BlankNode | NamedNode>;
730
730
  readonly qualifiedValueShapesDisjoint: Maybe<boolean>;
731
- readonly severity: Maybe<NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation">>;
731
+ readonly severity: Maybe<Severity>;
732
732
  readonly targetClasses: readonly NamedNode[];
733
733
  readonly targetNodes: readonly (NamedNode | Literal)[];
734
734
  readonly targetObjectsOf: readonly NamedNode[];
@@ -778,7 +778,7 @@ export declare namespace PropertyShape {
778
778
  readonly qualifiedMinCount?: bigint | Maybe<bigint>;
779
779
  readonly qualifiedValueShape?: BlankNode | NamedNode | string | Maybe<BlankNode | NamedNode>;
780
780
  readonly qualifiedValueShapesDisjoint?: boolean | Maybe<boolean>;
781
- readonly severity?: ("http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation") | NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation"> | Maybe<NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation">>;
781
+ readonly severity?: ("http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation") | Severity | Maybe<Severity>;
782
782
  readonly targetClasses?: string | NamedNode | readonly (string | NamedNode)[];
783
783
  readonly targetNodes?: (NamedNode | Literal) | readonly (NamedNode | Literal)[];
784
784
  readonly targetObjectsOf?: string | NamedNode | readonly (string | NamedNode)[];
@@ -827,7 +827,7 @@ export declare namespace PropertyShape {
827
827
  readonly qualifiedMinCount?: bigint | Maybe<bigint>;
828
828
  readonly qualifiedValueShape?: BlankNode | NamedNode | string | Maybe<BlankNode | NamedNode>;
829
829
  readonly qualifiedValueShapesDisjoint?: boolean | Maybe<boolean>;
830
- readonly severity?: ("http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation") | NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation"> | Maybe<NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation">>;
830
+ readonly severity?: ("http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation") | Severity | Maybe<Severity>;
831
831
  readonly targetClasses?: string | NamedNode | readonly (string | NamedNode)[];
832
832
  readonly targetNodes?: (NamedNode | Literal) | readonly (NamedNode | Literal)[];
833
833
  readonly targetObjectsOf?: string | NamedNode | readonly (string | NamedNode)[];
@@ -1258,10 +1258,10 @@ export declare namespace PropertyShape {
1258
1258
  readonly kind: "Shacl";
1259
1259
  readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#severity">;
1260
1260
  readonly type: {
1261
- readonly kind: "Option";
1261
+ kind: "Option";
1262
1262
  readonly itemType: {
1263
- readonly kind: "Iri";
1264
- readonly in: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Warning">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Violation">];
1263
+ kind: "Iri";
1264
+ in: (import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Warning"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Violation">)[];
1265
1265
  };
1266
1266
  };
1267
1267
  };
@@ -1337,6 +1337,295 @@ export declare namespace PropertyShape {
1337
1337
  const $toString: (_propertyShape: PropertyShape) => string;
1338
1338
  const toStringRecord: (_propertyShape: PropertyShape) => Record<string, string>;
1339
1339
  }
1340
+ export type Severity = NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation">;
1341
+ export type ValidationReport = {
1342
+ readonly $identifier: () => ValidationReport.Identifier;
1343
+ readonly $type: "ValidationReport";
1344
+ readonly conforms: boolean;
1345
+ readonly results: readonly ValidationResult[];
1346
+ readonly shapesGraphWellFormed: Maybe<boolean>;
1347
+ };
1348
+ export declare namespace ValidationReport {
1349
+ const create: (parameters: {
1350
+ readonly $identifier?: (() => ValidationReport.Identifier) | BlankNode | NamedNode | string;
1351
+ readonly conforms: boolean;
1352
+ readonly results?: ValidationResult | readonly ValidationResult[];
1353
+ readonly shapesGraphWellFormed?: boolean | Maybe<boolean>;
1354
+ }) => Either<Error, ValidationReport>;
1355
+ function createUnsafe(parameters: {
1356
+ readonly $identifier?: (() => ValidationReport.Identifier) | BlankNode | NamedNode | string;
1357
+ readonly conforms: boolean;
1358
+ readonly results?: ValidationResult | readonly ValidationResult[];
1359
+ readonly shapesGraphWellFormed?: boolean | Maybe<boolean>;
1360
+ }): ValidationReport;
1361
+ const _fromRdfResource: $_FromRdfResourceFunction<ValidationReport>;
1362
+ const fromRdfResource: $FromRdfResourceFunction<ValidationReport>;
1363
+ const fromRdfResourceValues: $FromRdfResourceValuesFunction<ValidationReport, ValidationReport.Schema>;
1364
+ type Identifier = BlankNode | NamedNode;
1365
+ namespace Identifier {
1366
+ const parse: (value: string) => Either<Error, import("@rdfx/string/dist/Identifier.js").Identifier>;
1367
+ const stringify: typeof NTriplesTerm.stringify;
1368
+ }
1369
+ function isValidationReport(object: $Object): object is ValidationReport;
1370
+ const schema: {
1371
+ readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationReport">;
1372
+ readonly properties: {
1373
+ readonly $identifier: {
1374
+ readonly kind: "Identifier";
1375
+ readonly type: {
1376
+ readonly kind: "Identifier";
1377
+ };
1378
+ };
1379
+ readonly conforms: {
1380
+ readonly kind: "Shacl";
1381
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#conforms">;
1382
+ readonly type: {
1383
+ readonly kind: "Boolean";
1384
+ };
1385
+ };
1386
+ readonly results: {
1387
+ readonly kind: "Shacl";
1388
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#result">;
1389
+ readonly type: {
1390
+ kind: "Set";
1391
+ readonly itemType: {
1392
+ readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationResult">;
1393
+ readonly properties: {
1394
+ readonly $identifier: {
1395
+ readonly kind: "Identifier";
1396
+ readonly type: {
1397
+ readonly kind: "Identifier";
1398
+ };
1399
+ };
1400
+ readonly details: {
1401
+ readonly kind: "Shacl";
1402
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#detail">;
1403
+ readonly type: {
1404
+ readonly kind: "Set";
1405
+ readonly itemType: {
1406
+ readonly kind: "Term";
1407
+ readonly types: readonly ["BlankNode", "NamedNode", "Literal"];
1408
+ };
1409
+ };
1410
+ };
1411
+ readonly focusNode: {
1412
+ readonly kind: "Shacl";
1413
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#focusNode">;
1414
+ readonly type: {
1415
+ readonly kind: "Term";
1416
+ readonly types: readonly ["BlankNode", "NamedNode", "Literal"];
1417
+ };
1418
+ };
1419
+ readonly message: {
1420
+ readonly kind: "Shacl";
1421
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#resultMessage">;
1422
+ readonly type: {
1423
+ readonly kind: "Option";
1424
+ readonly itemType: {
1425
+ readonly kind: "String";
1426
+ };
1427
+ };
1428
+ };
1429
+ readonly path: {
1430
+ readonly kind: "Shacl";
1431
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#resultPath">;
1432
+ readonly type: {
1433
+ kind: "Option";
1434
+ readonly itemType: object;
1435
+ };
1436
+ };
1437
+ readonly severity: {
1438
+ readonly kind: "Shacl";
1439
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#resultSeverity">;
1440
+ readonly type: {
1441
+ kind: "Iri";
1442
+ in: (import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Warning"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Violation">)[];
1443
+ };
1444
+ };
1445
+ readonly sourceConstraintComponent: {
1446
+ readonly kind: "Shacl";
1447
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#sourceConstraintComponent">;
1448
+ readonly type: {
1449
+ readonly kind: "Iri";
1450
+ };
1451
+ };
1452
+ readonly sourceShape: {
1453
+ readonly kind: "Shacl";
1454
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#sourceShape">;
1455
+ readonly type: {
1456
+ readonly kind: "Option";
1457
+ readonly itemType: {
1458
+ readonly kind: "Identifier";
1459
+ };
1460
+ };
1461
+ };
1462
+ readonly value: {
1463
+ readonly kind: "Shacl";
1464
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#value">;
1465
+ readonly type: {
1466
+ readonly kind: "Option";
1467
+ readonly itemType: {
1468
+ readonly kind: "Term";
1469
+ readonly types: readonly ["BlankNode", "NamedNode", "Literal"];
1470
+ };
1471
+ };
1472
+ };
1473
+ };
1474
+ };
1475
+ };
1476
+ };
1477
+ readonly shapesGraphWellFormed: {
1478
+ readonly kind: "Shacl";
1479
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#shapesGraphWellFormed">;
1480
+ readonly type: {
1481
+ readonly kind: "Option";
1482
+ readonly itemType: {
1483
+ readonly kind: "Boolean";
1484
+ };
1485
+ };
1486
+ };
1487
+ };
1488
+ };
1489
+ type Schema = typeof schema;
1490
+ const _toRdfResource: $_ToRdfResourceFunction<ValidationReport.Identifier, ValidationReport>;
1491
+ const toRdfResource: $ToRdfResourceFunction<ValidationReport, Identifier>;
1492
+ const $toString: (_validationReport: ValidationReport) => string;
1493
+ const toStringRecord: (_validationReport: ValidationReport) => Record<string, string>;
1494
+ }
1495
+ export type ValidationResult = {
1496
+ readonly $identifier: () => ValidationResult.Identifier;
1497
+ readonly $type: "ValidationResult";
1498
+ readonly details: readonly (BlankNode | NamedNode | Literal)[];
1499
+ readonly focusNode: BlankNode | NamedNode | Literal;
1500
+ readonly message: Maybe<string>;
1501
+ readonly path: Maybe<$PropertyPath>;
1502
+ readonly severity: Severity;
1503
+ readonly sourceConstraintComponent: NamedNode;
1504
+ readonly sourceShape: Maybe<BlankNode | NamedNode>;
1505
+ readonly value: Maybe<BlankNode | NamedNode | Literal>;
1506
+ };
1507
+ export declare namespace ValidationResult {
1508
+ const create: (parameters: {
1509
+ readonly $identifier?: (() => ValidationResult.Identifier) | BlankNode | NamedNode | string;
1510
+ readonly details?: (BlankNode | NamedNode | Literal) | readonly (BlankNode | NamedNode | Literal)[];
1511
+ readonly focusNode: BlankNode | NamedNode | Literal;
1512
+ readonly message?: string | Maybe<string>;
1513
+ readonly path?: $PropertyPath | Maybe<$PropertyPath>;
1514
+ readonly severity: ("http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation") | Severity;
1515
+ readonly sourceConstraintComponent: string | NamedNode;
1516
+ readonly sourceShape?: BlankNode | NamedNode | string | Maybe<BlankNode | NamedNode>;
1517
+ readonly value?: (BlankNode | NamedNode | Literal) | Maybe<BlankNode | NamedNode | Literal>;
1518
+ }) => Either<Error, ValidationResult>;
1519
+ function createUnsafe(parameters: {
1520
+ readonly $identifier?: (() => ValidationResult.Identifier) | BlankNode | NamedNode | string;
1521
+ readonly details?: (BlankNode | NamedNode | Literal) | readonly (BlankNode | NamedNode | Literal)[];
1522
+ readonly focusNode: BlankNode | NamedNode | Literal;
1523
+ readonly message?: string | Maybe<string>;
1524
+ readonly path?: $PropertyPath | Maybe<$PropertyPath>;
1525
+ readonly severity: ("http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation") | Severity;
1526
+ readonly sourceConstraintComponent: string | NamedNode;
1527
+ readonly sourceShape?: BlankNode | NamedNode | string | Maybe<BlankNode | NamedNode>;
1528
+ readonly value?: (BlankNode | NamedNode | Literal) | Maybe<BlankNode | NamedNode | Literal>;
1529
+ }): ValidationResult;
1530
+ const _fromRdfResource: $_FromRdfResourceFunction<ValidationResult>;
1531
+ const fromRdfResource: $FromRdfResourceFunction<ValidationResult>;
1532
+ const fromRdfResourceValues: $FromRdfResourceValuesFunction<ValidationResult, ValidationResult.Schema>;
1533
+ type Identifier = BlankNode | NamedNode;
1534
+ namespace Identifier {
1535
+ const parse: (value: string) => Either<Error, import("@rdfx/string/dist/Identifier.js").Identifier>;
1536
+ const stringify: typeof NTriplesTerm.stringify;
1537
+ }
1538
+ function isValidationResult(object: $Object): object is ValidationResult;
1539
+ const schema: {
1540
+ readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationResult">;
1541
+ readonly properties: {
1542
+ readonly $identifier: {
1543
+ readonly kind: "Identifier";
1544
+ readonly type: {
1545
+ readonly kind: "Identifier";
1546
+ };
1547
+ };
1548
+ readonly details: {
1549
+ readonly kind: "Shacl";
1550
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#detail">;
1551
+ readonly type: {
1552
+ readonly kind: "Set";
1553
+ readonly itemType: {
1554
+ readonly kind: "Term";
1555
+ readonly types: readonly ["BlankNode", "NamedNode", "Literal"];
1556
+ };
1557
+ };
1558
+ };
1559
+ readonly focusNode: {
1560
+ readonly kind: "Shacl";
1561
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#focusNode">;
1562
+ readonly type: {
1563
+ readonly kind: "Term";
1564
+ readonly types: readonly ["BlankNode", "NamedNode", "Literal"];
1565
+ };
1566
+ };
1567
+ readonly message: {
1568
+ readonly kind: "Shacl";
1569
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#resultMessage">;
1570
+ readonly type: {
1571
+ readonly kind: "Option";
1572
+ readonly itemType: {
1573
+ readonly kind: "String";
1574
+ };
1575
+ };
1576
+ };
1577
+ readonly path: {
1578
+ readonly kind: "Shacl";
1579
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#resultPath">;
1580
+ readonly type: {
1581
+ kind: "Option";
1582
+ readonly itemType: object;
1583
+ };
1584
+ };
1585
+ readonly severity: {
1586
+ readonly kind: "Shacl";
1587
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#resultSeverity">;
1588
+ readonly type: {
1589
+ kind: "Iri";
1590
+ in: (import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Warning"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Violation">)[];
1591
+ };
1592
+ };
1593
+ readonly sourceConstraintComponent: {
1594
+ readonly kind: "Shacl";
1595
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#sourceConstraintComponent">;
1596
+ readonly type: {
1597
+ readonly kind: "Iri";
1598
+ };
1599
+ };
1600
+ readonly sourceShape: {
1601
+ readonly kind: "Shacl";
1602
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#sourceShape">;
1603
+ readonly type: {
1604
+ readonly kind: "Option";
1605
+ readonly itemType: {
1606
+ readonly kind: "Identifier";
1607
+ };
1608
+ };
1609
+ };
1610
+ readonly value: {
1611
+ readonly kind: "Shacl";
1612
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#value">;
1613
+ readonly type: {
1614
+ readonly kind: "Option";
1615
+ readonly itemType: {
1616
+ readonly kind: "Term";
1617
+ readonly types: readonly ["BlankNode", "NamedNode", "Literal"];
1618
+ };
1619
+ };
1620
+ };
1621
+ };
1622
+ };
1623
+ type Schema = typeof schema;
1624
+ const _toRdfResource: $_ToRdfResourceFunction<ValidationResult.Identifier, ValidationResult>;
1625
+ const toRdfResource: $ToRdfResourceFunction<ValidationResult, Identifier>;
1626
+ const $toString: (_validationResult: ValidationResult) => string;
1627
+ const toStringRecord: (_validationResult: ValidationResult) => Record<string, string>;
1628
+ }
1340
1629
  export type Shape = NodeShape | PropertyShape;
1341
1630
  export declare namespace Shape {
1342
1631
  const $toString: (value: Shape) => string;
@@ -1644,10 +1933,10 @@ export declare namespace Shape {
1644
1933
  readonly kind: "Shacl";
1645
1934
  readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#severity">;
1646
1935
  readonly type: {
1647
- readonly kind: "Option";
1936
+ kind: "Option";
1648
1937
  readonly itemType: {
1649
- readonly kind: "Iri";
1650
- readonly in: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Warning">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Violation">];
1938
+ kind: "Iri";
1939
+ in: (import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Warning"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Violation">)[];
1651
1940
  };
1652
1941
  };
1653
1942
  };
@@ -2144,10 +2433,10 @@ export declare namespace Shape {
2144
2433
  readonly kind: "Shacl";
2145
2434
  readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#severity">;
2146
2435
  readonly type: {
2147
- readonly kind: "Option";
2436
+ kind: "Option";
2148
2437
  readonly itemType: {
2149
- readonly kind: "Iri";
2150
- readonly in: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Warning">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Violation">];
2438
+ kind: "Iri";
2439
+ in: (import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Warning"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Violation">)[];
2151
2440
  };
2152
2441
  };
2153
2442
  };
@@ -2469,10 +2758,10 @@ export declare namespace Shape {
2469
2758
  readonly kind: "Shacl";
2470
2759
  readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#severity">;
2471
2760
  readonly type: {
2472
- readonly kind: "Option";
2761
+ kind: "Option";
2473
2762
  readonly itemType: {
2474
- readonly kind: "Iri";
2475
- readonly in: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Warning">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Violation">];
2763
+ kind: "Iri";
2764
+ in: (import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Warning"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Violation">)[];
2476
2765
  };
2477
2766
  };
2478
2767
  };
@@ -2541,7 +2830,7 @@ export declare namespace Shape {
2541
2830
  resourceSet: ResourceSet;
2542
2831
  }) => (BlankNode | NamedNode)[];
2543
2832
  }
2544
- export type $Object = NodeShape | Ontology | PropertyGroup | PropertyShape;
2833
+ export type $Object = NodeShape | Ontology | PropertyGroup | PropertyShape | ValidationReport | ValidationResult;
2545
2834
  export declare namespace $Object {
2546
2835
  const $toString: (value: $Object) => string;
2547
2836
  const fromRdfResource: $FromRdfResourceFunction<$Object>;
@@ -2847,10 +3136,10 @@ export declare namespace $Object {
2847
3136
  readonly kind: "Shacl";
2848
3137
  readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#severity">;
2849
3138
  readonly type: {
2850
- readonly kind: "Option";
3139
+ kind: "Option";
2851
3140
  readonly itemType: {
2852
- readonly kind: "Iri";
2853
- readonly in: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Warning">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Violation">];
3141
+ kind: "Iri";
3142
+ in: (import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Warning"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Violation">)[];
2854
3143
  };
2855
3144
  };
2856
3145
  };
@@ -3415,10 +3704,10 @@ export declare namespace $Object {
3415
3704
  readonly kind: "Shacl";
3416
3705
  readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#severity">;
3417
3706
  readonly type: {
3418
- readonly kind: "Option";
3707
+ kind: "Option";
3419
3708
  readonly itemType: {
3420
- readonly kind: "Iri";
3421
- readonly in: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Warning">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Violation">];
3709
+ kind: "Iri";
3710
+ in: (import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Warning"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Violation">)[];
3422
3711
  };
3423
3712
  };
3424
3713
  };
@@ -3489,29 +3778,217 @@ export declare namespace $Object {
3489
3778
  };
3490
3779
  };
3491
3780
  };
3492
- };
3493
- readonly properties: {
3494
- readonly comment: {
3495
- readonly kind: "Shacl";
3496
- readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#comment">;
3781
+ readonly ValidationReport: {
3782
+ readonly discriminantValues: readonly ["ValidationReport"];
3497
3783
  readonly type: {
3498
- readonly kind: "Option";
3499
- readonly itemType: {
3500
- readonly kind: "String";
3784
+ readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationReport">;
3785
+ readonly properties: {
3786
+ readonly $identifier: {
3787
+ readonly kind: "Identifier";
3788
+ readonly type: {
3789
+ readonly kind: "Identifier";
3790
+ };
3791
+ };
3792
+ readonly conforms: {
3793
+ readonly kind: "Shacl";
3794
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#conforms">;
3795
+ readonly type: {
3796
+ readonly kind: "Boolean";
3797
+ };
3798
+ };
3799
+ readonly results: {
3800
+ readonly kind: "Shacl";
3801
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#result">;
3802
+ readonly type: {
3803
+ kind: "Set";
3804
+ readonly itemType: {
3805
+ readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationResult">;
3806
+ readonly properties: {
3807
+ readonly $identifier: {
3808
+ readonly kind: "Identifier";
3809
+ readonly type: {
3810
+ readonly kind: "Identifier";
3811
+ };
3812
+ };
3813
+ readonly details: {
3814
+ readonly kind: "Shacl";
3815
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#detail">;
3816
+ readonly type: {
3817
+ readonly kind: "Set";
3818
+ readonly itemType: {
3819
+ readonly kind: "Term";
3820
+ readonly types: readonly ["BlankNode", "NamedNode", "Literal"];
3821
+ };
3822
+ };
3823
+ };
3824
+ readonly focusNode: {
3825
+ readonly kind: "Shacl";
3826
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#focusNode">;
3827
+ readonly type: {
3828
+ readonly kind: "Term";
3829
+ readonly types: readonly ["BlankNode", "NamedNode", "Literal"];
3830
+ };
3831
+ };
3832
+ readonly message: {
3833
+ readonly kind: "Shacl";
3834
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#resultMessage">;
3835
+ readonly type: {
3836
+ readonly kind: "Option";
3837
+ readonly itemType: {
3838
+ readonly kind: "String";
3839
+ };
3840
+ };
3841
+ };
3842
+ readonly path: {
3843
+ readonly kind: "Shacl";
3844
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#resultPath">;
3845
+ readonly type: {
3846
+ kind: "Option";
3847
+ readonly itemType: object;
3848
+ };
3849
+ };
3850
+ readonly severity: {
3851
+ readonly kind: "Shacl";
3852
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#resultSeverity">;
3853
+ readonly type: {
3854
+ kind: "Iri";
3855
+ in: (import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Warning"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Violation">)[];
3856
+ };
3857
+ };
3858
+ readonly sourceConstraintComponent: {
3859
+ readonly kind: "Shacl";
3860
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#sourceConstraintComponent">;
3861
+ readonly type: {
3862
+ readonly kind: "Iri";
3863
+ };
3864
+ };
3865
+ readonly sourceShape: {
3866
+ readonly kind: "Shacl";
3867
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#sourceShape">;
3868
+ readonly type: {
3869
+ readonly kind: "Option";
3870
+ readonly itemType: {
3871
+ readonly kind: "Identifier";
3872
+ };
3873
+ };
3874
+ };
3875
+ readonly value: {
3876
+ readonly kind: "Shacl";
3877
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#value">;
3878
+ readonly type: {
3879
+ readonly kind: "Option";
3880
+ readonly itemType: {
3881
+ readonly kind: "Term";
3882
+ readonly types: readonly ["BlankNode", "NamedNode", "Literal"];
3883
+ };
3884
+ };
3885
+ };
3886
+ };
3887
+ };
3888
+ };
3889
+ };
3890
+ readonly shapesGraphWellFormed: {
3891
+ readonly kind: "Shacl";
3892
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#shapesGraphWellFormed">;
3893
+ readonly type: {
3894
+ readonly kind: "Option";
3895
+ readonly itemType: {
3896
+ readonly kind: "Boolean";
3897
+ };
3898
+ };
3899
+ };
3501
3900
  };
3502
3901
  };
3503
3902
  };
3504
- readonly label: {
3505
- readonly kind: "Shacl";
3506
- readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
3903
+ readonly ValidationResult: {
3904
+ readonly discriminantValues: readonly ["ValidationResult"];
3507
3905
  readonly type: {
3508
- readonly kind: "Option";
3509
- readonly itemType: {
3510
- readonly kind: "String";
3906
+ readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationResult">;
3907
+ readonly properties: {
3908
+ readonly $identifier: {
3909
+ readonly kind: "Identifier";
3910
+ readonly type: {
3911
+ readonly kind: "Identifier";
3912
+ };
3913
+ };
3914
+ readonly details: {
3915
+ readonly kind: "Shacl";
3916
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#detail">;
3917
+ readonly type: {
3918
+ readonly kind: "Set";
3919
+ readonly itemType: {
3920
+ readonly kind: "Term";
3921
+ readonly types: readonly ["BlankNode", "NamedNode", "Literal"];
3922
+ };
3923
+ };
3924
+ };
3925
+ readonly focusNode: {
3926
+ readonly kind: "Shacl";
3927
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#focusNode">;
3928
+ readonly type: {
3929
+ readonly kind: "Term";
3930
+ readonly types: readonly ["BlankNode", "NamedNode", "Literal"];
3931
+ };
3932
+ };
3933
+ readonly message: {
3934
+ readonly kind: "Shacl";
3935
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#resultMessage">;
3936
+ readonly type: {
3937
+ readonly kind: "Option";
3938
+ readonly itemType: {
3939
+ readonly kind: "String";
3940
+ };
3941
+ };
3942
+ };
3943
+ readonly path: {
3944
+ readonly kind: "Shacl";
3945
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#resultPath">;
3946
+ readonly type: {
3947
+ kind: "Option";
3948
+ readonly itemType: object;
3949
+ };
3950
+ };
3951
+ readonly severity: {
3952
+ readonly kind: "Shacl";
3953
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#resultSeverity">;
3954
+ readonly type: {
3955
+ kind: "Iri";
3956
+ in: (import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Warning"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Violation">)[];
3957
+ };
3958
+ };
3959
+ readonly sourceConstraintComponent: {
3960
+ readonly kind: "Shacl";
3961
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#sourceConstraintComponent">;
3962
+ readonly type: {
3963
+ readonly kind: "Iri";
3964
+ };
3965
+ };
3966
+ readonly sourceShape: {
3967
+ readonly kind: "Shacl";
3968
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#sourceShape">;
3969
+ readonly type: {
3970
+ readonly kind: "Option";
3971
+ readonly itemType: {
3972
+ readonly kind: "Identifier";
3973
+ };
3974
+ };
3975
+ };
3976
+ readonly value: {
3977
+ readonly kind: "Shacl";
3978
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#value">;
3979
+ readonly type: {
3980
+ readonly kind: "Option";
3981
+ readonly itemType: {
3982
+ readonly kind: "Term";
3983
+ readonly types: readonly ["BlankNode", "NamedNode", "Literal"];
3984
+ };
3985
+ };
3986
+ };
3511
3987
  };
3512
3988
  };
3513
3989
  };
3514
3990
  };
3991
+ readonly properties: {};
3515
3992
  };
3516
3993
  const toRdfResource: $ToRdfResourceFunction<$Object>;
3517
3994
  const toRdfResourceValues: (value: $Object, _options: {
package/dist/generated.js CHANGED
@@ -1002,16 +1002,20 @@ export var NodeShape;
1002
1002
  severity: {
1003
1003
  kind: "Shacl",
1004
1004
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#severity"),
1005
- type: {
1006
- kind: "Option",
1007
- itemType: {
1008
- kind: "Iri",
1009
- in: [
1010
- dataFactory.namedNode("http://www.w3.org/ns/shacl#Info"),
1011
- dataFactory.namedNode("http://www.w3.org/ns/shacl#Warning"),
1012
- dataFactory.namedNode("http://www.w3.org/ns/shacl#Violation"),
1013
- ],
1014
- },
1005
+ get type() {
1006
+ return {
1007
+ kind: "Option",
1008
+ get itemType() {
1009
+ return {
1010
+ kind: "Iri",
1011
+ in: [
1012
+ dataFactory.namedNode("http://www.w3.org/ns/shacl#Info"),
1013
+ dataFactory.namedNode("http://www.w3.org/ns/shacl#Warning"),
1014
+ dataFactory.namedNode("http://www.w3.org/ns/shacl#Violation"),
1015
+ ],
1016
+ };
1017
+ },
1018
+ };
1015
1019
  },
1016
1020
  },
1017
1021
  subClassOf: {
@@ -2301,16 +2305,20 @@ export var PropertyShape;
2301
2305
  severity: {
2302
2306
  kind: "Shacl",
2303
2307
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#severity"),
2304
- type: {
2305
- kind: "Option",
2306
- itemType: {
2307
- kind: "Iri",
2308
- in: [
2309
- dataFactory.namedNode("http://www.w3.org/ns/shacl#Info"),
2310
- dataFactory.namedNode("http://www.w3.org/ns/shacl#Warning"),
2311
- dataFactory.namedNode("http://www.w3.org/ns/shacl#Violation"),
2312
- ],
2313
- },
2308
+ get type() {
2309
+ return {
2310
+ kind: "Option",
2311
+ get itemType() {
2312
+ return {
2313
+ kind: "Iri",
2314
+ in: [
2315
+ dataFactory.namedNode("http://www.w3.org/ns/shacl#Info"),
2316
+ dataFactory.namedNode("http://www.w3.org/ns/shacl#Warning"),
2317
+ dataFactory.namedNode("http://www.w3.org/ns/shacl#Violation"),
2318
+ ],
2319
+ };
2320
+ },
2321
+ };
2314
2322
  },
2315
2323
  },
2316
2324
  targetClasses: {
@@ -2582,6 +2590,373 @@ export var PropertyShape;
2582
2590
  path: $PropertyPath.$toString(_propertyShape.path),
2583
2591
  });
2584
2592
  })(PropertyShape || (PropertyShape = {}));
2593
+ export var ValidationReport;
2594
+ (function (ValidationReport) {
2595
+ ValidationReport.create = (parameters) => $sequenceRecord({
2596
+ $identifier: $convertToIdentifierProperty(parameters.$identifier),
2597
+ conforms: Either.of(parameters.conforms),
2598
+ results: $convertToScalarSet($identityConversionFunction, true)(parameters.results).chain((value) => $validateArray($identityValidationFunction, true)(ValidationReport.schema.properties.results.type, value)),
2599
+ shapesGraphWellFormed: $convertToMaybe($identityConversionFunction)(parameters.shapesGraphWellFormed).chain((value) => $validateMaybe($identityValidationFunction)(ValidationReport.schema.properties.shapesGraphWellFormed.type, value)),
2600
+ })
2601
+ .map((properties) => ({
2602
+ ...properties,
2603
+ $type: "ValidationReport",
2604
+ }))
2605
+ .map((object) => $monkeyPatchObject(object, { $toString: ValidationReport.$toString }));
2606
+ function createUnsafe(parameters) {
2607
+ return ValidationReport.create(parameters).unsafeCoerce();
2608
+ }
2609
+ ValidationReport.createUnsafe = createUnsafe;
2610
+ ValidationReport._fromRdfResource = ($resource, _$options) => (!_$options.ignoreRdfType
2611
+ ? $ensureRdfResourceType($resource, [ValidationReport.schema.fromRdfType], { graph: _$options.graph })
2612
+ : Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
2613
+ $identifier: $identifierFromRdfResourceValues(new Resource.Value({
2614
+ dataFactory: dataFactory,
2615
+ focusResource: $resource,
2616
+ propertyPath: $RdfVocabularies.rdf.subject,
2617
+ term: $resource.identifier,
2618
+ }).toValues(), {
2619
+ context: _$options.context,
2620
+ graph: _$options.graph,
2621
+ focusResource: $resource,
2622
+ preferredLanguages: _$options.preferredLanguages,
2623
+ propertyPath: $RdfVocabularies.rdf.subject,
2624
+ schema: ValidationReport.schema.properties.$identifier.type,
2625
+ }).chain((values) => values.head()),
2626
+ conforms: $shaclPropertyFromRdf({
2627
+ context: _$options.context,
2628
+ graph: _$options.graph,
2629
+ focusResource: $resource,
2630
+ ignoreRdfType: true,
2631
+ preferredLanguages: _$options.preferredLanguages,
2632
+ propertySchema: ValidationReport.schema.properties.conforms,
2633
+ typeFromRdfResourceValues: ($booleanFromRdfResourceValues),
2634
+ }),
2635
+ results: $shaclPropertyFromRdf({
2636
+ context: _$options.context,
2637
+ graph: _$options.graph,
2638
+ focusResource: $resource,
2639
+ ignoreRdfType: true,
2640
+ preferredLanguages: _$options.preferredLanguages,
2641
+ propertySchema: ValidationReport.schema.properties.results,
2642
+ typeFromRdfResourceValues: $setFromRdfResourceValues(ValidationResult.fromRdfResourceValues),
2643
+ }),
2644
+ shapesGraphWellFormed: $shaclPropertyFromRdf({
2645
+ context: _$options.context,
2646
+ graph: _$options.graph,
2647
+ focusResource: $resource,
2648
+ ignoreRdfType: true,
2649
+ preferredLanguages: _$options.preferredLanguages,
2650
+ propertySchema: ValidationReport.schema.properties.shapesGraphWellFormed,
2651
+ typeFromRdfResourceValues: $maybeFromRdfResourceValues(($booleanFromRdfResourceValues)),
2652
+ }),
2653
+ }).chain((properties) => ValidationReport.create(properties)));
2654
+ ValidationReport.fromRdfResource = $wrap_FromRdfResourceFunction(ValidationReport._fromRdfResource);
2655
+ ValidationReport.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
2656
+ .toResource()
2657
+ .chain((resource) => ValidationReport.fromRdfResource(resource, options)));
2658
+ let Identifier;
2659
+ (function (Identifier) {
2660
+ Identifier.parse = $parseIdentifier;
2661
+ Identifier.stringify = NTriplesTerm.stringify;
2662
+ })(Identifier = ValidationReport.Identifier || (ValidationReport.Identifier = {}));
2663
+ function isValidationReport(object) {
2664
+ return object.$type === "ValidationReport";
2665
+ }
2666
+ ValidationReport.isValidationReport = isValidationReport;
2667
+ ValidationReport.schema = {
2668
+ fromRdfType: dataFactory.namedNode("http://www.w3.org/ns/shacl#ValidationReport"),
2669
+ properties: {
2670
+ $identifier: {
2671
+ kind: "Identifier",
2672
+ type: { kind: "Identifier" },
2673
+ },
2674
+ conforms: {
2675
+ kind: "Shacl",
2676
+ path: dataFactory.namedNode("http://www.w3.org/ns/shacl#conforms"),
2677
+ type: { kind: "Boolean" },
2678
+ },
2679
+ results: {
2680
+ kind: "Shacl",
2681
+ path: dataFactory.namedNode("http://www.w3.org/ns/shacl#result"),
2682
+ get type() {
2683
+ return {
2684
+ kind: "Set",
2685
+ get itemType() {
2686
+ return ValidationResult.schema;
2687
+ },
2688
+ };
2689
+ },
2690
+ },
2691
+ shapesGraphWellFormed: {
2692
+ kind: "Shacl",
2693
+ path: dataFactory.namedNode("http://www.w3.org/ns/shacl#shapesGraphWellFormed"),
2694
+ type: {
2695
+ kind: "Option",
2696
+ itemType: { kind: "Boolean" },
2697
+ },
2698
+ },
2699
+ },
2700
+ };
2701
+ ValidationReport._toRdfResource = (parameters) => {
2702
+ if (!parameters.ignoreRdfType) {
2703
+ parameters.resource.add($RdfVocabularies.rdf.type, dataFactory.namedNode("http://www.w3.org/ns/shacl#ValidationReport"), parameters.graph);
2704
+ }
2705
+ parameters.resource.add(ValidationReport.schema.properties.conforms.path, [
2706
+ $literalFactory.boolean(parameters.object.conforms, $RdfVocabularies.xsd.boolean),
2707
+ ], parameters.graph);
2708
+ parameters.resource.add(ValidationReport.schema.properties.results.path, parameters.object.results.flatMap((item) => [
2709
+ ValidationResult.toRdfResource(item, {
2710
+ graph: parameters.graph,
2711
+ resourceSet: parameters.resourceSet,
2712
+ }).identifier,
2713
+ ]), parameters.graph);
2714
+ parameters.resource.add(ValidationReport.schema.properties.shapesGraphWellFormed.path, parameters.object.shapesGraphWellFormed
2715
+ .toList()
2716
+ .flatMap((value) => [
2717
+ $literalFactory.boolean(value, $RdfVocabularies.xsd.boolean),
2718
+ ]), parameters.graph);
2719
+ return parameters.resource;
2720
+ };
2721
+ ValidationReport.toRdfResource = $wrap_ToRdfResourceFunction(ValidationReport._toRdfResource);
2722
+ ValidationReport.$toString = (_validationReport) => `ValidationReport(${JSON.stringify(ValidationReport.toStringRecord(_validationReport))})`;
2723
+ ValidationReport.toStringRecord = (_validationReport) => $compactRecord({ $identifier: _validationReport.$identifier().toString() });
2724
+ })(ValidationReport || (ValidationReport = {}));
2725
+ export var ValidationResult;
2726
+ (function (ValidationResult) {
2727
+ ValidationResult.create = (parameters) => $sequenceRecord({
2728
+ $identifier: $convertToIdentifierProperty(parameters.$identifier),
2729
+ details: $convertToScalarSet($identityConversionFunction, true)(parameters.details).chain((value) => $validateArray($identityValidationFunction, true)(ValidationResult.schema.properties.details.type, value)),
2730
+ focusNode: Either.of(parameters.focusNode),
2731
+ message: $convertToMaybe($identityConversionFunction)(parameters.message).chain((value) => $validateMaybe($identityValidationFunction)(ValidationResult.schema.properties.message.type, value)),
2732
+ path: $convertToMaybe($identityConversionFunction)(parameters.path).chain((value) => $validateMaybe($identityValidationFunction)(ValidationResult.schema.properties.path.type, value)),
2733
+ severity: $convertToIri(parameters.severity),
2734
+ sourceConstraintComponent: $convertToIri(parameters.sourceConstraintComponent),
2735
+ sourceShape: $convertToMaybe($convertToIdentifier)(parameters.sourceShape).chain((value) => $validateMaybe($identityValidationFunction)(ValidationResult.schema.properties.sourceShape.type, value)),
2736
+ value: $convertToMaybe($identityConversionFunction)(parameters.value).chain((value) => $validateMaybe($identityValidationFunction)(ValidationResult.schema.properties.value.type, value)),
2737
+ })
2738
+ .map((properties) => ({
2739
+ ...properties,
2740
+ $type: "ValidationResult",
2741
+ }))
2742
+ .map((object) => $monkeyPatchObject(object, { $toString: ValidationResult.$toString }));
2743
+ function createUnsafe(parameters) {
2744
+ return ValidationResult.create(parameters).unsafeCoerce();
2745
+ }
2746
+ ValidationResult.createUnsafe = createUnsafe;
2747
+ ValidationResult._fromRdfResource = ($resource, _$options) => (!_$options.ignoreRdfType
2748
+ ? $ensureRdfResourceType($resource, [ValidationResult.schema.fromRdfType], { graph: _$options.graph })
2749
+ : Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
2750
+ $identifier: $identifierFromRdfResourceValues(new Resource.Value({
2751
+ dataFactory: dataFactory,
2752
+ focusResource: $resource,
2753
+ propertyPath: $RdfVocabularies.rdf.subject,
2754
+ term: $resource.identifier,
2755
+ }).toValues(), {
2756
+ context: _$options.context,
2757
+ graph: _$options.graph,
2758
+ focusResource: $resource,
2759
+ preferredLanguages: _$options.preferredLanguages,
2760
+ propertyPath: $RdfVocabularies.rdf.subject,
2761
+ schema: ValidationResult.schema.properties.$identifier.type,
2762
+ }).chain((values) => values.head()),
2763
+ details: $shaclPropertyFromRdf({
2764
+ context: _$options.context,
2765
+ graph: _$options.graph,
2766
+ focusResource: $resource,
2767
+ ignoreRdfType: true,
2768
+ preferredLanguages: _$options.preferredLanguages,
2769
+ propertySchema: ValidationResult.schema.properties.details,
2770
+ typeFromRdfResourceValues: $setFromRdfResourceValues(($termFromRdfResourceValues)),
2771
+ }),
2772
+ focusNode: $shaclPropertyFromRdf({
2773
+ context: _$options.context,
2774
+ graph: _$options.graph,
2775
+ focusResource: $resource,
2776
+ ignoreRdfType: true,
2777
+ preferredLanguages: _$options.preferredLanguages,
2778
+ propertySchema: ValidationResult.schema.properties.focusNode,
2779
+ typeFromRdfResourceValues: ($termFromRdfResourceValues),
2780
+ }),
2781
+ message: $shaclPropertyFromRdf({
2782
+ context: _$options.context,
2783
+ graph: _$options.graph,
2784
+ focusResource: $resource,
2785
+ ignoreRdfType: true,
2786
+ preferredLanguages: _$options.preferredLanguages,
2787
+ propertySchema: ValidationResult.schema.properties.message,
2788
+ typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
2789
+ }),
2790
+ path: $shaclPropertyFromRdf({
2791
+ context: _$options.context,
2792
+ graph: _$options.graph,
2793
+ focusResource: $resource,
2794
+ ignoreRdfType: true,
2795
+ preferredLanguages: _$options.preferredLanguages,
2796
+ propertySchema: ValidationResult.schema.properties.path,
2797
+ typeFromRdfResourceValues: $maybeFromRdfResourceValues($PropertyPath.fromRdfResourceValues),
2798
+ }),
2799
+ severity: $shaclPropertyFromRdf({
2800
+ context: _$options.context,
2801
+ graph: _$options.graph,
2802
+ focusResource: $resource,
2803
+ ignoreRdfType: true,
2804
+ preferredLanguages: _$options.preferredLanguages,
2805
+ propertySchema: ValidationResult.schema.properties.severity,
2806
+ typeFromRdfResourceValues: ($iriFromRdfResourceValues),
2807
+ }),
2808
+ sourceConstraintComponent: $shaclPropertyFromRdf({
2809
+ context: _$options.context,
2810
+ graph: _$options.graph,
2811
+ focusResource: $resource,
2812
+ ignoreRdfType: true,
2813
+ preferredLanguages: _$options.preferredLanguages,
2814
+ propertySchema: ValidationResult.schema.properties.sourceConstraintComponent,
2815
+ typeFromRdfResourceValues: ($iriFromRdfResourceValues),
2816
+ }),
2817
+ sourceShape: $shaclPropertyFromRdf({
2818
+ context: _$options.context,
2819
+ graph: _$options.graph,
2820
+ focusResource: $resource,
2821
+ ignoreRdfType: true,
2822
+ preferredLanguages: _$options.preferredLanguages,
2823
+ propertySchema: ValidationResult.schema.properties.sourceShape,
2824
+ typeFromRdfResourceValues: $maybeFromRdfResourceValues($identifierFromRdfResourceValues),
2825
+ }),
2826
+ value: $shaclPropertyFromRdf({
2827
+ context: _$options.context,
2828
+ graph: _$options.graph,
2829
+ focusResource: $resource,
2830
+ ignoreRdfType: true,
2831
+ preferredLanguages: _$options.preferredLanguages,
2832
+ propertySchema: ValidationResult.schema.properties.value,
2833
+ typeFromRdfResourceValues: $maybeFromRdfResourceValues(($termFromRdfResourceValues)),
2834
+ }),
2835
+ }).chain((properties) => ValidationResult.create(properties)));
2836
+ ValidationResult.fromRdfResource = $wrap_FromRdfResourceFunction(ValidationResult._fromRdfResource);
2837
+ ValidationResult.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
2838
+ .toResource()
2839
+ .chain((resource) => ValidationResult.fromRdfResource(resource, options)));
2840
+ let Identifier;
2841
+ (function (Identifier) {
2842
+ Identifier.parse = $parseIdentifier;
2843
+ Identifier.stringify = NTriplesTerm.stringify;
2844
+ })(Identifier = ValidationResult.Identifier || (ValidationResult.Identifier = {}));
2845
+ function isValidationResult(object) {
2846
+ return object.$type === "ValidationResult";
2847
+ }
2848
+ ValidationResult.isValidationResult = isValidationResult;
2849
+ ValidationResult.schema = {
2850
+ fromRdfType: dataFactory.namedNode("http://www.w3.org/ns/shacl#ValidationResult"),
2851
+ properties: {
2852
+ $identifier: {
2853
+ kind: "Identifier",
2854
+ type: { kind: "Identifier" },
2855
+ },
2856
+ details: {
2857
+ kind: "Shacl",
2858
+ path: dataFactory.namedNode("http://www.w3.org/ns/shacl#detail"),
2859
+ type: {
2860
+ kind: "Set",
2861
+ itemType: {
2862
+ kind: "Term",
2863
+ types: ["BlankNode", "NamedNode", "Literal"],
2864
+ },
2865
+ },
2866
+ },
2867
+ focusNode: {
2868
+ kind: "Shacl",
2869
+ path: dataFactory.namedNode("http://www.w3.org/ns/shacl#focusNode"),
2870
+ type: {
2871
+ kind: "Term",
2872
+ types: ["BlankNode", "NamedNode", "Literal"],
2873
+ },
2874
+ },
2875
+ message: {
2876
+ kind: "Shacl",
2877
+ path: dataFactory.namedNode("http://www.w3.org/ns/shacl#resultMessage"),
2878
+ type: {
2879
+ kind: "Option",
2880
+ itemType: { kind: "String" },
2881
+ },
2882
+ },
2883
+ path: {
2884
+ kind: "Shacl",
2885
+ path: dataFactory.namedNode("http://www.w3.org/ns/shacl#resultPath"),
2886
+ get type() {
2887
+ return {
2888
+ kind: "Option",
2889
+ get itemType() {
2890
+ return $PropertyPath.schema;
2891
+ },
2892
+ };
2893
+ },
2894
+ },
2895
+ severity: {
2896
+ kind: "Shacl",
2897
+ path: dataFactory.namedNode("http://www.w3.org/ns/shacl#resultSeverity"),
2898
+ get type() {
2899
+ return {
2900
+ kind: "Iri",
2901
+ in: [
2902
+ dataFactory.namedNode("http://www.w3.org/ns/shacl#Info"),
2903
+ dataFactory.namedNode("http://www.w3.org/ns/shacl#Warning"),
2904
+ dataFactory.namedNode("http://www.w3.org/ns/shacl#Violation"),
2905
+ ],
2906
+ };
2907
+ },
2908
+ },
2909
+ sourceConstraintComponent: {
2910
+ kind: "Shacl",
2911
+ path: dataFactory.namedNode("http://www.w3.org/ns/shacl#sourceConstraintComponent"),
2912
+ type: { kind: "Iri" },
2913
+ },
2914
+ sourceShape: {
2915
+ kind: "Shacl",
2916
+ path: dataFactory.namedNode("http://www.w3.org/ns/shacl#sourceShape"),
2917
+ type: {
2918
+ kind: "Option",
2919
+ itemType: { kind: "Identifier" },
2920
+ },
2921
+ },
2922
+ value: {
2923
+ kind: "Shacl",
2924
+ path: dataFactory.namedNode("http://www.w3.org/ns/shacl#value"),
2925
+ type: {
2926
+ kind: "Option",
2927
+ itemType: {
2928
+ kind: "Term",
2929
+ types: ["BlankNode", "NamedNode", "Literal"],
2930
+ },
2931
+ },
2932
+ },
2933
+ },
2934
+ };
2935
+ ValidationResult._toRdfResource = (parameters) => {
2936
+ if (!parameters.ignoreRdfType) {
2937
+ parameters.resource.add($RdfVocabularies.rdf.type, dataFactory.namedNode("http://www.w3.org/ns/shacl#ValidationResult"), parameters.graph);
2938
+ }
2939
+ parameters.resource.add(ValidationResult.schema.properties.details.path, parameters.object.details.flatMap((item) => [item]), parameters.graph);
2940
+ parameters.resource.add(ValidationResult.schema.properties.focusNode.path, [parameters.object.focusNode], parameters.graph);
2941
+ parameters.resource.add(ValidationResult.schema.properties.message.path, parameters.object.message
2942
+ .toList()
2943
+ .flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
2944
+ parameters.resource.add(ValidationResult.schema.properties.path.path, parameters.object.path.toList().flatMap((value) => [
2945
+ $PropertyPath.toRdfResource(value, {
2946
+ graph: parameters.graph,
2947
+ resourceSet: parameters.resourceSet,
2948
+ }).identifier,
2949
+ ]), parameters.graph);
2950
+ parameters.resource.add(ValidationResult.schema.properties.severity.path, [parameters.object.severity], parameters.graph);
2951
+ parameters.resource.add(ValidationResult.schema.properties.sourceConstraintComponent.path, [parameters.object.sourceConstraintComponent], parameters.graph);
2952
+ parameters.resource.add(ValidationResult.schema.properties.sourceShape.path, parameters.object.sourceShape.toList(), parameters.graph);
2953
+ parameters.resource.add(ValidationResult.schema.properties.value.path, parameters.object.value.toList(), parameters.graph);
2954
+ return parameters.resource;
2955
+ };
2956
+ ValidationResult.toRdfResource = $wrap_ToRdfResourceFunction(ValidationResult._toRdfResource);
2957
+ ValidationResult.$toString = (_validationResult) => `ValidationResult(${JSON.stringify(ValidationResult.toStringRecord(_validationResult))})`;
2958
+ ValidationResult.toStringRecord = (_validationResult) => $compactRecord({ $identifier: _validationResult.$identifier().toString() });
2959
+ })(ValidationResult || (ValidationResult = {}));
2585
2960
  export var Shape;
2586
2961
  (function (Shape) {
2587
2962
  Shape.$toString = (value) => {
@@ -2837,16 +3212,20 @@ export var Shape;
2837
3212
  severity: {
2838
3213
  kind: "Shacl",
2839
3214
  path: dataFactory.namedNode("http://www.w3.org/ns/shacl#severity"),
2840
- type: {
2841
- kind: "Option",
2842
- itemType: {
2843
- kind: "Iri",
2844
- in: [
2845
- dataFactory.namedNode("http://www.w3.org/ns/shacl#Info"),
2846
- dataFactory.namedNode("http://www.w3.org/ns/shacl#Warning"),
2847
- dataFactory.namedNode("http://www.w3.org/ns/shacl#Violation"),
2848
- ],
2849
- },
3215
+ get type() {
3216
+ return {
3217
+ kind: "Option",
3218
+ get itemType() {
3219
+ return {
3220
+ kind: "Iri",
3221
+ in: [
3222
+ dataFactory.namedNode("http://www.w3.org/ns/shacl#Info"),
3223
+ dataFactory.namedNode("http://www.w3.org/ns/shacl#Warning"),
3224
+ dataFactory.namedNode("http://www.w3.org/ns/shacl#Violation"),
3225
+ ],
3226
+ };
3227
+ },
3228
+ };
2850
3229
  },
2851
3230
  },
2852
3231
  targetClasses: {
@@ -2929,6 +3308,12 @@ export var $Object;
2929
3308
  if (PropertyShape.isPropertyShape(value)) {
2930
3309
  return PropertyShape.$toString(value);
2931
3310
  }
3311
+ if (ValidationReport.isValidationReport(value)) {
3312
+ return ValidationReport.$toString(value);
3313
+ }
3314
+ if (ValidationResult.isValidationResult(value)) {
3315
+ return ValidationResult.$toString(value);
3316
+ }
2932
3317
  throw new Error("unable to serialize to string");
2933
3318
  };
2934
3319
  $Object.fromRdfResource = (resource, options) => NodeShape.fromRdfResource(resource, {
@@ -2946,6 +3331,14 @@ export var $Object;
2946
3331
  .altLazy(() => PropertyShape.fromRdfResource(resource, {
2947
3332
  ...options,
2948
3333
  ignoreRdfType: false,
3334
+ }))
3335
+ .altLazy(() => ValidationReport.fromRdfResource(resource, {
3336
+ ...options,
3337
+ ignoreRdfType: false,
3338
+ }))
3339
+ .altLazy(() => ValidationResult.fromRdfResource(resource, {
3340
+ ...options,
3341
+ ignoreRdfType: false,
2949
3342
  }));
2950
3343
  $Object.fromRdfResourceValues = ((values, options) => values.chainMap((value) => {
2951
3344
  const valueAsValues = value.toValues();
@@ -2964,6 +3357,14 @@ export var $Object;
2964
3357
  .altLazy(() => PropertyShape.fromRdfResourceValues(valueAsValues, {
2965
3358
  ...options,
2966
3359
  schema: options.schema.members["PropertyShape"].type,
3360
+ }))
3361
+ .altLazy(() => ValidationReport.fromRdfResourceValues(valueAsValues, {
3362
+ ...options,
3363
+ schema: options.schema.members["ValidationReport"].type,
3364
+ }))
3365
+ .altLazy(() => ValidationResult.fromRdfResourceValues(valueAsValues, {
3366
+ ...options,
3367
+ schema: options.schema.members["ValidationResult"].type,
2967
3368
  }))
2968
3369
  .chain((values) => values.head());
2969
3370
  }));
@@ -2985,25 +3386,16 @@ export var $Object;
2985
3386
  discriminantValues: ["PropertyShape"],
2986
3387
  type: PropertyShape.schema,
2987
3388
  },
2988
- },
2989
- properties: {
2990
- comment: {
2991
- kind: "Shacl",
2992
- path: dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#comment"),
2993
- type: {
2994
- kind: "Option",
2995
- itemType: { kind: "String" },
2996
- },
3389
+ ValidationReport: {
3390
+ discriminantValues: ["ValidationReport"],
3391
+ type: ValidationReport.schema,
2997
3392
  },
2998
- label: {
2999
- kind: "Shacl",
3000
- path: dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#label"),
3001
- type: {
3002
- kind: "Option",
3003
- itemType: { kind: "String" },
3004
- },
3393
+ ValidationResult: {
3394
+ discriminantValues: ["ValidationResult"],
3395
+ type: ValidationResult.schema,
3005
3396
  },
3006
3397
  },
3398
+ properties: {},
3007
3399
  };
3008
3400
  $Object.toRdfResource = (object, options) => {
3009
3401
  if (NodeShape.isNodeShape(object)) {
@@ -3018,6 +3410,12 @@ export var $Object;
3018
3410
  if (PropertyShape.isPropertyShape(object)) {
3019
3411
  return PropertyShape.toRdfResource(object, options);
3020
3412
  }
3413
+ if (ValidationReport.isValidationReport(object)) {
3414
+ return ValidationReport.toRdfResource(object, options);
3415
+ }
3416
+ if (ValidationResult.isValidationResult(object)) {
3417
+ return ValidationResult.toRdfResource(object, options);
3418
+ }
3021
3419
  throw new Error("unrecognized type");
3022
3420
  };
3023
3421
  $Object.toRdfResourceValues = ((value, _options) => {
@@ -3053,6 +3451,22 @@ export var $Object;
3053
3451
  }).identifier,
3054
3452
  ];
3055
3453
  }
3454
+ if (ValidationReport.isValidationReport(value)) {
3455
+ return [
3456
+ ValidationReport.toRdfResource(value, {
3457
+ graph: _options.graph,
3458
+ resourceSet: _options.resourceSet,
3459
+ }).identifier,
3460
+ ];
3461
+ }
3462
+ if (ValidationResult.isValidationResult(value)) {
3463
+ return [
3464
+ ValidationResult.toRdfResource(value, {
3465
+ graph: _options.graph,
3466
+ resourceSet: _options.resourceSet,
3467
+ }).identifier,
3468
+ ];
3469
+ }
3056
3470
  throw new Error("unable to serialize to RDF");
3057
3471
  });
3058
3472
  })($Object || ($Object = {}));
package/package.json CHANGED
@@ -45,5 +45,5 @@
45
45
  },
46
46
  "type": "module",
47
47
  "types": "./dist/index.d.ts",
48
- "version": "4.0.43"
48
+ "version": "4.0.44"
49
49
  }