@shaclmate/compiler 2.0.17 → 2.0.19

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 (48) hide show
  1. package/dist/_ShapesGraphToAstTransformer/transformNodeShapeToAstType.js +10 -0
  2. package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstObjectTypeProperty.js +1 -0
  3. package/dist/ast/ObjectType.d.ts +8 -0
  4. package/dist/enums/IdentifierMintingStrategy.d.ts +1 -1
  5. package/dist/generators/ts/ListType.js +3 -2
  6. package/dist/generators/ts/ObjectType.d.ts +4 -0
  7. package/dist/generators/ts/ObjectType.js +46 -7
  8. package/dist/generators/ts/ObjectUnionType.js +1 -1
  9. package/dist/generators/ts/TypeFactory.js +84 -35
  10. package/dist/generators/ts/_ObjectType/IdentifierPrefixProperty.d.ts +34 -0
  11. package/dist/generators/ts/_ObjectType/IdentifierPrefixProperty.js +98 -0
  12. package/dist/generators/ts/_ObjectType/IdentifierProperty.d.ts +4 -6
  13. package/dist/generators/ts/_ObjectType/IdentifierProperty.js +53 -71
  14. package/dist/generators/ts/_ObjectType/Property.d.ts +7 -6
  15. package/dist/generators/ts/_ObjectType/Property.js +0 -6
  16. package/dist/generators/ts/_ObjectType/ShaclProperty.d.ts +3 -3
  17. package/dist/generators/ts/_ObjectType/ShaclProperty.js +7 -7
  18. package/dist/generators/ts/_ObjectType/TypeDiscriminatorProperty.d.ts +6 -4
  19. package/dist/generators/ts/_ObjectType/TypeDiscriminatorProperty.js +12 -9
  20. package/dist/generators/ts/_ObjectType/classDeclaration.js +4 -9
  21. package/dist/generators/ts/_ObjectType/fromJsonFunctionDeclarations.js +5 -5
  22. package/dist/generators/ts/_ObjectType/fromRdfFunctionDeclarations.js +6 -6
  23. package/dist/generators/ts/_ObjectType/hashFunctionDeclarations.d.ts +4 -0
  24. package/dist/generators/ts/_ObjectType/hashFunctionDeclarations.js +18 -0
  25. package/dist/generators/ts/_ObjectType/hashFunctionOrMethodDeclarations.d.ts +13 -0
  26. package/dist/generators/ts/_ObjectType/hashFunctionOrMethodDeclarations.js +97 -0
  27. package/dist/generators/ts/_ObjectType/index.d.ts +2 -1
  28. package/dist/generators/ts/_ObjectType/index.js +2 -1
  29. package/dist/generators/ts/_ObjectType/interfaceDeclaration.js +1 -1
  30. package/dist/generators/ts/_ObjectType/jsonZodSchemaFunctionDeclaration.js +1 -1
  31. package/dist/generators/ts/_ObjectType/toJsonFunctionOrMethodDeclaration.js +5 -5
  32. package/dist/generators/ts/_ObjectType/toJsonReturnType.js +2 -4
  33. package/dist/input/NodeShape.d.ts +1 -0
  34. package/dist/input/NodeShape.js +11 -8
  35. package/dist/input/Ontology.d.ts +2 -0
  36. package/dist/input/Ontology.js +8 -2
  37. package/dist/input/PropertyPath.d.ts +41 -0
  38. package/dist/input/PropertyPath.js +105 -0
  39. package/dist/input/PropertyShape.js +3 -3
  40. package/dist/input/generated.d.ts +68 -64
  41. package/dist/input/generated.js +182 -160
  42. package/dist/input/tsFeatures.d.ts +1 -1
  43. package/dist/input/tsFeatures.js +14 -14
  44. package/package.json +7 -7
  45. package/dist/generators/ts/_ObjectType/hashFunctionDeclaration.d.ts +0 -5
  46. package/dist/generators/ts/_ObjectType/hashFunctionDeclaration.js +0 -20
  47. package/dist/generators/ts/_ObjectType/hashFunctionOrMethodDeclaration.d.ts +0 -11
  48. package/dist/generators/ts/_ObjectType/hashFunctionOrMethodDeclaration.js +0 -64
@@ -1,9 +1,11 @@
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
  type UnwrapR<T> = T extends purify.Either<any, infer R> ? R : never;
6
6
  export interface BaseShaclCoreShape {
7
+ readonly identifier: rdfjs.BlankNode | rdfjs.NamedNode;
8
+ readonly type: "ShaclCoreNodeShape" | "ShaclCorePropertyShape" | "ShaclmateNodeShape" | "ShaclmatePropertyShape";
7
9
  readonly and: readonly (readonly (rdfjs.BlankNode | rdfjs.NamedNode)[])[];
8
10
  readonly classes: readonly rdfjs.NamedNode[];
9
11
  readonly comments: readonly rdfjs.Literal[];
@@ -11,7 +13,6 @@ export interface BaseShaclCoreShape {
11
13
  readonly deactivated: purify.Maybe<boolean>;
12
14
  readonly flags: readonly string[];
13
15
  readonly hasValues: readonly (rdfjs.BlankNode | rdfjs.NamedNode | rdfjs.Literal)[];
14
- readonly identifier: rdfjs.BlankNode | rdfjs.NamedNode;
15
16
  readonly in_: purify.Maybe<readonly (rdfjs.BlankNode | rdfjs.NamedNode | rdfjs.Literal)[]>;
16
17
  readonly isDefinedBy: purify.Maybe<rdfjs.BlankNode | rdfjs.NamedNode>;
17
18
  readonly labels: readonly rdfjs.Literal[];
@@ -29,16 +30,16 @@ export interface BaseShaclCoreShape {
29
30
  readonly not: readonly (rdfjs.BlankNode | rdfjs.NamedNode)[];
30
31
  readonly or: readonly (readonly (rdfjs.BlankNode | rdfjs.NamedNode)[])[];
31
32
  readonly patterns: readonly string[];
32
- readonly type: "ShaclCoreNodeShape" | "ShaclCorePropertyShape" | "ShaclmateNodeShape" | "ShaclmatePropertyShape";
33
33
  readonly xone: readonly (readonly (rdfjs.BlankNode | rdfjs.NamedNode)[])[];
34
34
  }
35
35
  export declare namespace BaseShaclCoreShape {
36
- function propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource, ..._context }: {
36
+ function _propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource, ..._context }: {
37
37
  [_index: string]: any;
38
38
  ignoreRdfType?: boolean;
39
39
  languageIn?: readonly string[];
40
40
  resource: rdfjsResource.Resource;
41
41
  }): purify.Either<rdfjsResource.Resource.ValueError, {
42
+ identifier: rdfjs.BlankNode | rdfjs.NamedNode;
42
43
  and: readonly (readonly (rdfjs.BlankNode | rdfjs.NamedNode)[])[];
43
44
  classes: readonly rdfjs.NamedNode[];
44
45
  comments: readonly rdfjs.Literal[];
@@ -46,7 +47,6 @@ export declare namespace BaseShaclCoreShape {
46
47
  deactivated: purify.Maybe<boolean>;
47
48
  flags: readonly string[];
48
49
  hasValues: readonly (rdfjs.BlankNode | rdfjs.NamedNode | rdfjs.Literal)[];
49
- identifier: rdfjs.BlankNode | rdfjs.NamedNode;
50
50
  in_: purify.Maybe<readonly (rdfjs.BlankNode | rdfjs.NamedNode | rdfjs.Literal)[]>;
51
51
  isDefinedBy: purify.Maybe<rdfjs.BlankNode | rdfjs.NamedNode>;
52
52
  labels: readonly rdfjs.Literal[];
@@ -68,198 +68,202 @@ export declare namespace BaseShaclCoreShape {
68
68
  }>;
69
69
  }
70
70
  export interface ShaclCorePropertyShape extends BaseShaclCoreShape {
71
+ readonly identifier: rdfjs.BlankNode | rdfjs.NamedNode;
72
+ readonly type: "ShaclCorePropertyShape" | "ShaclmatePropertyShape";
71
73
  readonly defaultValue: purify.Maybe<rdfjs.BlankNode | rdfjs.NamedNode | rdfjs.Literal>;
72
74
  readonly descriptions: readonly rdfjs.Literal[];
73
75
  readonly groups: readonly (rdfjs.BlankNode | rdfjs.NamedNode)[];
74
- readonly identifier: rdfjs.BlankNode | rdfjs.NamedNode;
75
76
  readonly names: readonly rdfjs.Literal[];
76
77
  readonly order: purify.Maybe<number>;
77
78
  readonly path: PropertyPath;
78
- readonly type: "ShaclCorePropertyShape" | "ShaclmatePropertyShape";
79
79
  readonly uniqueLang: purify.Maybe<boolean>;
80
80
  }
81
81
  export declare namespace ShaclCorePropertyShape {
82
- function propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource, ..._context }: {
82
+ function _propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource, ..._context }: {
83
83
  [_index: string]: any;
84
84
  ignoreRdfType?: boolean;
85
85
  languageIn?: readonly string[];
86
86
  resource: rdfjsResource.Resource;
87
87
  }): purify.Either<rdfjsResource.Resource.ValueError, {
88
+ identifier: rdfjs.BlankNode | rdfjs.NamedNode;
89
+ type: "ShaclCorePropertyShape" | "ShaclmatePropertyShape";
88
90
  defaultValue: purify.Maybe<rdfjs.BlankNode | rdfjs.NamedNode | rdfjs.Literal>;
89
91
  descriptions: readonly rdfjs.Literal[];
90
92
  groups: readonly (rdfjs.BlankNode | rdfjs.NamedNode)[];
91
- identifier: rdfjs.BlankNode | rdfjs.NamedNode;
92
93
  names: readonly rdfjs.Literal[];
93
94
  order: purify.Maybe<number>;
94
95
  path: PropertyPath;
95
- type: "ShaclCorePropertyShape" | "ShaclmatePropertyShape";
96
96
  uniqueLang: purify.Maybe<boolean>;
97
- } & UnwrapR<ReturnType<typeof BaseShaclCoreShape.propertiesFromRdf>>>;
98
- function fromRdf(parameters: Parameters<typeof ShaclCorePropertyShape.propertiesFromRdf>[0]): purify.Either<rdfjsResource.Resource.ValueError, ShaclCorePropertyShape>;
97
+ } & UnwrapR<ReturnType<typeof BaseShaclCoreShape._propertiesFromRdf>>>;
98
+ function fromRdf(parameters: Parameters<typeof ShaclCorePropertyShape._propertiesFromRdf>[0]): purify.Either<rdfjsResource.Resource.ValueError, ShaclCorePropertyShape>;
99
99
  const fromRdfType: rdfjs.NamedNode<string>;
100
100
  }
101
101
  export interface ShaclmatePropertyShape extends ShaclCorePropertyShape {
102
- readonly extern: purify.Maybe<boolean>;
103
102
  readonly identifier: rdfjs.BlankNode | rdfjs.NamedNode;
103
+ readonly type: "ShaclmatePropertyShape";
104
+ readonly extern: purify.Maybe<boolean>;
104
105
  readonly mutable: purify.Maybe<boolean>;
105
106
  readonly name: purify.Maybe<string>;
106
- readonly type: "ShaclmatePropertyShape";
107
- readonly visibility: purify.Maybe<rdfjs.NamedNode<"http://minorg.github.io/shaclmate/ns#_Visibility_Private" | "http://minorg.github.io/shaclmate/ns#_Visibility_Protected" | "http://minorg.github.io/shaclmate/ns#_Visibility_Public">>;
107
+ readonly visibility: purify.Maybe<rdfjs.NamedNode<"http://purl.org/shaclmate/ontology#_Visibility_Private" | "http://purl.org/shaclmate/ontology#_Visibility_Protected" | "http://purl.org/shaclmate/ontology#_Visibility_Public">>;
108
108
  }
109
109
  export declare namespace ShaclmatePropertyShape {
110
- function propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource, ..._context }: {
110
+ function _propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource, ..._context }: {
111
111
  [_index: string]: any;
112
112
  ignoreRdfType?: boolean;
113
113
  languageIn?: readonly string[];
114
114
  resource: rdfjsResource.Resource;
115
115
  }): purify.Either<rdfjsResource.Resource.ValueError, {
116
- extern: purify.Maybe<boolean>;
117
116
  identifier: rdfjs.BlankNode | rdfjs.NamedNode;
117
+ type: "ShaclmatePropertyShape";
118
+ extern: purify.Maybe<boolean>;
118
119
  mutable: purify.Maybe<boolean>;
119
120
  name: purify.Maybe<string>;
120
- type: "ShaclmatePropertyShape";
121
- visibility: purify.Maybe<rdfjs.NamedNode<"http://minorg.github.io/shaclmate/ns#_Visibility_Private" | "http://minorg.github.io/shaclmate/ns#_Visibility_Protected" | "http://minorg.github.io/shaclmate/ns#_Visibility_Public">>;
122
- } & UnwrapR<ReturnType<typeof ShaclCorePropertyShape.propertiesFromRdf>>>;
123
- function fromRdf(parameters: Parameters<typeof ShaclmatePropertyShape.propertiesFromRdf>[0]): purify.Either<rdfjsResource.Resource.ValueError, ShaclmatePropertyShape>;
121
+ visibility: purify.Maybe<rdfjs.NamedNode<"http://purl.org/shaclmate/ontology#_Visibility_Private" | "http://purl.org/shaclmate/ontology#_Visibility_Protected" | "http://purl.org/shaclmate/ontology#_Visibility_Public">>;
122
+ } & UnwrapR<ReturnType<typeof ShaclCorePropertyShape._propertiesFromRdf>>>;
123
+ function fromRdf(parameters: Parameters<typeof ShaclmatePropertyShape._propertiesFromRdf>[0]): purify.Either<rdfjsResource.Resource.ValueError, ShaclmatePropertyShape>;
124
124
  const fromRdfType: rdfjs.NamedNode<string>;
125
125
  }
126
126
  export interface OwlOntology {
127
127
  readonly identifier: rdfjs.BlankNode | rdfjs.NamedNode;
128
- readonly labels: readonly rdfjs.Literal[];
129
128
  readonly type: "OwlOntology" | "ShaclmateOntology";
129
+ readonly labels: readonly rdfjs.Literal[];
130
130
  }
131
131
  export declare namespace OwlOntology {
132
- function propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource, ..._context }: {
132
+ function _propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource, ..._context }: {
133
133
  [_index: string]: any;
134
134
  ignoreRdfType?: boolean;
135
135
  languageIn?: readonly string[];
136
136
  resource: rdfjsResource.Resource;
137
137
  }): purify.Either<rdfjsResource.Resource.ValueError, {
138
138
  identifier: rdfjs.BlankNode | rdfjs.NamedNode;
139
- labels: readonly rdfjs.Literal[];
140
139
  type: "OwlOntology" | "ShaclmateOntology";
140
+ labels: readonly rdfjs.Literal[];
141
141
  }>;
142
- function fromRdf(parameters: Parameters<typeof OwlOntology.propertiesFromRdf>[0]): purify.Either<rdfjsResource.Resource.ValueError, OwlOntology>;
142
+ function fromRdf(parameters: Parameters<typeof OwlOntology._propertiesFromRdf>[0]): purify.Either<rdfjsResource.Resource.ValueError, OwlOntology>;
143
143
  const fromRdfType: rdfjs.NamedNode<string>;
144
144
  }
145
145
  export interface ShaclmateOntology extends OwlOntology {
146
146
  readonly identifier: rdfjs.BlankNode | rdfjs.NamedNode;
147
+ readonly type: "ShaclmateOntology";
147
148
  readonly tsDataFactoryVariable: purify.Maybe<string>;
148
- readonly tsFeatureExcludes: readonly rdfjs.NamedNode<"http://minorg.github.io/shaclmate/ns#_TsFeature_All" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Create" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Equals" | "http://minorg.github.io/shaclmate/ns#_TsFeature_FromJson" | "http://minorg.github.io/shaclmate/ns#_TsFeature_FromRdf" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Hash" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Json" | "http://minorg.github.io/shaclmate/ns#_TsFeature_JsonSchema" | "http://minorg.github.io/shaclmate/ns#_TsFeature_JsonUiSchema" | "http://minorg.github.io/shaclmate/ns#_TsFeature_None" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Rdf" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Sparql" | "http://minorg.github.io/shaclmate/ns#_TsFeature_ToJson" | "http://minorg.github.io/shaclmate/ns#_TsFeature_ToRdf">[];
149
- readonly tsFeatureIncludes: readonly rdfjs.NamedNode<"http://minorg.github.io/shaclmate/ns#_TsFeature_All" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Create" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Equals" | "http://minorg.github.io/shaclmate/ns#_TsFeature_FromJson" | "http://minorg.github.io/shaclmate/ns#_TsFeature_FromRdf" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Hash" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Json" | "http://minorg.github.io/shaclmate/ns#_TsFeature_JsonSchema" | "http://minorg.github.io/shaclmate/ns#_TsFeature_JsonUiSchema" | "http://minorg.github.io/shaclmate/ns#_TsFeature_None" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Rdf" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Sparql" | "http://minorg.github.io/shaclmate/ns#_TsFeature_ToJson" | "http://minorg.github.io/shaclmate/ns#_TsFeature_ToRdf">[];
149
+ readonly tsFeatureExcludes: readonly rdfjs.NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_All" | "http://purl.org/shaclmate/ontology#_TsFeature_Create" | "http://purl.org/shaclmate/ontology#_TsFeature_Equals" | "http://purl.org/shaclmate/ontology#_TsFeature_FromJson" | "http://purl.org/shaclmate/ontology#_TsFeature_FromRdf" | "http://purl.org/shaclmate/ontology#_TsFeature_Hash" | "http://purl.org/shaclmate/ontology#_TsFeature_Json" | "http://purl.org/shaclmate/ontology#_TsFeature_JsonSchema" | "http://purl.org/shaclmate/ontology#_TsFeature_JsonUiSchema" | "http://purl.org/shaclmate/ontology#_TsFeature_None" | "http://purl.org/shaclmate/ontology#_TsFeature_Rdf" | "http://purl.org/shaclmate/ontology#_TsFeature_Sparql" | "http://purl.org/shaclmate/ontology#_TsFeature_ToJson" | "http://purl.org/shaclmate/ontology#_TsFeature_ToRdf">[];
150
+ readonly tsFeatureIncludes: readonly rdfjs.NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_All" | "http://purl.org/shaclmate/ontology#_TsFeature_Create" | "http://purl.org/shaclmate/ontology#_TsFeature_Equals" | "http://purl.org/shaclmate/ontology#_TsFeature_FromJson" | "http://purl.org/shaclmate/ontology#_TsFeature_FromRdf" | "http://purl.org/shaclmate/ontology#_TsFeature_Hash" | "http://purl.org/shaclmate/ontology#_TsFeature_Json" | "http://purl.org/shaclmate/ontology#_TsFeature_JsonSchema" | "http://purl.org/shaclmate/ontology#_TsFeature_JsonUiSchema" | "http://purl.org/shaclmate/ontology#_TsFeature_None" | "http://purl.org/shaclmate/ontology#_TsFeature_Rdf" | "http://purl.org/shaclmate/ontology#_TsFeature_Sparql" | "http://purl.org/shaclmate/ontology#_TsFeature_ToJson" | "http://purl.org/shaclmate/ontology#_TsFeature_ToRdf">[];
150
151
  readonly tsImports: readonly string[];
151
- readonly tsObjectDeclarationType: purify.Maybe<rdfjs.NamedNode<"http://minorg.github.io/shaclmate/ns#_TsObjectDeclarationType_Class" | "http://minorg.github.io/shaclmate/ns#_TsObjectDeclarationType_Interface">>;
152
+ readonly tsObjectDeclarationType: purify.Maybe<rdfjs.NamedNode<"http://purl.org/shaclmate/ontology#_TsObjectDeclarationType_Class" | "http://purl.org/shaclmate/ontology#_TsObjectDeclarationType_Interface">>;
153
+ readonly tsObjectIdentifierPrefixPropertyName: purify.Maybe<string>;
152
154
  readonly tsObjectIdentifierPropertyName: purify.Maybe<string>;
153
155
  readonly tsObjectTypeDiscriminatorPropertyName: purify.Maybe<string>;
154
- readonly type: "ShaclmateOntology";
155
156
  }
156
157
  export declare namespace ShaclmateOntology {
157
- function propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource, ..._context }: {
158
+ function _propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource, ..._context }: {
158
159
  [_index: string]: any;
159
160
  ignoreRdfType?: boolean;
160
161
  languageIn?: readonly string[];
161
162
  resource: rdfjsResource.Resource;
162
163
  }): purify.Either<rdfjsResource.Resource.ValueError, {
163
164
  identifier: rdfjs.BlankNode | rdfjs.NamedNode;
165
+ type: "ShaclmateOntology";
164
166
  tsDataFactoryVariable: purify.Maybe<string>;
165
- tsFeatureExcludes: readonly rdfjs.NamedNode<"http://minorg.github.io/shaclmate/ns#_TsFeature_All" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Create" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Equals" | "http://minorg.github.io/shaclmate/ns#_TsFeature_FromJson" | "http://minorg.github.io/shaclmate/ns#_TsFeature_FromRdf" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Hash" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Json" | "http://minorg.github.io/shaclmate/ns#_TsFeature_JsonSchema" | "http://minorg.github.io/shaclmate/ns#_TsFeature_JsonUiSchema" | "http://minorg.github.io/shaclmate/ns#_TsFeature_None" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Rdf" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Sparql" | "http://minorg.github.io/shaclmate/ns#_TsFeature_ToJson" | "http://minorg.github.io/shaclmate/ns#_TsFeature_ToRdf">[];
166
- tsFeatureIncludes: readonly rdfjs.NamedNode<"http://minorg.github.io/shaclmate/ns#_TsFeature_All" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Create" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Equals" | "http://minorg.github.io/shaclmate/ns#_TsFeature_FromJson" | "http://minorg.github.io/shaclmate/ns#_TsFeature_FromRdf" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Hash" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Json" | "http://minorg.github.io/shaclmate/ns#_TsFeature_JsonSchema" | "http://minorg.github.io/shaclmate/ns#_TsFeature_JsonUiSchema" | "http://minorg.github.io/shaclmate/ns#_TsFeature_None" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Rdf" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Sparql" | "http://minorg.github.io/shaclmate/ns#_TsFeature_ToJson" | "http://minorg.github.io/shaclmate/ns#_TsFeature_ToRdf">[];
167
+ tsFeatureExcludes: readonly rdfjs.NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_All" | "http://purl.org/shaclmate/ontology#_TsFeature_Create" | "http://purl.org/shaclmate/ontology#_TsFeature_Equals" | "http://purl.org/shaclmate/ontology#_TsFeature_FromJson" | "http://purl.org/shaclmate/ontology#_TsFeature_FromRdf" | "http://purl.org/shaclmate/ontology#_TsFeature_Hash" | "http://purl.org/shaclmate/ontology#_TsFeature_Json" | "http://purl.org/shaclmate/ontology#_TsFeature_JsonSchema" | "http://purl.org/shaclmate/ontology#_TsFeature_JsonUiSchema" | "http://purl.org/shaclmate/ontology#_TsFeature_None" | "http://purl.org/shaclmate/ontology#_TsFeature_Rdf" | "http://purl.org/shaclmate/ontology#_TsFeature_Sparql" | "http://purl.org/shaclmate/ontology#_TsFeature_ToJson" | "http://purl.org/shaclmate/ontology#_TsFeature_ToRdf">[];
168
+ tsFeatureIncludes: readonly rdfjs.NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_All" | "http://purl.org/shaclmate/ontology#_TsFeature_Create" | "http://purl.org/shaclmate/ontology#_TsFeature_Equals" | "http://purl.org/shaclmate/ontology#_TsFeature_FromJson" | "http://purl.org/shaclmate/ontology#_TsFeature_FromRdf" | "http://purl.org/shaclmate/ontology#_TsFeature_Hash" | "http://purl.org/shaclmate/ontology#_TsFeature_Json" | "http://purl.org/shaclmate/ontology#_TsFeature_JsonSchema" | "http://purl.org/shaclmate/ontology#_TsFeature_JsonUiSchema" | "http://purl.org/shaclmate/ontology#_TsFeature_None" | "http://purl.org/shaclmate/ontology#_TsFeature_Rdf" | "http://purl.org/shaclmate/ontology#_TsFeature_Sparql" | "http://purl.org/shaclmate/ontology#_TsFeature_ToJson" | "http://purl.org/shaclmate/ontology#_TsFeature_ToRdf">[];
167
169
  tsImports: readonly string[];
168
- tsObjectDeclarationType: purify.Maybe<rdfjs.NamedNode<"http://minorg.github.io/shaclmate/ns#_TsObjectDeclarationType_Class" | "http://minorg.github.io/shaclmate/ns#_TsObjectDeclarationType_Interface">>;
170
+ tsObjectDeclarationType: purify.Maybe<rdfjs.NamedNode<"http://purl.org/shaclmate/ontology#_TsObjectDeclarationType_Class" | "http://purl.org/shaclmate/ontology#_TsObjectDeclarationType_Interface">>;
171
+ tsObjectIdentifierPrefixPropertyName: purify.Maybe<string>;
169
172
  tsObjectIdentifierPropertyName: purify.Maybe<string>;
170
173
  tsObjectTypeDiscriminatorPropertyName: purify.Maybe<string>;
171
- type: "ShaclmateOntology";
172
- } & UnwrapR<ReturnType<typeof OwlOntology.propertiesFromRdf>>>;
173
- function fromRdf(parameters: Parameters<typeof ShaclmateOntology.propertiesFromRdf>[0]): purify.Either<rdfjsResource.Resource.ValueError, ShaclmateOntology>;
174
+ } & UnwrapR<ReturnType<typeof OwlOntology._propertiesFromRdf>>>;
175
+ function fromRdf(parameters: Parameters<typeof ShaclmateOntology._propertiesFromRdf>[0]): purify.Either<rdfjsResource.Resource.ValueError, ShaclmateOntology>;
174
176
  const fromRdfType: rdfjs.NamedNode<string>;
175
177
  }
176
178
  export interface ShaclCoreNodeShape extends BaseShaclCoreShape {
177
- readonly closed: purify.Maybe<boolean>;
178
179
  readonly identifier: rdfjs.BlankNode | rdfjs.NamedNode;
180
+ readonly type: "ShaclCoreNodeShape" | "ShaclmateNodeShape";
181
+ readonly closed: purify.Maybe<boolean>;
179
182
  readonly ignoredProperties: purify.Maybe<readonly rdfjs.NamedNode[]>;
180
183
  readonly properties: readonly (rdfjs.BlankNode | rdfjs.NamedNode)[];
181
- readonly type: "ShaclCoreNodeShape" | "ShaclmateNodeShape";
182
184
  }
183
185
  export declare namespace ShaclCoreNodeShape {
184
- function propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource, ..._context }: {
186
+ function _propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource, ..._context }: {
185
187
  [_index: string]: any;
186
188
  ignoreRdfType?: boolean;
187
189
  languageIn?: readonly string[];
188
190
  resource: rdfjsResource.Resource;
189
191
  }): purify.Either<rdfjsResource.Resource.ValueError, {
190
- closed: purify.Maybe<boolean>;
191
192
  identifier: rdfjs.BlankNode | rdfjs.NamedNode;
193
+ type: "ShaclCoreNodeShape" | "ShaclmateNodeShape";
194
+ closed: purify.Maybe<boolean>;
192
195
  ignoredProperties: purify.Maybe<readonly rdfjs.NamedNode[]>;
193
196
  properties: readonly (rdfjs.BlankNode | rdfjs.NamedNode)[];
194
- type: "ShaclCoreNodeShape" | "ShaclmateNodeShape";
195
- } & UnwrapR<ReturnType<typeof BaseShaclCoreShape.propertiesFromRdf>>>;
196
- function fromRdf(parameters: Parameters<typeof ShaclCoreNodeShape.propertiesFromRdf>[0]): purify.Either<rdfjsResource.Resource.ValueError, ShaclCoreNodeShape>;
197
+ } & UnwrapR<ReturnType<typeof BaseShaclCoreShape._propertiesFromRdf>>>;
198
+ function fromRdf(parameters: Parameters<typeof ShaclCoreNodeShape._propertiesFromRdf>[0]): purify.Either<rdfjsResource.Resource.ValueError, ShaclCoreNodeShape>;
197
199
  const fromRdfType: rdfjs.NamedNode<string>;
198
200
  }
199
201
  export interface ShaclmateNodeShape extends ShaclCoreNodeShape {
202
+ readonly identifier: rdfjs.BlankNode | rdfjs.NamedNode;
203
+ readonly type: "ShaclmateNodeShape";
200
204
  readonly abstract: purify.Maybe<boolean>;
201
205
  readonly export_: purify.Maybe<boolean>;
202
206
  readonly extern: purify.Maybe<boolean>;
203
207
  readonly fromRdfType: purify.Maybe<rdfjs.NamedNode>;
204
- readonly identifier: rdfjs.BlankNode | rdfjs.NamedNode;
205
- readonly identifierMintingStrategy: purify.Maybe<rdfjs.NamedNode<"http://minorg.github.io/shaclmate/ns#_IdentifierMintingStrategy_SHA256" | "http://minorg.github.io/shaclmate/ns#_IdentifierMintingStrategy_UUIDv4">>;
208
+ readonly identifierMintingStrategy: purify.Maybe<rdfjs.NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_BlankNode" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_SHA256" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_UUIDv4">>;
206
209
  readonly mutable: purify.Maybe<boolean>;
207
210
  readonly name: purify.Maybe<string>;
208
211
  readonly toRdfTypes: readonly rdfjs.NamedNode[];
209
- readonly tsFeatureExcludes: readonly rdfjs.NamedNode<"http://minorg.github.io/shaclmate/ns#_TsFeature_All" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Create" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Equals" | "http://minorg.github.io/shaclmate/ns#_TsFeature_FromJson" | "http://minorg.github.io/shaclmate/ns#_TsFeature_FromRdf" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Hash" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Json" | "http://minorg.github.io/shaclmate/ns#_TsFeature_JsonSchema" | "http://minorg.github.io/shaclmate/ns#_TsFeature_JsonUiSchema" | "http://minorg.github.io/shaclmate/ns#_TsFeature_None" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Rdf" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Sparql" | "http://minorg.github.io/shaclmate/ns#_TsFeature_ToJson" | "http://minorg.github.io/shaclmate/ns#_TsFeature_ToRdf">[];
210
- readonly tsFeatureIncludes: readonly rdfjs.NamedNode<"http://minorg.github.io/shaclmate/ns#_TsFeature_All" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Create" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Equals" | "http://minorg.github.io/shaclmate/ns#_TsFeature_FromJson" | "http://minorg.github.io/shaclmate/ns#_TsFeature_FromRdf" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Hash" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Json" | "http://minorg.github.io/shaclmate/ns#_TsFeature_JsonSchema" | "http://minorg.github.io/shaclmate/ns#_TsFeature_JsonUiSchema" | "http://minorg.github.io/shaclmate/ns#_TsFeature_None" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Rdf" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Sparql" | "http://minorg.github.io/shaclmate/ns#_TsFeature_ToJson" | "http://minorg.github.io/shaclmate/ns#_TsFeature_ToRdf">[];
212
+ readonly tsFeatureExcludes: readonly rdfjs.NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_All" | "http://purl.org/shaclmate/ontology#_TsFeature_Create" | "http://purl.org/shaclmate/ontology#_TsFeature_Equals" | "http://purl.org/shaclmate/ontology#_TsFeature_FromJson" | "http://purl.org/shaclmate/ontology#_TsFeature_FromRdf" | "http://purl.org/shaclmate/ontology#_TsFeature_Hash" | "http://purl.org/shaclmate/ontology#_TsFeature_Json" | "http://purl.org/shaclmate/ontology#_TsFeature_JsonSchema" | "http://purl.org/shaclmate/ontology#_TsFeature_JsonUiSchema" | "http://purl.org/shaclmate/ontology#_TsFeature_None" | "http://purl.org/shaclmate/ontology#_TsFeature_Rdf" | "http://purl.org/shaclmate/ontology#_TsFeature_Sparql" | "http://purl.org/shaclmate/ontology#_TsFeature_ToJson" | "http://purl.org/shaclmate/ontology#_TsFeature_ToRdf">[];
213
+ readonly tsFeatureIncludes: readonly rdfjs.NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_All" | "http://purl.org/shaclmate/ontology#_TsFeature_Create" | "http://purl.org/shaclmate/ontology#_TsFeature_Equals" | "http://purl.org/shaclmate/ontology#_TsFeature_FromJson" | "http://purl.org/shaclmate/ontology#_TsFeature_FromRdf" | "http://purl.org/shaclmate/ontology#_TsFeature_Hash" | "http://purl.org/shaclmate/ontology#_TsFeature_Json" | "http://purl.org/shaclmate/ontology#_TsFeature_JsonSchema" | "http://purl.org/shaclmate/ontology#_TsFeature_JsonUiSchema" | "http://purl.org/shaclmate/ontology#_TsFeature_None" | "http://purl.org/shaclmate/ontology#_TsFeature_Rdf" | "http://purl.org/shaclmate/ontology#_TsFeature_Sparql" | "http://purl.org/shaclmate/ontology#_TsFeature_ToJson" | "http://purl.org/shaclmate/ontology#_TsFeature_ToRdf">[];
211
214
  readonly tsImports: readonly string[];
212
- readonly tsObjectDeclarationType: purify.Maybe<rdfjs.NamedNode<"http://minorg.github.io/shaclmate/ns#_TsObjectDeclarationType_Class" | "http://minorg.github.io/shaclmate/ns#_TsObjectDeclarationType_Interface">>;
215
+ readonly tsObjectDeclarationType: purify.Maybe<rdfjs.NamedNode<"http://purl.org/shaclmate/ontology#_TsObjectDeclarationType_Class" | "http://purl.org/shaclmate/ontology#_TsObjectDeclarationType_Interface">>;
216
+ readonly tsObjectIdentifierPrefixPropertyName: purify.Maybe<string>;
213
217
  readonly tsObjectIdentifierPropertyName: purify.Maybe<string>;
214
218
  readonly tsObjectTypeDiscriminatorPropertyName: purify.Maybe<string>;
215
- readonly type: "ShaclmateNodeShape";
216
219
  }
217
220
  export declare namespace ShaclmateNodeShape {
218
- function propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource, ..._context }: {
221
+ function _propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource, ..._context }: {
219
222
  [_index: string]: any;
220
223
  ignoreRdfType?: boolean;
221
224
  languageIn?: readonly string[];
222
225
  resource: rdfjsResource.Resource;
223
226
  }): purify.Either<rdfjsResource.Resource.ValueError, {
227
+ identifier: rdfjs.BlankNode | rdfjs.NamedNode;
228
+ type: "ShaclmateNodeShape";
224
229
  abstract: purify.Maybe<boolean>;
225
230
  export_: purify.Maybe<boolean>;
226
231
  extern: purify.Maybe<boolean>;
227
232
  fromRdfType: purify.Maybe<rdfjs.NamedNode>;
228
- identifier: rdfjs.BlankNode | rdfjs.NamedNode;
229
- identifierMintingStrategy: purify.Maybe<rdfjs.NamedNode<"http://minorg.github.io/shaclmate/ns#_IdentifierMintingStrategy_SHA256" | "http://minorg.github.io/shaclmate/ns#_IdentifierMintingStrategy_UUIDv4">>;
233
+ identifierMintingStrategy: purify.Maybe<rdfjs.NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_BlankNode" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_SHA256" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_UUIDv4">>;
230
234
  mutable: purify.Maybe<boolean>;
231
235
  name: purify.Maybe<string>;
232
236
  toRdfTypes: readonly rdfjs.NamedNode[];
233
- tsFeatureExcludes: readonly rdfjs.NamedNode<"http://minorg.github.io/shaclmate/ns#_TsFeature_All" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Create" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Equals" | "http://minorg.github.io/shaclmate/ns#_TsFeature_FromJson" | "http://minorg.github.io/shaclmate/ns#_TsFeature_FromRdf" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Hash" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Json" | "http://minorg.github.io/shaclmate/ns#_TsFeature_JsonSchema" | "http://minorg.github.io/shaclmate/ns#_TsFeature_JsonUiSchema" | "http://minorg.github.io/shaclmate/ns#_TsFeature_None" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Rdf" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Sparql" | "http://minorg.github.io/shaclmate/ns#_TsFeature_ToJson" | "http://minorg.github.io/shaclmate/ns#_TsFeature_ToRdf">[];
234
- tsFeatureIncludes: readonly rdfjs.NamedNode<"http://minorg.github.io/shaclmate/ns#_TsFeature_All" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Create" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Equals" | "http://minorg.github.io/shaclmate/ns#_TsFeature_FromJson" | "http://minorg.github.io/shaclmate/ns#_TsFeature_FromRdf" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Hash" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Json" | "http://minorg.github.io/shaclmate/ns#_TsFeature_JsonSchema" | "http://minorg.github.io/shaclmate/ns#_TsFeature_JsonUiSchema" | "http://minorg.github.io/shaclmate/ns#_TsFeature_None" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Rdf" | "http://minorg.github.io/shaclmate/ns#_TsFeature_Sparql" | "http://minorg.github.io/shaclmate/ns#_TsFeature_ToJson" | "http://minorg.github.io/shaclmate/ns#_TsFeature_ToRdf">[];
237
+ tsFeatureExcludes: readonly rdfjs.NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_All" | "http://purl.org/shaclmate/ontology#_TsFeature_Create" | "http://purl.org/shaclmate/ontology#_TsFeature_Equals" | "http://purl.org/shaclmate/ontology#_TsFeature_FromJson" | "http://purl.org/shaclmate/ontology#_TsFeature_FromRdf" | "http://purl.org/shaclmate/ontology#_TsFeature_Hash" | "http://purl.org/shaclmate/ontology#_TsFeature_Json" | "http://purl.org/shaclmate/ontology#_TsFeature_JsonSchema" | "http://purl.org/shaclmate/ontology#_TsFeature_JsonUiSchema" | "http://purl.org/shaclmate/ontology#_TsFeature_None" | "http://purl.org/shaclmate/ontology#_TsFeature_Rdf" | "http://purl.org/shaclmate/ontology#_TsFeature_Sparql" | "http://purl.org/shaclmate/ontology#_TsFeature_ToJson" | "http://purl.org/shaclmate/ontology#_TsFeature_ToRdf">[];
238
+ tsFeatureIncludes: readonly rdfjs.NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_All" | "http://purl.org/shaclmate/ontology#_TsFeature_Create" | "http://purl.org/shaclmate/ontology#_TsFeature_Equals" | "http://purl.org/shaclmate/ontology#_TsFeature_FromJson" | "http://purl.org/shaclmate/ontology#_TsFeature_FromRdf" | "http://purl.org/shaclmate/ontology#_TsFeature_Hash" | "http://purl.org/shaclmate/ontology#_TsFeature_Json" | "http://purl.org/shaclmate/ontology#_TsFeature_JsonSchema" | "http://purl.org/shaclmate/ontology#_TsFeature_JsonUiSchema" | "http://purl.org/shaclmate/ontology#_TsFeature_None" | "http://purl.org/shaclmate/ontology#_TsFeature_Rdf" | "http://purl.org/shaclmate/ontology#_TsFeature_Sparql" | "http://purl.org/shaclmate/ontology#_TsFeature_ToJson" | "http://purl.org/shaclmate/ontology#_TsFeature_ToRdf">[];
235
239
  tsImports: readonly string[];
236
- tsObjectDeclarationType: purify.Maybe<rdfjs.NamedNode<"http://minorg.github.io/shaclmate/ns#_TsObjectDeclarationType_Class" | "http://minorg.github.io/shaclmate/ns#_TsObjectDeclarationType_Interface">>;
240
+ tsObjectDeclarationType: purify.Maybe<rdfjs.NamedNode<"http://purl.org/shaclmate/ontology#_TsObjectDeclarationType_Class" | "http://purl.org/shaclmate/ontology#_TsObjectDeclarationType_Interface">>;
241
+ tsObjectIdentifierPrefixPropertyName: purify.Maybe<string>;
237
242
  tsObjectIdentifierPropertyName: purify.Maybe<string>;
238
243
  tsObjectTypeDiscriminatorPropertyName: purify.Maybe<string>;
239
- type: "ShaclmateNodeShape";
240
- } & UnwrapR<ReturnType<typeof ShaclCoreNodeShape.propertiesFromRdf>>>;
241
- function fromRdf(parameters: Parameters<typeof ShaclmateNodeShape.propertiesFromRdf>[0]): purify.Either<rdfjsResource.Resource.ValueError, ShaclmateNodeShape>;
244
+ } & UnwrapR<ReturnType<typeof ShaclCoreNodeShape._propertiesFromRdf>>>;
245
+ function fromRdf(parameters: Parameters<typeof ShaclmateNodeShape._propertiesFromRdf>[0]): purify.Either<rdfjsResource.Resource.ValueError, ShaclmateNodeShape>;
242
246
  const fromRdfType: rdfjs.NamedNode<string>;
243
247
  }
244
248
  export interface ShaclCorePropertyGroup {
245
- readonly comments: readonly rdfjs.Literal[];
246
249
  readonly identifier: rdfjs.BlankNode | rdfjs.NamedNode;
247
- readonly labels: readonly rdfjs.Literal[];
248
250
  readonly type: "ShaclCorePropertyGroup";
251
+ readonly comments: readonly rdfjs.Literal[];
252
+ readonly labels: readonly rdfjs.Literal[];
249
253
  }
250
254
  export declare namespace ShaclCorePropertyGroup {
251
- function propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource, ..._context }: {
255
+ function _propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource, ..._context }: {
252
256
  [_index: string]: any;
253
257
  ignoreRdfType?: boolean;
254
258
  languageIn?: readonly string[];
255
259
  resource: rdfjsResource.Resource;
256
260
  }): purify.Either<rdfjsResource.Resource.ValueError, {
257
- comments: readonly rdfjs.Literal[];
258
261
  identifier: rdfjs.BlankNode | rdfjs.NamedNode;
259
- labels: readonly rdfjs.Literal[];
260
262
  type: "ShaclCorePropertyGroup";
263
+ comments: readonly rdfjs.Literal[];
264
+ labels: readonly rdfjs.Literal[];
261
265
  }>;
262
- function fromRdf(parameters: Parameters<typeof ShaclCorePropertyGroup.propertiesFromRdf>[0]): purify.Either<rdfjsResource.Resource.ValueError, ShaclCorePropertyGroup>;
266
+ function fromRdf(parameters: Parameters<typeof ShaclCorePropertyGroup._propertiesFromRdf>[0]): purify.Either<rdfjsResource.Resource.ValueError, ShaclCorePropertyGroup>;
263
267
  const fromRdfType: rdfjs.NamedNode<string>;
264
268
  }
265
269
  export type ShaclCoreShape = ShaclCoreNodeShape | ShaclCorePropertyShape;