@shaclmate/shacl-ast 4.0.71 → 4.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AbstractShapesGraph.d.ts +7 -43
- package/dist/AbstractShapesGraph.js +207 -283
- package/dist/ShapesGraph.d.ts +8 -16
- package/dist/ShapesGraph.js +5 -36
- package/dist/shacl-ast.shaclmate.d.ts +41 -70
- package/dist/shacl-ast.shaclmate.js +180 -742
- package/package.json +4 -5
package/dist/ShapesGraph.js
CHANGED
|
@@ -8,42 +8,11 @@ const typeFunctions = {
|
|
|
8
8
|
};
|
|
9
9
|
export class ShapesGraph extends AbstractShapesGraph {
|
|
10
10
|
typeFunctions = typeFunctions;
|
|
11
|
-
static
|
|
12
|
-
return new ShapesGraph
|
|
11
|
+
static fromDataset(dataset, options) {
|
|
12
|
+
return AbstractShapesGraph._fromDataset(dataset, options, new ShapesGraph());
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
(
|
|
16
|
-
class Builder extends AbstractShapesGraph.AbstractBuilder {
|
|
17
|
-
typeFunctions = typeFunctions;
|
|
18
|
-
build() {
|
|
19
|
-
return new ShapesGraph({
|
|
20
|
-
nodeShapesByIdentifier: this.nodeShapesByIdentifier,
|
|
21
|
-
ontologiesByIdentifier: this.ontologiesByIdentifier,
|
|
22
|
-
propertyGroupsByIdentifier: this.propertyGroupsByIdentifier,
|
|
23
|
-
propertyShapesByIdentifier: this.propertyShapesByIdentifier,
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
nodeShape(parameters) {
|
|
27
|
-
const nodeShape = generated.NodeShape.createUnsafe(parameters);
|
|
28
|
-
this.add(nodeShape);
|
|
29
|
-
return nodeShape;
|
|
30
|
-
}
|
|
31
|
-
ontology(parameters) {
|
|
32
|
-
const ontology = generated.Ontology.createUnsafe(parameters);
|
|
33
|
-
this.add(ontology);
|
|
34
|
-
return ontology;
|
|
35
|
-
}
|
|
36
|
-
propertyGroup(parameters) {
|
|
37
|
-
const propertyGroup = generated.PropertyGroup.createUnsafe(parameters);
|
|
38
|
-
this.add(propertyGroup);
|
|
39
|
-
return propertyGroup;
|
|
40
|
-
}
|
|
41
|
-
propertyShape(parameters) {
|
|
42
|
-
const propertyShape = generated.PropertyShape.createUnsafe(parameters);
|
|
43
|
-
this.add(propertyShape);
|
|
44
|
-
return propertyShape;
|
|
45
|
-
}
|
|
14
|
+
static fromShapes(...objects) {
|
|
15
|
+
return AbstractShapesGraph._fromShapes(new ShapesGraph(), ...objects);
|
|
46
16
|
}
|
|
47
|
-
|
|
48
|
-
})(ShapesGraph || (ShapesGraph = {}));
|
|
17
|
+
}
|
|
49
18
|
//# sourceMappingURL=ShapesGraph.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BlankNode, Literal, NamedNode, Quad_Graph, Variable } from "@rdfjs/types";
|
|
2
|
-
import { PropertyPath as RdfxResourcePropertyPath, Resource
|
|
2
|
+
import { PropertyPath as RdfxResourcePropertyPath, Resource } from "@rdfx/resource";
|
|
3
3
|
import { NTriplesTerm } from "@rdfx/string";
|
|
4
4
|
import { Either, Maybe } from "purify-ts";
|
|
5
5
|
type $_FromRdfResourceFunction<T> = (resource: Resource, options: {
|
|
@@ -8,15 +8,6 @@ type $_FromRdfResourceFunction<T> = (resource: Resource, options: {
|
|
|
8
8
|
ignoreRdfType: boolean;
|
|
9
9
|
preferredLanguages: readonly string[] | undefined;
|
|
10
10
|
}) => Either<Error, T>;
|
|
11
|
-
export type $_ToRdfResourceFunction<IdentifierT extends Resource.Identifier, ObjectT extends {
|
|
12
|
-
$identifier: () => IdentifierT;
|
|
13
|
-
}> = (parameters: {
|
|
14
|
-
graph: Exclude<Quad_Graph, Variable> | undefined;
|
|
15
|
-
ignoreRdfType: boolean;
|
|
16
|
-
object: ObjectT;
|
|
17
|
-
resource: Resource<IdentifierT>;
|
|
18
|
-
resourceSet: ResourceSet;
|
|
19
|
-
}) => void;
|
|
20
11
|
export type $FromRdfResourceFunction<T> = (resource: Resource, options?: {
|
|
21
12
|
context?: unknown;
|
|
22
13
|
graph?: Exclude<Quad_Graph, Variable>;
|
|
@@ -38,7 +29,6 @@ export declare namespace $PropertyPath {
|
|
|
38
29
|
const fromRdfResourceValues: $FromRdfResourceValuesFunction<$PropertyPath, object>;
|
|
39
30
|
const schema: Readonly<object>;
|
|
40
31
|
type Schema = typeof schema;
|
|
41
|
-
const toRdfResource: $ToRdfResourceFunction<$PropertyPath>;
|
|
42
32
|
const $toString: typeof RdfxResourcePropertyPath.toString;
|
|
43
33
|
}
|
|
44
34
|
export interface $ShaclPropertySchema<TypeSchemaT> {
|
|
@@ -46,18 +36,6 @@ export interface $ShaclPropertySchema<TypeSchemaT> {
|
|
|
46
36
|
readonly path: $PropertyPath;
|
|
47
37
|
readonly type: TypeSchemaT;
|
|
48
38
|
}
|
|
49
|
-
export type $ToRdfResourceFunction<ObjectT, IdentifierT extends Resource.Identifier = Resource.Identifier> = (object: ObjectT, options?: {
|
|
50
|
-
graph?: Exclude<Quad_Graph, Variable>;
|
|
51
|
-
ignoreRdfType?: boolean;
|
|
52
|
-
resourceSet?: ResourceSet;
|
|
53
|
-
}) => Resource<IdentifierT>;
|
|
54
|
-
export type $ToRdfResourceValuesFunction<ValueT, ReturnT extends BlankNode | Literal | NamedNode = BlankNode | Literal | NamedNode> = (value: ValueT, options: {
|
|
55
|
-
graph?: Exclude<Quad_Graph, Variable>;
|
|
56
|
-
ignoreRdfType?: boolean;
|
|
57
|
-
propertyPath: $PropertyPath;
|
|
58
|
-
resource: Resource;
|
|
59
|
-
resourceSet: ResourceSet;
|
|
60
|
-
}) => ReturnT[];
|
|
61
39
|
export type NodeShape = {
|
|
62
40
|
readonly $identifier: () => NodeShape.Identifier;
|
|
63
41
|
readonly $type: "NodeShape";
|
|
@@ -97,6 +75,8 @@ export type NodeShape = {
|
|
|
97
75
|
readonly xone: Maybe<readonly (BlankNode | NamedNode)[]>;
|
|
98
76
|
};
|
|
99
77
|
export declare namespace NodeShape {
|
|
78
|
+
const _fromRdfResource: $_FromRdfResourceFunction<NodeShape>;
|
|
79
|
+
const $toString: (_nodeShape: NodeShape) => string;
|
|
100
80
|
const create: (parameters?: {
|
|
101
81
|
readonly $identifier?: (() => NodeShape.Identifier) | BlankNode | NamedNode | string;
|
|
102
82
|
readonly and?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
|
|
@@ -125,7 +105,7 @@ export declare namespace NodeShape {
|
|
|
125
105
|
readonly or?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
|
|
126
106
|
readonly pattern?: string | Maybe<string>;
|
|
127
107
|
readonly properties?: BlankNode | NamedNode | string | readonly (BlankNode | NamedNode | string | undefined)[];
|
|
128
|
-
readonly severity?:
|
|
108
|
+
readonly severity?: Severity["value"] | Severity | Maybe<Severity>;
|
|
129
109
|
readonly subClassOf?: string | NamedNode | readonly (string | NamedNode)[];
|
|
130
110
|
readonly targetClasses?: string | NamedNode | readonly (string | NamedNode)[];
|
|
131
111
|
readonly targetNodes?: (NamedNode | Literal) | readonly (NamedNode | Literal)[];
|
|
@@ -162,7 +142,7 @@ export declare namespace NodeShape {
|
|
|
162
142
|
readonly or?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
|
|
163
143
|
readonly pattern?: string | Maybe<string>;
|
|
164
144
|
readonly properties?: BlankNode | NamedNode | string | readonly (BlankNode | NamedNode | string | undefined)[];
|
|
165
|
-
readonly severity?:
|
|
145
|
+
readonly severity?: Severity["value"] | Severity | Maybe<Severity>;
|
|
166
146
|
readonly subClassOf?: string | NamedNode | readonly (string | NamedNode)[];
|
|
167
147
|
readonly targetClasses?: string | NamedNode | readonly (string | NamedNode)[];
|
|
168
148
|
readonly targetNodes?: (NamedNode | Literal) | readonly (NamedNode | Literal)[];
|
|
@@ -171,7 +151,6 @@ export declare namespace NodeShape {
|
|
|
171
151
|
readonly types?: string | NamedNode | readonly (string | NamedNode)[];
|
|
172
152
|
readonly xone?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
|
|
173
153
|
}): NodeShape;
|
|
174
|
-
const _fromRdfResource: $_FromRdfResourceFunction<NodeShape>;
|
|
175
154
|
const fromRdfResource: $FromRdfResourceFunction<NodeShape>;
|
|
176
155
|
const fromRdfResourceValues: $FromRdfResourceValuesFunction<NodeShape, NodeShape.Schema>;
|
|
177
156
|
type Identifier = BlankNode | NamedNode;
|
|
@@ -478,7 +457,8 @@ export declare namespace NodeShape {
|
|
|
478
457
|
kind: "Option";
|
|
479
458
|
readonly itemType: {
|
|
480
459
|
kind: "Iri";
|
|
481
|
-
in:
|
|
460
|
+
in: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation">[];
|
|
461
|
+
inValues: readonly ["http://www.w3.org/ns/shacl#Info", "http://www.w3.org/ns/shacl#Warning", "http://www.w3.org/ns/shacl#Violation"];
|
|
482
462
|
};
|
|
483
463
|
};
|
|
484
464
|
};
|
|
@@ -560,9 +540,6 @@ export declare namespace NodeShape {
|
|
|
560
540
|
readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#NodeShape">];
|
|
561
541
|
};
|
|
562
542
|
type Schema = typeof schema;
|
|
563
|
-
const _toRdfResource: $_ToRdfResourceFunction<NodeShape.Identifier, NodeShape>;
|
|
564
|
-
const toRdfResource: $ToRdfResourceFunction<NodeShape, Identifier>;
|
|
565
|
-
const $toString: (_nodeShape: NodeShape) => string;
|
|
566
543
|
const toStringRecord: (_nodeShape: NodeShape) => Record<string, string>;
|
|
567
544
|
}
|
|
568
545
|
export type Ontology = {
|
|
@@ -572,6 +549,8 @@ export type Ontology = {
|
|
|
572
549
|
readonly label: Maybe<string>;
|
|
573
550
|
};
|
|
574
551
|
export declare namespace Ontology {
|
|
552
|
+
const _fromRdfResource: $_FromRdfResourceFunction<Ontology>;
|
|
553
|
+
const $toString: (_ontology: Ontology) => string;
|
|
575
554
|
const create: (parameters?: {
|
|
576
555
|
readonly $identifier?: (() => Ontology.Identifier) | BlankNode | NamedNode | string;
|
|
577
556
|
readonly comment?: string | Maybe<string>;
|
|
@@ -582,7 +561,6 @@ export declare namespace Ontology {
|
|
|
582
561
|
readonly comment?: string | Maybe<string>;
|
|
583
562
|
readonly label?: string | Maybe<string>;
|
|
584
563
|
}): Ontology;
|
|
585
|
-
const _fromRdfResource: $_FromRdfResourceFunction<Ontology>;
|
|
586
564
|
const fromRdfResource: $FromRdfResourceFunction<Ontology>;
|
|
587
565
|
const fromRdfResourceValues: $FromRdfResourceValuesFunction<Ontology, Ontology.Schema>;
|
|
588
566
|
type Identifier = BlankNode | NamedNode;
|
|
@@ -628,9 +606,6 @@ export declare namespace Ontology {
|
|
|
628
606
|
readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2002/07/owl#Ontology">];
|
|
629
607
|
};
|
|
630
608
|
type Schema = typeof schema;
|
|
631
|
-
const _toRdfResource: $_ToRdfResourceFunction<Ontology.Identifier, Ontology>;
|
|
632
|
-
const toRdfResource: $ToRdfResourceFunction<Ontology, Identifier>;
|
|
633
|
-
const $toString: (_ontology: Ontology) => string;
|
|
634
609
|
const toStringRecord: (_ontology: Ontology) => Record<string, string>;
|
|
635
610
|
}
|
|
636
611
|
export type PropertyGroup = {
|
|
@@ -640,6 +615,8 @@ export type PropertyGroup = {
|
|
|
640
615
|
readonly label: Maybe<string>;
|
|
641
616
|
};
|
|
642
617
|
export declare namespace PropertyGroup {
|
|
618
|
+
const _fromRdfResource: $_FromRdfResourceFunction<PropertyGroup>;
|
|
619
|
+
const $toString: (_propertyGroup: PropertyGroup) => string;
|
|
643
620
|
const create: (parameters?: {
|
|
644
621
|
readonly $identifier?: (() => PropertyGroup.Identifier) | BlankNode | NamedNode | string;
|
|
645
622
|
readonly comment?: string | Maybe<string>;
|
|
@@ -650,7 +627,6 @@ export declare namespace PropertyGroup {
|
|
|
650
627
|
readonly comment?: string | Maybe<string>;
|
|
651
628
|
readonly label?: string | Maybe<string>;
|
|
652
629
|
}): PropertyGroup;
|
|
653
|
-
const _fromRdfResource: $_FromRdfResourceFunction<PropertyGroup>;
|
|
654
630
|
const fromRdfResource: $FromRdfResourceFunction<PropertyGroup>;
|
|
655
631
|
const fromRdfResourceValues: $FromRdfResourceValuesFunction<PropertyGroup, PropertyGroup.Schema>;
|
|
656
632
|
type Identifier = BlankNode | NamedNode;
|
|
@@ -696,9 +672,6 @@ export declare namespace PropertyGroup {
|
|
|
696
672
|
readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#PropertyGroup">];
|
|
697
673
|
};
|
|
698
674
|
type Schema = typeof schema;
|
|
699
|
-
const _toRdfResource: $_ToRdfResourceFunction<PropertyGroup.Identifier, PropertyGroup>;
|
|
700
|
-
const toRdfResource: $ToRdfResourceFunction<PropertyGroup, Identifier>;
|
|
701
|
-
const $toString: (_propertyGroup: PropertyGroup) => string;
|
|
702
675
|
const toStringRecord: (_propertyGroup: PropertyGroup) => Record<string, string>;
|
|
703
676
|
}
|
|
704
677
|
export type PropertyShape = {
|
|
@@ -752,6 +725,8 @@ export type PropertyShape = {
|
|
|
752
725
|
readonly xone: Maybe<readonly (BlankNode | NamedNode)[]>;
|
|
753
726
|
};
|
|
754
727
|
export declare namespace PropertyShape {
|
|
728
|
+
const _fromRdfResource: $_FromRdfResourceFunction<PropertyShape>;
|
|
729
|
+
const $toString: (_propertyShape: PropertyShape) => string;
|
|
755
730
|
const create: (parameters: {
|
|
756
731
|
readonly $identifier?: (() => PropertyShape.Identifier) | BlankNode | NamedNode | string;
|
|
757
732
|
readonly and?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
|
|
@@ -793,7 +768,7 @@ export declare namespace PropertyShape {
|
|
|
793
768
|
readonly qualifiedMinCount?: bigint | Maybe<bigint>;
|
|
794
769
|
readonly qualifiedValueShape?: BlankNode | NamedNode | string | Maybe<BlankNode | NamedNode>;
|
|
795
770
|
readonly qualifiedValueShapesDisjoint?: boolean | Maybe<boolean>;
|
|
796
|
-
readonly severity?:
|
|
771
|
+
readonly severity?: Severity["value"] | Severity | Maybe<Severity>;
|
|
797
772
|
readonly targetClasses?: string | NamedNode | readonly (string | NamedNode)[];
|
|
798
773
|
readonly targetNodes?: (NamedNode | Literal) | readonly (NamedNode | Literal)[];
|
|
799
774
|
readonly targetObjectsOf?: string | NamedNode | readonly (string | NamedNode)[];
|
|
@@ -842,7 +817,7 @@ export declare namespace PropertyShape {
|
|
|
842
817
|
readonly qualifiedMinCount?: bigint | Maybe<bigint>;
|
|
843
818
|
readonly qualifiedValueShape?: BlankNode | NamedNode | string | Maybe<BlankNode | NamedNode>;
|
|
844
819
|
readonly qualifiedValueShapesDisjoint?: boolean | Maybe<boolean>;
|
|
845
|
-
readonly severity?:
|
|
820
|
+
readonly severity?: Severity["value"] | Severity | Maybe<Severity>;
|
|
846
821
|
readonly targetClasses?: string | NamedNode | readonly (string | NamedNode)[];
|
|
847
822
|
readonly targetNodes?: (NamedNode | Literal) | readonly (NamedNode | Literal)[];
|
|
848
823
|
readonly targetObjectsOf?: string | NamedNode | readonly (string | NamedNode)[];
|
|
@@ -850,7 +825,6 @@ export declare namespace PropertyShape {
|
|
|
850
825
|
readonly uniqueLang?: boolean | Maybe<boolean>;
|
|
851
826
|
readonly xone?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
|
|
852
827
|
}): PropertyShape;
|
|
853
|
-
const _fromRdfResource: $_FromRdfResourceFunction<PropertyShape>;
|
|
854
828
|
const fromRdfResource: $FromRdfResourceFunction<PropertyShape>;
|
|
855
829
|
const fromRdfResourceValues: $FromRdfResourceValuesFunction<PropertyShape, PropertyShape.Schema>;
|
|
856
830
|
type Identifier = BlankNode | NamedNode;
|
|
@@ -1280,7 +1254,8 @@ export declare namespace PropertyShape {
|
|
|
1280
1254
|
kind: "Option";
|
|
1281
1255
|
readonly itemType: {
|
|
1282
1256
|
kind: "Iri";
|
|
1283
|
-
in:
|
|
1257
|
+
in: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation">[];
|
|
1258
|
+
inValues: readonly ["http://www.w3.org/ns/shacl#Info", "http://www.w3.org/ns/shacl#Warning", "http://www.w3.org/ns/shacl#Violation"];
|
|
1284
1259
|
};
|
|
1285
1260
|
};
|
|
1286
1261
|
};
|
|
@@ -1352,12 +1327,16 @@ export declare namespace PropertyShape {
|
|
|
1352
1327
|
readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#PropertyShape">];
|
|
1353
1328
|
};
|
|
1354
1329
|
type Schema = typeof schema;
|
|
1355
|
-
const _toRdfResource: $_ToRdfResourceFunction<PropertyShape.Identifier, PropertyShape>;
|
|
1356
|
-
const toRdfResource: $ToRdfResourceFunction<PropertyShape, Identifier>;
|
|
1357
|
-
const $toString: (_propertyShape: PropertyShape) => string;
|
|
1358
1330
|
const toStringRecord: (_propertyShape: PropertyShape) => Record<string, string>;
|
|
1359
1331
|
}
|
|
1360
|
-
export type Severity = NamedNode<
|
|
1332
|
+
export type Severity = NamedNode<(typeof Severity.schema)["inValues"][number]>;
|
|
1333
|
+
export declare namespace Severity {
|
|
1334
|
+
const schema: {
|
|
1335
|
+
kind: "Iri";
|
|
1336
|
+
in: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation">[];
|
|
1337
|
+
inValues: readonly ["http://www.w3.org/ns/shacl#Info", "http://www.w3.org/ns/shacl#Warning", "http://www.w3.org/ns/shacl#Violation"];
|
|
1338
|
+
};
|
|
1339
|
+
}
|
|
1361
1340
|
export type ValidationReport = {
|
|
1362
1341
|
readonly $identifier: () => ValidationReport.Identifier;
|
|
1363
1342
|
readonly $type: "ValidationReport";
|
|
@@ -1366,6 +1345,8 @@ export type ValidationReport = {
|
|
|
1366
1345
|
readonly shapesGraphWellFormed: Maybe<boolean>;
|
|
1367
1346
|
};
|
|
1368
1347
|
export declare namespace ValidationReport {
|
|
1348
|
+
const _fromRdfResource: $_FromRdfResourceFunction<ValidationReport>;
|
|
1349
|
+
const $toString: (_validationReport: ValidationReport) => string;
|
|
1369
1350
|
const create: (parameters: {
|
|
1370
1351
|
readonly $identifier?: (() => ValidationReport.Identifier) | BlankNode | NamedNode | string;
|
|
1371
1352
|
readonly conforms: boolean;
|
|
@@ -1378,7 +1359,6 @@ export declare namespace ValidationReport {
|
|
|
1378
1359
|
readonly results?: ValidationResult | readonly ValidationResult[];
|
|
1379
1360
|
readonly shapesGraphWellFormed?: boolean | Maybe<boolean>;
|
|
1380
1361
|
}): ValidationReport;
|
|
1381
|
-
const _fromRdfResource: $_FromRdfResourceFunction<ValidationReport>;
|
|
1382
1362
|
const fromRdfResource: $FromRdfResourceFunction<ValidationReport>;
|
|
1383
1363
|
const fromRdfResourceValues: $FromRdfResourceValuesFunction<ValidationReport, ValidationReport.Schema>;
|
|
1384
1364
|
type Identifier = BlankNode | NamedNode;
|
|
@@ -1467,7 +1447,8 @@ export declare namespace ValidationReport {
|
|
|
1467
1447
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#resultSeverity">;
|
|
1468
1448
|
readonly type: {
|
|
1469
1449
|
kind: "Iri";
|
|
1470
|
-
in:
|
|
1450
|
+
in: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation">[];
|
|
1451
|
+
inValues: readonly ["http://www.w3.org/ns/shacl#Info", "http://www.w3.org/ns/shacl#Warning", "http://www.w3.org/ns/shacl#Violation"];
|
|
1471
1452
|
};
|
|
1472
1453
|
};
|
|
1473
1454
|
readonly sourceConstraintComponent: {
|
|
@@ -1517,9 +1498,6 @@ export declare namespace ValidationReport {
|
|
|
1517
1498
|
readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationReport">];
|
|
1518
1499
|
};
|
|
1519
1500
|
type Schema = typeof schema;
|
|
1520
|
-
const _toRdfResource: $_ToRdfResourceFunction<ValidationReport.Identifier, ValidationReport>;
|
|
1521
|
-
const toRdfResource: $ToRdfResourceFunction<ValidationReport, Identifier>;
|
|
1522
|
-
const $toString: (_validationReport: ValidationReport) => string;
|
|
1523
1501
|
const toStringRecord: (_validationReport: ValidationReport) => Record<string, string>;
|
|
1524
1502
|
}
|
|
1525
1503
|
export type ValidationResult = {
|
|
@@ -1535,13 +1513,15 @@ export type ValidationResult = {
|
|
|
1535
1513
|
readonly value: Maybe<BlankNode | NamedNode | Literal>;
|
|
1536
1514
|
};
|
|
1537
1515
|
export declare namespace ValidationResult {
|
|
1516
|
+
const _fromRdfResource: $_FromRdfResourceFunction<ValidationResult>;
|
|
1517
|
+
const $toString: (_validationResult: ValidationResult) => string;
|
|
1538
1518
|
const create: (parameters: {
|
|
1539
1519
|
readonly $identifier?: (() => ValidationResult.Identifier) | BlankNode | NamedNode | string;
|
|
1540
1520
|
readonly details?: (BlankNode | NamedNode | Literal) | readonly (BlankNode | NamedNode | Literal)[];
|
|
1541
1521
|
readonly focusNode: BlankNode | NamedNode | Literal;
|
|
1542
1522
|
readonly message?: string | Maybe<string>;
|
|
1543
1523
|
readonly path?: $PropertyPath | Maybe<$PropertyPath>;
|
|
1544
|
-
readonly severity:
|
|
1524
|
+
readonly severity: Severity["value"] | Severity;
|
|
1545
1525
|
readonly sourceConstraintComponent: string | NamedNode;
|
|
1546
1526
|
readonly sourceShape?: BlankNode | NamedNode | string | Maybe<BlankNode | NamedNode>;
|
|
1547
1527
|
readonly value?: (BlankNode | NamedNode | Literal) | Maybe<BlankNode | NamedNode | Literal>;
|
|
@@ -1552,12 +1532,11 @@ export declare namespace ValidationResult {
|
|
|
1552
1532
|
readonly focusNode: BlankNode | NamedNode | Literal;
|
|
1553
1533
|
readonly message?: string | Maybe<string>;
|
|
1554
1534
|
readonly path?: $PropertyPath | Maybe<$PropertyPath>;
|
|
1555
|
-
readonly severity:
|
|
1535
|
+
readonly severity: Severity["value"] | Severity;
|
|
1556
1536
|
readonly sourceConstraintComponent: string | NamedNode;
|
|
1557
1537
|
readonly sourceShape?: BlankNode | NamedNode | string | Maybe<BlankNode | NamedNode>;
|
|
1558
1538
|
readonly value?: (BlankNode | NamedNode | Literal) | Maybe<BlankNode | NamedNode | Literal>;
|
|
1559
1539
|
}): ValidationResult;
|
|
1560
|
-
const _fromRdfResource: $_FromRdfResourceFunction<ValidationResult>;
|
|
1561
1540
|
const fromRdfResource: $FromRdfResourceFunction<ValidationResult>;
|
|
1562
1541
|
const fromRdfResourceValues: $FromRdfResourceValuesFunction<ValidationResult, ValidationResult.Schema>;
|
|
1563
1542
|
type Identifier = BlankNode | NamedNode;
|
|
@@ -1621,7 +1600,8 @@ export declare namespace ValidationResult {
|
|
|
1621
1600
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#resultSeverity">;
|
|
1622
1601
|
readonly type: {
|
|
1623
1602
|
kind: "Iri";
|
|
1624
|
-
in:
|
|
1603
|
+
in: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation">[];
|
|
1604
|
+
inValues: readonly ["http://www.w3.org/ns/shacl#Info", "http://www.w3.org/ns/shacl#Warning", "http://www.w3.org/ns/shacl#Violation"];
|
|
1625
1605
|
};
|
|
1626
1606
|
};
|
|
1627
1607
|
readonly sourceConstraintComponent: {
|
|
@@ -1656,9 +1636,6 @@ export declare namespace ValidationResult {
|
|
|
1656
1636
|
readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationResult">];
|
|
1657
1637
|
};
|
|
1658
1638
|
type Schema = typeof schema;
|
|
1659
|
-
const _toRdfResource: $_ToRdfResourceFunction<ValidationResult.Identifier, ValidationResult>;
|
|
1660
|
-
const toRdfResource: $ToRdfResourceFunction<ValidationResult, Identifier>;
|
|
1661
|
-
const $toString: (_validationResult: ValidationResult) => string;
|
|
1662
1639
|
const toStringRecord: (_validationResult: ValidationResult) => Record<string, string>;
|
|
1663
1640
|
}
|
|
1664
1641
|
export type Shape = NodeShape | PropertyShape;
|
|
@@ -1975,7 +1952,8 @@ export declare namespace Shape {
|
|
|
1975
1952
|
kind: "Option";
|
|
1976
1953
|
readonly itemType: {
|
|
1977
1954
|
kind: "Iri";
|
|
1978
|
-
in:
|
|
1955
|
+
in: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation">[];
|
|
1956
|
+
inValues: readonly ["http://www.w3.org/ns/shacl#Info", "http://www.w3.org/ns/shacl#Warning", "http://www.w3.org/ns/shacl#Violation"];
|
|
1979
1957
|
};
|
|
1980
1958
|
};
|
|
1981
1959
|
};
|
|
@@ -2480,7 +2458,8 @@ export declare namespace Shape {
|
|
|
2480
2458
|
kind: "Option";
|
|
2481
2459
|
readonly itemType: {
|
|
2482
2460
|
kind: "Iri";
|
|
2483
|
-
in:
|
|
2461
|
+
in: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation">[];
|
|
2462
|
+
inValues: readonly ["http://www.w3.org/ns/shacl#Info", "http://www.w3.org/ns/shacl#Warning", "http://www.w3.org/ns/shacl#Violation"];
|
|
2484
2463
|
};
|
|
2485
2464
|
};
|
|
2486
2465
|
};
|
|
@@ -2806,7 +2785,8 @@ export declare namespace Shape {
|
|
|
2806
2785
|
kind: "Option";
|
|
2807
2786
|
readonly itemType: {
|
|
2808
2787
|
kind: "Iri";
|
|
2809
|
-
in:
|
|
2788
|
+
in: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation">[];
|
|
2789
|
+
inValues: readonly ["http://www.w3.org/ns/shacl#Info", "http://www.w3.org/ns/shacl#Warning", "http://www.w3.org/ns/shacl#Violation"];
|
|
2810
2790
|
};
|
|
2811
2791
|
};
|
|
2812
2792
|
};
|
|
@@ -2866,18 +2846,9 @@ export declare namespace Shape {
|
|
|
2866
2846
|
};
|
|
2867
2847
|
};
|
|
2868
2848
|
};
|
|
2869
|
-
const toRdfResource: $ToRdfResourceFunction<Shape>;
|
|
2870
|
-
const toRdfResourceValues: (value: Shape, _options: {
|
|
2871
|
-
graph?: Exclude<Quad_Graph, Variable>;
|
|
2872
|
-
ignoreRdfType?: boolean;
|
|
2873
|
-
propertyPath: $PropertyPath;
|
|
2874
|
-
resource: Resource;
|
|
2875
|
-
resourceSet: ResourceSet;
|
|
2876
|
-
}) => (BlankNode | NamedNode)[];
|
|
2877
2849
|
}
|
|
2878
2850
|
export type $Object = NodeShape | Ontology | PropertyGroup | PropertyShape | ValidationReport | ValidationResult;
|
|
2879
2851
|
export declare namespace $Object {
|
|
2880
|
-
const toRdfResource: $ToRdfResourceFunction<$Object>;
|
|
2881
2852
|
function $toString(object: $Object): string;
|
|
2882
2853
|
}
|
|
2883
2854
|
export {};
|