@shaclmate/compiler 4.0.23 → 4.0.24
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/ShapesGraphToAstTransformer.js +16 -16
- package/dist/_ShapesGraphToAstTransformer/shapeAstTypeName.js +6 -5
- package/dist/_ShapesGraphToAstTransformer/shapeNodeKinds.js +1 -1
- package/dist/_ShapesGraphToAstTransformer/shapeOntology.js +4 -3
- package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstObjectTypeProperty.js +11 -11
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.js +3 -3
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.js +6 -9
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstObjectType.js +11 -12
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstTermType.js +1 -1
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.js +3 -3
- package/dist/ast/AbstractLazyObjectType.d.ts +0 -2
- package/dist/ast/ListType.d.ts +1 -8
- package/dist/ast/ListType.js +1 -6
- package/dist/ast/ObjectType.d.ts +1 -8
- package/dist/ast/ObjectType.js +1 -7
- package/dist/generators/ts/AbstractUnionType.js +1 -1
- package/dist/generators/ts/ListType.d.ts +1 -5
- package/dist/generators/ts/ListType.js +8 -27
- package/dist/generators/ts/NamedObjectType.d.ts +1 -9
- package/dist/generators/ts/NamedObjectType.js +1 -29
- package/dist/generators/ts/NamedObjectUnionType.js +1 -1
- package/dist/generators/ts/TypeFactory.js +8 -46
- package/dist/generators/ts/_NamedObjectType/AbstractProperty.d.ts +10 -10
- package/dist/generators/ts/_NamedObjectType/AbstractProperty.js +6 -0
- package/dist/generators/ts/_NamedObjectType/DiscriminantProperty.d.ts +1 -3
- package/dist/generators/ts/_NamedObjectType/DiscriminantProperty.js +17 -5
- package/dist/generators/ts/_NamedObjectType/IdentifierProperty.d.ts +5 -15
- package/dist/generators/ts/_NamedObjectType/IdentifierProperty.js +32 -202
- package/dist/generators/ts/_NamedObjectType/NamedObjectType_classDeclaration.js +1 -2
- package/dist/generators/ts/_NamedObjectType/NamedObjectType_equalsFunctionOrMethodDeclaration.js +10 -9
- package/dist/generators/ts/_NamedObjectType/NamedObjectType_filterFunctionDeclaration.js +4 -4
- package/dist/generators/ts/_NamedObjectType/NamedObjectType_focusSparqlConstructTriplesFunctionDeclaration.js +1 -1
- package/dist/generators/ts/_NamedObjectType/NamedObjectType_focusSparqlWherePatternsFunctionDeclaration.js +1 -1
- package/dist/generators/ts/_NamedObjectType/NamedObjectType_fromJsonFunctionDeclaration.js +1 -5
- package/dist/generators/ts/_NamedObjectType/NamedObjectType_fromRdfResourceFunctionDeclaration.js +5 -10
- package/dist/generators/ts/_NamedObjectType/NamedObjectType_hashFunctionOrMethodDeclarations.js +13 -9
- package/dist/generators/ts/_NamedObjectType/NamedObjectType_interfaceDeclaration.js +1 -1
- package/dist/generators/ts/_NamedObjectType/NamedObjectType_jsonTypeAliasDeclaration.js +2 -2
- package/dist/generators/ts/_NamedObjectType/NamedObjectType_jsonUiSchemaFunctionDeclaration.js +1 -1
- package/dist/generators/ts/_NamedObjectType/NamedObjectType_schemaVariableStatement.js +1 -1
- package/dist/generators/ts/_NamedObjectType/NamedObjectType_toJsonFunctionOrMethodDeclaration.js +8 -4
- package/dist/generators/ts/_NamedObjectType/NamedObjectType_toRdfResourceFunctionOrMethodDeclaration.js +4 -2
- package/dist/generators/ts/_NamedObjectType/NamedObjectType_toStringFunctionOrMethodDeclaration.js +9 -5
- package/dist/generators/ts/_NamedObjectType/Property.d.ts +1 -2
- package/dist/generators/ts/_NamedObjectType/ShaclProperty.d.ts +1 -3
- package/dist/generators/ts/_NamedObjectType/ShaclProperty.js +3 -12
- package/dist/generators/ts/_snippets/snippets_LazyObject.js +2 -2
- package/dist/generators/ts/_snippets/snippets_LazyObjectOption.js +2 -2
- package/dist/generators/ts/_snippets/snippets_LazyObjectSet.js +2 -2
- package/dist/generators/ts/imports.d.ts +0 -2
- package/dist/generators/ts/imports.js +0 -2
- package/dist/generators/ts/rdfjsDatasetObjectSetClassDeclaration.js +2 -2
- package/dist/generators/ts/sparqlObjectSetClassDeclaration.js +1 -1
- package/dist/input/generated.d.ts +10 -47
- package/dist/input/generated.js +105 -154
- package/package.json +2 -2
- package/dist/_ShapesGraphToAstTransformer/nodeShapeIdentifierMintingStrategy.d.ts +0 -6
- package/dist/_ShapesGraphToAstTransformer/nodeShapeIdentifierMintingStrategy.js +0 -32
- package/dist/enums/IdentifierMintingStrategy.d.ts +0 -9
- package/dist/enums/IdentifierMintingStrategy.js +0 -18
- package/dist/generators/ts/_NamedObjectType/IdentifierPrefixProperty.d.ts +0 -33
- package/dist/generators/ts/_NamedObjectType/IdentifierPrefixProperty.js +0 -92
|
@@ -22,13 +22,11 @@ export declare class ShaclProperty<TypeT extends Type> extends AbstractProperty<
|
|
|
22
22
|
recursive: boolean;
|
|
23
23
|
} & ConstructorParameters<typeof AbstractProperty<TypeT>>[0]);
|
|
24
24
|
get constructorParametersSignature(): Maybe<Code>;
|
|
25
|
-
get declaration():
|
|
26
|
-
get equalsFunction(): Maybe<Code>;
|
|
25
|
+
get declaration(): Code;
|
|
27
26
|
get filterProperty(): Maybe<{
|
|
28
27
|
name: string;
|
|
29
28
|
type: Code;
|
|
30
29
|
}>;
|
|
31
|
-
get getAccessorDeclaration(): Maybe<Code>;
|
|
32
30
|
get graphqlField(): AbstractProperty<TypeT>["graphqlField"];
|
|
33
31
|
get jsonSchema(): AbstractProperty<TypeT>["jsonSchema"];
|
|
34
32
|
get jsonSignature(): Maybe<Code>;
|
|
@@ -55,14 +55,11 @@ export class ShaclProperty extends AbstractProperty {
|
|
|
55
55
|
lhs.push(code `readonly`);
|
|
56
56
|
}
|
|
57
57
|
lhs.push(code `${this.name}`);
|
|
58
|
-
return
|
|
58
|
+
return code `${this.comment
|
|
59
59
|
.alt(this.description)
|
|
60
60
|
.alt(this.label)
|
|
61
61
|
.map(tsComment)
|
|
62
|
-
.orDefault("")}${joinCode(lhs, { on: " " })}: ${this.type.name}
|
|
63
|
-
}
|
|
64
|
-
get equalsFunction() {
|
|
65
|
-
return Maybe.of(this.type.equalsFunction);
|
|
62
|
+
.orDefault("")}${joinCode(lhs, { on: " " })}: ${this.type.name};`;
|
|
66
63
|
}
|
|
67
64
|
get filterProperty() {
|
|
68
65
|
if (this.visibility !== "public") {
|
|
@@ -73,9 +70,6 @@ export class ShaclProperty extends AbstractProperty {
|
|
|
73
70
|
type: this.type.filterType,
|
|
74
71
|
});
|
|
75
72
|
}
|
|
76
|
-
get getAccessorDeclaration() {
|
|
77
|
-
return Maybe.empty();
|
|
78
|
-
}
|
|
79
73
|
get graphqlField() {
|
|
80
74
|
const args = this.type.graphqlArgs;
|
|
81
75
|
const argsVariable = args.isJust() ? code `args` : code `_args`;
|
|
@@ -92,7 +86,7 @@ export class ShaclProperty extends AbstractProperty {
|
|
|
92
86
|
context: "property",
|
|
93
87
|
});
|
|
94
88
|
const meta = {
|
|
95
|
-
id: this.name
|
|
89
|
+
id: `${this.namedObjectType.name}-${this.name}`, // id's must be unique
|
|
96
90
|
};
|
|
97
91
|
this.comment.alt(this.description).ifJust((description) => {
|
|
98
92
|
meta["description"] = description;
|
|
@@ -264,9 +258,6 @@ __decorate([
|
|
|
264
258
|
__decorate([
|
|
265
259
|
Memoize()
|
|
266
260
|
], ShaclProperty.prototype, "declaration", null);
|
|
267
|
-
__decorate([
|
|
268
|
-
Memoize()
|
|
269
|
-
], ShaclProperty.prototype, "equalsFunction", null);
|
|
270
261
|
__decorate([
|
|
271
262
|
Memoize()
|
|
272
263
|
], ShaclProperty.prototype, "filterProperty", null);
|
|
@@ -5,7 +5,7 @@ export const snippets_LazyObject = conditionalOutput(`${syntheticNamePrefix}Lazy
|
|
|
5
5
|
/**
|
|
6
6
|
* Type of lazy properties that return a single required object. This is a class instead of an interface so it can be instanceof'd elsewhere.
|
|
7
7
|
*/
|
|
8
|
-
export class ${syntheticNamePrefix}LazyObject<ObjectIdentifierT extends ${imports.BlankNode} | ${imports.NamedNode}, PartialObjectT extends { ${syntheticNamePrefix}identifier: ObjectIdentifierT }, ResolvedObjectT extends { ${syntheticNamePrefix}identifier: ObjectIdentifierT }> {
|
|
8
|
+
export class ${syntheticNamePrefix}LazyObject<ObjectIdentifierT extends ${imports.BlankNode} | ${imports.NamedNode}, PartialObjectT extends { ${syntheticNamePrefix}identifier: () => ObjectIdentifierT }, ResolvedObjectT extends { ${syntheticNamePrefix}identifier: () => ObjectIdentifierT }> {
|
|
9
9
|
readonly partial: PartialObjectT;
|
|
10
10
|
private readonly resolver: (identifier: ObjectIdentifierT, options?: { preferredLanguages?: readonly string[] }) => Promise<${imports.Either}<Error, ResolvedObjectT>>;
|
|
11
11
|
|
|
@@ -18,7 +18,7 @@ export class ${syntheticNamePrefix}LazyObject<ObjectIdentifierT extends ${import
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
resolve(options?: { preferredLanguages?: readonly string[] }): Promise<${imports.Either}<Error, ResolvedObjectT>> {
|
|
21
|
-
return this.resolver(this.partial.${syntheticNamePrefix}identifier, options);
|
|
21
|
+
return this.resolver(this.partial.${syntheticNamePrefix}identifier(), options);
|
|
22
22
|
}
|
|
23
23
|
}`);
|
|
24
24
|
//# sourceMappingURL=snippets_LazyObject.js.map
|
|
@@ -5,7 +5,7 @@ export const snippets_LazyObjectOption = conditionalOutput(`${syntheticNamePrefi
|
|
|
5
5
|
/**
|
|
6
6
|
* Type of lazy properties that return a single optional object. This is a class instead of an interface so it can be instanceof'd elsewhere.
|
|
7
7
|
*/
|
|
8
|
-
export class ${syntheticNamePrefix}LazyObjectOption<ObjectIdentifierT extends ${imports.BlankNode} | ${imports.NamedNode}, PartialObjectT extends { ${syntheticNamePrefix}identifier: ObjectIdentifierT }, ResolvedObjectT extends { ${syntheticNamePrefix}identifier: ObjectIdentifierT }> {
|
|
8
|
+
export class ${syntheticNamePrefix}LazyObjectOption<ObjectIdentifierT extends ${imports.BlankNode} | ${imports.NamedNode}, PartialObjectT extends { ${syntheticNamePrefix}identifier: () => ObjectIdentifierT }, ResolvedObjectT extends { ${syntheticNamePrefix}identifier: () => ObjectIdentifierT }> {
|
|
9
9
|
readonly partial: ${imports.Maybe}<PartialObjectT>;
|
|
10
10
|
private readonly resolver: (identifier: ObjectIdentifierT, options?: { preferredLanguages?: readonly string[] }) => Promise<${imports.Either}<Error, ResolvedObjectT>>;
|
|
11
11
|
|
|
@@ -21,7 +21,7 @@ export class ${syntheticNamePrefix}LazyObjectOption<ObjectIdentifierT extends ${
|
|
|
21
21
|
if (this.partial.isNothing()) {
|
|
22
22
|
return ${imports.Right}(${imports.Maybe}.empty());
|
|
23
23
|
}
|
|
24
|
-
return (await this.resolver(this.partial.unsafeCoerce().${syntheticNamePrefix}identifier, options)).map(${imports.Maybe}.of);
|
|
24
|
+
return (await this.resolver(this.partial.unsafeCoerce().${syntheticNamePrefix}identifier(), options)).map(${imports.Maybe}.of);
|
|
25
25
|
}
|
|
26
26
|
}`);
|
|
27
27
|
//# sourceMappingURL=snippets_LazyObjectOption.js.map
|
|
@@ -5,7 +5,7 @@ export const snippets_LazyObjectSet = conditionalOutput(`${syntheticNamePrefix}L
|
|
|
5
5
|
/**
|
|
6
6
|
* Type of lazy properties that return a set of objects. This is a class instead of an interface so it can be instanceof'd elsewhere.
|
|
7
7
|
*/
|
|
8
|
-
export class ${syntheticNamePrefix}LazyObjectSet<ObjectIdentifierT extends ${imports.BlankNode} | ${imports.NamedNode}, PartialObjectT extends { ${syntheticNamePrefix}identifier: ObjectIdentifierT }, ResolvedObjectT extends { ${syntheticNamePrefix}identifier: ObjectIdentifierT }> {
|
|
8
|
+
export class ${syntheticNamePrefix}LazyObjectSet<ObjectIdentifierT extends ${imports.BlankNode} | ${imports.NamedNode}, PartialObjectT extends { ${syntheticNamePrefix}identifier: () => ObjectIdentifierT }, ResolvedObjectT extends { ${syntheticNamePrefix}identifier: () => ObjectIdentifierT }> {
|
|
9
9
|
readonly partials: readonly PartialObjectT[];
|
|
10
10
|
private readonly resolver: (identifiers: readonly ObjectIdentifierT[], options?: { preferredLanguages?: readonly string[] }) => Promise<${imports.Either}<Error, readonly ResolvedObjectT[]>>;
|
|
11
11
|
|
|
@@ -36,7 +36,7 @@ export class ${syntheticNamePrefix}LazyObjectSet<ObjectIdentifierT extends ${imp
|
|
|
36
36
|
offset = 0;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
return await this.resolver(this.partials.slice(offset, offset + limit).map(partial => partial.${syntheticNamePrefix}identifier), { preferredLanguages: options?.preferredLanguages });
|
|
39
|
+
return await this.resolver(this.partials.slice(offset, offset + limit).map(partial => partial.${syntheticNamePrefix}identifier()), { preferredLanguages: options?.preferredLanguages });
|
|
40
40
|
}
|
|
41
41
|
}`);
|
|
42
42
|
//# sourceMappingURL=snippets_LazyObjectSet.js.map
|
|
@@ -33,9 +33,7 @@ export declare const imports: {
|
|
|
33
33
|
readonly Resource: import("ts-poet/build/Import.js").Import;
|
|
34
34
|
readonly ResourceSet: import("ts-poet/build/Import.js").Import;
|
|
35
35
|
readonly Right: import("ts-poet/build/Import.js").Import;
|
|
36
|
-
readonly sha256: import("ts-poet/build/Import.js").Import;
|
|
37
36
|
readonly sparqljs: import("ts-poet/build/Import.js").Import;
|
|
38
|
-
readonly uuid: import("ts-poet/build/Import.js").Import;
|
|
39
37
|
readonly Variable: import("ts-poet/build/Import.js").Import;
|
|
40
38
|
readonly z: import("ts-poet/build/Import.js").Import;
|
|
41
39
|
};
|
|
@@ -34,9 +34,7 @@ export const imports = {
|
|
|
34
34
|
Resource: imp("Resource@@rdfx/resource"),
|
|
35
35
|
ResourceSet: imp("ResourceSet@@rdfx/resource"),
|
|
36
36
|
Right: imp("Right@purify-ts"),
|
|
37
|
-
sha256: imp("sha256@js-sha256"),
|
|
38
37
|
sparqljs: imp("sparqljs*sparqljs"),
|
|
39
|
-
uuid: imp("uuid*uuid"),
|
|
40
38
|
Variable: imp("Variable@@rdfjs/types"),
|
|
41
39
|
z: imp("z@zod"),
|
|
42
40
|
};
|
|
@@ -15,7 +15,7 @@ export function rdfjsDatasetObjectSetClassDeclaration({ namedObjectTypes, namedO
|
|
|
15
15
|
query: `query?: ${syntheticNamePrefix}ObjectSet.Query<ObjectFilterT, ObjectIdentifierT>`,
|
|
16
16
|
};
|
|
17
17
|
const typeParameters = {
|
|
18
|
-
ObjectT: code `ObjectT extends { readonly $identifier: ObjectIdentifierT }`,
|
|
18
|
+
ObjectT: code `ObjectT extends { readonly $identifier: () => ObjectIdentifierT }`,
|
|
19
19
|
ObjectFilterT: code `ObjectFilterT`,
|
|
20
20
|
ObjectIdentifierT: code `ObjectIdentifierT extends ${imports.BlankNode} | ${imports.NamedNode}`,
|
|
21
21
|
};
|
|
@@ -79,7 +79,7 @@ async ${methodSignatures.objectIdentifiers.name}(${methodSignatures.objectIdenti
|
|
|
79
79
|
// objectIdentifiersSync
|
|
80
80
|
code `\
|
|
81
81
|
${methodSignatures.objectIdentifiers.name}Sync(${methodSignatures.objectIdentifiers.parameters}): ${imports.Either}<Error, readonly ${namedObjectType.identifierTypeAlias}[]> {
|
|
82
|
-
return this.${methodSignatures.objects.name}Sync(query).map(objects => objects.map(object => object.${syntheticNamePrefix}identifier));
|
|
82
|
+
return this.${methodSignatures.objects.name}Sync(query).map(objects => objects.map(object => object.${syntheticNamePrefix}identifier()));
|
|
83
83
|
}`,
|
|
84
84
|
// objects
|
|
85
85
|
code `\
|
|
@@ -15,7 +15,7 @@ export function sparqlObjectSetClassDeclaration({ namedObjectTypes, namedObjectU
|
|
|
15
15
|
selectObjectTypeType: code `namedObjectType: { ${syntheticNamePrefix}focusSparqlWherePatterns: ${snippets.FocusSparqlWherePatternsFunction}<ObjectFilterT> }`,
|
|
16
16
|
};
|
|
17
17
|
const typeParameters = {
|
|
18
|
-
ObjectT: code `ObjectT extends { readonly $identifier: ObjectIdentifierT }`,
|
|
18
|
+
ObjectT: code `ObjectT extends { readonly $identifier: () => ObjectIdentifierT }`,
|
|
19
19
|
ObjectFilterT: code `ObjectFilterT`,
|
|
20
20
|
ObjectIdentifierT: code `ObjectIdentifierT extends ${imports.BlankNode} | ${imports.NamedNode}`,
|
|
21
21
|
};
|
|
@@ -126,7 +126,7 @@ export type $ToRdfResourceValuesFunction<ValueT, ReturnT extends BlankNode | Lit
|
|
|
126
126
|
resourceSet: ResourceSet;
|
|
127
127
|
}) => ReturnT[];
|
|
128
128
|
export interface PropertyShape {
|
|
129
|
-
readonly $identifier: PropertyShape.$Identifier;
|
|
129
|
+
readonly $identifier: () => PropertyShape.$Identifier;
|
|
130
130
|
readonly $type: "PropertyShape";
|
|
131
131
|
readonly and: Maybe<readonly (BlankNode | NamedNode)[]>;
|
|
132
132
|
readonly classes: readonly NamedNode[];
|
|
@@ -170,7 +170,7 @@ export interface PropertyShape {
|
|
|
170
170
|
}
|
|
171
171
|
export declare namespace PropertyShape {
|
|
172
172
|
function $create(parameters: {
|
|
173
|
-
readonly $identifier?: (BlankNode | NamedNode) | string;
|
|
173
|
+
readonly $identifier?: (() => PropertyShape.$Identifier) | (BlankNode | NamedNode) | string;
|
|
174
174
|
readonly and?: Maybe<readonly (BlankNode | NamedNode)[]> | readonly (BlankNode | NamedNode)[] | readonly string[];
|
|
175
175
|
readonly classes?: readonly NamedNode[] | readonly string[];
|
|
176
176
|
readonly comment?: Maybe<string> | string;
|
|
@@ -706,14 +706,14 @@ export declare namespace PropertyShape {
|
|
|
706
706
|
function $toString(_propertyShape: PropertyShape): string;
|
|
707
707
|
}
|
|
708
708
|
export interface PropertyGroup {
|
|
709
|
-
readonly $identifier: PropertyGroup.$Identifier;
|
|
709
|
+
readonly $identifier: () => PropertyGroup.$Identifier;
|
|
710
710
|
readonly $type: "PropertyGroup";
|
|
711
711
|
readonly comment: Maybe<string>;
|
|
712
712
|
readonly label: Maybe<string>;
|
|
713
713
|
}
|
|
714
714
|
export declare namespace PropertyGroup {
|
|
715
715
|
function $create(parameters?: {
|
|
716
|
-
readonly $identifier?: (BlankNode | NamedNode) | string;
|
|
716
|
+
readonly $identifier?: (() => PropertyGroup.$Identifier) | (BlankNode | NamedNode) | string;
|
|
717
717
|
readonly comment?: Maybe<string> | string;
|
|
718
718
|
readonly label?: Maybe<string> | string;
|
|
719
719
|
}): PropertyGroup;
|
|
@@ -781,7 +781,7 @@ export declare namespace PropertyGroup {
|
|
|
781
781
|
function $toString(_propertyGroup: PropertyGroup): string;
|
|
782
782
|
}
|
|
783
783
|
export interface Ontology {
|
|
784
|
-
readonly $identifier: Ontology.$Identifier;
|
|
784
|
+
readonly $identifier: () => Ontology.$Identifier;
|
|
785
785
|
readonly $type: "Ontology";
|
|
786
786
|
readonly comment: Maybe<string>;
|
|
787
787
|
readonly label: Maybe<string>;
|
|
@@ -792,7 +792,7 @@ export interface Ontology {
|
|
|
792
792
|
}
|
|
793
793
|
export declare namespace Ontology {
|
|
794
794
|
function $create(parameters?: {
|
|
795
|
-
readonly $identifier?: (BlankNode | NamedNode) | string;
|
|
795
|
+
readonly $identifier?: (() => Ontology.$Identifier) | (BlankNode | NamedNode) | string;
|
|
796
796
|
readonly comment?: Maybe<string> | string;
|
|
797
797
|
readonly label?: Maybe<string> | string;
|
|
798
798
|
readonly tsFeatureExcludes?: readonly NamedNode<"http://purl.org/shaclmate/ontology#_TsFeatures_All" | "http://purl.org/shaclmate/ontology#_TsFeature_Create" | "http://purl.org/shaclmate/ontology#_TsFeatures_Default" | "http://purl.org/shaclmate/ontology#_TsFeature_Equals" | "http://purl.org/shaclmate/ontology#_TsFeature_Graphql" | "http://purl.org/shaclmate/ontology#_TsFeature_Hash" | "http://purl.org/shaclmate/ontology#_TsFeature_Json" | "http://purl.org/shaclmate/ontology#_TsFeatures_None" | "http://purl.org/shaclmate/ontology#_TsFeature_Rdf" | "http://purl.org/shaclmate/ontology#_TsFeature_Sparql">[] | readonly ("http://purl.org/shaclmate/ontology#_TsFeatures_All" | "http://purl.org/shaclmate/ontology#_TsFeature_Create" | "http://purl.org/shaclmate/ontology#_TsFeatures_Default" | "http://purl.org/shaclmate/ontology#_TsFeature_Equals" | "http://purl.org/shaclmate/ontology#_TsFeature_Graphql" | "http://purl.org/shaclmate/ontology#_TsFeature_Hash" | "http://purl.org/shaclmate/ontology#_TsFeature_Json" | "http://purl.org/shaclmate/ontology#_TsFeatures_None" | "http://purl.org/shaclmate/ontology#_TsFeature_Rdf" | "http://purl.org/shaclmate/ontology#_TsFeature_Sparql")[];
|
|
@@ -915,7 +915,7 @@ export declare namespace Ontology {
|
|
|
915
915
|
function $toString(_ontology: Ontology): string;
|
|
916
916
|
}
|
|
917
917
|
export interface NodeShape {
|
|
918
|
-
readonly $identifier: NodeShape.$Identifier;
|
|
918
|
+
readonly $identifier: () => NodeShape.$Identifier;
|
|
919
919
|
readonly $type: "NodeShape";
|
|
920
920
|
readonly abstract: Maybe<boolean>;
|
|
921
921
|
readonly and: Maybe<readonly (BlankNode | NamedNode)[]>;
|
|
@@ -929,7 +929,6 @@ export interface NodeShape {
|
|
|
929
929
|
readonly flags: readonly string[];
|
|
930
930
|
readonly fromRdfType: Maybe<NamedNode>;
|
|
931
931
|
readonly hasValues: readonly (NamedNode | Literal)[];
|
|
932
|
-
readonly identifierMintingStrategy: Maybe<NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_BlankNode" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_SHA256" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_UUIDv4">>;
|
|
933
932
|
readonly ignoredProperties: Maybe<readonly NamedNode[]>;
|
|
934
933
|
readonly in_: Maybe<readonly (NamedNode | Literal)[]>;
|
|
935
934
|
readonly isDefinedBy: Maybe<BlankNode | NamedNode>;
|
|
@@ -963,7 +962,7 @@ export interface NodeShape {
|
|
|
963
962
|
}
|
|
964
963
|
export declare namespace NodeShape {
|
|
965
964
|
function $create(parameters?: {
|
|
966
|
-
readonly $identifier?: (BlankNode | NamedNode) | string;
|
|
965
|
+
readonly $identifier?: (() => NodeShape.$Identifier) | (BlankNode | NamedNode) | string;
|
|
967
966
|
readonly abstract?: Maybe<boolean> | boolean;
|
|
968
967
|
readonly and?: Maybe<readonly (BlankNode | NamedNode)[]> | readonly (BlankNode | NamedNode)[] | readonly string[];
|
|
969
968
|
readonly classes?: readonly NamedNode[] | readonly string[];
|
|
@@ -976,7 +975,6 @@ export declare namespace NodeShape {
|
|
|
976
975
|
readonly flags?: readonly string[];
|
|
977
976
|
readonly fromRdfType?: Maybe<NamedNode> | NamedNode | string;
|
|
978
977
|
readonly hasValues?: readonly (NamedNode | Literal)[] | readonly bigint[] | readonly boolean[] | readonly number[] | readonly string[];
|
|
979
|
-
readonly identifierMintingStrategy?: Maybe<NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_BlankNode" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_SHA256" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_UUIDv4">> | NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_BlankNode" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_SHA256" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_UUIDv4"> | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_BlankNode" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_SHA256" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_UUIDv4";
|
|
980
978
|
readonly ignoredProperties?: Maybe<readonly NamedNode[]> | readonly NamedNode[] | readonly string[];
|
|
981
979
|
readonly in_?: Maybe<readonly (NamedNode | Literal)[]> | readonly (NamedNode | Literal)[] | readonly bigint[] | readonly boolean[] | readonly number[] | readonly string[];
|
|
982
980
|
readonly isDefinedBy?: Maybe<BlankNode | NamedNode> | (BlankNode | NamedNode) | string;
|
|
@@ -1028,7 +1026,6 @@ export declare namespace NodeShape {
|
|
|
1028
1026
|
readonly flags?: $CollectionFilter<$StringFilter>;
|
|
1029
1027
|
readonly fromRdfType?: $MaybeFilter<$IriFilter>;
|
|
1030
1028
|
readonly hasValues?: $CollectionFilter<$TermFilter>;
|
|
1031
|
-
readonly identifierMintingStrategy?: $MaybeFilter<$IriFilter>;
|
|
1032
1029
|
readonly ignoredProperties?: $MaybeFilter<$CollectionFilter<$IriFilter>>;
|
|
1033
1030
|
readonly in_?: $MaybeFilter<$CollectionFilter<$TermFilter>>;
|
|
1034
1031
|
readonly isDefinedBy?: $MaybeFilter<$IdentifierFilter>;
|
|
@@ -1079,7 +1076,6 @@ export declare namespace NodeShape {
|
|
|
1079
1076
|
flags: readonly string[];
|
|
1080
1077
|
fromRdfType: Maybe<NamedNode>;
|
|
1081
1078
|
hasValues: readonly (NamedNode | Literal)[];
|
|
1082
|
-
identifierMintingStrategy: Maybe<NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_BlankNode" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_SHA256" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_UUIDv4">>;
|
|
1083
1079
|
ignoredProperties: Maybe<readonly NamedNode[]>;
|
|
1084
1080
|
in_: Maybe<readonly (NamedNode | Literal)[]>;
|
|
1085
1081
|
isDefinedBy: Maybe<BlankNode | NamedNode>;
|
|
@@ -1249,17 +1245,6 @@ export declare namespace NodeShape {
|
|
|
1249
1245
|
};
|
|
1250
1246
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#hasValue">;
|
|
1251
1247
|
};
|
|
1252
|
-
readonly identifierMintingStrategy: {
|
|
1253
|
-
readonly kind: "Shacl";
|
|
1254
|
-
readonly type: () => {
|
|
1255
|
-
kind: "Maybe";
|
|
1256
|
-
item: () => {
|
|
1257
|
-
kind: "Iri";
|
|
1258
|
-
in: (import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_BlankNode"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_SHA256"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_UUIDv4">)[];
|
|
1259
|
-
};
|
|
1260
|
-
};
|
|
1261
|
-
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#identifierMintingStrategy">;
|
|
1262
|
-
};
|
|
1263
1248
|
readonly ignoredProperties: {
|
|
1264
1249
|
readonly kind: "Shacl";
|
|
1265
1250
|
readonly type: () => {
|
|
@@ -1746,17 +1731,6 @@ export declare namespace Shape {
|
|
|
1746
1731
|
};
|
|
1747
1732
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#hasValue">;
|
|
1748
1733
|
};
|
|
1749
|
-
readonly identifierMintingStrategy: {
|
|
1750
|
-
readonly kind: "Shacl";
|
|
1751
|
-
readonly type: () => {
|
|
1752
|
-
kind: "Maybe";
|
|
1753
|
-
item: () => {
|
|
1754
|
-
kind: "Iri";
|
|
1755
|
-
in: (import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_BlankNode"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_SHA256"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_UUIDv4">)[];
|
|
1756
|
-
};
|
|
1757
|
-
};
|
|
1758
|
-
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#identifierMintingStrategy">;
|
|
1759
|
-
};
|
|
1760
1734
|
readonly ignoredProperties: {
|
|
1761
1735
|
readonly kind: "Shacl";
|
|
1762
1736
|
readonly type: () => {
|
|
@@ -2945,17 +2919,6 @@ export declare namespace $Object {
|
|
|
2945
2919
|
};
|
|
2946
2920
|
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#hasValue">;
|
|
2947
2921
|
};
|
|
2948
|
-
readonly identifierMintingStrategy: {
|
|
2949
|
-
readonly kind: "Shacl";
|
|
2950
|
-
readonly type: () => {
|
|
2951
|
-
kind: "Maybe";
|
|
2952
|
-
item: () => {
|
|
2953
|
-
kind: "Iri";
|
|
2954
|
-
in: (import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_BlankNode"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_SHA256"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_UUIDv4">)[];
|
|
2955
|
-
};
|
|
2956
|
-
};
|
|
2957
|
-
readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#identifierMintingStrategy">;
|
|
2958
|
-
};
|
|
2959
2922
|
readonly ignoredProperties: {
|
|
2960
2923
|
readonly kind: "Shacl";
|
|
2961
2924
|
readonly type: () => {
|
|
@@ -3967,14 +3930,14 @@ export declare class $RdfjsDatasetObjectSet implements $ObjectSet {
|
|
|
3967
3930
|
objects(query?: $ObjectSet.Query<$Object.$Filter, $Object.$Identifier>): Promise<Either<Error, readonly $Object[]>>;
|
|
3968
3931
|
objectsSync(query?: $ObjectSet.Query<$Object.$Filter, $Object.$Identifier>): Either<Error, readonly $Object[]>;
|
|
3969
3932
|
protected $objectsSync<ObjectT extends {
|
|
3970
|
-
readonly $identifier: ObjectIdentifierT;
|
|
3933
|
+
readonly $identifier: () => ObjectIdentifierT;
|
|
3971
3934
|
}, ObjectFilterT, ObjectIdentifierT extends BlankNode | NamedNode>(namedObjectType: {
|
|
3972
3935
|
$filter: (filter: ObjectFilterT, value: ObjectT) => boolean;
|
|
3973
3936
|
$fromRdfResource: $FromRdfResourceFunction<ObjectT>;
|
|
3974
3937
|
$fromRdfTypes: readonly NamedNode[];
|
|
3975
3938
|
}, query?: $ObjectSet.Query<ObjectFilterT, ObjectIdentifierT>): Either<Error, readonly ObjectT[]>;
|
|
3976
3939
|
protected $objectUnionsSync<ObjectT extends {
|
|
3977
|
-
readonly $identifier: ObjectIdentifierT;
|
|
3940
|
+
readonly $identifier: () => ObjectIdentifierT;
|
|
3978
3941
|
}, ObjectFilterT, ObjectIdentifierT extends BlankNode | NamedNode>(namedObjectTypes: readonly {
|
|
3979
3942
|
$filter: (filter: ObjectFilterT, value: ObjectT) => boolean;
|
|
3980
3943
|
$fromRdfResource: $FromRdfResourceFunction<ObjectT>;
|