@shaclmate/shacl-ast 2.0.15 → 2.0.17

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.
Files changed (29) hide show
  1. package/{NodeShape.js → dist/NodeShape.js} +2 -0
  2. package/{Ontology.js → dist/Ontology.js} +1 -0
  3. package/{PropertyGroup.js → dist/PropertyGroup.js} +1 -0
  4. package/{PropertyShape.js → dist/PropertyShape.js} +2 -0
  5. package/{RdfjsShapesGraph.js → dist/RdfjsShapesGraph.js} +11 -0
  6. package/{Shape.js → dist/Shape.js} +4 -0
  7. package/{generated.d.ts → dist/generated.d.ts} +1 -1
  8. package/{generated.js → dist/generated.js} +1 -1
  9. package/package.json +11 -7
  10. /package/{Factory.d.ts → dist/Factory.d.ts} +0 -0
  11. /package/{Factory.js → dist/Factory.js} +0 -0
  12. /package/{NodeKind.d.ts → dist/NodeKind.d.ts} +0 -0
  13. /package/{NodeKind.js → dist/NodeKind.js} +0 -0
  14. /package/{NodeShape.d.ts → dist/NodeShape.d.ts} +0 -0
  15. /package/{Ontology.d.ts → dist/Ontology.d.ts} +0 -0
  16. /package/{OntologyLike.d.ts → dist/OntologyLike.d.ts} +0 -0
  17. /package/{OntologyLike.js → dist/OntologyLike.js} +0 -0
  18. /package/{PropertyGroup.d.ts → dist/PropertyGroup.d.ts} +0 -0
  19. /package/{PropertyPath.d.ts → dist/PropertyPath.d.ts} +0 -0
  20. /package/{PropertyPath.js → dist/PropertyPath.js} +0 -0
  21. /package/{PropertyShape.d.ts → dist/PropertyShape.d.ts} +0 -0
  22. /package/{RdfjsShapesGraph.d.ts → dist/RdfjsShapesGraph.d.ts} +0 -0
  23. /package/{Shape.d.ts → dist/Shape.d.ts} +0 -0
  24. /package/{ShapesGraph.d.ts → dist/ShapesGraph.d.ts} +0 -0
  25. /package/{ShapesGraph.js → dist/ShapesGraph.js} +0 -0
  26. /package/{defaultFactory.d.ts → dist/defaultFactory.d.ts} +0 -0
  27. /package/{defaultFactory.js → dist/defaultFactory.js} +0 -0
  28. /package/{index.d.ts → dist/index.d.ts} +0 -0
  29. /package/{index.js → dist/index.js} +0 -0
@@ -1,5 +1,6 @@
1
1
  import { Shape } from "./Shape.js";
2
2
  export class NodeShape extends Shape {
3
+ constraints;
3
4
  constructor(generatedShaclCoreNodeShape, shapesGraph) {
4
5
  super(generatedShaclCoreNodeShape, shapesGraph);
5
6
  this.constraints = new NodeShape.Constraints(generatedShaclCoreNodeShape, shapesGraph);
@@ -10,6 +11,7 @@ export class NodeShape extends Shape {
10
11
  }
11
12
  (function (NodeShape) {
12
13
  class Constraints extends Shape.Constraints {
14
+ generatedShaclCoreNodeShape;
13
15
  constructor(generatedShaclCoreNodeShape, shapesGraph) {
14
16
  super(generatedShaclCoreNodeShape, shapesGraph);
15
17
  this.generatedShaclCoreNodeShape = generatedShaclCoreNodeShape;
@@ -1,4 +1,5 @@
1
1
  export class Ontology {
2
+ generatedOntology;
2
3
  constructor(generatedOntology) {
3
4
  this.generatedOntology = generatedOntology;
4
5
  }
@@ -1,4 +1,5 @@
1
1
  export class PropertyGroup {
2
+ delegate;
2
3
  constructor(delegate) {
3
4
  this.delegate = delegate;
4
5
  }
@@ -1,5 +1,7 @@
1
1
  import { Shape } from "./Shape.js";
2
2
  export class PropertyShape extends Shape {
3
+ generatedShaclCorePropertyShape;
4
+ constraints;
3
5
  constructor(generatedShaclCorePropertyShape, shapesGraph) {
4
6
  super(generatedShaclCorePropertyShape, shapesGraph);
5
7
  this.generatedShaclCorePropertyShape = generatedShaclCorePropertyShape;
@@ -4,6 +4,17 @@ import { owl, sh } from "@tpluscode/rdf-ns-builders";
4
4
  import { Maybe } from "purify-ts";
5
5
  import { ResourceSet } from "rdfjs-resource";
6
6
  export class RdfjsShapesGraph {
7
+ dataset;
8
+ node;
9
+ nodeShapes;
10
+ ontologies;
11
+ propertyGroups;
12
+ propertyShapes;
13
+ nodeShapesByIdentifier;
14
+ ontologiesByIdentifier;
15
+ propertyGroupsByIdentifier;
16
+ propertyShapesByIdentifier;
17
+ resourceSet;
7
18
  constructor({ dataset, factory, }) {
8
19
  this.dataset = dataset;
9
20
  this.resourceSet = new ResourceSet({ dataset: this.dataset });
@@ -1,5 +1,7 @@
1
1
  import { Maybe } from "purify-ts";
2
2
  export class Shape {
3
+ generatedShaclCoreShape;
4
+ shapesGraph;
3
5
  constructor(generatedShaclCoreShape, shapesGraph) {
4
6
  this.generatedShaclCoreShape = generatedShaclCoreShape;
5
7
  this.shapesGraph = shapesGraph;
@@ -37,6 +39,8 @@ export class Shape {
37
39
  }
38
40
  (function (Shape) {
39
41
  class Constraints {
42
+ generatedShaclCoreShape;
43
+ shapesGraph;
40
44
  constructor(generatedShaclCoreShape, shapesGraph) {
41
45
  this.generatedShaclCoreShape = generatedShaclCoreShape;
42
46
  this.shapesGraph = shapesGraph;
@@ -1,7 +1,7 @@
1
1
  import type * as rdfjs from "@rdfjs/types";
2
- import { PropertyPath } from "@shaclmate/shacl-ast/PropertyPath.js";
3
2
  import * as purify from "purify-ts";
4
3
  import * as rdfjsResource from "rdfjs-resource";
4
+ import { PropertyPath } from "./PropertyPath.js";
5
5
  export interface BaseShaclCoreShape {
6
6
  readonly and: readonly (readonly (rdfjs.BlankNode | rdfjs.NamedNode)[])[];
7
7
  readonly classes: readonly rdfjs.NamedNode[];
@@ -1,7 +1,7 @@
1
- import { PropertyPath } from "@shaclmate/shacl-ast/PropertyPath.js";
2
1
  import { DataFactory as dataFactory } from "n3";
3
2
  import * as purify from "purify-ts";
4
3
  import * as rdfjsResource from "rdfjs-resource";
4
+ import { PropertyPath } from "./PropertyPath.js";
5
5
  export var BaseShaclCoreShape;
6
6
  (function (BaseShaclCoreShape) {
7
7
  function fromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource,
package/package.json CHANGED
@@ -7,17 +7,22 @@
7
7
  "@types/rdfjs__term-map": "^2.0.10",
8
8
  "@types/rdfjs__term-set": "^2.0.9",
9
9
  "purify-ts": "^2.1.0",
10
- "rdfjs-resource": "1.0.14"
10
+ "rdfjs-resource": "1.0.16"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@types/n3": "^1.21.1",
14
14
  "n3": "^1.21.3"
15
15
  },
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "default": "./dist/index.js"
20
+ }
21
+ },
16
22
  "files": [
17
- "*.d.ts",
18
- "*.js"
23
+ "dist/*.d.ts",
24
+ "dist/*.js"
19
25
  ],
20
- "main": "index.js",
21
26
  "license": "Apache-2.0",
22
27
  "name": "@shaclmate/shacl-ast",
23
28
  "scripts": {
@@ -25,7 +30,7 @@
25
30
  "check": "biome check",
26
31
  "check:write": "biome check --write",
27
32
  "check:write:unsafe": "biome check --write --unsafe",
28
- "clean": "rimraf -g **/*.d.ts* **/*.js **/*.js.map tsconfig.tsbuildinfo",
33
+ "clean": "rimraf dist",
29
34
  "format": "biome format",
30
35
  "format:write": "biome format --write",
31
36
  "format:write:unsafe": "biome format --write --unsafe",
@@ -46,6 +51,5 @@
46
51
  "url": "git+https://github.com/minorg/shaclmate"
47
52
  },
48
53
  "type": "module",
49
- "types": "index.d.ts",
50
- "version": "2.0.15"
54
+ "version": "2.0.17"
51
55
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes