@shaclmate/shacl-ast 4.0.30 → 4.0.32
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/generated.d.ts +34 -99
- package/dist/generated.js +1392 -1656
- package/package.json +1 -1
package/dist/generated.d.ts
CHANGED
|
@@ -2,6 +2,22 @@ import type { BlankNode, DatasetCore, Literal, NamedNode, Quad_Graph, Variable }
|
|
|
2
2
|
import { PropertyPath as RdfxResourcePropertyPath, Resource, ResourceSet } from "@rdfx/resource";
|
|
3
3
|
import { NTriplesTerm } from "@rdfx/string";
|
|
4
4
|
import { Either, Maybe } from "purify-ts";
|
|
5
|
+
type $_FromRdfResourceFunction<T> = (resource: Resource, options: {
|
|
6
|
+
context: undefined | unknown;
|
|
7
|
+
graph: Exclude<Quad_Graph, Variable> | undefined;
|
|
8
|
+
ignoreRdfType: boolean;
|
|
9
|
+
objectSet: $ObjectSet;
|
|
10
|
+
preferredLanguages: readonly string[] | undefined;
|
|
11
|
+
}) => Either<Error, T>;
|
|
12
|
+
export type $_ToRdfResourceFunction<IdentifierT extends Resource.Identifier, ObjectT extends {
|
|
13
|
+
$identifier: () => IdentifierT;
|
|
14
|
+
}> = (parameters: {
|
|
15
|
+
graph: Exclude<Quad_Graph, Variable> | undefined;
|
|
16
|
+
ignoreRdfType: boolean;
|
|
17
|
+
object: ObjectT;
|
|
18
|
+
resource: Resource<IdentifierT>;
|
|
19
|
+
resourceSet: ResourceSet;
|
|
20
|
+
}) => void;
|
|
5
21
|
interface $BooleanFilter {
|
|
6
22
|
readonly value?: boolean;
|
|
7
23
|
}
|
|
@@ -43,13 +59,6 @@ interface $NumericFilter<T> {
|
|
|
43
59
|
readonly minExclusive?: T;
|
|
44
60
|
readonly minInclusive?: T;
|
|
45
61
|
}
|
|
46
|
-
type $PropertiesFromRdfResourceFunction<T> = (resource: Resource, options: {
|
|
47
|
-
context: undefined | unknown;
|
|
48
|
-
graph: Exclude<Quad_Graph, Variable> | undefined;
|
|
49
|
-
ignoreRdfType: boolean;
|
|
50
|
-
objectSet: $ObjectSet;
|
|
51
|
-
preferredLanguages?: readonly string[];
|
|
52
|
-
}) => Either<Error, T>;
|
|
53
62
|
export type $PropertyPath = RdfxResourcePropertyPath;
|
|
54
63
|
export declare namespace $PropertyPath {
|
|
55
64
|
type Filter = object;
|
|
@@ -76,11 +85,11 @@ interface $TermFilter {
|
|
|
76
85
|
readonly languageIn?: readonly string[];
|
|
77
86
|
readonly typeIn?: readonly ("BlankNode" | "Literal" | "NamedNode")[];
|
|
78
87
|
}
|
|
79
|
-
export type $ToRdfResourceFunction<
|
|
88
|
+
export type $ToRdfResourceFunction<ObjectT, IdentifierT extends Resource.Identifier = Resource.Identifier> = (object: ObjectT, options?: {
|
|
80
89
|
graph?: Exclude<Quad_Graph, Variable>;
|
|
81
90
|
ignoreRdfType?: boolean;
|
|
82
91
|
resourceSet?: ResourceSet;
|
|
83
|
-
}) => Resource
|
|
92
|
+
}) => Resource<IdentifierT>;
|
|
84
93
|
export type $ToRdfResourceValuesFunction<ValueT, ReturnT extends BlankNode | Literal | NamedNode = BlankNode | Literal | NamedNode> = (value: ValueT, options: {
|
|
85
94
|
graph?: Exclude<Quad_Graph, Variable>;
|
|
86
95
|
ignoreRdfType?: boolean;
|
|
@@ -201,46 +210,11 @@ export declare namespace PropertyShape {
|
|
|
201
210
|
readonly uniqueLang?: $MaybeFilter<$BooleanFilter>;
|
|
202
211
|
readonly xone?: $MaybeFilter<$CollectionFilter<$IdentifierFilter>>;
|
|
203
212
|
};
|
|
213
|
+
const _fromRdfResource: $_FromRdfResourceFunction<PropertyShape>;
|
|
204
214
|
const fromRdfResource: $FromRdfResourceFunction<PropertyShape>;
|
|
205
215
|
const fromRdfResourceValues: $FromRdfResourceValuesFunction<PropertyShape>;
|
|
206
216
|
const fromRdfType: NamedNode<string>;
|
|
207
217
|
function isPropertyShape(object: $Object): object is PropertyShape;
|
|
208
|
-
const propertiesFromRdfResource: $PropertiesFromRdfResourceFunction<{
|
|
209
|
-
$identifier: BlankNode | NamedNode;
|
|
210
|
-
$type: "PropertyShape";
|
|
211
|
-
and: Maybe<readonly (BlankNode | NamedNode)[]>;
|
|
212
|
-
classes: readonly NamedNode[];
|
|
213
|
-
comment: Maybe<string>;
|
|
214
|
-
datatype: Maybe<NamedNode>;
|
|
215
|
-
deactivated: Maybe<boolean>;
|
|
216
|
-
defaultValue: Maybe<NamedNode | Literal>;
|
|
217
|
-
description: Maybe<string>;
|
|
218
|
-
flags: readonly string[];
|
|
219
|
-
groups: readonly (BlankNode | NamedNode)[];
|
|
220
|
-
hasValues: readonly (NamedNode | Literal)[];
|
|
221
|
-
in_: Maybe<readonly (NamedNode | Literal)[]>;
|
|
222
|
-
isDefinedBy: Maybe<BlankNode | NamedNode>;
|
|
223
|
-
label: Maybe<string>;
|
|
224
|
-
languageIn: Maybe<readonly string[]>;
|
|
225
|
-
maxCount: Maybe<bigint>;
|
|
226
|
-
maxExclusive: Maybe<Literal>;
|
|
227
|
-
maxInclusive: Maybe<Literal>;
|
|
228
|
-
maxLength: Maybe<bigint>;
|
|
229
|
-
minCount: Maybe<bigint>;
|
|
230
|
-
minExclusive: Maybe<Literal>;
|
|
231
|
-
minInclusive: Maybe<Literal>;
|
|
232
|
-
minLength: Maybe<bigint>;
|
|
233
|
-
name: Maybe<string>;
|
|
234
|
-
node: Maybe<BlankNode | NamedNode>;
|
|
235
|
-
nodeKind: Maybe<NamedNode<"http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal">>;
|
|
236
|
-
not: readonly (BlankNode | NamedNode)[];
|
|
237
|
-
or: Maybe<readonly (BlankNode | NamedNode)[]>;
|
|
238
|
-
order: Maybe<number>;
|
|
239
|
-
path: $PropertyPath;
|
|
240
|
-
patterns: readonly string[];
|
|
241
|
-
uniqueLang: Maybe<boolean>;
|
|
242
|
-
xone: Maybe<readonly (BlankNode | NamedNode)[]>;
|
|
243
|
-
}>;
|
|
244
218
|
const schema: {
|
|
245
219
|
readonly properties: {
|
|
246
220
|
readonly $identifier: {
|
|
@@ -589,8 +563,9 @@ export declare namespace PropertyShape {
|
|
|
589
563
|
};
|
|
590
564
|
};
|
|
591
565
|
};
|
|
592
|
-
|
|
593
|
-
|
|
566
|
+
const _toRdfResource: $_ToRdfResourceFunction<PropertyShape.Identifier, PropertyShape>;
|
|
567
|
+
const toRdfResource: $ToRdfResourceFunction<PropertyShape, Identifier>;
|
|
568
|
+
function _propertiesToStrings(_propertyShape: PropertyShape): Record<string, string>;
|
|
594
569
|
function $toString(this: PropertyShape): string;
|
|
595
570
|
function $toString(_propertyShape: PropertyShape): string;
|
|
596
571
|
}
|
|
@@ -617,16 +592,11 @@ export declare namespace PropertyGroup {
|
|
|
617
592
|
readonly comment?: $MaybeFilter<$StringFilter>;
|
|
618
593
|
readonly label?: $MaybeFilter<$StringFilter>;
|
|
619
594
|
};
|
|
595
|
+
const _fromRdfResource: $_FromRdfResourceFunction<PropertyGroup>;
|
|
620
596
|
const fromRdfResource: $FromRdfResourceFunction<PropertyGroup>;
|
|
621
597
|
const fromRdfResourceValues: $FromRdfResourceValuesFunction<PropertyGroup>;
|
|
622
598
|
const fromRdfType: NamedNode<string>;
|
|
623
599
|
function isPropertyGroup(object: $Object): object is PropertyGroup;
|
|
624
|
-
const propertiesFromRdfResource: $PropertiesFromRdfResourceFunction<{
|
|
625
|
-
$identifier: BlankNode | NamedNode;
|
|
626
|
-
$type: "PropertyGroup";
|
|
627
|
-
comment: Maybe<string>;
|
|
628
|
-
label: Maybe<string>;
|
|
629
|
-
}>;
|
|
630
600
|
const schema: {
|
|
631
601
|
readonly properties: {
|
|
632
602
|
readonly $identifier: {
|
|
@@ -664,8 +634,9 @@ export declare namespace PropertyGroup {
|
|
|
664
634
|
};
|
|
665
635
|
};
|
|
666
636
|
};
|
|
667
|
-
|
|
668
|
-
|
|
637
|
+
const _toRdfResource: $_ToRdfResourceFunction<PropertyGroup.Identifier, PropertyGroup>;
|
|
638
|
+
const toRdfResource: $ToRdfResourceFunction<PropertyGroup, Identifier>;
|
|
639
|
+
function _propertiesToStrings(_propertyGroup: PropertyGroup): Record<string, string>;
|
|
669
640
|
function $toString(this: PropertyGroup): string;
|
|
670
641
|
function $toString(_propertyGroup: PropertyGroup): string;
|
|
671
642
|
}
|
|
@@ -692,16 +663,11 @@ export declare namespace Ontology {
|
|
|
692
663
|
readonly comment?: $MaybeFilter<$StringFilter>;
|
|
693
664
|
readonly label?: $MaybeFilter<$StringFilter>;
|
|
694
665
|
};
|
|
666
|
+
const _fromRdfResource: $_FromRdfResourceFunction<Ontology>;
|
|
695
667
|
const fromRdfResource: $FromRdfResourceFunction<Ontology>;
|
|
696
668
|
const fromRdfResourceValues: $FromRdfResourceValuesFunction<Ontology>;
|
|
697
669
|
const fromRdfType: NamedNode<string>;
|
|
698
670
|
function isOntology(object: $Object): object is Ontology;
|
|
699
|
-
const propertiesFromRdfResource: $PropertiesFromRdfResourceFunction<{
|
|
700
|
-
$identifier: BlankNode | NamedNode;
|
|
701
|
-
$type: "Ontology";
|
|
702
|
-
comment: Maybe<string>;
|
|
703
|
-
label: Maybe<string>;
|
|
704
|
-
}>;
|
|
705
671
|
const schema: {
|
|
706
672
|
readonly properties: {
|
|
707
673
|
readonly $identifier: {
|
|
@@ -739,8 +705,9 @@ export declare namespace Ontology {
|
|
|
739
705
|
};
|
|
740
706
|
};
|
|
741
707
|
};
|
|
742
|
-
|
|
743
|
-
|
|
708
|
+
const _toRdfResource: $_ToRdfResourceFunction<Ontology.Identifier, Ontology>;
|
|
709
|
+
const toRdfResource: $ToRdfResourceFunction<Ontology, Identifier>;
|
|
710
|
+
function _propertiesToStrings(_ontology: Ontology): Record<string, string>;
|
|
744
711
|
function $toString(this: Ontology): string;
|
|
745
712
|
function $toString(_ontology: Ontology): string;
|
|
746
713
|
}
|
|
@@ -851,44 +818,11 @@ export declare namespace NodeShape {
|
|
|
851
818
|
readonly types?: $CollectionFilter<$IriFilter>;
|
|
852
819
|
readonly xone?: $MaybeFilter<$CollectionFilter<$IdentifierFilter>>;
|
|
853
820
|
};
|
|
821
|
+
const _fromRdfResource: $_FromRdfResourceFunction<NodeShape>;
|
|
854
822
|
const fromRdfResource: $FromRdfResourceFunction<NodeShape>;
|
|
855
823
|
const fromRdfResourceValues: $FromRdfResourceValuesFunction<NodeShape>;
|
|
856
824
|
const fromRdfType: NamedNode<string>;
|
|
857
825
|
function isNodeShape(object: $Object): object is NodeShape;
|
|
858
|
-
const propertiesFromRdfResource: $PropertiesFromRdfResourceFunction<{
|
|
859
|
-
$identifier: BlankNode | NamedNode;
|
|
860
|
-
$type: "NodeShape";
|
|
861
|
-
and: Maybe<readonly (BlankNode | NamedNode)[]>;
|
|
862
|
-
classes: readonly NamedNode[];
|
|
863
|
-
closed: Maybe<boolean>;
|
|
864
|
-
comment: Maybe<string>;
|
|
865
|
-
datatype: Maybe<NamedNode>;
|
|
866
|
-
deactivated: Maybe<boolean>;
|
|
867
|
-
flags: readonly string[];
|
|
868
|
-
hasValues: readonly (NamedNode | Literal)[];
|
|
869
|
-
ignoredProperties: Maybe<readonly NamedNode[]>;
|
|
870
|
-
in_: Maybe<readonly (NamedNode | Literal)[]>;
|
|
871
|
-
isDefinedBy: Maybe<BlankNode | NamedNode>;
|
|
872
|
-
label: Maybe<string>;
|
|
873
|
-
languageIn: Maybe<readonly string[]>;
|
|
874
|
-
maxCount: Maybe<bigint>;
|
|
875
|
-
maxExclusive: Maybe<Literal>;
|
|
876
|
-
maxInclusive: Maybe<Literal>;
|
|
877
|
-
maxLength: Maybe<bigint>;
|
|
878
|
-
minCount: Maybe<bigint>;
|
|
879
|
-
minExclusive: Maybe<Literal>;
|
|
880
|
-
minInclusive: Maybe<Literal>;
|
|
881
|
-
minLength: Maybe<bigint>;
|
|
882
|
-
node: Maybe<BlankNode | NamedNode>;
|
|
883
|
-
nodeKind: Maybe<NamedNode<"http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal">>;
|
|
884
|
-
not: readonly (BlankNode | NamedNode)[];
|
|
885
|
-
or: Maybe<readonly (BlankNode | NamedNode)[]>;
|
|
886
|
-
patterns: readonly string[];
|
|
887
|
-
properties: readonly (BlankNode | NamedNode)[];
|
|
888
|
-
subClassOf: readonly NamedNode[];
|
|
889
|
-
types: readonly NamedNode[];
|
|
890
|
-
xone: Maybe<readonly (BlankNode | NamedNode)[]>;
|
|
891
|
-
}>;
|
|
892
826
|
const schema: {
|
|
893
827
|
readonly properties: {
|
|
894
828
|
readonly $identifier: {
|
|
@@ -1225,8 +1159,9 @@ export declare namespace NodeShape {
|
|
|
1225
1159
|
};
|
|
1226
1160
|
};
|
|
1227
1161
|
};
|
|
1228
|
-
|
|
1229
|
-
|
|
1162
|
+
const _toRdfResource: $_ToRdfResourceFunction<NodeShape.Identifier, NodeShape>;
|
|
1163
|
+
const toRdfResource: $ToRdfResourceFunction<NodeShape, Identifier>;
|
|
1164
|
+
function _propertiesToStrings(_nodeShape: NodeShape): Record<string, string>;
|
|
1230
1165
|
function $toString(this: NodeShape): string;
|
|
1231
1166
|
function $toString(_nodeShape: NodeShape): string;
|
|
1232
1167
|
}
|