@shaclmate/shacl-ast 3.0.3 → 4.0.0

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.
@@ -1,706 +1,1762 @@
1
- import { purify, type rdfjs, rdfjsResource } from "@shaclmate/runtime";
2
- import { PropertyPath } from "./PropertyPath.js";
3
- export declare namespace $RdfVocabularies {
4
- namespace rdf {
5
- const first: import("n3").NamedNode<"http://www.w3.org/1999/02/22-rdf-syntax-ns#first">;
6
- const nil: import("n3").NamedNode<"http://www.w3.org/1999/02/22-rdf-syntax-ns#nil">;
7
- const rest: import("n3").NamedNode<"http://www.w3.org/1999/02/22-rdf-syntax-ns#rest">;
8
- const subject: import("n3").NamedNode<"http://www.w3.org/1999/02/22-rdf-syntax-ns#subject">;
9
- const type: import("n3").NamedNode<"http://www.w3.org/1999/02/22-rdf-syntax-ns#type">;
10
- }
11
- namespace rdfs {
12
- const subClassOf: import("n3").NamedNode<"http://www.w3.org/2000/01/rdf-schema#subClassOf">;
13
- }
14
- namespace xsd {
15
- const boolean: import("n3").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
16
- const date: import("n3").NamedNode<"http://www.w3.org/2001/XMLSchema#date">;
17
- const dateTime: import("n3").NamedNode<"http://www.w3.org/2001/XMLSchema#dateTime">;
18
- const integer: import("n3").NamedNode<"http://www.w3.org/2001/XMLSchema#integer">;
19
- }
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;
20
49
  }
21
- type $UnwrapR<T> = T extends purify.Either<any, infer R> ? R : never;
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;
22
62
  export interface BaseShaclCoreShape {
23
63
  readonly $identifier: BaseShaclCoreShapeStatic.$Identifier;
24
64
  readonly $type: "ShaclCoreNodeShape" | "ShaclCorePropertyShape";
25
- readonly and: readonly (readonly (rdfjs.BlankNode | rdfjs.NamedNode)[])[];
26
- readonly classes: readonly rdfjs.NamedNode[];
27
- readonly comments: readonly rdfjs.Literal[];
28
- readonly datatype: purify.Maybe<rdfjs.NamedNode>;
29
- readonly deactivated: purify.Maybe<boolean>;
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>;
30
70
  readonly flags: readonly string[];
31
- readonly hasValues: readonly (rdfjs.Literal | rdfjs.NamedNode)[];
32
- readonly in_: purify.Maybe<readonly (rdfjs.Literal | rdfjs.NamedNode)[]>;
33
- readonly isDefinedBy: purify.Maybe<rdfjs.BlankNode | rdfjs.NamedNode>;
34
- readonly labels: readonly rdfjs.Literal[];
35
- readonly languageIn: purify.Maybe<readonly string[]>;
36
- readonly maxCount: purify.Maybe<number>;
37
- readonly maxExclusive: purify.Maybe<rdfjs.Literal>;
38
- readonly maxInclusive: purify.Maybe<rdfjs.Literal>;
39
- readonly maxLength: purify.Maybe<number>;
40
- readonly minCount: purify.Maybe<number>;
41
- readonly minExclusive: purify.Maybe<rdfjs.Literal>;
42
- readonly minInclusive: purify.Maybe<rdfjs.Literal>;
43
- readonly minLength: purify.Maybe<number>;
44
- readonly nodeKind: purify.Maybe<rdfjs.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">>;
45
- readonly nodes: readonly (rdfjs.BlankNode | rdfjs.NamedNode)[];
46
- readonly not: readonly (rdfjs.BlankNode | rdfjs.NamedNode)[];
47
- readonly or: readonly (readonly (rdfjs.BlankNode | rdfjs.NamedNode)[])[];
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)[])[];
48
88
  readonly patterns: readonly string[];
49
- readonly xone: readonly (readonly (rdfjs.BlankNode | rdfjs.NamedNode)[])[];
89
+ readonly xone: readonly (readonly (BlankNode | NamedNode)[])[];
50
90
  }
51
91
  export declare namespace BaseShaclCoreShapeStatic {
52
- type $Identifier = rdfjs.BlankNode | rdfjs.NamedNode;
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;
53
122
  namespace $Identifier {
54
- function fromString(identifier: string): purify.Either<Error, rdfjsResource.Resource.Identifier>;
55
- const // biome-ignore lint/suspicious/noShadowRestrictedNames:
56
- toString: typeof rdfjsResource.Resource.Identifier.toString;
123
+ const fromString: typeof $identifierFromString;
124
+ const toString: typeof import("rdfjs-resource/dist/Identifier.js").Identifier.toString;
57
125
  }
58
- function $fromRdf(resource: rdfjsResource.Resource, options?: {
59
- [_index: string]: any;
60
- ignoreRdfType?: boolean;
61
- objectSet?: $ObjectSet;
62
- preferredLanguages?: readonly string[];
63
- }): purify.Either<Error, BaseShaclCoreShape>;
64
- function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, objectSet: $objectSet, preferredLanguages: $preferredLanguages, resource: $resource, ...$context }: {
65
- [_index: string]: any;
66
- ignoreRdfType: boolean;
67
- objectSet: $ObjectSet;
68
- preferredLanguages?: readonly string[];
69
- resource: rdfjsResource.Resource;
70
- }): purify.Either<Error, {
71
- $identifier: rdfjs.BlankNode | rdfjs.NamedNode;
72
- and: readonly (readonly (rdfjs.BlankNode | rdfjs.NamedNode)[])[];
73
- classes: readonly rdfjs.NamedNode[];
74
- comments: readonly rdfjs.Literal[];
75
- datatype: purify.Maybe<rdfjs.NamedNode>;
76
- 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>;
77
134
  flags: readonly string[];
78
- hasValues: readonly (rdfjs.Literal | rdfjs.NamedNode)[];
79
- in_: purify.Maybe<readonly (rdfjs.Literal | rdfjs.NamedNode)[]>;
80
- isDefinedBy: purify.Maybe<rdfjs.BlankNode | rdfjs.NamedNode>;
81
- labels: readonly rdfjs.Literal[];
82
- languageIn: purify.Maybe<readonly string[]>;
83
- maxCount: purify.Maybe<number>;
84
- maxExclusive: purify.Maybe<rdfjs.Literal>;
85
- maxInclusive: purify.Maybe<rdfjs.Literal>;
86
- maxLength: purify.Maybe<number>;
87
- minCount: purify.Maybe<number>;
88
- minExclusive: purify.Maybe<rdfjs.Literal>;
89
- minInclusive: purify.Maybe<rdfjs.Literal>;
90
- minLength: purify.Maybe<number>;
91
- nodeKind: purify.Maybe<rdfjs.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">>;
92
- nodes: readonly (rdfjs.BlankNode | rdfjs.NamedNode)[];
93
- not: readonly (rdfjs.BlankNode | rdfjs.NamedNode)[];
94
- or: readonly (readonly (rdfjs.BlankNode | rdfjs.NamedNode)[])[];
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)[])[];
95
152
  patterns: readonly string[];
96
- xone: readonly (readonly (rdfjs.BlankNode | rdfjs.NamedNode)[])[];
153
+ xone: readonly (readonly (BlankNode | NamedNode)[])[];
97
154
  }>;
98
155
  function $toRdf(_baseShaclCoreShape: BaseShaclCoreShape, options?: {
99
156
  ignoreRdfType?: boolean;
100
- mutateGraph?: rdfjsResource.MutableResource.MutateGraph;
101
- resourceSet?: rdfjsResource.MutableResourceSet;
102
- }): rdfjsResource.MutableResource;
103
- const $properties: {
104
- and: {
105
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#and">;
106
- };
107
- classes: {
108
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#class">;
109
- };
110
- comments: {
111
- identifier: import("n3").NamedNode<"http://www.w3.org/2000/01/rdf-schema#comment">;
112
- };
113
- datatype: {
114
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#datatype">;
115
- };
116
- deactivated: {
117
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#deactivated">;
118
- };
119
- flags: {
120
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#flags">;
121
- };
122
- hasValues: {
123
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#hasValue">;
124
- };
125
- in_: {
126
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#in">;
127
- };
128
- isDefinedBy: {
129
- identifier: import("n3").NamedNode<"http://www.w3.org/2000/01/rdf-schema#isDefinedBy">;
130
- };
131
- labels: {
132
- identifier: import("n3").NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
133
- };
134
- languageIn: {
135
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#languageIn">;
136
- };
137
- maxCount: {
138
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#maxCount">;
139
- };
140
- maxExclusive: {
141
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#maxExclusive">;
142
- };
143
- maxInclusive: {
144
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#maxInclusive">;
145
- };
146
- maxLength: {
147
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#maxLength">;
148
- };
149
- minCount: {
150
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#minCount">;
151
- };
152
- minExclusive: {
153
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#minExclusive">;
154
- };
155
- minInclusive: {
156
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#minInclusive">;
157
- };
158
- minLength: {
159
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#minLength">;
160
- };
161
- nodeKind: {
162
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#nodeKind">;
163
- };
164
- nodes: {
165
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#node">;
166
- };
167
- not: {
168
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#not">;
169
- };
170
- or: {
171
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#or">;
172
- };
173
- patterns: {
174
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#pattern">;
175
- };
176
- xone: {
177
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#xone">;
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
+ };
178
441
  };
179
442
  };
180
443
  }
181
444
  export interface ShaclCorePropertyShape extends BaseShaclCoreShape {
182
445
  readonly $identifier: ShaclCorePropertyShape.$Identifier;
183
446
  readonly $type: "ShaclCorePropertyShape";
184
- readonly defaultValue: purify.Maybe<rdfjs.Literal | rdfjs.NamedNode>;
185
- readonly descriptions: readonly rdfjs.Literal[];
186
- readonly groups: readonly (rdfjs.BlankNode | rdfjs.NamedNode)[];
187
- readonly names: readonly rdfjs.Literal[];
188
- readonly order: purify.Maybe<number>;
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>;
189
452
  readonly path: PropertyPath;
190
- readonly uniqueLang: purify.Maybe<boolean>;
453
+ readonly uniqueLang: Maybe<boolean>;
191
454
  }
192
455
  export declare namespace ShaclCorePropertyShape {
193
- const $fromRdfType: rdfjs.NamedNode<string>;
194
- type $Identifier = BaseShaclCoreShapeStatic.$Identifier;
195
- const $Identifier: typeof BaseShaclCoreShapeStatic.$Identifier;
196
- function $fromRdf(resource: rdfjsResource.Resource, options?: {
197
- [_index: string]: any;
198
- ignoreRdfType?: boolean;
199
- objectSet?: $ObjectSet;
200
- preferredLanguages?: readonly string[];
201
- }): purify.Either<Error, ShaclCorePropertyShape>;
202
- function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, objectSet: $objectSet, preferredLanguages: $preferredLanguages, resource: $resource, ...$context }: {
203
- [_index: string]: any;
204
- ignoreRdfType: boolean;
205
- objectSet: $ObjectSet;
206
- preferredLanguages?: readonly string[];
207
- resource: rdfjsResource.Resource;
208
- }): purify.Either<Error, {
209
- $identifier: rdfjs.BlankNode | rdfjs.NamedNode;
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;
210
477
  $type: "ShaclCorePropertyShape";
211
- defaultValue: purify.Maybe<rdfjs.Literal | rdfjs.NamedNode>;
212
- descriptions: readonly rdfjs.Literal[];
213
- groups: readonly (rdfjs.BlankNode | rdfjs.NamedNode)[];
214
- names: readonly rdfjs.Literal[];
215
- order: purify.Maybe<number>;
478
+ defaultValue: Maybe<NamedNode | Literal>;
479
+ descriptions: readonly string[];
480
+ groups: readonly (BlankNode | NamedNode)[];
481
+ names: readonly string[];
482
+ order: Maybe<number>;
216
483
  path: PropertyPath;
217
- uniqueLang: purify.Maybe<boolean>;
484
+ uniqueLang: Maybe<boolean>;
218
485
  } & $UnwrapR<ReturnType<typeof BaseShaclCoreShapeStatic.$propertiesFromRdf>>>;
219
486
  function $toRdf(_shaclCorePropertyShape: ShaclCorePropertyShape, options?: {
220
487
  ignoreRdfType?: boolean;
221
- mutateGraph?: rdfjsResource.MutableResource.MutateGraph;
222
- resourceSet?: rdfjsResource.MutableResourceSet;
223
- }): rdfjsResource.MutableResource;
224
- const $properties: {
225
- defaultValue: {
226
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#defaultValue">;
227
- };
228
- descriptions: {
229
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#description">;
230
- };
231
- groups: {
232
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#group">;
233
- };
234
- names: {
235
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#name">;
236
- };
237
- order: {
238
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#order">;
239
- };
240
- path: {
241
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#path">;
242
- };
243
- uniqueLang: {
244
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#uniqueLang">;
245
- };
246
- and: {
247
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#and">;
248
- };
249
- classes: {
250
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#class">;
251
- };
252
- comments: {
253
- identifier: import("n3").NamedNode<"http://www.w3.org/2000/01/rdf-schema#comment">;
254
- };
255
- datatype: {
256
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#datatype">;
257
- };
258
- deactivated: {
259
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#deactivated">;
260
- };
261
- flags: {
262
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#flags">;
263
- };
264
- hasValues: {
265
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#hasValue">;
266
- };
267
- in_: {
268
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#in">;
269
- };
270
- isDefinedBy: {
271
- identifier: import("n3").NamedNode<"http://www.w3.org/2000/01/rdf-schema#isDefinedBy">;
272
- };
273
- labels: {
274
- identifier: import("n3").NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
275
- };
276
- languageIn: {
277
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#languageIn">;
278
- };
279
- maxCount: {
280
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#maxCount">;
281
- };
282
- maxExclusive: {
283
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#maxExclusive">;
284
- };
285
- maxInclusive: {
286
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#maxInclusive">;
287
- };
288
- maxLength: {
289
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#maxLength">;
290
- };
291
- minCount: {
292
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#minCount">;
293
- };
294
- minExclusive: {
295
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#minExclusive">;
296
- };
297
- minInclusive: {
298
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#minInclusive">;
299
- };
300
- minLength: {
301
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#minLength">;
302
- };
303
- nodeKind: {
304
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#nodeKind">;
305
- };
306
- nodes: {
307
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#node">;
308
- };
309
- not: {
310
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#not">;
311
- };
312
- or: {
313
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#or">;
314
- };
315
- patterns: {
316
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#pattern">;
317
- };
318
- xone: {
319
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#xone">;
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
+ };
320
837
  };
321
838
  };
322
839
  }
323
840
  export interface ShaclCorePropertyGroup {
324
841
  readonly $identifier: ShaclCorePropertyGroup.$Identifier;
325
842
  readonly $type: "ShaclCorePropertyGroup";
326
- readonly comments: readonly rdfjs.Literal[];
327
- readonly labels: readonly rdfjs.Literal[];
843
+ readonly comments: readonly string[];
844
+ readonly labels: readonly string[];
328
845
  }
329
846
  export declare namespace ShaclCorePropertyGroup {
330
- const $fromRdfType: rdfjs.NamedNode<string>;
331
- type $Identifier = rdfjs.BlankNode | rdfjs.NamedNode;
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;
332
855
  namespace $Identifier {
333
- function fromString(identifier: string): purify.Either<Error, rdfjsResource.Resource.Identifier>;
334
- const // biome-ignore lint/suspicious/noShadowRestrictedNames:
335
- toString: typeof rdfjsResource.Resource.Identifier.toString;
856
+ const fromString: typeof $identifierFromString;
857
+ const toString: typeof import("rdfjs-resource/dist/Identifier.js").Identifier.toString;
336
858
  }
337
- function $fromRdf(resource: rdfjsResource.Resource, options?: {
338
- [_index: string]: any;
339
- ignoreRdfType?: boolean;
340
- objectSet?: $ObjectSet;
341
- preferredLanguages?: readonly string[];
342
- }): purify.Either<Error, ShaclCorePropertyGroup>;
343
- function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, objectSet: $objectSet, preferredLanguages: $preferredLanguages, resource: $resource, ...$context }: {
344
- [_index: string]: any;
345
- ignoreRdfType: boolean;
346
- objectSet: $ObjectSet;
347
- preferredLanguages?: readonly string[];
348
- resource: rdfjsResource.Resource;
349
- }): purify.Either<Error, {
350
- $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;
351
863
  $type: "ShaclCorePropertyGroup";
352
- comments: readonly rdfjs.Literal[];
353
- labels: readonly rdfjs.Literal[];
864
+ comments: readonly string[];
865
+ labels: readonly string[];
354
866
  }>;
355
867
  function $toRdf(_shaclCorePropertyGroup: ShaclCorePropertyGroup, options?: {
356
868
  ignoreRdfType?: boolean;
357
- mutateGraph?: rdfjsResource.MutableResource.MutateGraph;
358
- resourceSet?: rdfjsResource.MutableResourceSet;
359
- }): rdfjsResource.MutableResource;
360
- const $properties: {
361
- comments: {
362
- identifier: import("n3").NamedNode<"http://www.w3.org/2000/01/rdf-schema#comment">;
363
- };
364
- labels: {
365
- identifier: import("n3").NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
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
+ };
366
907
  };
367
908
  };
368
909
  }
369
910
  export interface ShaclCoreNodeShape extends BaseShaclCoreShape {
370
911
  readonly $identifier: ShaclCoreNodeShape.$Identifier;
371
912
  readonly $type: "ShaclCoreNodeShape";
372
- readonly closed: purify.Maybe<boolean>;
373
- readonly ignoredProperties: purify.Maybe<readonly rdfjs.NamedNode[]>;
374
- readonly properties: readonly (rdfjs.BlankNode | rdfjs.NamedNode)[];
913
+ readonly closed: Maybe<boolean>;
914
+ readonly ignoredProperties: Maybe<readonly NamedNode[]>;
915
+ readonly properties: readonly (BlankNode | NamedNode)[];
375
916
  }
376
917
  export declare namespace ShaclCoreNodeShape {
377
- const $fromRdfType: rdfjs.NamedNode<string>;
378
- type $Identifier = BaseShaclCoreShapeStatic.$Identifier;
379
- const $Identifier: typeof BaseShaclCoreShapeStatic.$Identifier;
380
- function $fromRdf(resource: rdfjsResource.Resource, options?: {
381
- [_index: string]: any;
382
- ignoreRdfType?: boolean;
383
- objectSet?: $ObjectSet;
384
- preferredLanguages?: readonly string[];
385
- }): purify.Either<Error, ShaclCoreNodeShape>;
386
- function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, objectSet: $objectSet, preferredLanguages: $preferredLanguages, resource: $resource, ...$context }: {
387
- [_index: string]: any;
388
- ignoreRdfType: boolean;
389
- objectSet: $ObjectSet;
390
- preferredLanguages?: readonly string[];
391
- resource: rdfjsResource.Resource;
392
- }): purify.Either<Error, {
393
- $identifier: rdfjs.BlankNode | rdfjs.NamedNode;
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;
394
935
  $type: "ShaclCoreNodeShape";
395
- closed: purify.Maybe<boolean>;
396
- ignoredProperties: purify.Maybe<readonly rdfjs.NamedNode[]>;
397
- properties: readonly (rdfjs.BlankNode | rdfjs.NamedNode)[];
936
+ closed: Maybe<boolean>;
937
+ ignoredProperties: Maybe<readonly NamedNode[]>;
938
+ properties: readonly (BlankNode | NamedNode)[];
398
939
  } & $UnwrapR<ReturnType<typeof BaseShaclCoreShapeStatic.$propertiesFromRdf>>>;
399
940
  function $toRdf(_shaclCoreNodeShape: ShaclCoreNodeShape, options?: {
400
941
  ignoreRdfType?: boolean;
401
- mutateGraph?: rdfjsResource.MutableResource.MutateGraph;
402
- resourceSet?: rdfjsResource.MutableResourceSet;
403
- }): rdfjsResource.MutableResource;
404
- const $properties: {
405
- closed: {
406
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#closed">;
407
- };
408
- ignoredProperties: {
409
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#ignoredProperties">;
410
- };
411
- properties: {
412
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#property">;
413
- };
414
- and: {
415
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#and">;
416
- };
417
- classes: {
418
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#class">;
419
- };
420
- comments: {
421
- identifier: import("n3").NamedNode<"http://www.w3.org/2000/01/rdf-schema#comment">;
422
- };
423
- datatype: {
424
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#datatype">;
425
- };
426
- deactivated: {
427
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#deactivated">;
428
- };
429
- flags: {
430
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#flags">;
431
- };
432
- hasValues: {
433
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#hasValue">;
434
- };
435
- in_: {
436
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#in">;
437
- };
438
- isDefinedBy: {
439
- identifier: import("n3").NamedNode<"http://www.w3.org/2000/01/rdf-schema#isDefinedBy">;
440
- };
441
- labels: {
442
- identifier: import("n3").NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
443
- };
444
- languageIn: {
445
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#languageIn">;
446
- };
447
- maxCount: {
448
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#maxCount">;
449
- };
450
- maxExclusive: {
451
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#maxExclusive">;
452
- };
453
- maxInclusive: {
454
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#maxInclusive">;
455
- };
456
- maxLength: {
457
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#maxLength">;
458
- };
459
- minCount: {
460
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#minCount">;
461
- };
462
- minExclusive: {
463
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#minExclusive">;
464
- };
465
- minInclusive: {
466
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#minInclusive">;
467
- };
468
- minLength: {
469
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#minLength">;
470
- };
471
- nodeKind: {
472
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#nodeKind">;
473
- };
474
- nodes: {
475
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#node">;
476
- };
477
- not: {
478
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#not">;
479
- };
480
- or: {
481
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#or">;
482
- };
483
- patterns: {
484
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#pattern">;
485
- };
486
- xone: {
487
- identifier: import("n3").NamedNode<"http://www.w3.org/ns/shacl#xone">;
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
+ };
488
1259
  };
489
1260
  };
490
1261
  }
491
1262
  export interface OwlOntology {
492
1263
  readonly $identifier: OwlOntology.$Identifier;
493
1264
  readonly $type: "OwlOntology";
494
- readonly labels: readonly rdfjs.Literal[];
1265
+ readonly labels: readonly string[];
495
1266
  }
496
1267
  export declare namespace OwlOntology {
497
- const $fromRdfType: rdfjs.NamedNode<string>;
498
- type $Identifier = rdfjs.BlankNode | rdfjs.NamedNode;
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;
499
1275
  namespace $Identifier {
500
- function fromString(identifier: string): purify.Either<Error, rdfjsResource.Resource.Identifier>;
501
- const // biome-ignore lint/suspicious/noShadowRestrictedNames:
502
- toString: typeof rdfjsResource.Resource.Identifier.toString;
1276
+ const fromString: typeof $identifierFromString;
1277
+ const toString: typeof import("rdfjs-resource/dist/Identifier.js").Identifier.toString;
503
1278
  }
504
- function $fromRdf(resource: rdfjsResource.Resource, options?: {
505
- [_index: string]: any;
506
- ignoreRdfType?: boolean;
507
- objectSet?: $ObjectSet;
508
- preferredLanguages?: readonly string[];
509
- }): purify.Either<Error, OwlOntology>;
510
- function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, objectSet: $objectSet, preferredLanguages: $preferredLanguages, resource: $resource, ...$context }: {
511
- [_index: string]: any;
512
- ignoreRdfType: boolean;
513
- objectSet: $ObjectSet;
514
- preferredLanguages?: readonly string[];
515
- resource: rdfjsResource.Resource;
516
- }): purify.Either<Error, {
517
- $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;
518
1283
  $type: "OwlOntology";
519
- labels: readonly rdfjs.Literal[];
1284
+ labels: readonly string[];
520
1285
  }>;
521
1286
  function $toRdf(_owlOntology: OwlOntology, options?: {
522
1287
  ignoreRdfType?: boolean;
523
- mutateGraph?: rdfjsResource.MutableResource.MutateGraph;
524
- resourceSet?: rdfjsResource.MutableResourceSet;
525
- }): rdfjsResource.MutableResource;
526
- const $properties: {
527
- labels: {
528
- identifier: import("n3").NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
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
+ };
529
1316
  };
530
1317
  };
531
1318
  }
532
1319
  export type ShaclCoreShape = ShaclCoreNodeShape | ShaclCorePropertyShape;
533
1320
  export declare namespace ShaclCoreShape {
534
- function $fromRdf(resource: rdfjsResource.Resource, options?: {
535
- [_index: string]: any;
536
- ignoreRdfType?: boolean;
537
- objectSet?: $ObjectSet;
538
- preferredLanguages?: readonly string[];
539
- }): purify.Either<Error, ShaclCoreShape>;
540
- type $Identifier = rdfjs.BlankNode | rdfjs.NamedNode;
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;
541
1330
  namespace $Identifier {
542
- function fromString(identifier: string): purify.Either<Error, rdfjsResource.Resource.Identifier>;
543
- const // biome-ignore lint/suspicious/noShadowRestrictedNames:
544
- toString: typeof rdfjsResource.Resource.Identifier.toString;
1331
+ const fromString: typeof $identifierFromString;
1332
+ const toString: typeof import("rdfjs-resource/dist/Identifier.js").Identifier.toString;
545
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>;
546
1606
  function $toRdf(_shaclCoreShape: ShaclCoreShape, _parameters?: {
547
- mutateGraph?: rdfjsResource.MutableResource.MutateGraph;
548
- resourceSet?: rdfjsResource.MutableResourceSet;
549
- }): rdfjsResource.MutableResource;
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;
550
1648
  }
551
1649
  export interface $ObjectSet {
552
- owlOntology(identifier: OwlOntology.$Identifier): Promise<purify.Either<Error, OwlOntology>>;
553
- owlOntologyIdentifiers(query?: $ObjectSet.Query<OwlOntology.$Identifier>): Promise<purify.Either<Error, readonly OwlOntology.$Identifier[]>>;
554
- owlOntologies(query?: $ObjectSet.Query<OwlOntology.$Identifier>): Promise<purify.Either<Error, readonly OwlOntology[]>>;
555
- owlOntologiesCount(query?: Pick<$ObjectSet.Query<OwlOntology.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
556
- shaclCoreNodeShape(identifier: ShaclCoreNodeShape.$Identifier): Promise<purify.Either<Error, ShaclCoreNodeShape>>;
557
- shaclCoreNodeShapeIdentifiers(query?: $ObjectSet.Query<ShaclCoreNodeShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCoreNodeShape.$Identifier[]>>;
558
- shaclCoreNodeShapes(query?: $ObjectSet.Query<ShaclCoreNodeShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCoreNodeShape[]>>;
559
- shaclCoreNodeShapesCount(query?: Pick<$ObjectSet.Query<ShaclCoreNodeShape.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
560
- shaclCorePropertyGroup(identifier: ShaclCorePropertyGroup.$Identifier): Promise<purify.Either<Error, ShaclCorePropertyGroup>>;
561
- shaclCorePropertyGroupIdentifiers(query?: $ObjectSet.Query<ShaclCorePropertyGroup.$Identifier>): Promise<purify.Either<Error, readonly ShaclCorePropertyGroup.$Identifier[]>>;
562
- shaclCorePropertyGroups(query?: $ObjectSet.Query<ShaclCorePropertyGroup.$Identifier>): Promise<purify.Either<Error, readonly ShaclCorePropertyGroup[]>>;
563
- shaclCorePropertyGroupsCount(query?: Pick<$ObjectSet.Query<ShaclCorePropertyGroup.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
564
- shaclCorePropertyShape(identifier: ShaclCorePropertyShape.$Identifier): Promise<purify.Either<Error, ShaclCorePropertyShape>>;
565
- shaclCorePropertyShapeIdentifiers(query?: $ObjectSet.Query<ShaclCorePropertyShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCorePropertyShape.$Identifier[]>>;
566
- shaclCorePropertyShapes(query?: $ObjectSet.Query<ShaclCorePropertyShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCorePropertyShape[]>>;
567
- shaclCorePropertyShapesCount(query?: Pick<$ObjectSet.Query<ShaclCorePropertyShape.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
568
- shaclCoreShape(identifier: ShaclCoreShape.$Identifier): Promise<purify.Either<Error, ShaclCoreShape>>;
569
- shaclCoreShapeIdentifiers(query?: $ObjectSet.Query<ShaclCoreShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCoreShape.$Identifier[]>>;
570
- shaclCoreShapes(query?: $ObjectSet.Query<ShaclCoreShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCoreShape[]>>;
571
- shaclCoreShapesCount(query?: Pick<$ObjectSet.Query<ShaclCoreShape.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
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[]>>;
572
1674
  }
573
1675
  export declare namespace $ObjectSet {
574
- type Query<ObjectIdentifierT extends rdfjs.BlankNode | rdfjs.NamedNode> = {
1676
+ interface Query<ObjectFilterT, ObjectIdentifierT extends BlankNode | NamedNode> {
1677
+ readonly filter?: ObjectFilterT;
1678
+ readonly graph?: Exclude<Quad_Graph, Variable>;
1679
+ readonly identifiers?: readonly ObjectIdentifierT[];
575
1680
  readonly limit?: number;
576
1681
  readonly offset?: number;
577
- readonly where?: Where<ObjectIdentifierT>;
578
- };
579
- type Where<ObjectIdentifierT extends rdfjs.BlankNode | rdfjs.NamedNode> = {
580
- readonly identifiers: readonly ObjectIdentifierT[];
581
- readonly type: "identifiers";
582
- } | {
583
- readonly predicate: rdfjs.NamedNode;
584
- readonly subject: rdfjs.BlankNode | rdfjs.NamedNode;
585
- readonly type: "triple-objects";
586
- };
587
- }
588
- export declare abstract class $ForwardingObjectSet implements $ObjectSet {
589
- protected abstract get $delegate(): $ObjectSet;
590
- owlOntology(identifier: OwlOntology.$Identifier): Promise<purify.Either<Error, OwlOntology>>;
591
- owlOntologyIdentifiers(query?: $ObjectSet.Query<OwlOntology.$Identifier>): Promise<purify.Either<Error, readonly OwlOntology.$Identifier[]>>;
592
- owlOntologies(query?: $ObjectSet.Query<OwlOntology.$Identifier>): Promise<purify.Either<Error, readonly OwlOntology[]>>;
593
- owlOntologiesCount(query?: Pick<$ObjectSet.Query<OwlOntology.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
594
- shaclCoreNodeShape(identifier: ShaclCoreNodeShape.$Identifier): Promise<purify.Either<Error, ShaclCoreNodeShape>>;
595
- shaclCoreNodeShapeIdentifiers(query?: $ObjectSet.Query<ShaclCoreNodeShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCoreNodeShape.$Identifier[]>>;
596
- shaclCoreNodeShapes(query?: $ObjectSet.Query<ShaclCoreNodeShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCoreNodeShape[]>>;
597
- shaclCoreNodeShapesCount(query?: Pick<$ObjectSet.Query<ShaclCoreNodeShape.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
598
- shaclCorePropertyGroup(identifier: ShaclCorePropertyGroup.$Identifier): Promise<purify.Either<Error, ShaclCorePropertyGroup>>;
599
- shaclCorePropertyGroupIdentifiers(query?: $ObjectSet.Query<ShaclCorePropertyGroup.$Identifier>): Promise<purify.Either<Error, readonly ShaclCorePropertyGroup.$Identifier[]>>;
600
- shaclCorePropertyGroups(query?: $ObjectSet.Query<ShaclCorePropertyGroup.$Identifier>): Promise<purify.Either<Error, readonly ShaclCorePropertyGroup[]>>;
601
- shaclCorePropertyGroupsCount(query?: Pick<$ObjectSet.Query<ShaclCorePropertyGroup.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
602
- shaclCorePropertyShape(identifier: ShaclCorePropertyShape.$Identifier): Promise<purify.Either<Error, ShaclCorePropertyShape>>;
603
- shaclCorePropertyShapeIdentifiers(query?: $ObjectSet.Query<ShaclCorePropertyShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCorePropertyShape.$Identifier[]>>;
604
- shaclCorePropertyShapes(query?: $ObjectSet.Query<ShaclCorePropertyShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCorePropertyShape[]>>;
605
- shaclCorePropertyShapesCount(query?: Pick<$ObjectSet.Query<ShaclCorePropertyShape.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
606
- shaclCoreShape(identifier: ShaclCoreShape.$Identifier): Promise<purify.Either<Error, ShaclCoreShape>>;
607
- shaclCoreShapeIdentifiers(query?: $ObjectSet.Query<ShaclCoreShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCoreShape.$Identifier[]>>;
608
- shaclCoreShapes(query?: $ObjectSet.Query<ShaclCoreShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCoreShape[]>>;
609
- shaclCoreShapesCount(query?: Pick<$ObjectSet.Query<ShaclCoreShape.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
1682
+ }
610
1683
  }
611
1684
  export declare class $RdfjsDatasetObjectSet implements $ObjectSet {
612
- readonly resourceSet: rdfjsResource.ResourceSet;
613
- constructor({ dataset }: {
614
- dataset: rdfjs.DatasetCore;
1685
+ #private;
1686
+ protected readonly $graph?: Exclude<Quad_Graph, Variable>;
1687
+ constructor(dataset: DatasetCore | (() => DatasetCore), options?: {
1688
+ graph?: Exclude<Quad_Graph, Variable>;
615
1689
  });
616
- owlOntology(identifier: OwlOntology.$Identifier): Promise<purify.Either<Error, OwlOntology>>;
617
- owlOntologySync(identifier: OwlOntology.$Identifier): purify.Either<Error, OwlOntology>;
618
- owlOntologyIdentifiers(query?: $ObjectSet.Query<OwlOntology.$Identifier>): Promise<purify.Either<Error, readonly OwlOntology.$Identifier[]>>;
619
- owlOntologyIdentifiersSync(query?: $ObjectSet.Query<OwlOntology.$Identifier>): purify.Either<Error, readonly OwlOntology.$Identifier[]>;
620
- owlOntologies(query?: $ObjectSet.Query<OwlOntology.$Identifier>): Promise<purify.Either<Error, readonly OwlOntology[]>>;
621
- owlOntologiesSync(query?: $ObjectSet.Query<OwlOntology.$Identifier>): purify.Either<Error, readonly OwlOntology[]>;
622
- owlOntologiesCount(query?: Pick<$ObjectSet.Query<OwlOntology.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
623
- owlOntologiesCountSync(query?: Pick<$ObjectSet.Query<OwlOntology.$Identifier>, "where">): purify.Either<Error, number>;
624
- shaclCoreNodeShape(identifier: ShaclCoreNodeShape.$Identifier): Promise<purify.Either<Error, ShaclCoreNodeShape>>;
625
- shaclCoreNodeShapeSync(identifier: ShaclCoreNodeShape.$Identifier): purify.Either<Error, ShaclCoreNodeShape>;
626
- shaclCoreNodeShapeIdentifiers(query?: $ObjectSet.Query<ShaclCoreNodeShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCoreNodeShape.$Identifier[]>>;
627
- shaclCoreNodeShapeIdentifiersSync(query?: $ObjectSet.Query<ShaclCoreNodeShape.$Identifier>): purify.Either<Error, readonly ShaclCoreNodeShape.$Identifier[]>;
628
- shaclCoreNodeShapes(query?: $ObjectSet.Query<ShaclCoreNodeShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCoreNodeShape[]>>;
629
- shaclCoreNodeShapesSync(query?: $ObjectSet.Query<ShaclCoreNodeShape.$Identifier>): purify.Either<Error, readonly ShaclCoreNodeShape[]>;
630
- shaclCoreNodeShapesCount(query?: Pick<$ObjectSet.Query<ShaclCoreNodeShape.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
631
- shaclCoreNodeShapesCountSync(query?: Pick<$ObjectSet.Query<ShaclCoreNodeShape.$Identifier>, "where">): purify.Either<Error, number>;
632
- shaclCorePropertyGroup(identifier: ShaclCorePropertyGroup.$Identifier): Promise<purify.Either<Error, ShaclCorePropertyGroup>>;
633
- shaclCorePropertyGroupSync(identifier: ShaclCorePropertyGroup.$Identifier): purify.Either<Error, ShaclCorePropertyGroup>;
634
- shaclCorePropertyGroupIdentifiers(query?: $ObjectSet.Query<ShaclCorePropertyGroup.$Identifier>): Promise<purify.Either<Error, readonly ShaclCorePropertyGroup.$Identifier[]>>;
635
- shaclCorePropertyGroupIdentifiersSync(query?: $ObjectSet.Query<ShaclCorePropertyGroup.$Identifier>): purify.Either<Error, readonly ShaclCorePropertyGroup.$Identifier[]>;
636
- shaclCorePropertyGroups(query?: $ObjectSet.Query<ShaclCorePropertyGroup.$Identifier>): Promise<purify.Either<Error, readonly ShaclCorePropertyGroup[]>>;
637
- shaclCorePropertyGroupsSync(query?: $ObjectSet.Query<ShaclCorePropertyGroup.$Identifier>): purify.Either<Error, readonly ShaclCorePropertyGroup[]>;
638
- shaclCorePropertyGroupsCount(query?: Pick<$ObjectSet.Query<ShaclCorePropertyGroup.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
639
- shaclCorePropertyGroupsCountSync(query?: Pick<$ObjectSet.Query<ShaclCorePropertyGroup.$Identifier>, "where">): purify.Either<Error, number>;
640
- shaclCorePropertyShape(identifier: ShaclCorePropertyShape.$Identifier): Promise<purify.Either<Error, ShaclCorePropertyShape>>;
641
- shaclCorePropertyShapeSync(identifier: ShaclCorePropertyShape.$Identifier): purify.Either<Error, ShaclCorePropertyShape>;
642
- shaclCorePropertyShapeIdentifiers(query?: $ObjectSet.Query<ShaclCorePropertyShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCorePropertyShape.$Identifier[]>>;
643
- shaclCorePropertyShapeIdentifiersSync(query?: $ObjectSet.Query<ShaclCorePropertyShape.$Identifier>): purify.Either<Error, readonly ShaclCorePropertyShape.$Identifier[]>;
644
- shaclCorePropertyShapes(query?: $ObjectSet.Query<ShaclCorePropertyShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCorePropertyShape[]>>;
645
- shaclCorePropertyShapesSync(query?: $ObjectSet.Query<ShaclCorePropertyShape.$Identifier>): purify.Either<Error, readonly ShaclCorePropertyShape[]>;
646
- shaclCorePropertyShapesCount(query?: Pick<$ObjectSet.Query<ShaclCorePropertyShape.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
647
- shaclCorePropertyShapesCountSync(query?: Pick<$ObjectSet.Query<ShaclCorePropertyShape.$Identifier>, "where">): purify.Either<Error, number>;
648
- shaclCoreShape(identifier: ShaclCoreShape.$Identifier): Promise<purify.Either<Error, ShaclCoreShape>>;
649
- shaclCoreShapeSync(identifier: ShaclCoreShape.$Identifier): purify.Either<Error, ShaclCoreShape>;
650
- shaclCoreShapeIdentifiers(query?: $ObjectSet.Query<ShaclCoreShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCoreShape.$Identifier[]>>;
651
- shaclCoreShapeIdentifiersSync(query?: $ObjectSet.Query<ShaclCoreShape.$Identifier>): purify.Either<Error, readonly ShaclCoreShape.$Identifier[]>;
652
- shaclCoreShapes(query?: $ObjectSet.Query<ShaclCoreShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCoreShape[]>>;
653
- shaclCoreShapesSync(query?: $ObjectSet.Query<ShaclCoreShape.$Identifier>): purify.Either<Error, readonly ShaclCoreShape[]>;
654
- shaclCoreShapesCount(query?: Pick<$ObjectSet.Query<ShaclCoreShape.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
655
- shaclCoreShapesCountSync(query?: Pick<$ObjectSet.Query<ShaclCoreShape.$Identifier>, "where">): purify.Either<Error, number>;
656
- protected $objectIdentifiersSync<ObjectT extends {
657
- readonly $identifier: ObjectIdentifierT;
658
- }, ObjectIdentifierT extends rdfjs.BlankNode | rdfjs.NamedNode>(objectType: {
659
- $fromRdf: (resource: rdfjsResource.Resource, options: {
660
- objectSet: $ObjectSet;
661
- }) => purify.Either<Error, ObjectT>;
662
- $fromRdfTypes: readonly rdfjs.NamedNode[];
663
- }, query?: $ObjectSet.Query<ObjectIdentifierT>): purify.Either<Error, readonly ObjectIdentifierT[]>;
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[]>;
664
1740
  protected $objectsSync<ObjectT extends {
665
1741
  readonly $identifier: ObjectIdentifierT;
666
- }, ObjectIdentifierT extends rdfjs.BlankNode | rdfjs.NamedNode>(objectType: {
667
- $fromRdf: (resource: rdfjsResource.Resource, options: {
668
- objectSet: $ObjectSet;
669
- }) => purify.Either<Error, ObjectT>;
670
- $fromRdfTypes: readonly rdfjs.NamedNode[];
671
- }, query?: $ObjectSet.Query<ObjectIdentifierT>): purify.Either<Error, readonly ObjectT[]>;
672
- protected $objectsCountSync<ObjectT extends {
673
- readonly $identifier: ObjectIdentifierT;
674
- }, ObjectIdentifierT extends rdfjs.BlankNode | rdfjs.NamedNode>(objectType: {
675
- $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>;
676
1746
  objectSet: $ObjectSet;
677
- }) => purify.Either<Error, ObjectT>;
678
- $fromRdfTypes: readonly rdfjs.NamedNode[];
679
- }, query?: $ObjectSet.Query<ObjectIdentifierT>): purify.Either<Error, number>;
680
- protected $objectUnionIdentifiersSync<ObjectT extends {
681
- readonly $identifier: ObjectIdentifierT;
682
- }, ObjectIdentifierT extends rdfjs.BlankNode | rdfjs.NamedNode>(objectTypes: readonly {
683
- $fromRdf: (resource: rdfjsResource.Resource, options: {
684
- objectSet: $ObjectSet;
685
- }) => purify.Either<Error, ObjectT>;
686
- $fromRdfTypes: readonly rdfjs.NamedNode[];
687
- }[], 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[]>;
688
1750
  protected $objectUnionsSync<ObjectT extends {
689
1751
  readonly $identifier: ObjectIdentifierT;
690
- }, ObjectIdentifierT extends rdfjs.BlankNode | rdfjs.NamedNode>(objectTypes: readonly {
691
- $fromRdf: (resource: rdfjsResource.Resource, options: {
692
- objectSet: $ObjectSet;
693
- }) => purify.Either<Error, ObjectT>;
694
- $fromRdfTypes: readonly rdfjs.NamedNode[];
695
- }[], query?: $ObjectSet.Query<ObjectIdentifierT>): purify.Either<Error, readonly ObjectT[]>;
696
- protected $objectUnionsCountSync<ObjectT extends {
697
- readonly $identifier: ObjectIdentifierT;
698
- }, ObjectIdentifierT extends rdfjs.BlankNode | rdfjs.NamedNode>(objectTypes: readonly {
699
- $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>;
700
1756
  objectSet: $ObjectSet;
701
- }) => purify.Either<Error, ObjectT>;
702
- $fromRdfTypes: readonly rdfjs.NamedNode[];
703
- }[], query?: $ObjectSet.Query<ObjectIdentifierT>): purify.Either<Error, number>;
1757
+ }) => Either<Error, ObjectT>;
1758
+ $fromRdfTypes: readonly NamedNode[];
1759
+ }[], query?: $ObjectSet.Query<ObjectFilterT, ObjectIdentifierT>): Either<Error, readonly ObjectT[]>;
704
1760
  }
705
1761
  export {};
706
1762
  //# sourceMappingURL=generated.d.ts.map