@shaclmate/shacl-ast 3.0.4 → 4.0.1
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/README.md +1 -1
- package/dist/IdentifierNodeKind.d.ts +2 -2
- package/dist/NodeKind.d.ts +5 -2
- package/dist/NodeKind.js +11 -1
- package/dist/NodeShape.d.ts +3 -3
- package/dist/NodeShape.js +17 -2
- package/dist/Ontology.d.ts +1 -1
- package/dist/Ontology.js +12 -1
- package/dist/PropertyGroup.d.ts +4 -3
- package/dist/PropertyGroup.js +14 -0
- package/dist/PropertyShape.d.ts +6 -6
- package/dist/PropertyShape.js +20 -7
- package/dist/Shape.d.ts +11 -11
- package/dist/Shape.js +46 -14
- package/dist/ShapesGraph.d.ts +81 -9
- package/dist/ShapesGraph.js +311 -1
- package/dist/generated.d.ts +1667 -613
- package/dist/generated.js +2290 -1687
- package/dist/index.d.ts +2 -4
- package/dist/index.js +2 -4
- package/package.json +28 -31
- package/dist/Factory.d.ts +0 -23
- package/dist/Factory.js +0 -2
- package/dist/PropertyPath.d.ts +0 -41
- package/dist/PropertyPath.js +0 -95
- package/dist/RdfjsShapesGraph.d.ts +0 -31
- package/dist/RdfjsShapesGraph.js +0 -250
- package/dist/defaultFactory.d.ts +0 -12
- package/dist/defaultFactory.js +0 -28
package/dist/generated.d.ts
CHANGED
|
@@ -1,708 +1,1762 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import type { BlankNode, DatasetCore, Literal, NamedNode, Quad_Graph, Variable } from "@rdfjs/types";
|
|
2
|
+
import { Either, Maybe } from "purify-ts";
|
|
3
|
+
import { PropertyPath, Resource, ResourceSet } from "rdfjs-resource";
|
|
4
|
+
interface $BooleanFilter {
|
|
5
|
+
readonly value?: boolean;
|
|
6
|
+
}
|
|
7
|
+
type $CollectionFilter<ItemFilterT> = ItemFilterT & {
|
|
8
|
+
readonly $maxCount?: number;
|
|
9
|
+
readonly $minCount?: number;
|
|
10
|
+
};
|
|
11
|
+
type $FromRdfOptions = {
|
|
12
|
+
context?: unknown;
|
|
13
|
+
graph?: Exclude<Quad_Graph, Variable>;
|
|
14
|
+
ignoreRdfType?: boolean;
|
|
15
|
+
objectSet?: $ObjectSet;
|
|
16
|
+
preferredLanguages?: readonly string[];
|
|
17
|
+
};
|
|
18
|
+
interface $IdentifierFilter {
|
|
19
|
+
readonly in?: readonly (BlankNode | NamedNode)[];
|
|
20
|
+
readonly type?: "BlankNode" | "NamedNode";
|
|
21
|
+
}
|
|
22
|
+
declare function $identifierFromString(identifier: string): Either<Error, BlankNode | NamedNode>;
|
|
23
|
+
interface $IriFilter {
|
|
24
|
+
readonly in?: readonly NamedNode[];
|
|
25
|
+
}
|
|
26
|
+
interface $LiteralFilter extends Omit<$TermFilter, "in" | "type"> {
|
|
27
|
+
readonly in?: readonly Literal[];
|
|
28
|
+
}
|
|
29
|
+
type $MaybeFilter<ItemFilterT> = ItemFilterT | null;
|
|
30
|
+
interface $NumericFilter<T> {
|
|
31
|
+
readonly in?: readonly T[];
|
|
32
|
+
readonly maxExclusive?: T;
|
|
33
|
+
readonly maxInclusive?: T;
|
|
34
|
+
readonly minExclusive?: T;
|
|
35
|
+
readonly minInclusive?: T;
|
|
36
|
+
}
|
|
37
|
+
type $PropertiesFromRdfParameters = {
|
|
38
|
+
context?: unknown;
|
|
39
|
+
graph?: Exclude<Quad_Graph, Variable>;
|
|
40
|
+
ignoreRdfType: boolean;
|
|
41
|
+
objectSet: $ObjectSet;
|
|
42
|
+
preferredLanguages?: readonly string[];
|
|
43
|
+
resource: Resource;
|
|
44
|
+
};
|
|
45
|
+
export interface $ShaclPropertySchema<TypeSchemaT = object> {
|
|
46
|
+
readonly kind: "Shacl";
|
|
47
|
+
readonly path: PropertyPath;
|
|
48
|
+
readonly type: () => TypeSchemaT;
|
|
22
49
|
}
|
|
23
|
-
|
|
50
|
+
interface $StringFilter {
|
|
51
|
+
readonly in?: readonly string[];
|
|
52
|
+
readonly maxLength?: number;
|
|
53
|
+
readonly minLength?: number;
|
|
54
|
+
}
|
|
55
|
+
interface $TermFilter {
|
|
56
|
+
readonly datatypeIn?: readonly NamedNode[];
|
|
57
|
+
readonly in?: readonly (Literal | NamedNode)[];
|
|
58
|
+
readonly languageIn?: readonly string[];
|
|
59
|
+
readonly typeIn?: readonly ("BlankNode" | "Literal" | "NamedNode")[];
|
|
60
|
+
}
|
|
61
|
+
type $UnwrapR<T> = T extends Either<any, infer R> ? R : never;
|
|
24
62
|
export interface BaseShaclCoreShape {
|
|
25
63
|
readonly $identifier: BaseShaclCoreShapeStatic.$Identifier;
|
|
26
64
|
readonly $type: "ShaclCoreNodeShape" | "ShaclCorePropertyShape";
|
|
27
|
-
readonly and: readonly (readonly (
|
|
28
|
-
readonly classes: readonly
|
|
29
|
-
readonly comments: readonly
|
|
30
|
-
readonly datatype:
|
|
31
|
-
readonly deactivated:
|
|
65
|
+
readonly and: readonly (readonly (BlankNode | NamedNode)[])[];
|
|
66
|
+
readonly classes: readonly NamedNode[];
|
|
67
|
+
readonly comments: readonly string[];
|
|
68
|
+
readonly datatype: Maybe<NamedNode>;
|
|
69
|
+
readonly deactivated: Maybe<boolean>;
|
|
32
70
|
readonly flags: readonly string[];
|
|
33
|
-
readonly hasValues: readonly (
|
|
34
|
-
readonly in_:
|
|
35
|
-
readonly isDefinedBy:
|
|
36
|
-
readonly labels: readonly
|
|
37
|
-
readonly languageIn:
|
|
38
|
-
readonly maxCount:
|
|
39
|
-
readonly maxExclusive:
|
|
40
|
-
readonly maxInclusive:
|
|
41
|
-
readonly maxLength:
|
|
42
|
-
readonly minCount:
|
|
43
|
-
readonly minExclusive:
|
|
44
|
-
readonly minInclusive:
|
|
45
|
-
readonly minLength:
|
|
46
|
-
readonly nodeKind:
|
|
47
|
-
readonly nodes: readonly (
|
|
48
|
-
readonly not: readonly (
|
|
49
|
-
readonly or: readonly (readonly (
|
|
71
|
+
readonly hasValues: readonly (NamedNode | Literal)[];
|
|
72
|
+
readonly in_: Maybe<readonly (NamedNode | Literal)[]>;
|
|
73
|
+
readonly isDefinedBy: Maybe<BlankNode | NamedNode>;
|
|
74
|
+
readonly labels: readonly string[];
|
|
75
|
+
readonly languageIn: Maybe<readonly string[]>;
|
|
76
|
+
readonly maxCount: Maybe<number>;
|
|
77
|
+
readonly maxExclusive: Maybe<Literal>;
|
|
78
|
+
readonly maxInclusive: Maybe<Literal>;
|
|
79
|
+
readonly maxLength: Maybe<number>;
|
|
80
|
+
readonly minCount: Maybe<number>;
|
|
81
|
+
readonly minExclusive: Maybe<Literal>;
|
|
82
|
+
readonly minInclusive: Maybe<Literal>;
|
|
83
|
+
readonly minLength: Maybe<number>;
|
|
84
|
+
readonly 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">>;
|
|
85
|
+
readonly nodes: readonly (BlankNode | NamedNode)[];
|
|
86
|
+
readonly not: readonly (BlankNode | NamedNode)[];
|
|
87
|
+
readonly or: readonly (readonly (BlankNode | NamedNode)[])[];
|
|
50
88
|
readonly patterns: readonly string[];
|
|
51
|
-
readonly xone: readonly (readonly (
|
|
89
|
+
readonly xone: readonly (readonly (BlankNode | NamedNode)[])[];
|
|
52
90
|
}
|
|
53
91
|
export declare namespace BaseShaclCoreShapeStatic {
|
|
54
|
-
|
|
92
|
+
function $filter(filter: BaseShaclCoreShapeStatic.$Filter, value: BaseShaclCoreShape): boolean;
|
|
93
|
+
type $Filter = {
|
|
94
|
+
readonly $identifier?: $IdentifierFilter;
|
|
95
|
+
readonly and?: $CollectionFilter<$CollectionFilter<$IdentifierFilter>>;
|
|
96
|
+
readonly classes?: $CollectionFilter<$IriFilter>;
|
|
97
|
+
readonly comments?: $CollectionFilter<$StringFilter>;
|
|
98
|
+
readonly datatype?: $MaybeFilter<$IriFilter>;
|
|
99
|
+
readonly deactivated?: $MaybeFilter<$BooleanFilter>;
|
|
100
|
+
readonly flags?: $CollectionFilter<$StringFilter>;
|
|
101
|
+
readonly hasValues?: $CollectionFilter<$TermFilter>;
|
|
102
|
+
readonly in_?: $MaybeFilter<$CollectionFilter<$TermFilter>>;
|
|
103
|
+
readonly isDefinedBy?: $MaybeFilter<$IdentifierFilter>;
|
|
104
|
+
readonly labels?: $CollectionFilter<$StringFilter>;
|
|
105
|
+
readonly languageIn?: $MaybeFilter<$CollectionFilter<$StringFilter>>;
|
|
106
|
+
readonly maxCount?: $MaybeFilter<$NumericFilter<number>>;
|
|
107
|
+
readonly maxExclusive?: $MaybeFilter<$LiteralFilter>;
|
|
108
|
+
readonly maxInclusive?: $MaybeFilter<$LiteralFilter>;
|
|
109
|
+
readonly maxLength?: $MaybeFilter<$NumericFilter<number>>;
|
|
110
|
+
readonly minCount?: $MaybeFilter<$NumericFilter<number>>;
|
|
111
|
+
readonly minExclusive?: $MaybeFilter<$LiteralFilter>;
|
|
112
|
+
readonly minInclusive?: $MaybeFilter<$LiteralFilter>;
|
|
113
|
+
readonly minLength?: $MaybeFilter<$NumericFilter<number>>;
|
|
114
|
+
readonly nodeKind?: $MaybeFilter<$IriFilter>;
|
|
115
|
+
readonly nodes?: $CollectionFilter<$IdentifierFilter>;
|
|
116
|
+
readonly not?: $CollectionFilter<$IdentifierFilter>;
|
|
117
|
+
readonly or?: $CollectionFilter<$CollectionFilter<$IdentifierFilter>>;
|
|
118
|
+
readonly patterns?: $CollectionFilter<$StringFilter>;
|
|
119
|
+
readonly xone?: $CollectionFilter<$CollectionFilter<$IdentifierFilter>>;
|
|
120
|
+
};
|
|
121
|
+
type $Identifier = BlankNode | NamedNode;
|
|
55
122
|
namespace $Identifier {
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
toString: typeof rdfjsResource.Resource.Identifier.toString;
|
|
123
|
+
const fromString: typeof $identifierFromString;
|
|
124
|
+
const toString: typeof import("rdfjs-resource/dist/Identifier.js").Identifier.toString;
|
|
59
125
|
}
|
|
60
|
-
function
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
ignoreRdfType: boolean;
|
|
69
|
-
objectSet: $ObjectSet;
|
|
70
|
-
preferredLanguages?: readonly string[];
|
|
71
|
-
resource: rdfjsResource.Resource;
|
|
72
|
-
}): purify.Either<Error, {
|
|
73
|
-
$identifier: rdfjs.BlankNode | rdfjs.NamedNode;
|
|
74
|
-
and: readonly (readonly (rdfjs.BlankNode | rdfjs.NamedNode)[])[];
|
|
75
|
-
classes: readonly rdfjs.NamedNode[];
|
|
76
|
-
comments: readonly rdfjs.Literal[];
|
|
77
|
-
datatype: purify.Maybe<rdfjs.NamedNode>;
|
|
78
|
-
deactivated: purify.Maybe<boolean>;
|
|
126
|
+
function isBaseShaclCoreShape(object: $Object): object is BaseShaclCoreShape;
|
|
127
|
+
function $propertiesFromRdf($parameters: $PropertiesFromRdfParameters): Either<Error, {
|
|
128
|
+
$identifier: BlankNode | NamedNode;
|
|
129
|
+
and: readonly (readonly (BlankNode | NamedNode)[])[];
|
|
130
|
+
classes: readonly NamedNode[];
|
|
131
|
+
comments: readonly string[];
|
|
132
|
+
datatype: Maybe<NamedNode>;
|
|
133
|
+
deactivated: Maybe<boolean>;
|
|
79
134
|
flags: readonly string[];
|
|
80
|
-
hasValues: readonly (
|
|
81
|
-
in_:
|
|
82
|
-
isDefinedBy:
|
|
83
|
-
labels: readonly
|
|
84
|
-
languageIn:
|
|
85
|
-
maxCount:
|
|
86
|
-
maxExclusive:
|
|
87
|
-
maxInclusive:
|
|
88
|
-
maxLength:
|
|
89
|
-
minCount:
|
|
90
|
-
minExclusive:
|
|
91
|
-
minInclusive:
|
|
92
|
-
minLength:
|
|
93
|
-
nodeKind:
|
|
94
|
-
nodes: readonly (
|
|
95
|
-
not: readonly (
|
|
96
|
-
or: readonly (readonly (
|
|
135
|
+
hasValues: readonly (NamedNode | Literal)[];
|
|
136
|
+
in_: Maybe<readonly (NamedNode | Literal)[]>;
|
|
137
|
+
isDefinedBy: Maybe<BlankNode | NamedNode>;
|
|
138
|
+
labels: readonly string[];
|
|
139
|
+
languageIn: Maybe<readonly string[]>;
|
|
140
|
+
maxCount: Maybe<number>;
|
|
141
|
+
maxExclusive: Maybe<Literal>;
|
|
142
|
+
maxInclusive: Maybe<Literal>;
|
|
143
|
+
maxLength: Maybe<number>;
|
|
144
|
+
minCount: Maybe<number>;
|
|
145
|
+
minExclusive: Maybe<Literal>;
|
|
146
|
+
minInclusive: Maybe<Literal>;
|
|
147
|
+
minLength: Maybe<number>;
|
|
148
|
+
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">>;
|
|
149
|
+
nodes: readonly (BlankNode | NamedNode)[];
|
|
150
|
+
not: readonly (BlankNode | NamedNode)[];
|
|
151
|
+
or: readonly (readonly (BlankNode | NamedNode)[])[];
|
|
97
152
|
patterns: readonly string[];
|
|
98
|
-
xone: readonly (readonly (
|
|
153
|
+
xone: readonly (readonly (BlankNode | NamedNode)[])[];
|
|
99
154
|
}>;
|
|
100
155
|
function $toRdf(_baseShaclCoreShape: BaseShaclCoreShape, options?: {
|
|
101
156
|
ignoreRdfType?: boolean;
|
|
102
|
-
|
|
103
|
-
resourceSet?:
|
|
104
|
-
}):
|
|
105
|
-
const $
|
|
106
|
-
|
|
107
|
-
identifier:
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
157
|
+
graph?: Exclude<Quad_Graph, Variable>;
|
|
158
|
+
resourceSet?: ResourceSet;
|
|
159
|
+
}): Resource;
|
|
160
|
+
const $schema: {
|
|
161
|
+
readonly properties: {
|
|
162
|
+
readonly $identifier: {
|
|
163
|
+
readonly kind: "Identifier";
|
|
164
|
+
readonly type: () => {
|
|
165
|
+
kind: "Identifier";
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
readonly $type: {
|
|
169
|
+
readonly kind: "TypeDiscriminant";
|
|
170
|
+
readonly type: () => {
|
|
171
|
+
descendantValues: string[];
|
|
172
|
+
kind: "TypeDiscriminant";
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
readonly and: {
|
|
176
|
+
readonly kind: "Shacl";
|
|
177
|
+
readonly type: () => {
|
|
178
|
+
kind: "Set";
|
|
179
|
+
item: () => {
|
|
180
|
+
kind: "List";
|
|
181
|
+
item: () => {
|
|
182
|
+
kind: "Identifier";
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#and">;
|
|
187
|
+
};
|
|
188
|
+
readonly classes: {
|
|
189
|
+
readonly kind: "Shacl";
|
|
190
|
+
readonly type: () => {
|
|
191
|
+
kind: "Set";
|
|
192
|
+
item: () => {
|
|
193
|
+
kind: "Iri";
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#class">;
|
|
197
|
+
};
|
|
198
|
+
readonly comments: {
|
|
199
|
+
readonly kind: "Shacl";
|
|
200
|
+
readonly type: () => {
|
|
201
|
+
kind: "Set";
|
|
202
|
+
item: () => {
|
|
203
|
+
kind: "String";
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#comment">;
|
|
207
|
+
};
|
|
208
|
+
readonly datatype: {
|
|
209
|
+
readonly kind: "Shacl";
|
|
210
|
+
readonly type: () => {
|
|
211
|
+
kind: "Maybe";
|
|
212
|
+
item: () => {
|
|
213
|
+
kind: "Iri";
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#datatype">;
|
|
217
|
+
};
|
|
218
|
+
readonly deactivated: {
|
|
219
|
+
readonly kind: "Shacl";
|
|
220
|
+
readonly type: () => {
|
|
221
|
+
kind: "Maybe";
|
|
222
|
+
item: () => {
|
|
223
|
+
kind: "Boolean";
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#deactivated">;
|
|
227
|
+
};
|
|
228
|
+
readonly flags: {
|
|
229
|
+
readonly kind: "Shacl";
|
|
230
|
+
readonly type: () => {
|
|
231
|
+
kind: "Set";
|
|
232
|
+
item: () => {
|
|
233
|
+
kind: "String";
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#flags">;
|
|
237
|
+
};
|
|
238
|
+
readonly hasValues: {
|
|
239
|
+
readonly kind: "Shacl";
|
|
240
|
+
readonly type: () => {
|
|
241
|
+
kind: "Set";
|
|
242
|
+
item: () => {
|
|
243
|
+
kind: "Term";
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#hasValue">;
|
|
247
|
+
};
|
|
248
|
+
readonly in_: {
|
|
249
|
+
readonly kind: "Shacl";
|
|
250
|
+
readonly type: () => {
|
|
251
|
+
kind: "Maybe";
|
|
252
|
+
item: () => {
|
|
253
|
+
kind: "List";
|
|
254
|
+
item: () => {
|
|
255
|
+
kind: "Term";
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#in">;
|
|
260
|
+
};
|
|
261
|
+
readonly isDefinedBy: {
|
|
262
|
+
readonly kind: "Shacl";
|
|
263
|
+
readonly type: () => {
|
|
264
|
+
kind: "Maybe";
|
|
265
|
+
item: () => {
|
|
266
|
+
kind: "Identifier";
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#isDefinedBy">;
|
|
270
|
+
};
|
|
271
|
+
readonly labels: {
|
|
272
|
+
readonly kind: "Shacl";
|
|
273
|
+
readonly type: () => {
|
|
274
|
+
kind: "Set";
|
|
275
|
+
item: () => {
|
|
276
|
+
kind: "String";
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
|
|
280
|
+
};
|
|
281
|
+
readonly languageIn: {
|
|
282
|
+
readonly kind: "Shacl";
|
|
283
|
+
readonly type: () => {
|
|
284
|
+
kind: "Maybe";
|
|
285
|
+
item: () => {
|
|
286
|
+
kind: "List";
|
|
287
|
+
item: () => {
|
|
288
|
+
kind: "String";
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#languageIn">;
|
|
293
|
+
};
|
|
294
|
+
readonly maxCount: {
|
|
295
|
+
readonly kind: "Shacl";
|
|
296
|
+
readonly type: () => {
|
|
297
|
+
kind: "Maybe";
|
|
298
|
+
item: () => {
|
|
299
|
+
kind: "Int";
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxCount">;
|
|
303
|
+
};
|
|
304
|
+
readonly maxExclusive: {
|
|
305
|
+
readonly kind: "Shacl";
|
|
306
|
+
readonly type: () => {
|
|
307
|
+
kind: "Maybe";
|
|
308
|
+
item: () => {
|
|
309
|
+
kind: "Literal";
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxExclusive">;
|
|
313
|
+
};
|
|
314
|
+
readonly maxInclusive: {
|
|
315
|
+
readonly kind: "Shacl";
|
|
316
|
+
readonly type: () => {
|
|
317
|
+
kind: "Maybe";
|
|
318
|
+
item: () => {
|
|
319
|
+
kind: "Literal";
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxInclusive">;
|
|
323
|
+
};
|
|
324
|
+
readonly maxLength: {
|
|
325
|
+
readonly kind: "Shacl";
|
|
326
|
+
readonly type: () => {
|
|
327
|
+
kind: "Maybe";
|
|
328
|
+
item: () => {
|
|
329
|
+
kind: "Int";
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxLength">;
|
|
333
|
+
};
|
|
334
|
+
readonly minCount: {
|
|
335
|
+
readonly kind: "Shacl";
|
|
336
|
+
readonly type: () => {
|
|
337
|
+
kind: "Maybe";
|
|
338
|
+
item: () => {
|
|
339
|
+
kind: "Int";
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#minCount">;
|
|
343
|
+
};
|
|
344
|
+
readonly minExclusive: {
|
|
345
|
+
readonly kind: "Shacl";
|
|
346
|
+
readonly type: () => {
|
|
347
|
+
kind: "Maybe";
|
|
348
|
+
item: () => {
|
|
349
|
+
kind: "Literal";
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#minExclusive">;
|
|
353
|
+
};
|
|
354
|
+
readonly minInclusive: {
|
|
355
|
+
readonly kind: "Shacl";
|
|
356
|
+
readonly type: () => {
|
|
357
|
+
kind: "Maybe";
|
|
358
|
+
item: () => {
|
|
359
|
+
kind: "Literal";
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#minInclusive">;
|
|
363
|
+
};
|
|
364
|
+
readonly minLength: {
|
|
365
|
+
readonly kind: "Shacl";
|
|
366
|
+
readonly type: () => {
|
|
367
|
+
kind: "Maybe";
|
|
368
|
+
item: () => {
|
|
369
|
+
kind: "Int";
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#minLength">;
|
|
373
|
+
};
|
|
374
|
+
readonly nodeKind: {
|
|
375
|
+
readonly kind: "Shacl";
|
|
376
|
+
readonly type: () => {
|
|
377
|
+
kind: "Maybe";
|
|
378
|
+
item: () => {
|
|
379
|
+
kind: "Iri";
|
|
380
|
+
in: (NamedNode<"http://www.w3.org/ns/shacl#BlankNode"> | NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrIRI"> | NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrLiteral"> | NamedNode<"http://www.w3.org/ns/shacl#IRI"> | NamedNode<"http://www.w3.org/ns/shacl#IRIOrLiteral"> | NamedNode<"http://www.w3.org/ns/shacl#Literal">)[];
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#nodeKind">;
|
|
384
|
+
};
|
|
385
|
+
readonly nodes: {
|
|
386
|
+
readonly kind: "Shacl";
|
|
387
|
+
readonly type: () => {
|
|
388
|
+
kind: "Set";
|
|
389
|
+
item: () => {
|
|
390
|
+
kind: "Identifier";
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#node">;
|
|
394
|
+
};
|
|
395
|
+
readonly not: {
|
|
396
|
+
readonly kind: "Shacl";
|
|
397
|
+
readonly type: () => {
|
|
398
|
+
kind: "Set";
|
|
399
|
+
item: () => {
|
|
400
|
+
kind: "Identifier";
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#not">;
|
|
404
|
+
};
|
|
405
|
+
readonly or: {
|
|
406
|
+
readonly kind: "Shacl";
|
|
407
|
+
readonly type: () => {
|
|
408
|
+
kind: "Set";
|
|
409
|
+
item: () => {
|
|
410
|
+
kind: "List";
|
|
411
|
+
item: () => {
|
|
412
|
+
kind: "Identifier";
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#or">;
|
|
417
|
+
};
|
|
418
|
+
readonly patterns: {
|
|
419
|
+
readonly kind: "Shacl";
|
|
420
|
+
readonly type: () => {
|
|
421
|
+
kind: "Set";
|
|
422
|
+
item: () => {
|
|
423
|
+
kind: "String";
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#pattern">;
|
|
427
|
+
};
|
|
428
|
+
readonly xone: {
|
|
429
|
+
readonly kind: "Shacl";
|
|
430
|
+
readonly type: () => {
|
|
431
|
+
kind: "Set";
|
|
432
|
+
item: () => {
|
|
433
|
+
kind: "List";
|
|
434
|
+
item: () => {
|
|
435
|
+
kind: "Identifier";
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#xone">;
|
|
440
|
+
};
|
|
180
441
|
};
|
|
181
442
|
};
|
|
182
443
|
}
|
|
183
444
|
export interface ShaclCorePropertyShape extends BaseShaclCoreShape {
|
|
184
445
|
readonly $identifier: ShaclCorePropertyShape.$Identifier;
|
|
185
446
|
readonly $type: "ShaclCorePropertyShape";
|
|
186
|
-
readonly defaultValue:
|
|
187
|
-
readonly descriptions: readonly
|
|
188
|
-
readonly groups: readonly (
|
|
189
|
-
readonly names: readonly
|
|
190
|
-
readonly order:
|
|
447
|
+
readonly defaultValue: Maybe<NamedNode | Literal>;
|
|
448
|
+
readonly descriptions: readonly string[];
|
|
449
|
+
readonly groups: readonly (BlankNode | NamedNode)[];
|
|
450
|
+
readonly names: readonly string[];
|
|
451
|
+
readonly order: Maybe<number>;
|
|
191
452
|
readonly path: PropertyPath;
|
|
192
|
-
readonly uniqueLang:
|
|
453
|
+
readonly uniqueLang: Maybe<boolean>;
|
|
193
454
|
}
|
|
194
455
|
export declare namespace ShaclCorePropertyShape {
|
|
195
|
-
|
|
196
|
-
type $
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
456
|
+
function $filter(filter: ShaclCorePropertyShape.$Filter, value: ShaclCorePropertyShape): boolean;
|
|
457
|
+
type $Filter = {
|
|
458
|
+
readonly $identifier?: $IdentifierFilter;
|
|
459
|
+
readonly defaultValue?: $MaybeFilter<$TermFilter>;
|
|
460
|
+
readonly descriptions?: $CollectionFilter<$StringFilter>;
|
|
461
|
+
readonly groups?: $CollectionFilter<$IdentifierFilter>;
|
|
462
|
+
readonly names?: $CollectionFilter<$StringFilter>;
|
|
463
|
+
readonly order?: $MaybeFilter<$NumericFilter<number>>;
|
|
464
|
+
readonly path?: PropertyPath.$Filter;
|
|
465
|
+
readonly uniqueLang?: $MaybeFilter<$BooleanFilter>;
|
|
466
|
+
} & BaseShaclCoreShapeStatic.$Filter;
|
|
467
|
+
const $fromRdfType: NamedNode<string>;
|
|
468
|
+
type $Identifier = BlankNode | NamedNode;
|
|
469
|
+
namespace $Identifier {
|
|
470
|
+
const fromString: typeof $identifierFromString;
|
|
471
|
+
const toString: typeof import("rdfjs-resource/dist/Identifier.js").Identifier.toString;
|
|
472
|
+
}
|
|
473
|
+
function isShaclCorePropertyShape(object: $Object): object is ShaclCorePropertyShape;
|
|
474
|
+
function $fromRdf(resource: Resource, options?: $FromRdfOptions): Either<Error, ShaclCorePropertyShape>;
|
|
475
|
+
function $propertiesFromRdf($parameters: $PropertiesFromRdfParameters): Either<Error, {
|
|
476
|
+
$identifier: BlankNode | NamedNode;
|
|
212
477
|
$type: "ShaclCorePropertyShape";
|
|
213
|
-
defaultValue:
|
|
214
|
-
descriptions: readonly
|
|
215
|
-
groups: readonly (
|
|
216
|
-
names: readonly
|
|
217
|
-
order:
|
|
478
|
+
defaultValue: Maybe<NamedNode | Literal>;
|
|
479
|
+
descriptions: readonly string[];
|
|
480
|
+
groups: readonly (BlankNode | NamedNode)[];
|
|
481
|
+
names: readonly string[];
|
|
482
|
+
order: Maybe<number>;
|
|
218
483
|
path: PropertyPath;
|
|
219
|
-
uniqueLang:
|
|
484
|
+
uniqueLang: Maybe<boolean>;
|
|
220
485
|
} & $UnwrapR<ReturnType<typeof BaseShaclCoreShapeStatic.$propertiesFromRdf>>>;
|
|
221
486
|
function $toRdf(_shaclCorePropertyShape: ShaclCorePropertyShape, options?: {
|
|
222
487
|
ignoreRdfType?: boolean;
|
|
223
|
-
|
|
224
|
-
resourceSet?:
|
|
225
|
-
}):
|
|
226
|
-
const $
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
488
|
+
graph?: Exclude<Quad_Graph, Variable>;
|
|
489
|
+
resourceSet?: ResourceSet;
|
|
490
|
+
}): Resource;
|
|
491
|
+
const $schema: {
|
|
492
|
+
readonly properties: {
|
|
493
|
+
readonly defaultValue: {
|
|
494
|
+
readonly kind: "Shacl";
|
|
495
|
+
readonly type: () => {
|
|
496
|
+
kind: "Maybe";
|
|
497
|
+
item: () => {
|
|
498
|
+
kind: "Term";
|
|
499
|
+
};
|
|
500
|
+
};
|
|
501
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#defaultValue">;
|
|
502
|
+
};
|
|
503
|
+
readonly descriptions: {
|
|
504
|
+
readonly kind: "Shacl";
|
|
505
|
+
readonly type: () => {
|
|
506
|
+
kind: "Set";
|
|
507
|
+
item: () => {
|
|
508
|
+
kind: "String";
|
|
509
|
+
};
|
|
510
|
+
};
|
|
511
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#description">;
|
|
512
|
+
};
|
|
513
|
+
readonly groups: {
|
|
514
|
+
readonly kind: "Shacl";
|
|
515
|
+
readonly type: () => {
|
|
516
|
+
kind: "Set";
|
|
517
|
+
item: () => {
|
|
518
|
+
kind: "Identifier";
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#group">;
|
|
522
|
+
};
|
|
523
|
+
readonly names: {
|
|
524
|
+
readonly kind: "Shacl";
|
|
525
|
+
readonly type: () => {
|
|
526
|
+
kind: "Set";
|
|
527
|
+
item: () => {
|
|
528
|
+
kind: "String";
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#name">;
|
|
532
|
+
};
|
|
533
|
+
readonly order: {
|
|
534
|
+
readonly kind: "Shacl";
|
|
535
|
+
readonly type: () => {
|
|
536
|
+
kind: "Maybe";
|
|
537
|
+
item: () => {
|
|
538
|
+
kind: "Float";
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#order">;
|
|
542
|
+
};
|
|
543
|
+
readonly path: {
|
|
544
|
+
readonly kind: "Shacl";
|
|
545
|
+
readonly type: () => object;
|
|
546
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#path">;
|
|
547
|
+
};
|
|
548
|
+
readonly uniqueLang: {
|
|
549
|
+
readonly kind: "Shacl";
|
|
550
|
+
readonly type: () => {
|
|
551
|
+
kind: "Maybe";
|
|
552
|
+
item: () => {
|
|
553
|
+
kind: "Boolean";
|
|
554
|
+
};
|
|
555
|
+
};
|
|
556
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#uniqueLang">;
|
|
557
|
+
};
|
|
558
|
+
readonly $identifier: {
|
|
559
|
+
readonly kind: "Identifier";
|
|
560
|
+
readonly type: () => {
|
|
561
|
+
kind: "Identifier";
|
|
562
|
+
};
|
|
563
|
+
};
|
|
564
|
+
readonly $type: {
|
|
565
|
+
readonly kind: "TypeDiscriminant";
|
|
566
|
+
readonly type: () => {
|
|
567
|
+
descendantValues: string[];
|
|
568
|
+
kind: "TypeDiscriminant";
|
|
569
|
+
};
|
|
570
|
+
};
|
|
571
|
+
readonly and: {
|
|
572
|
+
readonly kind: "Shacl";
|
|
573
|
+
readonly type: () => {
|
|
574
|
+
kind: "Set";
|
|
575
|
+
item: () => {
|
|
576
|
+
kind: "List";
|
|
577
|
+
item: () => {
|
|
578
|
+
kind: "Identifier";
|
|
579
|
+
};
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#and">;
|
|
583
|
+
};
|
|
584
|
+
readonly classes: {
|
|
585
|
+
readonly kind: "Shacl";
|
|
586
|
+
readonly type: () => {
|
|
587
|
+
kind: "Set";
|
|
588
|
+
item: () => {
|
|
589
|
+
kind: "Iri";
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#class">;
|
|
593
|
+
};
|
|
594
|
+
readonly comments: {
|
|
595
|
+
readonly kind: "Shacl";
|
|
596
|
+
readonly type: () => {
|
|
597
|
+
kind: "Set";
|
|
598
|
+
item: () => {
|
|
599
|
+
kind: "String";
|
|
600
|
+
};
|
|
601
|
+
};
|
|
602
|
+
readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#comment">;
|
|
603
|
+
};
|
|
604
|
+
readonly datatype: {
|
|
605
|
+
readonly kind: "Shacl";
|
|
606
|
+
readonly type: () => {
|
|
607
|
+
kind: "Maybe";
|
|
608
|
+
item: () => {
|
|
609
|
+
kind: "Iri";
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#datatype">;
|
|
613
|
+
};
|
|
614
|
+
readonly deactivated: {
|
|
615
|
+
readonly kind: "Shacl";
|
|
616
|
+
readonly type: () => {
|
|
617
|
+
kind: "Maybe";
|
|
618
|
+
item: () => {
|
|
619
|
+
kind: "Boolean";
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#deactivated">;
|
|
623
|
+
};
|
|
624
|
+
readonly flags: {
|
|
625
|
+
readonly kind: "Shacl";
|
|
626
|
+
readonly type: () => {
|
|
627
|
+
kind: "Set";
|
|
628
|
+
item: () => {
|
|
629
|
+
kind: "String";
|
|
630
|
+
};
|
|
631
|
+
};
|
|
632
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#flags">;
|
|
633
|
+
};
|
|
634
|
+
readonly hasValues: {
|
|
635
|
+
readonly kind: "Shacl";
|
|
636
|
+
readonly type: () => {
|
|
637
|
+
kind: "Set";
|
|
638
|
+
item: () => {
|
|
639
|
+
kind: "Term";
|
|
640
|
+
};
|
|
641
|
+
};
|
|
642
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#hasValue">;
|
|
643
|
+
};
|
|
644
|
+
readonly in_: {
|
|
645
|
+
readonly kind: "Shacl";
|
|
646
|
+
readonly type: () => {
|
|
647
|
+
kind: "Maybe";
|
|
648
|
+
item: () => {
|
|
649
|
+
kind: "List";
|
|
650
|
+
item: () => {
|
|
651
|
+
kind: "Term";
|
|
652
|
+
};
|
|
653
|
+
};
|
|
654
|
+
};
|
|
655
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#in">;
|
|
656
|
+
};
|
|
657
|
+
readonly isDefinedBy: {
|
|
658
|
+
readonly kind: "Shacl";
|
|
659
|
+
readonly type: () => {
|
|
660
|
+
kind: "Maybe";
|
|
661
|
+
item: () => {
|
|
662
|
+
kind: "Identifier";
|
|
663
|
+
};
|
|
664
|
+
};
|
|
665
|
+
readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#isDefinedBy">;
|
|
666
|
+
};
|
|
667
|
+
readonly labels: {
|
|
668
|
+
readonly kind: "Shacl";
|
|
669
|
+
readonly type: () => {
|
|
670
|
+
kind: "Set";
|
|
671
|
+
item: () => {
|
|
672
|
+
kind: "String";
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
|
|
676
|
+
};
|
|
677
|
+
readonly languageIn: {
|
|
678
|
+
readonly kind: "Shacl";
|
|
679
|
+
readonly type: () => {
|
|
680
|
+
kind: "Maybe";
|
|
681
|
+
item: () => {
|
|
682
|
+
kind: "List";
|
|
683
|
+
item: () => {
|
|
684
|
+
kind: "String";
|
|
685
|
+
};
|
|
686
|
+
};
|
|
687
|
+
};
|
|
688
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#languageIn">;
|
|
689
|
+
};
|
|
690
|
+
readonly maxCount: {
|
|
691
|
+
readonly kind: "Shacl";
|
|
692
|
+
readonly type: () => {
|
|
693
|
+
kind: "Maybe";
|
|
694
|
+
item: () => {
|
|
695
|
+
kind: "Int";
|
|
696
|
+
};
|
|
697
|
+
};
|
|
698
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxCount">;
|
|
699
|
+
};
|
|
700
|
+
readonly maxExclusive: {
|
|
701
|
+
readonly kind: "Shacl";
|
|
702
|
+
readonly type: () => {
|
|
703
|
+
kind: "Maybe";
|
|
704
|
+
item: () => {
|
|
705
|
+
kind: "Literal";
|
|
706
|
+
};
|
|
707
|
+
};
|
|
708
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxExclusive">;
|
|
709
|
+
};
|
|
710
|
+
readonly maxInclusive: {
|
|
711
|
+
readonly kind: "Shacl";
|
|
712
|
+
readonly type: () => {
|
|
713
|
+
kind: "Maybe";
|
|
714
|
+
item: () => {
|
|
715
|
+
kind: "Literal";
|
|
716
|
+
};
|
|
717
|
+
};
|
|
718
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxInclusive">;
|
|
719
|
+
};
|
|
720
|
+
readonly maxLength: {
|
|
721
|
+
readonly kind: "Shacl";
|
|
722
|
+
readonly type: () => {
|
|
723
|
+
kind: "Maybe";
|
|
724
|
+
item: () => {
|
|
725
|
+
kind: "Int";
|
|
726
|
+
};
|
|
727
|
+
};
|
|
728
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxLength">;
|
|
729
|
+
};
|
|
730
|
+
readonly minCount: {
|
|
731
|
+
readonly kind: "Shacl";
|
|
732
|
+
readonly type: () => {
|
|
733
|
+
kind: "Maybe";
|
|
734
|
+
item: () => {
|
|
735
|
+
kind: "Int";
|
|
736
|
+
};
|
|
737
|
+
};
|
|
738
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#minCount">;
|
|
739
|
+
};
|
|
740
|
+
readonly minExclusive: {
|
|
741
|
+
readonly kind: "Shacl";
|
|
742
|
+
readonly type: () => {
|
|
743
|
+
kind: "Maybe";
|
|
744
|
+
item: () => {
|
|
745
|
+
kind: "Literal";
|
|
746
|
+
};
|
|
747
|
+
};
|
|
748
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#minExclusive">;
|
|
749
|
+
};
|
|
750
|
+
readonly minInclusive: {
|
|
751
|
+
readonly kind: "Shacl";
|
|
752
|
+
readonly type: () => {
|
|
753
|
+
kind: "Maybe";
|
|
754
|
+
item: () => {
|
|
755
|
+
kind: "Literal";
|
|
756
|
+
};
|
|
757
|
+
};
|
|
758
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#minInclusive">;
|
|
759
|
+
};
|
|
760
|
+
readonly minLength: {
|
|
761
|
+
readonly kind: "Shacl";
|
|
762
|
+
readonly type: () => {
|
|
763
|
+
kind: "Maybe";
|
|
764
|
+
item: () => {
|
|
765
|
+
kind: "Int";
|
|
766
|
+
};
|
|
767
|
+
};
|
|
768
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#minLength">;
|
|
769
|
+
};
|
|
770
|
+
readonly nodeKind: {
|
|
771
|
+
readonly kind: "Shacl";
|
|
772
|
+
readonly type: () => {
|
|
773
|
+
kind: "Maybe";
|
|
774
|
+
item: () => {
|
|
775
|
+
kind: "Iri";
|
|
776
|
+
in: (NamedNode<"http://www.w3.org/ns/shacl#BlankNode"> | NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrIRI"> | NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrLiteral"> | NamedNode<"http://www.w3.org/ns/shacl#IRI"> | NamedNode<"http://www.w3.org/ns/shacl#IRIOrLiteral"> | NamedNode<"http://www.w3.org/ns/shacl#Literal">)[];
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#nodeKind">;
|
|
780
|
+
};
|
|
781
|
+
readonly nodes: {
|
|
782
|
+
readonly kind: "Shacl";
|
|
783
|
+
readonly type: () => {
|
|
784
|
+
kind: "Set";
|
|
785
|
+
item: () => {
|
|
786
|
+
kind: "Identifier";
|
|
787
|
+
};
|
|
788
|
+
};
|
|
789
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#node">;
|
|
790
|
+
};
|
|
791
|
+
readonly not: {
|
|
792
|
+
readonly kind: "Shacl";
|
|
793
|
+
readonly type: () => {
|
|
794
|
+
kind: "Set";
|
|
795
|
+
item: () => {
|
|
796
|
+
kind: "Identifier";
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#not">;
|
|
800
|
+
};
|
|
801
|
+
readonly or: {
|
|
802
|
+
readonly kind: "Shacl";
|
|
803
|
+
readonly type: () => {
|
|
804
|
+
kind: "Set";
|
|
805
|
+
item: () => {
|
|
806
|
+
kind: "List";
|
|
807
|
+
item: () => {
|
|
808
|
+
kind: "Identifier";
|
|
809
|
+
};
|
|
810
|
+
};
|
|
811
|
+
};
|
|
812
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#or">;
|
|
813
|
+
};
|
|
814
|
+
readonly patterns: {
|
|
815
|
+
readonly kind: "Shacl";
|
|
816
|
+
readonly type: () => {
|
|
817
|
+
kind: "Set";
|
|
818
|
+
item: () => {
|
|
819
|
+
kind: "String";
|
|
820
|
+
};
|
|
821
|
+
};
|
|
822
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#pattern">;
|
|
823
|
+
};
|
|
824
|
+
readonly xone: {
|
|
825
|
+
readonly kind: "Shacl";
|
|
826
|
+
readonly type: () => {
|
|
827
|
+
kind: "Set";
|
|
828
|
+
item: () => {
|
|
829
|
+
kind: "List";
|
|
830
|
+
item: () => {
|
|
831
|
+
kind: "Identifier";
|
|
832
|
+
};
|
|
833
|
+
};
|
|
834
|
+
};
|
|
835
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#xone">;
|
|
836
|
+
};
|
|
322
837
|
};
|
|
323
838
|
};
|
|
324
839
|
}
|
|
325
840
|
export interface ShaclCorePropertyGroup {
|
|
326
841
|
readonly $identifier: ShaclCorePropertyGroup.$Identifier;
|
|
327
842
|
readonly $type: "ShaclCorePropertyGroup";
|
|
328
|
-
readonly comments: readonly
|
|
329
|
-
readonly labels: readonly
|
|
843
|
+
readonly comments: readonly string[];
|
|
844
|
+
readonly labels: readonly string[];
|
|
330
845
|
}
|
|
331
846
|
export declare namespace ShaclCorePropertyGroup {
|
|
332
|
-
|
|
333
|
-
type $
|
|
847
|
+
function $filter(filter: ShaclCorePropertyGroup.$Filter, value: ShaclCorePropertyGroup): boolean;
|
|
848
|
+
type $Filter = {
|
|
849
|
+
readonly $identifier?: $IdentifierFilter;
|
|
850
|
+
readonly comments?: $CollectionFilter<$StringFilter>;
|
|
851
|
+
readonly labels?: $CollectionFilter<$StringFilter>;
|
|
852
|
+
};
|
|
853
|
+
const $fromRdfType: NamedNode<string>;
|
|
854
|
+
type $Identifier = BlankNode | NamedNode;
|
|
334
855
|
namespace $Identifier {
|
|
335
|
-
|
|
336
|
-
const
|
|
337
|
-
toString: typeof rdfjsResource.Resource.Identifier.toString;
|
|
856
|
+
const fromString: typeof $identifierFromString;
|
|
857
|
+
const toString: typeof import("rdfjs-resource/dist/Identifier.js").Identifier.toString;
|
|
338
858
|
}
|
|
339
|
-
function
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
preferredLanguages?: readonly string[];
|
|
344
|
-
}): purify.Either<Error, ShaclCorePropertyGroup>;
|
|
345
|
-
function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, objectSet: $objectSet, preferredLanguages: $preferredLanguages, resource: $resource, ...$context }: {
|
|
346
|
-
[_index: string]: any;
|
|
347
|
-
ignoreRdfType: boolean;
|
|
348
|
-
objectSet: $ObjectSet;
|
|
349
|
-
preferredLanguages?: readonly string[];
|
|
350
|
-
resource: rdfjsResource.Resource;
|
|
351
|
-
}): purify.Either<Error, {
|
|
352
|
-
$identifier: rdfjs.BlankNode | rdfjs.NamedNode;
|
|
859
|
+
function isShaclCorePropertyGroup(object: $Object): object is ShaclCorePropertyGroup;
|
|
860
|
+
function $fromRdf(resource: Resource, options?: $FromRdfOptions): Either<Error, ShaclCorePropertyGroup>;
|
|
861
|
+
function $propertiesFromRdf($parameters: $PropertiesFromRdfParameters): Either<Error, {
|
|
862
|
+
$identifier: BlankNode | NamedNode;
|
|
353
863
|
$type: "ShaclCorePropertyGroup";
|
|
354
|
-
comments: readonly
|
|
355
|
-
labels: readonly
|
|
864
|
+
comments: readonly string[];
|
|
865
|
+
labels: readonly string[];
|
|
356
866
|
}>;
|
|
357
867
|
function $toRdf(_shaclCorePropertyGroup: ShaclCorePropertyGroup, options?: {
|
|
358
868
|
ignoreRdfType?: boolean;
|
|
359
|
-
|
|
360
|
-
resourceSet?:
|
|
361
|
-
}):
|
|
362
|
-
const $
|
|
363
|
-
|
|
364
|
-
identifier:
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
869
|
+
graph?: Exclude<Quad_Graph, Variable>;
|
|
870
|
+
resourceSet?: ResourceSet;
|
|
871
|
+
}): Resource;
|
|
872
|
+
const $schema: {
|
|
873
|
+
readonly properties: {
|
|
874
|
+
readonly $identifier: {
|
|
875
|
+
readonly kind: "Identifier";
|
|
876
|
+
readonly type: () => {
|
|
877
|
+
kind: "Identifier";
|
|
878
|
+
};
|
|
879
|
+
};
|
|
880
|
+
readonly $type: {
|
|
881
|
+
readonly kind: "TypeDiscriminant";
|
|
882
|
+
readonly type: () => {
|
|
883
|
+
kind: "TypeDiscriminant";
|
|
884
|
+
ownValues: string[];
|
|
885
|
+
};
|
|
886
|
+
};
|
|
887
|
+
readonly comments: {
|
|
888
|
+
readonly kind: "Shacl";
|
|
889
|
+
readonly type: () => {
|
|
890
|
+
kind: "Set";
|
|
891
|
+
item: () => {
|
|
892
|
+
kind: "String";
|
|
893
|
+
};
|
|
894
|
+
};
|
|
895
|
+
readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#comment">;
|
|
896
|
+
};
|
|
897
|
+
readonly labels: {
|
|
898
|
+
readonly kind: "Shacl";
|
|
899
|
+
readonly type: () => {
|
|
900
|
+
kind: "Set";
|
|
901
|
+
item: () => {
|
|
902
|
+
kind: "String";
|
|
903
|
+
};
|
|
904
|
+
};
|
|
905
|
+
readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
|
|
906
|
+
};
|
|
368
907
|
};
|
|
369
908
|
};
|
|
370
909
|
}
|
|
371
910
|
export interface ShaclCoreNodeShape extends BaseShaclCoreShape {
|
|
372
911
|
readonly $identifier: ShaclCoreNodeShape.$Identifier;
|
|
373
912
|
readonly $type: "ShaclCoreNodeShape";
|
|
374
|
-
readonly closed:
|
|
375
|
-
readonly ignoredProperties:
|
|
376
|
-
readonly properties: readonly (
|
|
913
|
+
readonly closed: Maybe<boolean>;
|
|
914
|
+
readonly ignoredProperties: Maybe<readonly NamedNode[]>;
|
|
915
|
+
readonly properties: readonly (BlankNode | NamedNode)[];
|
|
377
916
|
}
|
|
378
917
|
export declare namespace ShaclCoreNodeShape {
|
|
379
|
-
|
|
380
|
-
type $
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
$identifier:
|
|
918
|
+
function $filter(filter: ShaclCoreNodeShape.$Filter, value: ShaclCoreNodeShape): boolean;
|
|
919
|
+
type $Filter = {
|
|
920
|
+
readonly $identifier?: $IdentifierFilter;
|
|
921
|
+
readonly closed?: $MaybeFilter<$BooleanFilter>;
|
|
922
|
+
readonly ignoredProperties?: $MaybeFilter<$CollectionFilter<$IriFilter>>;
|
|
923
|
+
readonly properties?: $CollectionFilter<$IdentifierFilter>;
|
|
924
|
+
} & BaseShaclCoreShapeStatic.$Filter;
|
|
925
|
+
const $fromRdfType: NamedNode<string>;
|
|
926
|
+
type $Identifier = BlankNode | NamedNode;
|
|
927
|
+
namespace $Identifier {
|
|
928
|
+
const fromString: typeof $identifierFromString;
|
|
929
|
+
const toString: typeof import("rdfjs-resource/dist/Identifier.js").Identifier.toString;
|
|
930
|
+
}
|
|
931
|
+
function isShaclCoreNodeShape(object: $Object): object is ShaclCoreNodeShape;
|
|
932
|
+
function $fromRdf(resource: Resource, options?: $FromRdfOptions): Either<Error, ShaclCoreNodeShape>;
|
|
933
|
+
function $propertiesFromRdf($parameters: $PropertiesFromRdfParameters): Either<Error, {
|
|
934
|
+
$identifier: BlankNode | NamedNode;
|
|
396
935
|
$type: "ShaclCoreNodeShape";
|
|
397
|
-
closed:
|
|
398
|
-
ignoredProperties:
|
|
399
|
-
properties: readonly (
|
|
936
|
+
closed: Maybe<boolean>;
|
|
937
|
+
ignoredProperties: Maybe<readonly NamedNode[]>;
|
|
938
|
+
properties: readonly (BlankNode | NamedNode)[];
|
|
400
939
|
} & $UnwrapR<ReturnType<typeof BaseShaclCoreShapeStatic.$propertiesFromRdf>>>;
|
|
401
940
|
function $toRdf(_shaclCoreNodeShape: ShaclCoreNodeShape, options?: {
|
|
402
941
|
ignoreRdfType?: boolean;
|
|
403
|
-
|
|
404
|
-
resourceSet?:
|
|
405
|
-
}):
|
|
406
|
-
const $
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
identifier:
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
942
|
+
graph?: Exclude<Quad_Graph, Variable>;
|
|
943
|
+
resourceSet?: ResourceSet;
|
|
944
|
+
}): Resource;
|
|
945
|
+
const $schema: {
|
|
946
|
+
readonly properties: {
|
|
947
|
+
readonly closed: {
|
|
948
|
+
readonly kind: "Shacl";
|
|
949
|
+
readonly type: () => {
|
|
950
|
+
kind: "Maybe";
|
|
951
|
+
item: () => {
|
|
952
|
+
kind: "Boolean";
|
|
953
|
+
};
|
|
954
|
+
};
|
|
955
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#closed">;
|
|
956
|
+
};
|
|
957
|
+
readonly ignoredProperties: {
|
|
958
|
+
readonly kind: "Shacl";
|
|
959
|
+
readonly type: () => {
|
|
960
|
+
kind: "Maybe";
|
|
961
|
+
item: () => {
|
|
962
|
+
kind: "List";
|
|
963
|
+
item: () => {
|
|
964
|
+
kind: "Iri";
|
|
965
|
+
};
|
|
966
|
+
};
|
|
967
|
+
};
|
|
968
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#ignoredProperties">;
|
|
969
|
+
};
|
|
970
|
+
readonly properties: {
|
|
971
|
+
readonly kind: "Shacl";
|
|
972
|
+
readonly type: () => {
|
|
973
|
+
kind: "Set";
|
|
974
|
+
item: () => {
|
|
975
|
+
kind: "Identifier";
|
|
976
|
+
};
|
|
977
|
+
};
|
|
978
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#property">;
|
|
979
|
+
};
|
|
980
|
+
readonly $identifier: {
|
|
981
|
+
readonly kind: "Identifier";
|
|
982
|
+
readonly type: () => {
|
|
983
|
+
kind: "Identifier";
|
|
984
|
+
};
|
|
985
|
+
};
|
|
986
|
+
readonly $type: {
|
|
987
|
+
readonly kind: "TypeDiscriminant";
|
|
988
|
+
readonly type: () => {
|
|
989
|
+
descendantValues: string[];
|
|
990
|
+
kind: "TypeDiscriminant";
|
|
991
|
+
};
|
|
992
|
+
};
|
|
993
|
+
readonly and: {
|
|
994
|
+
readonly kind: "Shacl";
|
|
995
|
+
readonly type: () => {
|
|
996
|
+
kind: "Set";
|
|
997
|
+
item: () => {
|
|
998
|
+
kind: "List";
|
|
999
|
+
item: () => {
|
|
1000
|
+
kind: "Identifier";
|
|
1001
|
+
};
|
|
1002
|
+
};
|
|
1003
|
+
};
|
|
1004
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#and">;
|
|
1005
|
+
};
|
|
1006
|
+
readonly classes: {
|
|
1007
|
+
readonly kind: "Shacl";
|
|
1008
|
+
readonly type: () => {
|
|
1009
|
+
kind: "Set";
|
|
1010
|
+
item: () => {
|
|
1011
|
+
kind: "Iri";
|
|
1012
|
+
};
|
|
1013
|
+
};
|
|
1014
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#class">;
|
|
1015
|
+
};
|
|
1016
|
+
readonly comments: {
|
|
1017
|
+
readonly kind: "Shacl";
|
|
1018
|
+
readonly type: () => {
|
|
1019
|
+
kind: "Set";
|
|
1020
|
+
item: () => {
|
|
1021
|
+
kind: "String";
|
|
1022
|
+
};
|
|
1023
|
+
};
|
|
1024
|
+
readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#comment">;
|
|
1025
|
+
};
|
|
1026
|
+
readonly datatype: {
|
|
1027
|
+
readonly kind: "Shacl";
|
|
1028
|
+
readonly type: () => {
|
|
1029
|
+
kind: "Maybe";
|
|
1030
|
+
item: () => {
|
|
1031
|
+
kind: "Iri";
|
|
1032
|
+
};
|
|
1033
|
+
};
|
|
1034
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#datatype">;
|
|
1035
|
+
};
|
|
1036
|
+
readonly deactivated: {
|
|
1037
|
+
readonly kind: "Shacl";
|
|
1038
|
+
readonly type: () => {
|
|
1039
|
+
kind: "Maybe";
|
|
1040
|
+
item: () => {
|
|
1041
|
+
kind: "Boolean";
|
|
1042
|
+
};
|
|
1043
|
+
};
|
|
1044
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#deactivated">;
|
|
1045
|
+
};
|
|
1046
|
+
readonly flags: {
|
|
1047
|
+
readonly kind: "Shacl";
|
|
1048
|
+
readonly type: () => {
|
|
1049
|
+
kind: "Set";
|
|
1050
|
+
item: () => {
|
|
1051
|
+
kind: "String";
|
|
1052
|
+
};
|
|
1053
|
+
};
|
|
1054
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#flags">;
|
|
1055
|
+
};
|
|
1056
|
+
readonly hasValues: {
|
|
1057
|
+
readonly kind: "Shacl";
|
|
1058
|
+
readonly type: () => {
|
|
1059
|
+
kind: "Set";
|
|
1060
|
+
item: () => {
|
|
1061
|
+
kind: "Term";
|
|
1062
|
+
};
|
|
1063
|
+
};
|
|
1064
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#hasValue">;
|
|
1065
|
+
};
|
|
1066
|
+
readonly in_: {
|
|
1067
|
+
readonly kind: "Shacl";
|
|
1068
|
+
readonly type: () => {
|
|
1069
|
+
kind: "Maybe";
|
|
1070
|
+
item: () => {
|
|
1071
|
+
kind: "List";
|
|
1072
|
+
item: () => {
|
|
1073
|
+
kind: "Term";
|
|
1074
|
+
};
|
|
1075
|
+
};
|
|
1076
|
+
};
|
|
1077
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#in">;
|
|
1078
|
+
};
|
|
1079
|
+
readonly isDefinedBy: {
|
|
1080
|
+
readonly kind: "Shacl";
|
|
1081
|
+
readonly type: () => {
|
|
1082
|
+
kind: "Maybe";
|
|
1083
|
+
item: () => {
|
|
1084
|
+
kind: "Identifier";
|
|
1085
|
+
};
|
|
1086
|
+
};
|
|
1087
|
+
readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#isDefinedBy">;
|
|
1088
|
+
};
|
|
1089
|
+
readonly labels: {
|
|
1090
|
+
readonly kind: "Shacl";
|
|
1091
|
+
readonly type: () => {
|
|
1092
|
+
kind: "Set";
|
|
1093
|
+
item: () => {
|
|
1094
|
+
kind: "String";
|
|
1095
|
+
};
|
|
1096
|
+
};
|
|
1097
|
+
readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
|
|
1098
|
+
};
|
|
1099
|
+
readonly languageIn: {
|
|
1100
|
+
readonly kind: "Shacl";
|
|
1101
|
+
readonly type: () => {
|
|
1102
|
+
kind: "Maybe";
|
|
1103
|
+
item: () => {
|
|
1104
|
+
kind: "List";
|
|
1105
|
+
item: () => {
|
|
1106
|
+
kind: "String";
|
|
1107
|
+
};
|
|
1108
|
+
};
|
|
1109
|
+
};
|
|
1110
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#languageIn">;
|
|
1111
|
+
};
|
|
1112
|
+
readonly maxCount: {
|
|
1113
|
+
readonly kind: "Shacl";
|
|
1114
|
+
readonly type: () => {
|
|
1115
|
+
kind: "Maybe";
|
|
1116
|
+
item: () => {
|
|
1117
|
+
kind: "Int";
|
|
1118
|
+
};
|
|
1119
|
+
};
|
|
1120
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxCount">;
|
|
1121
|
+
};
|
|
1122
|
+
readonly maxExclusive: {
|
|
1123
|
+
readonly kind: "Shacl";
|
|
1124
|
+
readonly type: () => {
|
|
1125
|
+
kind: "Maybe";
|
|
1126
|
+
item: () => {
|
|
1127
|
+
kind: "Literal";
|
|
1128
|
+
};
|
|
1129
|
+
};
|
|
1130
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxExclusive">;
|
|
1131
|
+
};
|
|
1132
|
+
readonly maxInclusive: {
|
|
1133
|
+
readonly kind: "Shacl";
|
|
1134
|
+
readonly type: () => {
|
|
1135
|
+
kind: "Maybe";
|
|
1136
|
+
item: () => {
|
|
1137
|
+
kind: "Literal";
|
|
1138
|
+
};
|
|
1139
|
+
};
|
|
1140
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxInclusive">;
|
|
1141
|
+
};
|
|
1142
|
+
readonly maxLength: {
|
|
1143
|
+
readonly kind: "Shacl";
|
|
1144
|
+
readonly type: () => {
|
|
1145
|
+
kind: "Maybe";
|
|
1146
|
+
item: () => {
|
|
1147
|
+
kind: "Int";
|
|
1148
|
+
};
|
|
1149
|
+
};
|
|
1150
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxLength">;
|
|
1151
|
+
};
|
|
1152
|
+
readonly minCount: {
|
|
1153
|
+
readonly kind: "Shacl";
|
|
1154
|
+
readonly type: () => {
|
|
1155
|
+
kind: "Maybe";
|
|
1156
|
+
item: () => {
|
|
1157
|
+
kind: "Int";
|
|
1158
|
+
};
|
|
1159
|
+
};
|
|
1160
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#minCount">;
|
|
1161
|
+
};
|
|
1162
|
+
readonly minExclusive: {
|
|
1163
|
+
readonly kind: "Shacl";
|
|
1164
|
+
readonly type: () => {
|
|
1165
|
+
kind: "Maybe";
|
|
1166
|
+
item: () => {
|
|
1167
|
+
kind: "Literal";
|
|
1168
|
+
};
|
|
1169
|
+
};
|
|
1170
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#minExclusive">;
|
|
1171
|
+
};
|
|
1172
|
+
readonly minInclusive: {
|
|
1173
|
+
readonly kind: "Shacl";
|
|
1174
|
+
readonly type: () => {
|
|
1175
|
+
kind: "Maybe";
|
|
1176
|
+
item: () => {
|
|
1177
|
+
kind: "Literal";
|
|
1178
|
+
};
|
|
1179
|
+
};
|
|
1180
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#minInclusive">;
|
|
1181
|
+
};
|
|
1182
|
+
readonly minLength: {
|
|
1183
|
+
readonly kind: "Shacl";
|
|
1184
|
+
readonly type: () => {
|
|
1185
|
+
kind: "Maybe";
|
|
1186
|
+
item: () => {
|
|
1187
|
+
kind: "Int";
|
|
1188
|
+
};
|
|
1189
|
+
};
|
|
1190
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#minLength">;
|
|
1191
|
+
};
|
|
1192
|
+
readonly nodeKind: {
|
|
1193
|
+
readonly kind: "Shacl";
|
|
1194
|
+
readonly type: () => {
|
|
1195
|
+
kind: "Maybe";
|
|
1196
|
+
item: () => {
|
|
1197
|
+
kind: "Iri";
|
|
1198
|
+
in: (NamedNode<"http://www.w3.org/ns/shacl#BlankNode"> | NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrIRI"> | NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrLiteral"> | NamedNode<"http://www.w3.org/ns/shacl#IRI"> | NamedNode<"http://www.w3.org/ns/shacl#IRIOrLiteral"> | NamedNode<"http://www.w3.org/ns/shacl#Literal">)[];
|
|
1199
|
+
};
|
|
1200
|
+
};
|
|
1201
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#nodeKind">;
|
|
1202
|
+
};
|
|
1203
|
+
readonly nodes: {
|
|
1204
|
+
readonly kind: "Shacl";
|
|
1205
|
+
readonly type: () => {
|
|
1206
|
+
kind: "Set";
|
|
1207
|
+
item: () => {
|
|
1208
|
+
kind: "Identifier";
|
|
1209
|
+
};
|
|
1210
|
+
};
|
|
1211
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#node">;
|
|
1212
|
+
};
|
|
1213
|
+
readonly not: {
|
|
1214
|
+
readonly kind: "Shacl";
|
|
1215
|
+
readonly type: () => {
|
|
1216
|
+
kind: "Set";
|
|
1217
|
+
item: () => {
|
|
1218
|
+
kind: "Identifier";
|
|
1219
|
+
};
|
|
1220
|
+
};
|
|
1221
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#not">;
|
|
1222
|
+
};
|
|
1223
|
+
readonly or: {
|
|
1224
|
+
readonly kind: "Shacl";
|
|
1225
|
+
readonly type: () => {
|
|
1226
|
+
kind: "Set";
|
|
1227
|
+
item: () => {
|
|
1228
|
+
kind: "List";
|
|
1229
|
+
item: () => {
|
|
1230
|
+
kind: "Identifier";
|
|
1231
|
+
};
|
|
1232
|
+
};
|
|
1233
|
+
};
|
|
1234
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#or">;
|
|
1235
|
+
};
|
|
1236
|
+
readonly patterns: {
|
|
1237
|
+
readonly kind: "Shacl";
|
|
1238
|
+
readonly type: () => {
|
|
1239
|
+
kind: "Set";
|
|
1240
|
+
item: () => {
|
|
1241
|
+
kind: "String";
|
|
1242
|
+
};
|
|
1243
|
+
};
|
|
1244
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#pattern">;
|
|
1245
|
+
};
|
|
1246
|
+
readonly xone: {
|
|
1247
|
+
readonly kind: "Shacl";
|
|
1248
|
+
readonly type: () => {
|
|
1249
|
+
kind: "Set";
|
|
1250
|
+
item: () => {
|
|
1251
|
+
kind: "List";
|
|
1252
|
+
item: () => {
|
|
1253
|
+
kind: "Identifier";
|
|
1254
|
+
};
|
|
1255
|
+
};
|
|
1256
|
+
};
|
|
1257
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#xone">;
|
|
1258
|
+
};
|
|
490
1259
|
};
|
|
491
1260
|
};
|
|
492
1261
|
}
|
|
493
1262
|
export interface OwlOntology {
|
|
494
1263
|
readonly $identifier: OwlOntology.$Identifier;
|
|
495
1264
|
readonly $type: "OwlOntology";
|
|
496
|
-
readonly labels: readonly
|
|
1265
|
+
readonly labels: readonly string[];
|
|
497
1266
|
}
|
|
498
1267
|
export declare namespace OwlOntology {
|
|
499
|
-
|
|
500
|
-
type $
|
|
1268
|
+
function $filter(filter: OwlOntology.$Filter, value: OwlOntology): boolean;
|
|
1269
|
+
type $Filter = {
|
|
1270
|
+
readonly $identifier?: $IdentifierFilter;
|
|
1271
|
+
readonly labels?: $CollectionFilter<$StringFilter>;
|
|
1272
|
+
};
|
|
1273
|
+
const $fromRdfType: NamedNode<string>;
|
|
1274
|
+
type $Identifier = BlankNode | NamedNode;
|
|
501
1275
|
namespace $Identifier {
|
|
502
|
-
|
|
503
|
-
const
|
|
504
|
-
toString: typeof rdfjsResource.Resource.Identifier.toString;
|
|
1276
|
+
const fromString: typeof $identifierFromString;
|
|
1277
|
+
const toString: typeof import("rdfjs-resource/dist/Identifier.js").Identifier.toString;
|
|
505
1278
|
}
|
|
506
|
-
function
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
preferredLanguages?: readonly string[];
|
|
511
|
-
}): purify.Either<Error, OwlOntology>;
|
|
512
|
-
function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, objectSet: $objectSet, preferredLanguages: $preferredLanguages, resource: $resource, ...$context }: {
|
|
513
|
-
[_index: string]: any;
|
|
514
|
-
ignoreRdfType: boolean;
|
|
515
|
-
objectSet: $ObjectSet;
|
|
516
|
-
preferredLanguages?: readonly string[];
|
|
517
|
-
resource: rdfjsResource.Resource;
|
|
518
|
-
}): purify.Either<Error, {
|
|
519
|
-
$identifier: rdfjs.BlankNode | rdfjs.NamedNode;
|
|
1279
|
+
function isOwlOntology(object: $Object): object is OwlOntology;
|
|
1280
|
+
function $fromRdf(resource: Resource, options?: $FromRdfOptions): Either<Error, OwlOntology>;
|
|
1281
|
+
function $propertiesFromRdf($parameters: $PropertiesFromRdfParameters): Either<Error, {
|
|
1282
|
+
$identifier: BlankNode | NamedNode;
|
|
520
1283
|
$type: "OwlOntology";
|
|
521
|
-
labels: readonly
|
|
1284
|
+
labels: readonly string[];
|
|
522
1285
|
}>;
|
|
523
1286
|
function $toRdf(_owlOntology: OwlOntology, options?: {
|
|
524
1287
|
ignoreRdfType?: boolean;
|
|
525
|
-
|
|
526
|
-
resourceSet?:
|
|
527
|
-
}):
|
|
528
|
-
const $
|
|
529
|
-
|
|
530
|
-
identifier:
|
|
1288
|
+
graph?: Exclude<Quad_Graph, Variable>;
|
|
1289
|
+
resourceSet?: ResourceSet;
|
|
1290
|
+
}): Resource;
|
|
1291
|
+
const $schema: {
|
|
1292
|
+
readonly properties: {
|
|
1293
|
+
readonly $identifier: {
|
|
1294
|
+
readonly kind: "Identifier";
|
|
1295
|
+
readonly type: () => {
|
|
1296
|
+
kind: "Identifier";
|
|
1297
|
+
};
|
|
1298
|
+
};
|
|
1299
|
+
readonly $type: {
|
|
1300
|
+
readonly kind: "TypeDiscriminant";
|
|
1301
|
+
readonly type: () => {
|
|
1302
|
+
kind: "TypeDiscriminant";
|
|
1303
|
+
ownValues: string[];
|
|
1304
|
+
};
|
|
1305
|
+
};
|
|
1306
|
+
readonly labels: {
|
|
1307
|
+
readonly kind: "Shacl";
|
|
1308
|
+
readonly type: () => {
|
|
1309
|
+
kind: "Set";
|
|
1310
|
+
item: () => {
|
|
1311
|
+
kind: "String";
|
|
1312
|
+
};
|
|
1313
|
+
};
|
|
1314
|
+
readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
|
|
1315
|
+
};
|
|
531
1316
|
};
|
|
532
1317
|
};
|
|
533
1318
|
}
|
|
534
1319
|
export type ShaclCoreShape = ShaclCoreNodeShape | ShaclCorePropertyShape;
|
|
535
1320
|
export declare namespace ShaclCoreShape {
|
|
536
|
-
function $
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
1321
|
+
function $filter(filter: ShaclCoreShape.$Filter, value: ShaclCoreShape): boolean;
|
|
1322
|
+
interface $Filter {
|
|
1323
|
+
readonly $identifier?: $IdentifierFilter;
|
|
1324
|
+
readonly on?: {
|
|
1325
|
+
readonly ShaclCoreNodeShape?: Omit<ShaclCoreNodeShape.$Filter, "$identifier">;
|
|
1326
|
+
readonly ShaclCorePropertyShape?: Omit<ShaclCorePropertyShape.$Filter, "$identifier">;
|
|
1327
|
+
};
|
|
1328
|
+
}
|
|
1329
|
+
type $Identifier = BlankNode | NamedNode;
|
|
543
1330
|
namespace $Identifier {
|
|
544
|
-
|
|
545
|
-
const
|
|
546
|
-
toString: typeof rdfjsResource.Resource.Identifier.toString;
|
|
1331
|
+
const fromString: typeof $identifierFromString;
|
|
1332
|
+
const toString: typeof import("rdfjs-resource/dist/Identifier.js").Identifier.toString;
|
|
547
1333
|
}
|
|
1334
|
+
function isShaclCoreShape(object: $Object): object is ShaclCoreShape;
|
|
1335
|
+
const $schema: {
|
|
1336
|
+
readonly properties: {
|
|
1337
|
+
readonly and: {
|
|
1338
|
+
readonly kind: "Shacl";
|
|
1339
|
+
readonly type: () => {
|
|
1340
|
+
kind: "Set";
|
|
1341
|
+
item: () => {
|
|
1342
|
+
kind: "List";
|
|
1343
|
+
item: () => {
|
|
1344
|
+
kind: "Identifier";
|
|
1345
|
+
};
|
|
1346
|
+
};
|
|
1347
|
+
};
|
|
1348
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#and">;
|
|
1349
|
+
};
|
|
1350
|
+
readonly classes: {
|
|
1351
|
+
readonly kind: "Shacl";
|
|
1352
|
+
readonly type: () => {
|
|
1353
|
+
kind: "Set";
|
|
1354
|
+
item: () => {
|
|
1355
|
+
kind: "Iri";
|
|
1356
|
+
};
|
|
1357
|
+
};
|
|
1358
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#class">;
|
|
1359
|
+
};
|
|
1360
|
+
readonly comments: {
|
|
1361
|
+
readonly kind: "Shacl";
|
|
1362
|
+
readonly type: () => {
|
|
1363
|
+
kind: "Set";
|
|
1364
|
+
item: () => {
|
|
1365
|
+
kind: "String";
|
|
1366
|
+
};
|
|
1367
|
+
};
|
|
1368
|
+
readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#comment">;
|
|
1369
|
+
};
|
|
1370
|
+
readonly datatype: {
|
|
1371
|
+
readonly kind: "Shacl";
|
|
1372
|
+
readonly type: () => {
|
|
1373
|
+
kind: "Maybe";
|
|
1374
|
+
item: () => {
|
|
1375
|
+
kind: "Iri";
|
|
1376
|
+
};
|
|
1377
|
+
};
|
|
1378
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#datatype">;
|
|
1379
|
+
};
|
|
1380
|
+
readonly deactivated: {
|
|
1381
|
+
readonly kind: "Shacl";
|
|
1382
|
+
readonly type: () => {
|
|
1383
|
+
kind: "Maybe";
|
|
1384
|
+
item: () => {
|
|
1385
|
+
kind: "Boolean";
|
|
1386
|
+
};
|
|
1387
|
+
};
|
|
1388
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#deactivated">;
|
|
1389
|
+
};
|
|
1390
|
+
readonly flags: {
|
|
1391
|
+
readonly kind: "Shacl";
|
|
1392
|
+
readonly type: () => {
|
|
1393
|
+
kind: "Set";
|
|
1394
|
+
item: () => {
|
|
1395
|
+
kind: "String";
|
|
1396
|
+
};
|
|
1397
|
+
};
|
|
1398
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#flags">;
|
|
1399
|
+
};
|
|
1400
|
+
readonly hasValues: {
|
|
1401
|
+
readonly kind: "Shacl";
|
|
1402
|
+
readonly type: () => {
|
|
1403
|
+
kind: "Set";
|
|
1404
|
+
item: () => {
|
|
1405
|
+
kind: "Term";
|
|
1406
|
+
};
|
|
1407
|
+
};
|
|
1408
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#hasValue">;
|
|
1409
|
+
};
|
|
1410
|
+
readonly in_: {
|
|
1411
|
+
readonly kind: "Shacl";
|
|
1412
|
+
readonly type: () => {
|
|
1413
|
+
kind: "Maybe";
|
|
1414
|
+
item: () => {
|
|
1415
|
+
kind: "List";
|
|
1416
|
+
item: () => {
|
|
1417
|
+
kind: "Term";
|
|
1418
|
+
};
|
|
1419
|
+
};
|
|
1420
|
+
};
|
|
1421
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#in">;
|
|
1422
|
+
};
|
|
1423
|
+
readonly isDefinedBy: {
|
|
1424
|
+
readonly kind: "Shacl";
|
|
1425
|
+
readonly type: () => {
|
|
1426
|
+
kind: "Maybe";
|
|
1427
|
+
item: () => {
|
|
1428
|
+
kind: "Identifier";
|
|
1429
|
+
};
|
|
1430
|
+
};
|
|
1431
|
+
readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#isDefinedBy">;
|
|
1432
|
+
};
|
|
1433
|
+
readonly labels: {
|
|
1434
|
+
readonly kind: "Shacl";
|
|
1435
|
+
readonly type: () => {
|
|
1436
|
+
kind: "Set";
|
|
1437
|
+
item: () => {
|
|
1438
|
+
kind: "String";
|
|
1439
|
+
};
|
|
1440
|
+
};
|
|
1441
|
+
readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
|
|
1442
|
+
};
|
|
1443
|
+
readonly languageIn: {
|
|
1444
|
+
readonly kind: "Shacl";
|
|
1445
|
+
readonly type: () => {
|
|
1446
|
+
kind: "Maybe";
|
|
1447
|
+
item: () => {
|
|
1448
|
+
kind: "List";
|
|
1449
|
+
item: () => {
|
|
1450
|
+
kind: "String";
|
|
1451
|
+
};
|
|
1452
|
+
};
|
|
1453
|
+
};
|
|
1454
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#languageIn">;
|
|
1455
|
+
};
|
|
1456
|
+
readonly maxCount: {
|
|
1457
|
+
readonly kind: "Shacl";
|
|
1458
|
+
readonly type: () => {
|
|
1459
|
+
kind: "Maybe";
|
|
1460
|
+
item: () => {
|
|
1461
|
+
kind: "Int";
|
|
1462
|
+
};
|
|
1463
|
+
};
|
|
1464
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxCount">;
|
|
1465
|
+
};
|
|
1466
|
+
readonly maxExclusive: {
|
|
1467
|
+
readonly kind: "Shacl";
|
|
1468
|
+
readonly type: () => {
|
|
1469
|
+
kind: "Maybe";
|
|
1470
|
+
item: () => {
|
|
1471
|
+
kind: "Literal";
|
|
1472
|
+
};
|
|
1473
|
+
};
|
|
1474
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxExclusive">;
|
|
1475
|
+
};
|
|
1476
|
+
readonly maxInclusive: {
|
|
1477
|
+
readonly kind: "Shacl";
|
|
1478
|
+
readonly type: () => {
|
|
1479
|
+
kind: "Maybe";
|
|
1480
|
+
item: () => {
|
|
1481
|
+
kind: "Literal";
|
|
1482
|
+
};
|
|
1483
|
+
};
|
|
1484
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxInclusive">;
|
|
1485
|
+
};
|
|
1486
|
+
readonly maxLength: {
|
|
1487
|
+
readonly kind: "Shacl";
|
|
1488
|
+
readonly type: () => {
|
|
1489
|
+
kind: "Maybe";
|
|
1490
|
+
item: () => {
|
|
1491
|
+
kind: "Int";
|
|
1492
|
+
};
|
|
1493
|
+
};
|
|
1494
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxLength">;
|
|
1495
|
+
};
|
|
1496
|
+
readonly minCount: {
|
|
1497
|
+
readonly kind: "Shacl";
|
|
1498
|
+
readonly type: () => {
|
|
1499
|
+
kind: "Maybe";
|
|
1500
|
+
item: () => {
|
|
1501
|
+
kind: "Int";
|
|
1502
|
+
};
|
|
1503
|
+
};
|
|
1504
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#minCount">;
|
|
1505
|
+
};
|
|
1506
|
+
readonly minExclusive: {
|
|
1507
|
+
readonly kind: "Shacl";
|
|
1508
|
+
readonly type: () => {
|
|
1509
|
+
kind: "Maybe";
|
|
1510
|
+
item: () => {
|
|
1511
|
+
kind: "Literal";
|
|
1512
|
+
};
|
|
1513
|
+
};
|
|
1514
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#minExclusive">;
|
|
1515
|
+
};
|
|
1516
|
+
readonly minInclusive: {
|
|
1517
|
+
readonly kind: "Shacl";
|
|
1518
|
+
readonly type: () => {
|
|
1519
|
+
kind: "Maybe";
|
|
1520
|
+
item: () => {
|
|
1521
|
+
kind: "Literal";
|
|
1522
|
+
};
|
|
1523
|
+
};
|
|
1524
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#minInclusive">;
|
|
1525
|
+
};
|
|
1526
|
+
readonly minLength: {
|
|
1527
|
+
readonly kind: "Shacl";
|
|
1528
|
+
readonly type: () => {
|
|
1529
|
+
kind: "Maybe";
|
|
1530
|
+
item: () => {
|
|
1531
|
+
kind: "Int";
|
|
1532
|
+
};
|
|
1533
|
+
};
|
|
1534
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#minLength">;
|
|
1535
|
+
};
|
|
1536
|
+
readonly nodeKind: {
|
|
1537
|
+
readonly kind: "Shacl";
|
|
1538
|
+
readonly type: () => {
|
|
1539
|
+
kind: "Maybe";
|
|
1540
|
+
item: () => {
|
|
1541
|
+
kind: "Iri";
|
|
1542
|
+
in: (NamedNode<"http://www.w3.org/ns/shacl#BlankNode"> | NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrIRI"> | NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrLiteral"> | NamedNode<"http://www.w3.org/ns/shacl#IRI"> | NamedNode<"http://www.w3.org/ns/shacl#IRIOrLiteral"> | NamedNode<"http://www.w3.org/ns/shacl#Literal">)[];
|
|
1543
|
+
};
|
|
1544
|
+
};
|
|
1545
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#nodeKind">;
|
|
1546
|
+
};
|
|
1547
|
+
readonly nodes: {
|
|
1548
|
+
readonly kind: "Shacl";
|
|
1549
|
+
readonly type: () => {
|
|
1550
|
+
kind: "Set";
|
|
1551
|
+
item: () => {
|
|
1552
|
+
kind: "Identifier";
|
|
1553
|
+
};
|
|
1554
|
+
};
|
|
1555
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#node">;
|
|
1556
|
+
};
|
|
1557
|
+
readonly not: {
|
|
1558
|
+
readonly kind: "Shacl";
|
|
1559
|
+
readonly type: () => {
|
|
1560
|
+
kind: "Set";
|
|
1561
|
+
item: () => {
|
|
1562
|
+
kind: "Identifier";
|
|
1563
|
+
};
|
|
1564
|
+
};
|
|
1565
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#not">;
|
|
1566
|
+
};
|
|
1567
|
+
readonly or: {
|
|
1568
|
+
readonly kind: "Shacl";
|
|
1569
|
+
readonly type: () => {
|
|
1570
|
+
kind: "Set";
|
|
1571
|
+
item: () => {
|
|
1572
|
+
kind: "List";
|
|
1573
|
+
item: () => {
|
|
1574
|
+
kind: "Identifier";
|
|
1575
|
+
};
|
|
1576
|
+
};
|
|
1577
|
+
};
|
|
1578
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#or">;
|
|
1579
|
+
};
|
|
1580
|
+
readonly patterns: {
|
|
1581
|
+
readonly kind: "Shacl";
|
|
1582
|
+
readonly type: () => {
|
|
1583
|
+
kind: "Set";
|
|
1584
|
+
item: () => {
|
|
1585
|
+
kind: "String";
|
|
1586
|
+
};
|
|
1587
|
+
};
|
|
1588
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#pattern">;
|
|
1589
|
+
};
|
|
1590
|
+
readonly xone: {
|
|
1591
|
+
readonly kind: "Shacl";
|
|
1592
|
+
readonly type: () => {
|
|
1593
|
+
kind: "Set";
|
|
1594
|
+
item: () => {
|
|
1595
|
+
kind: "List";
|
|
1596
|
+
item: () => {
|
|
1597
|
+
kind: "Identifier";
|
|
1598
|
+
};
|
|
1599
|
+
};
|
|
1600
|
+
};
|
|
1601
|
+
readonly path: NamedNode<"http://www.w3.org/ns/shacl#xone">;
|
|
1602
|
+
};
|
|
1603
|
+
};
|
|
1604
|
+
};
|
|
1605
|
+
function $fromRdf(resource: Resource, options?: $FromRdfOptions): Either<Error, ShaclCoreShape>;
|
|
548
1606
|
function $toRdf(_shaclCoreShape: ShaclCoreShape, _parameters?: {
|
|
549
|
-
|
|
550
|
-
resourceSet?:
|
|
551
|
-
}):
|
|
1607
|
+
graph?: Exclude<Quad_Graph, Variable>;
|
|
1608
|
+
resourceSet?: ResourceSet;
|
|
1609
|
+
}): Resource;
|
|
1610
|
+
}
|
|
1611
|
+
export type $Object = OwlOntology | ShaclCoreNodeShape | ShaclCorePropertyGroup | ShaclCorePropertyShape | BaseShaclCoreShape;
|
|
1612
|
+
export declare namespace $Object {
|
|
1613
|
+
function $filter(filter: $Object.$Filter, value: $Object): boolean;
|
|
1614
|
+
interface $Filter {
|
|
1615
|
+
readonly $identifier?: $IdentifierFilter;
|
|
1616
|
+
readonly on?: {
|
|
1617
|
+
readonly OwlOntology?: Omit<OwlOntology.$Filter, "$identifier">;
|
|
1618
|
+
readonly ShaclCoreNodeShape?: Omit<ShaclCoreNodeShape.$Filter, "$identifier">;
|
|
1619
|
+
readonly ShaclCorePropertyGroup?: Omit<ShaclCorePropertyGroup.$Filter, "$identifier">;
|
|
1620
|
+
readonly ShaclCorePropertyShape?: Omit<ShaclCorePropertyShape.$Filter, "$identifier">;
|
|
1621
|
+
readonly BaseShaclCoreShape?: Omit<BaseShaclCoreShapeStatic.$Filter, "$identifier">;
|
|
1622
|
+
};
|
|
1623
|
+
}
|
|
1624
|
+
type $Identifier = BlankNode | NamedNode;
|
|
1625
|
+
namespace $Identifier {
|
|
1626
|
+
const fromString: typeof $identifierFromString;
|
|
1627
|
+
const toString: typeof import("rdfjs-resource/dist/Identifier.js").Identifier.toString;
|
|
1628
|
+
}
|
|
1629
|
+
const $schema: {
|
|
1630
|
+
readonly properties: {
|
|
1631
|
+
readonly labels: {
|
|
1632
|
+
readonly kind: "Shacl";
|
|
1633
|
+
readonly type: () => {
|
|
1634
|
+
kind: "Set";
|
|
1635
|
+
item: () => {
|
|
1636
|
+
kind: "String";
|
|
1637
|
+
};
|
|
1638
|
+
};
|
|
1639
|
+
readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
|
|
1640
|
+
};
|
|
1641
|
+
};
|
|
1642
|
+
};
|
|
1643
|
+
function $fromRdf(resource: Resource, options?: $FromRdfOptions): Either<Error, $Object>;
|
|
1644
|
+
function $toRdf(_object: $Object, _parameters?: {
|
|
1645
|
+
graph?: Exclude<Quad_Graph, Variable>;
|
|
1646
|
+
resourceSet?: ResourceSet;
|
|
1647
|
+
}): Resource;
|
|
552
1648
|
}
|
|
553
1649
|
export interface $ObjectSet {
|
|
554
|
-
owlOntology(identifier: OwlOntology.$Identifier): Promise<
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
shaclCoreNodeShape(identifier: ShaclCoreNodeShape.$Identifier): Promise<
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
shaclCorePropertyGroup(identifier: ShaclCorePropertyGroup.$Identifier): Promise<
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
shaclCorePropertyShape(identifier: ShaclCorePropertyShape.$Identifier): Promise<
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
shaclCoreShape(identifier: ShaclCoreShape.$Identifier): Promise<
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
1650
|
+
owlOntology(identifier: OwlOntology.$Identifier): Promise<Either<Error, OwlOntology>>;
|
|
1651
|
+
owlOntologyCount(query?: Pick<$ObjectSet.Query<OwlOntology.$Filter, OwlOntology.$Identifier>, "filter">): Promise<Either<Error, number>>;
|
|
1652
|
+
owlOntologyIdentifiers(query?: $ObjectSet.Query<OwlOntology.$Filter, OwlOntology.$Identifier>): Promise<Either<Error, readonly OwlOntology.$Identifier[]>>;
|
|
1653
|
+
owlOntologies(query?: $ObjectSet.Query<OwlOntology.$Filter, OwlOntology.$Identifier>): Promise<Either<Error, readonly OwlOntology[]>>;
|
|
1654
|
+
shaclCoreNodeShape(identifier: ShaclCoreNodeShape.$Identifier): Promise<Either<Error, ShaclCoreNodeShape>>;
|
|
1655
|
+
shaclCoreNodeShapeCount(query?: Pick<$ObjectSet.Query<ShaclCoreNodeShape.$Filter, ShaclCoreNodeShape.$Identifier>, "filter">): Promise<Either<Error, number>>;
|
|
1656
|
+
shaclCoreNodeShapeIdentifiers(query?: $ObjectSet.Query<ShaclCoreNodeShape.$Filter, ShaclCoreNodeShape.$Identifier>): Promise<Either<Error, readonly ShaclCoreNodeShape.$Identifier[]>>;
|
|
1657
|
+
shaclCoreNodeShapes(query?: $ObjectSet.Query<ShaclCoreNodeShape.$Filter, ShaclCoreNodeShape.$Identifier>): Promise<Either<Error, readonly ShaclCoreNodeShape[]>>;
|
|
1658
|
+
shaclCorePropertyGroup(identifier: ShaclCorePropertyGroup.$Identifier): Promise<Either<Error, ShaclCorePropertyGroup>>;
|
|
1659
|
+
shaclCorePropertyGroupCount(query?: Pick<$ObjectSet.Query<ShaclCorePropertyGroup.$Filter, ShaclCorePropertyGroup.$Identifier>, "filter">): Promise<Either<Error, number>>;
|
|
1660
|
+
shaclCorePropertyGroupIdentifiers(query?: $ObjectSet.Query<ShaclCorePropertyGroup.$Filter, ShaclCorePropertyGroup.$Identifier>): Promise<Either<Error, readonly ShaclCorePropertyGroup.$Identifier[]>>;
|
|
1661
|
+
shaclCorePropertyGroups(query?: $ObjectSet.Query<ShaclCorePropertyGroup.$Filter, ShaclCorePropertyGroup.$Identifier>): Promise<Either<Error, readonly ShaclCorePropertyGroup[]>>;
|
|
1662
|
+
shaclCorePropertyShape(identifier: ShaclCorePropertyShape.$Identifier): Promise<Either<Error, ShaclCorePropertyShape>>;
|
|
1663
|
+
shaclCorePropertyShapeCount(query?: Pick<$ObjectSet.Query<ShaclCorePropertyShape.$Filter, ShaclCorePropertyShape.$Identifier>, "filter">): Promise<Either<Error, number>>;
|
|
1664
|
+
shaclCorePropertyShapeIdentifiers(query?: $ObjectSet.Query<ShaclCorePropertyShape.$Filter, ShaclCorePropertyShape.$Identifier>): Promise<Either<Error, readonly ShaclCorePropertyShape.$Identifier[]>>;
|
|
1665
|
+
shaclCorePropertyShapes(query?: $ObjectSet.Query<ShaclCorePropertyShape.$Filter, ShaclCorePropertyShape.$Identifier>): Promise<Either<Error, readonly ShaclCorePropertyShape[]>>;
|
|
1666
|
+
shaclCoreShape(identifier: ShaclCoreShape.$Identifier): Promise<Either<Error, ShaclCoreShape>>;
|
|
1667
|
+
shaclCoreShapeCount(query?: Pick<$ObjectSet.Query<ShaclCoreShape.$Filter, ShaclCoreShape.$Identifier>, "filter">): Promise<Either<Error, number>>;
|
|
1668
|
+
shaclCoreShapeIdentifiers(query?: $ObjectSet.Query<ShaclCoreShape.$Filter, ShaclCoreShape.$Identifier>): Promise<Either<Error, readonly ShaclCoreShape.$Identifier[]>>;
|
|
1669
|
+
shaclCoreShapes(query?: $ObjectSet.Query<ShaclCoreShape.$Filter, ShaclCoreShape.$Identifier>): Promise<Either<Error, readonly ShaclCoreShape[]>>;
|
|
1670
|
+
object(identifier: $Object.$Identifier): Promise<Either<Error, $Object>>;
|
|
1671
|
+
objectCount(query?: Pick<$ObjectSet.Query<$Object.$Filter, $Object.$Identifier>, "filter">): Promise<Either<Error, number>>;
|
|
1672
|
+
objectIdentifiers(query?: $ObjectSet.Query<$Object.$Filter, $Object.$Identifier>): Promise<Either<Error, readonly $Object.$Identifier[]>>;
|
|
1673
|
+
objects(query?: $ObjectSet.Query<$Object.$Filter, $Object.$Identifier>): Promise<Either<Error, readonly $Object[]>>;
|
|
574
1674
|
}
|
|
575
1675
|
export declare namespace $ObjectSet {
|
|
576
|
-
|
|
1676
|
+
interface Query<ObjectFilterT, ObjectIdentifierT extends BlankNode | NamedNode> {
|
|
1677
|
+
readonly filter?: ObjectFilterT;
|
|
1678
|
+
readonly graph?: Exclude<Quad_Graph, Variable>;
|
|
1679
|
+
readonly identifiers?: readonly ObjectIdentifierT[];
|
|
577
1680
|
readonly limit?: number;
|
|
578
1681
|
readonly offset?: number;
|
|
579
|
-
|
|
580
|
-
};
|
|
581
|
-
type Where<ObjectIdentifierT extends rdfjs.BlankNode | rdfjs.NamedNode> = {
|
|
582
|
-
readonly identifiers: readonly ObjectIdentifierT[];
|
|
583
|
-
readonly type: "identifiers";
|
|
584
|
-
} | {
|
|
585
|
-
readonly predicate: rdfjs.NamedNode;
|
|
586
|
-
readonly subject: rdfjs.BlankNode | rdfjs.NamedNode;
|
|
587
|
-
readonly type: "triple-objects";
|
|
588
|
-
};
|
|
589
|
-
}
|
|
590
|
-
export declare abstract class $ForwardingObjectSet implements $ObjectSet {
|
|
591
|
-
protected abstract get $delegate(): $ObjectSet;
|
|
592
|
-
owlOntology(identifier: OwlOntology.$Identifier): Promise<purify.Either<Error, OwlOntology>>;
|
|
593
|
-
owlOntologyIdentifiers(query?: $ObjectSet.Query<OwlOntology.$Identifier>): Promise<purify.Either<Error, readonly OwlOntology.$Identifier[]>>;
|
|
594
|
-
owlOntologies(query?: $ObjectSet.Query<OwlOntology.$Identifier>): Promise<purify.Either<Error, readonly OwlOntology[]>>;
|
|
595
|
-
owlOntologiesCount(query?: Pick<$ObjectSet.Query<OwlOntology.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
|
|
596
|
-
shaclCoreNodeShape(identifier: ShaclCoreNodeShape.$Identifier): Promise<purify.Either<Error, ShaclCoreNodeShape>>;
|
|
597
|
-
shaclCoreNodeShapeIdentifiers(query?: $ObjectSet.Query<ShaclCoreNodeShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCoreNodeShape.$Identifier[]>>;
|
|
598
|
-
shaclCoreNodeShapes(query?: $ObjectSet.Query<ShaclCoreNodeShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCoreNodeShape[]>>;
|
|
599
|
-
shaclCoreNodeShapesCount(query?: Pick<$ObjectSet.Query<ShaclCoreNodeShape.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
|
|
600
|
-
shaclCorePropertyGroup(identifier: ShaclCorePropertyGroup.$Identifier): Promise<purify.Either<Error, ShaclCorePropertyGroup>>;
|
|
601
|
-
shaclCorePropertyGroupIdentifiers(query?: $ObjectSet.Query<ShaclCorePropertyGroup.$Identifier>): Promise<purify.Either<Error, readonly ShaclCorePropertyGroup.$Identifier[]>>;
|
|
602
|
-
shaclCorePropertyGroups(query?: $ObjectSet.Query<ShaclCorePropertyGroup.$Identifier>): Promise<purify.Either<Error, readonly ShaclCorePropertyGroup[]>>;
|
|
603
|
-
shaclCorePropertyGroupsCount(query?: Pick<$ObjectSet.Query<ShaclCorePropertyGroup.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
|
|
604
|
-
shaclCorePropertyShape(identifier: ShaclCorePropertyShape.$Identifier): Promise<purify.Either<Error, ShaclCorePropertyShape>>;
|
|
605
|
-
shaclCorePropertyShapeIdentifiers(query?: $ObjectSet.Query<ShaclCorePropertyShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCorePropertyShape.$Identifier[]>>;
|
|
606
|
-
shaclCorePropertyShapes(query?: $ObjectSet.Query<ShaclCorePropertyShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCorePropertyShape[]>>;
|
|
607
|
-
shaclCorePropertyShapesCount(query?: Pick<$ObjectSet.Query<ShaclCorePropertyShape.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
|
|
608
|
-
shaclCoreShape(identifier: ShaclCoreShape.$Identifier): Promise<purify.Either<Error, ShaclCoreShape>>;
|
|
609
|
-
shaclCoreShapeIdentifiers(query?: $ObjectSet.Query<ShaclCoreShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCoreShape.$Identifier[]>>;
|
|
610
|
-
shaclCoreShapes(query?: $ObjectSet.Query<ShaclCoreShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCoreShape[]>>;
|
|
611
|
-
shaclCoreShapesCount(query?: Pick<$ObjectSet.Query<ShaclCoreShape.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
|
|
1682
|
+
}
|
|
612
1683
|
}
|
|
613
1684
|
export declare class $RdfjsDatasetObjectSet implements $ObjectSet {
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
1685
|
+
#private;
|
|
1686
|
+
protected readonly $graph?: Exclude<Quad_Graph, Variable>;
|
|
1687
|
+
constructor(dataset: DatasetCore | (() => DatasetCore), options?: {
|
|
1688
|
+
graph?: Exclude<Quad_Graph, Variable>;
|
|
617
1689
|
});
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
1690
|
+
protected $dataset(): DatasetCore;
|
|
1691
|
+
protected $resourceSet(): ResourceSet;
|
|
1692
|
+
owlOntology(identifier: OwlOntology.$Identifier): Promise<Either<Error, OwlOntology>>;
|
|
1693
|
+
owlOntologySync(identifier: OwlOntology.$Identifier): Either<Error, OwlOntology>;
|
|
1694
|
+
owlOntologyCount(query?: Pick<$ObjectSet.Query<OwlOntology.$Filter, OwlOntology.$Identifier>, "filter">): Promise<Either<Error, number>>;
|
|
1695
|
+
owlOntologyCountSync(query?: Pick<$ObjectSet.Query<OwlOntology.$Filter, OwlOntology.$Identifier>, "filter">): Either<Error, number>;
|
|
1696
|
+
owlOntologyIdentifiers(query?: $ObjectSet.Query<OwlOntology.$Filter, OwlOntology.$Identifier>): Promise<Either<Error, readonly OwlOntology.$Identifier[]>>;
|
|
1697
|
+
owlOntologyIdentifiersSync(query?: $ObjectSet.Query<OwlOntology.$Filter, OwlOntology.$Identifier>): Either<Error, readonly OwlOntology.$Identifier[]>;
|
|
1698
|
+
owlOntologies(query?: $ObjectSet.Query<OwlOntology.$Filter, OwlOntology.$Identifier>): Promise<Either<Error, readonly OwlOntology[]>>;
|
|
1699
|
+
owlOntologiesSync(query?: $ObjectSet.Query<OwlOntology.$Filter, OwlOntology.$Identifier>): Either<Error, readonly OwlOntology[]>;
|
|
1700
|
+
shaclCoreNodeShape(identifier: ShaclCoreNodeShape.$Identifier): Promise<Either<Error, ShaclCoreNodeShape>>;
|
|
1701
|
+
shaclCoreNodeShapeSync(identifier: ShaclCoreNodeShape.$Identifier): Either<Error, ShaclCoreNodeShape>;
|
|
1702
|
+
shaclCoreNodeShapeCount(query?: Pick<$ObjectSet.Query<ShaclCoreNodeShape.$Filter, ShaclCoreNodeShape.$Identifier>, "filter">): Promise<Either<Error, number>>;
|
|
1703
|
+
shaclCoreNodeShapeCountSync(query?: Pick<$ObjectSet.Query<ShaclCoreNodeShape.$Filter, ShaclCoreNodeShape.$Identifier>, "filter">): Either<Error, number>;
|
|
1704
|
+
shaclCoreNodeShapeIdentifiers(query?: $ObjectSet.Query<ShaclCoreNodeShape.$Filter, ShaclCoreNodeShape.$Identifier>): Promise<Either<Error, readonly ShaclCoreNodeShape.$Identifier[]>>;
|
|
1705
|
+
shaclCoreNodeShapeIdentifiersSync(query?: $ObjectSet.Query<ShaclCoreNodeShape.$Filter, ShaclCoreNodeShape.$Identifier>): Either<Error, readonly ShaclCoreNodeShape.$Identifier[]>;
|
|
1706
|
+
shaclCoreNodeShapes(query?: $ObjectSet.Query<ShaclCoreNodeShape.$Filter, ShaclCoreNodeShape.$Identifier>): Promise<Either<Error, readonly ShaclCoreNodeShape[]>>;
|
|
1707
|
+
shaclCoreNodeShapesSync(query?: $ObjectSet.Query<ShaclCoreNodeShape.$Filter, ShaclCoreNodeShape.$Identifier>): Either<Error, readonly ShaclCoreNodeShape[]>;
|
|
1708
|
+
shaclCorePropertyGroup(identifier: ShaclCorePropertyGroup.$Identifier): Promise<Either<Error, ShaclCorePropertyGroup>>;
|
|
1709
|
+
shaclCorePropertyGroupSync(identifier: ShaclCorePropertyGroup.$Identifier): Either<Error, ShaclCorePropertyGroup>;
|
|
1710
|
+
shaclCorePropertyGroupCount(query?: Pick<$ObjectSet.Query<ShaclCorePropertyGroup.$Filter, ShaclCorePropertyGroup.$Identifier>, "filter">): Promise<Either<Error, number>>;
|
|
1711
|
+
shaclCorePropertyGroupCountSync(query?: Pick<$ObjectSet.Query<ShaclCorePropertyGroup.$Filter, ShaclCorePropertyGroup.$Identifier>, "filter">): Either<Error, number>;
|
|
1712
|
+
shaclCorePropertyGroupIdentifiers(query?: $ObjectSet.Query<ShaclCorePropertyGroup.$Filter, ShaclCorePropertyGroup.$Identifier>): Promise<Either<Error, readonly ShaclCorePropertyGroup.$Identifier[]>>;
|
|
1713
|
+
shaclCorePropertyGroupIdentifiersSync(query?: $ObjectSet.Query<ShaclCorePropertyGroup.$Filter, ShaclCorePropertyGroup.$Identifier>): Either<Error, readonly ShaclCorePropertyGroup.$Identifier[]>;
|
|
1714
|
+
shaclCorePropertyGroups(query?: $ObjectSet.Query<ShaclCorePropertyGroup.$Filter, ShaclCorePropertyGroup.$Identifier>): Promise<Either<Error, readonly ShaclCorePropertyGroup[]>>;
|
|
1715
|
+
shaclCorePropertyGroupsSync(query?: $ObjectSet.Query<ShaclCorePropertyGroup.$Filter, ShaclCorePropertyGroup.$Identifier>): Either<Error, readonly ShaclCorePropertyGroup[]>;
|
|
1716
|
+
shaclCorePropertyShape(identifier: ShaclCorePropertyShape.$Identifier): Promise<Either<Error, ShaclCorePropertyShape>>;
|
|
1717
|
+
shaclCorePropertyShapeSync(identifier: ShaclCorePropertyShape.$Identifier): Either<Error, ShaclCorePropertyShape>;
|
|
1718
|
+
shaclCorePropertyShapeCount(query?: Pick<$ObjectSet.Query<ShaclCorePropertyShape.$Filter, ShaclCorePropertyShape.$Identifier>, "filter">): Promise<Either<Error, number>>;
|
|
1719
|
+
shaclCorePropertyShapeCountSync(query?: Pick<$ObjectSet.Query<ShaclCorePropertyShape.$Filter, ShaclCorePropertyShape.$Identifier>, "filter">): Either<Error, number>;
|
|
1720
|
+
shaclCorePropertyShapeIdentifiers(query?: $ObjectSet.Query<ShaclCorePropertyShape.$Filter, ShaclCorePropertyShape.$Identifier>): Promise<Either<Error, readonly ShaclCorePropertyShape.$Identifier[]>>;
|
|
1721
|
+
shaclCorePropertyShapeIdentifiersSync(query?: $ObjectSet.Query<ShaclCorePropertyShape.$Filter, ShaclCorePropertyShape.$Identifier>): Either<Error, readonly ShaclCorePropertyShape.$Identifier[]>;
|
|
1722
|
+
shaclCorePropertyShapes(query?: $ObjectSet.Query<ShaclCorePropertyShape.$Filter, ShaclCorePropertyShape.$Identifier>): Promise<Either<Error, readonly ShaclCorePropertyShape[]>>;
|
|
1723
|
+
shaclCorePropertyShapesSync(query?: $ObjectSet.Query<ShaclCorePropertyShape.$Filter, ShaclCorePropertyShape.$Identifier>): Either<Error, readonly ShaclCorePropertyShape[]>;
|
|
1724
|
+
shaclCoreShape(identifier: ShaclCoreShape.$Identifier): Promise<Either<Error, ShaclCoreShape>>;
|
|
1725
|
+
shaclCoreShapeSync(identifier: ShaclCoreShape.$Identifier): Either<Error, ShaclCoreShape>;
|
|
1726
|
+
shaclCoreShapeCount(query?: Pick<$ObjectSet.Query<ShaclCoreShape.$Filter, ShaclCoreShape.$Identifier>, "filter">): Promise<Either<Error, number>>;
|
|
1727
|
+
shaclCoreShapeCountSync(query?: Pick<$ObjectSet.Query<ShaclCoreShape.$Filter, ShaclCoreShape.$Identifier>, "filter">): Either<Error, number>;
|
|
1728
|
+
shaclCoreShapeIdentifiers(query?: $ObjectSet.Query<ShaclCoreShape.$Filter, ShaclCoreShape.$Identifier>): Promise<Either<Error, readonly ShaclCoreShape.$Identifier[]>>;
|
|
1729
|
+
shaclCoreShapeIdentifiersSync(query?: $ObjectSet.Query<ShaclCoreShape.$Filter, ShaclCoreShape.$Identifier>): Either<Error, readonly ShaclCoreShape.$Identifier[]>;
|
|
1730
|
+
shaclCoreShapes(query?: $ObjectSet.Query<ShaclCoreShape.$Filter, ShaclCoreShape.$Identifier>): Promise<Either<Error, readonly ShaclCoreShape[]>>;
|
|
1731
|
+
shaclCoreShapesSync(query?: $ObjectSet.Query<ShaclCoreShape.$Filter, ShaclCoreShape.$Identifier>): Either<Error, readonly ShaclCoreShape[]>;
|
|
1732
|
+
object(identifier: $Object.$Identifier): Promise<Either<Error, $Object>>;
|
|
1733
|
+
objectSync(identifier: $Object.$Identifier): Either<Error, $Object>;
|
|
1734
|
+
objectCount(query?: Pick<$ObjectSet.Query<$Object.$Filter, $Object.$Identifier>, "filter">): Promise<Either<Error, number>>;
|
|
1735
|
+
objectCountSync(query?: Pick<$ObjectSet.Query<$Object.$Filter, $Object.$Identifier>, "filter">): Either<Error, number>;
|
|
1736
|
+
objectIdentifiers(query?: $ObjectSet.Query<$Object.$Filter, $Object.$Identifier>): Promise<Either<Error, readonly $Object.$Identifier[]>>;
|
|
1737
|
+
objectIdentifiersSync(query?: $ObjectSet.Query<$Object.$Filter, $Object.$Identifier>): Either<Error, readonly $Object.$Identifier[]>;
|
|
1738
|
+
objects(query?: $ObjectSet.Query<$Object.$Filter, $Object.$Identifier>): Promise<Either<Error, readonly $Object[]>>;
|
|
1739
|
+
objectsSync(query?: $ObjectSet.Query<$Object.$Filter, $Object.$Identifier>): Either<Error, readonly $Object[]>;
|
|
666
1740
|
protected $objectsSync<ObjectT extends {
|
|
667
1741
|
readonly $identifier: ObjectIdentifierT;
|
|
668
|
-
}, ObjectIdentifierT extends
|
|
669
|
-
$
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
$fromRdfTypes: readonly rdfjs.NamedNode[];
|
|
673
|
-
}, query?: $ObjectSet.Query<ObjectIdentifierT>): purify.Either<Error, readonly ObjectT[]>;
|
|
674
|
-
protected $objectsCountSync<ObjectT extends {
|
|
675
|
-
readonly $identifier: ObjectIdentifierT;
|
|
676
|
-
}, ObjectIdentifierT extends rdfjs.BlankNode | rdfjs.NamedNode>(objectType: {
|
|
677
|
-
$fromRdf: (resource: rdfjsResource.Resource, options: {
|
|
1742
|
+
}, ObjectFilterT, ObjectIdentifierT extends BlankNode | NamedNode>(objectType: {
|
|
1743
|
+
$filter: (filter: ObjectFilterT, value: ObjectT) => boolean;
|
|
1744
|
+
$fromRdf: (resource: Resource, options: {
|
|
1745
|
+
graph?: Exclude<Quad_Graph, Variable>;
|
|
678
1746
|
objectSet: $ObjectSet;
|
|
679
|
-
}) =>
|
|
680
|
-
$fromRdfTypes: readonly
|
|
681
|
-
}, query?: $ObjectSet.Query<ObjectIdentifierT>):
|
|
682
|
-
protected $objectUnionIdentifiersSync<ObjectT extends {
|
|
683
|
-
readonly $identifier: ObjectIdentifierT;
|
|
684
|
-
}, ObjectIdentifierT extends rdfjs.BlankNode | rdfjs.NamedNode>(objectTypes: readonly {
|
|
685
|
-
$fromRdf: (resource: rdfjsResource.Resource, options: {
|
|
686
|
-
objectSet: $ObjectSet;
|
|
687
|
-
}) => purify.Either<Error, ObjectT>;
|
|
688
|
-
$fromRdfTypes: readonly rdfjs.NamedNode[];
|
|
689
|
-
}[], query?: $ObjectSet.Query<ObjectIdentifierT>): purify.Either<Error, readonly ObjectIdentifierT[]>;
|
|
1747
|
+
}) => Either<Error, ObjectT>;
|
|
1748
|
+
$fromRdfTypes: readonly NamedNode[];
|
|
1749
|
+
}, query?: $ObjectSet.Query<ObjectFilterT, ObjectIdentifierT>): Either<Error, readonly ObjectT[]>;
|
|
690
1750
|
protected $objectUnionsSync<ObjectT extends {
|
|
691
1751
|
readonly $identifier: ObjectIdentifierT;
|
|
692
|
-
}, ObjectIdentifierT extends
|
|
693
|
-
$
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
$fromRdfTypes: readonly rdfjs.NamedNode[];
|
|
697
|
-
}[], query?: $ObjectSet.Query<ObjectIdentifierT>): purify.Either<Error, readonly ObjectT[]>;
|
|
698
|
-
protected $objectUnionsCountSync<ObjectT extends {
|
|
699
|
-
readonly $identifier: ObjectIdentifierT;
|
|
700
|
-
}, ObjectIdentifierT extends rdfjs.BlankNode | rdfjs.NamedNode>(objectTypes: readonly {
|
|
701
|
-
$fromRdf: (resource: rdfjsResource.Resource, options: {
|
|
1752
|
+
}, ObjectFilterT, ObjectIdentifierT extends BlankNode | NamedNode>(objectTypes: readonly {
|
|
1753
|
+
$filter: (filter: ObjectFilterT, value: ObjectT) => boolean;
|
|
1754
|
+
$fromRdf: (resource: Resource, options: {
|
|
1755
|
+
graph?: Exclude<Quad_Graph, Variable>;
|
|
702
1756
|
objectSet: $ObjectSet;
|
|
703
|
-
}) =>
|
|
704
|
-
$fromRdfTypes: readonly
|
|
705
|
-
}[], query?: $ObjectSet.Query<ObjectIdentifierT>):
|
|
1757
|
+
}) => Either<Error, ObjectT>;
|
|
1758
|
+
$fromRdfTypes: readonly NamedNode[];
|
|
1759
|
+
}[], query?: $ObjectSet.Query<ObjectFilterT, ObjectIdentifierT>): Either<Error, readonly ObjectT[]>;
|
|
706
1760
|
}
|
|
707
1761
|
export {};
|
|
708
1762
|
//# sourceMappingURL=generated.d.ts.map
|