@shaclmate/shacl-ast 4.0.50 → 4.0.52
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 +75 -0
- package/dist/AbstractShapesGraph.js +364 -0
- package/dist/Curie.d.ts +21 -0
- package/dist/Curie.js +29 -0
- package/dist/CurieFactory.d.ts +16 -0
- package/dist/CurieFactory.js +46 -0
- package/dist/IdentifierNodeKind.d.ts +6 -0
- package/dist/IdentifierNodeKind.js +2 -0
- package/dist/NodeKind.d.ts +11 -0
- package/dist/NodeKind.js +43 -0
- package/dist/ShapesGraph.d.ts +27 -0
- package/dist/ShapesGraph.js +49 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/shacl-ast.shaclmate.d.ts +4019 -0
- package/dist/shacl-ast.shaclmate.js +3265 -0
- package/dist/shacl-ast.shaclmate.ttl +2 -0
- package/package.json +17 -17
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { AbstractShapesGraph } from "./AbstractShapesGraph.js";
|
|
2
|
+
import * as generated from "./shacl-ast.shaclmate.js";
|
|
3
|
+
const typeFunctions = {
|
|
4
|
+
NodeShape: generated.NodeShape,
|
|
5
|
+
Ontology: generated.Ontology,
|
|
6
|
+
PropertyGroup: generated.PropertyGroup,
|
|
7
|
+
PropertyShape: generated.PropertyShape,
|
|
8
|
+
};
|
|
9
|
+
export class ShapesGraph extends AbstractShapesGraph {
|
|
10
|
+
typeFunctions = typeFunctions;
|
|
11
|
+
static builder() {
|
|
12
|
+
return new ShapesGraph.Builder();
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
(function (ShapesGraph) {
|
|
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
|
+
}
|
|
46
|
+
}
|
|
47
|
+
ShapesGraph.Builder = Builder;
|
|
48
|
+
})(ShapesGraph || (ShapesGraph = {}));
|
|
49
|
+
//# sourceMappingURL=ShapesGraph.js.map
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./AbstractShapesGraph.js";
|
|
2
|
+
export * from "./Curie.js";
|
|
3
|
+
export * from "./CurieFactory.js";
|
|
4
|
+
export * from "./IdentifierNodeKind.js";
|
|
5
|
+
export * from "./NodeKind.js";
|
|
6
|
+
export * from "./ShapesGraph.js";
|
|
7
|
+
export { NodeShape, Ontology, PropertyGroup, PropertyShape, Shape, ValidationReport, ValidationResult, } from "./shacl-ast.shaclmate.js";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./AbstractShapesGraph.js";
|
|
2
|
+
export * from "./Curie.js";
|
|
3
|
+
export * from "./CurieFactory.js";
|
|
4
|
+
export * from "./IdentifierNodeKind.js";
|
|
5
|
+
export * from "./NodeKind.js";
|
|
6
|
+
export * from "./ShapesGraph.js";
|
|
7
|
+
export { NodeShape, Ontology, PropertyGroup, PropertyShape, Shape, ValidationReport, ValidationResult, } from "./shacl-ast.shaclmate.js";
|
|
8
|
+
//# sourceMappingURL=index.js.map
|