@shaclmate/compiler 4.0.36 → 4.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/ShapesGraphToAstTransformer.js +10 -0
  2. package/dist/ast/Ast.d.ts +1 -0
  3. package/dist/generators/ts/AbstractNamedUnionType.js +6 -2
  4. package/dist/generators/ts/AbstractObjectSetType.d.ts +35 -0
  5. package/dist/generators/ts/AbstractObjectSetType.js +44 -0
  6. package/dist/generators/ts/GraphqlSchema.d.ts +22 -0
  7. package/dist/generators/ts/GraphqlSchema.js +87 -0
  8. package/dist/generators/ts/NamedObjectType.js +6 -2
  9. package/dist/generators/ts/ObjectSetType.d.ts +6 -0
  10. package/dist/generators/ts/ObjectSetType.js +36 -0
  11. package/dist/generators/ts/RdfjsDatasetObjectSetType.d.ts +6 -0
  12. package/dist/generators/ts/{rdfjsDatasetObjectSetClassDeclaration.js → RdfjsDatasetObjectSetType.js} +73 -63
  13. package/dist/generators/ts/Snippets.d.ts +1 -0
  14. package/dist/generators/ts/Snippets.js +7 -0
  15. package/dist/generators/ts/SparqlObjectSetType.d.ts +6 -0
  16. package/dist/generators/ts/{sparqlObjectSetClassDeclaration.js → SparqlObjectSetType.js} +40 -29
  17. package/dist/generators/ts/TsGenerator.d.ts +7 -8
  18. package/dist/generators/ts/TsGenerator.js +108 -77
  19. package/dist/generators/ts/ZodGenerator.d.ts +1 -2
  20. package/dist/generators/ts/ZodGenerator.js +12 -12
  21. package/dist/generators/ts/_NamedObjectType/NamedObjectType_createFunctionDeclaration.js +17 -11
  22. package/dist/generators/ts/_NamedObjectType/NamedObjectType_toJsonFunctionDeclaration.js +2 -1
  23. package/dist/generators/ts/_NamedObjectType/NamedObjectType_toStringFunctionDeclarations.js +2 -4
  24. package/dist/generators/ts/_snippets/snippets_FromRdfResourceFunction.js +2 -2
  25. package/dist/generators/ts/_snippets/snippets_FromRdfResourceValuesFunction.js +2 -2
  26. package/dist/generators/ts/_snippets/snippets__FromRdfResourceFunction.js +2 -2
  27. package/dist/generators/ts/_snippets/snippets_monkeyPatchObject.d.ts +3 -0
  28. package/dist/generators/ts/_snippets/snippets_monkeyPatchObject.js +16 -0
  29. package/dist/generators/ts/_snippets/snippets_wrap_FromRdfResourceFunction.js +3 -4
  30. package/dist/input/generated.d.ts +1 -286
  31. package/dist/input/generated.js +28 -1015
  32. package/package.json +6 -6
  33. package/dist/generators/ts/graphqlSchemaVariableStatement.d.ts +0 -10
  34. package/dist/generators/ts/graphqlSchemaVariableStatement.js +0 -84
  35. package/dist/generators/ts/objectSetDeclarations.d.ts +0 -9
  36. package/dist/generators/ts/objectSetDeclarations.js +0 -27
  37. package/dist/generators/ts/objectSetInterfaceDeclaration.d.ts +0 -9
  38. package/dist/generators/ts/objectSetInterfaceDeclaration.js +0 -26
  39. package/dist/generators/ts/objectSetMethodSignatures.d.ts +0 -18
  40. package/dist/generators/ts/objectSetMethodSignatures.js +0 -31
  41. package/dist/generators/ts/rdfjsDatasetObjectSetClassDeclaration.d.ts +0 -9
  42. package/dist/generators/ts/sparqlObjectSetClassDeclaration.d.ts +0 -9
@@ -1,10 +1,9 @@
1
1
  import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_wrap_FromRdfResourceFunction = ({ snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}wrap_FromRdfResourceFunction`, code `\
2
+ export const snippets_wrap_FromRdfResourceFunction = ({ configuration, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}wrap_FromRdfResourceFunction`, code `\
3
3
  function ${syntheticNamePrefix}wrap_FromRdfResourceFunction<T>(_fromRdfResourceFunction: ${snippets._FromRdfResourceFunction}<T>): ${snippets.FromRdfResourceFunction}<T> {
4
4
  return (resource, options) => {
5
- let { context, graph, ignoreRdfType = false, objectSet, preferredLanguages } = (options ?? {});
6
- if (!objectSet) { objectSet = new ${syntheticNamePrefix}RdfjsDatasetObjectSet(resource.dataset); };
7
- return _fromRdfResourceFunction(resource, { context, graph, ignoreRdfType, objectSet, preferredLanguages });
5
+ const { context, graph, ignoreRdfType = false, ${configuration.features.has("ObjectSet") ? "objectSet, " : ""}preferredLanguages } = (options ?? {});
6
+ return _fromRdfResourceFunction(resource, { context, graph, ignoreRdfType, ${configuration.features.has("ObjectSet") ? code `objectSet: objectSet ?? new ${syntheticNamePrefix}RdfjsDatasetObjectSet(resource.dataset), ` : ""}preferredLanguages });
8
7
  };
9
8
  }`);
10
9
  //# sourceMappingURL=snippets_wrap_FromRdfResourceFunction.js.map
@@ -1,4 +1,4 @@
1
- import type { BlankNode, DatasetCore, Literal, NamedNode, Quad_Graph, Variable } from "@rdfjs/types";
1
+ import type { BlankNode, Literal, NamedNode, Quad_Graph, Variable } from "@rdfjs/types";
2
2
  import { PropertyPath as RdfxResourcePropertyPath, Resource, ResourceSet } from "@rdfx/resource";
3
3
  import { NTriplesTerm } from "@rdfx/string";
4
4
  import { Either, Maybe } from "purify-ts";
@@ -6,7 +6,6 @@ type $_FromRdfResourceFunction<T> = (resource: Resource, options: {
6
6
  context: undefined | unknown;
7
7
  graph: Exclude<Quad_Graph, Variable> | undefined;
8
8
  ignoreRdfType: boolean;
9
- objectSet: $ObjectSet;
10
9
  preferredLanguages: readonly string[] | undefined;
11
10
  }) => Either<Error, T>;
12
11
  export type $_ToRdfResourceFunction<IdentifierT extends Resource.Identifier, ObjectT extends {
@@ -18,13 +17,6 @@ export type $_ToRdfResourceFunction<IdentifierT extends Resource.Identifier, Obj
18
17
  resource: Resource<IdentifierT>;
19
18
  resourceSet: ResourceSet;
20
19
  }) => void;
21
- interface $BooleanFilter {
22
- readonly value?: boolean;
23
- }
24
- type $CollectionFilter<ItemFilterT> = ItemFilterT & {
25
- readonly $maxCount?: number;
26
- readonly $minCount?: number;
27
- };
28
20
  export type $EqualsResult = Either<$EqualsResult.Unequal, true>;
29
21
  export declare namespace $EqualsResult {
30
22
  const Equal: $EqualsResult;
@@ -66,40 +58,18 @@ export type $FromRdfResourceFunction<T> = (resource: Resource, options?: {
66
58
  context?: unknown;
67
59
  graph?: Exclude<Quad_Graph, Variable>;
68
60
  ignoreRdfType?: boolean;
69
- objectSet?: $ObjectSet;
70
61
  preferredLanguages?: readonly string[];
71
62
  }) => Either<Error, T>;
72
63
  export type $FromRdfResourceValuesFunction<T> = (resourceValues: Either<Error, Resource.Values>, options: {
73
64
  context?: unknown;
74
65
  graph?: Exclude<Quad_Graph, Variable>;
75
66
  ignoreRdfType?: boolean;
76
- objectSet?: $ObjectSet;
77
67
  preferredLanguages?: readonly string[];
78
68
  propertyPath: $PropertyPath;
79
69
  resource: Resource;
80
70
  }) => Either<Error, Resource.Values<T>>;
81
- interface $IdentifierFilter {
82
- readonly in?: readonly (BlankNode | NamedNode)[];
83
- readonly type?: "BlankNode" | "NamedNode";
84
- }
85
- interface $IriFilter {
86
- readonly in?: readonly NamedNode[];
87
- }
88
- interface $LiteralFilter extends Omit<$TermFilter, "in" | "type"> {
89
- readonly in?: readonly Literal[];
90
- }
91
- type $MaybeFilter<ItemFilterT> = ItemFilterT | null;
92
- interface $NumericFilter<T> {
93
- readonly in?: readonly T[];
94
- readonly maxExclusive?: T;
95
- readonly maxInclusive?: T;
96
- readonly minExclusive?: T;
97
- readonly minInclusive?: T;
98
- }
99
71
  export type $PropertyPath = RdfxResourcePropertyPath;
100
72
  export declare namespace $PropertyPath {
101
- type Filter = object;
102
- function filter(_filter: Filter, _value: $PropertyPath): boolean;
103
73
  const fromRdfResource: $FromRdfResourceFunction<$PropertyPath>;
104
74
  const fromRdfResourceValues: $FromRdfResourceValuesFunction<$PropertyPath>;
105
75
  const schema: Readonly<object>;
@@ -111,17 +81,6 @@ export interface $ShaclPropertySchema<TypeSchemaT = object> {
111
81
  readonly path: $PropertyPath;
112
82
  readonly type: () => TypeSchemaT;
113
83
  }
114
- interface $StringFilter {
115
- readonly in?: readonly string[];
116
- readonly maxLength?: number;
117
- readonly minLength?: number;
118
- }
119
- interface $TermFilter {
120
- readonly datatypeIn?: readonly NamedNode[];
121
- readonly in?: readonly (Literal | NamedNode)[];
122
- readonly languageIn?: readonly string[];
123
- readonly typeIn?: readonly ("BlankNode" | "Literal" | "NamedNode")[];
124
- }
125
84
  export type $ToRdfResourceFunction<ObjectT, IdentifierT extends Resource.Identifier = Resource.Identifier> = (object: ObjectT, options?: {
126
85
  graph?: Exclude<Quad_Graph, Variable>;
127
86
  ignoreRdfType?: boolean;
@@ -260,46 +219,6 @@ export declare namespace PropertyShape {
260
219
  const parse: (value: string) => Either<Error, import("@rdfx/string/dist/Identifier.js").Identifier>;
261
220
  const stringify: typeof NTriplesTerm.stringify;
262
221
  }
263
- function filter(filter: PropertyShape.Filter, value: PropertyShape): boolean;
264
- type Filter = {
265
- readonly $identifier?: $IdentifierFilter;
266
- readonly and?: $MaybeFilter<$CollectionFilter<$IdentifierFilter>>;
267
- readonly classes?: $CollectionFilter<$IriFilter>;
268
- readonly comment?: $MaybeFilter<$StringFilter>;
269
- readonly datatype?: $MaybeFilter<$IriFilter>;
270
- readonly deactivated?: $MaybeFilter<$BooleanFilter>;
271
- readonly defaultValue?: $MaybeFilter<$TermFilter>;
272
- readonly description?: $MaybeFilter<$StringFilter>;
273
- readonly display?: $BooleanFilter;
274
- readonly flags?: $CollectionFilter<$StringFilter>;
275
- readonly groups?: $CollectionFilter<$IdentifierFilter>;
276
- readonly hasValues?: $CollectionFilter<$TermFilter>;
277
- readonly in_?: $MaybeFilter<$CollectionFilter<$TermFilter>>;
278
- readonly isDefinedBy?: $MaybeFilter<$IdentifierFilter>;
279
- readonly label?: $MaybeFilter<$StringFilter>;
280
- readonly languageIn?: $MaybeFilter<$CollectionFilter<$StringFilter>>;
281
- readonly maxCount?: $MaybeFilter<$NumericFilter<bigint>>;
282
- readonly maxExclusive?: $MaybeFilter<$LiteralFilter>;
283
- readonly maxInclusive?: $MaybeFilter<$LiteralFilter>;
284
- readonly maxLength?: $MaybeFilter<$NumericFilter<bigint>>;
285
- readonly minCount?: $MaybeFilter<$NumericFilter<bigint>>;
286
- readonly minExclusive?: $MaybeFilter<$LiteralFilter>;
287
- readonly minInclusive?: $MaybeFilter<$LiteralFilter>;
288
- readonly minLength?: $MaybeFilter<$NumericFilter<bigint>>;
289
- readonly mutable?: $MaybeFilter<$BooleanFilter>;
290
- readonly name?: $MaybeFilter<$StringFilter>;
291
- readonly node?: $MaybeFilter<$IdentifierFilter>;
292
- readonly nodeKind?: $MaybeFilter<$IriFilter>;
293
- readonly not?: $CollectionFilter<$IdentifierFilter>;
294
- readonly or?: $MaybeFilter<$CollectionFilter<$IdentifierFilter>>;
295
- readonly order?: $MaybeFilter<$NumericFilter<number>>;
296
- readonly path?: $PropertyPath.Filter;
297
- readonly patterns?: $CollectionFilter<$StringFilter>;
298
- readonly resolve?: $MaybeFilter<$IdentifierFilter>;
299
- readonly shaclmateName?: $MaybeFilter<$StringFilter>;
300
- readonly uniqueLang?: $MaybeFilter<$BooleanFilter>;
301
- readonly xone?: $MaybeFilter<$CollectionFilter<$IdentifierFilter>>;
302
- };
303
222
  const _fromRdfResource: $_FromRdfResourceFunction<PropertyShape>;
304
223
  const fromRdfResource: $FromRdfResourceFunction<PropertyShape>;
305
224
  const fromRdfResourceValues: $FromRdfResourceValuesFunction<PropertyShape>;
@@ -697,7 +616,6 @@ export declare namespace PropertyShape {
697
616
  const _toRdfResource: $_ToRdfResourceFunction<PropertyShape.Identifier, PropertyShape>;
698
617
  const toRdfResource: $ToRdfResourceFunction<PropertyShape, Identifier>;
699
618
  function _propertiesToStrings(_propertyShape: PropertyShape): Record<string, string>;
700
- function $toString(this: PropertyShape): string;
701
619
  function $toString(_propertyShape: PropertyShape): string;
702
620
  }
703
621
  export interface PropertyGroup {
@@ -722,12 +640,6 @@ export declare namespace PropertyGroup {
722
640
  const parse: (value: string) => Either<Error, import("@rdfx/string/dist/Identifier.js").Identifier>;
723
641
  const stringify: typeof NTriplesTerm.stringify;
724
642
  }
725
- function filter(filter: PropertyGroup.Filter, value: PropertyGroup): boolean;
726
- type Filter = {
727
- readonly $identifier?: $IdentifierFilter;
728
- readonly comment?: $MaybeFilter<$StringFilter>;
729
- readonly label?: $MaybeFilter<$StringFilter>;
730
- };
731
643
  const _fromRdfResource: $_FromRdfResourceFunction<PropertyGroup>;
732
644
  const fromRdfResource: $FromRdfResourceFunction<PropertyGroup>;
733
645
  const fromRdfResourceValues: $FromRdfResourceValuesFunction<PropertyGroup>;
@@ -773,7 +685,6 @@ export declare namespace PropertyGroup {
773
685
  const _toRdfResource: $_ToRdfResourceFunction<PropertyGroup.Identifier, PropertyGroup>;
774
686
  const toRdfResource: $ToRdfResourceFunction<PropertyGroup, Identifier>;
775
687
  function _propertiesToStrings(_propertyGroup: PropertyGroup): Record<string, string>;
776
- function $toString(this: PropertyGroup): string;
777
688
  function $toString(_propertyGroup: PropertyGroup): string;
778
689
  }
779
690
  export interface Ontology {
@@ -798,12 +709,6 @@ export declare namespace Ontology {
798
709
  const parse: (value: string) => Either<Error, import("@rdfx/string/dist/Identifier.js").Identifier>;
799
710
  const stringify: typeof NTriplesTerm.stringify;
800
711
  }
801
- function filter(filter: Ontology.Filter, value: Ontology): boolean;
802
- type Filter = {
803
- readonly $identifier?: $IdentifierFilter;
804
- readonly comment?: $MaybeFilter<$StringFilter>;
805
- readonly label?: $MaybeFilter<$StringFilter>;
806
- };
807
712
  const _fromRdfResource: $_FromRdfResourceFunction<Ontology>;
808
713
  const fromRdfResource: $FromRdfResourceFunction<Ontology>;
809
714
  const fromRdfResourceValues: $FromRdfResourceValuesFunction<Ontology>;
@@ -849,7 +754,6 @@ export declare namespace Ontology {
849
754
  const _toRdfResource: $_ToRdfResourceFunction<Ontology.Identifier, Ontology>;
850
755
  const toRdfResource: $ToRdfResourceFunction<Ontology, Identifier>;
851
756
  function _propertiesToStrings(_ontology: Ontology): Record<string, string>;
852
- function $toString(this: Ontology): string;
853
757
  function $toString(_ontology: Ontology): string;
854
758
  }
855
759
  export interface NodeShape {
@@ -982,48 +886,6 @@ export declare namespace NodeShape {
982
886
  const parse: (value: string) => Either<Error, import("@rdfx/string/dist/Identifier.js").Identifier>;
983
887
  const stringify: typeof NTriplesTerm.stringify;
984
888
  }
985
- function filter(filter: NodeShape.Filter, value: NodeShape): boolean;
986
- type Filter = {
987
- readonly $identifier?: $IdentifierFilter;
988
- readonly and?: $MaybeFilter<$CollectionFilter<$IdentifierFilter>>;
989
- readonly classes?: $CollectionFilter<$IriFilter>;
990
- readonly closed?: $MaybeFilter<$BooleanFilter>;
991
- readonly comment?: $MaybeFilter<$StringFilter>;
992
- readonly datatype?: $MaybeFilter<$IriFilter>;
993
- readonly deactivated?: $MaybeFilter<$BooleanFilter>;
994
- readonly discriminantValue?: $MaybeFilter<$StringFilter>;
995
- readonly extern?: $MaybeFilter<$BooleanFilter>;
996
- readonly flags?: $CollectionFilter<$StringFilter>;
997
- readonly fromRdfType?: $MaybeFilter<$IriFilter>;
998
- readonly hasValues?: $CollectionFilter<$TermFilter>;
999
- readonly ignoredProperties?: $MaybeFilter<$CollectionFilter<$IriFilter>>;
1000
- readonly in_?: $MaybeFilter<$CollectionFilter<$TermFilter>>;
1001
- readonly isDefinedBy?: $MaybeFilter<$IdentifierFilter>;
1002
- readonly label?: $MaybeFilter<$StringFilter>;
1003
- readonly languageIn?: $MaybeFilter<$CollectionFilter<$StringFilter>>;
1004
- readonly maxCount?: $MaybeFilter<$NumericFilter<bigint>>;
1005
- readonly maxExclusive?: $MaybeFilter<$LiteralFilter>;
1006
- readonly maxInclusive?: $MaybeFilter<$LiteralFilter>;
1007
- readonly maxLength?: $MaybeFilter<$NumericFilter<bigint>>;
1008
- readonly minCount?: $MaybeFilter<$NumericFilter<bigint>>;
1009
- readonly minExclusive?: $MaybeFilter<$LiteralFilter>;
1010
- readonly minInclusive?: $MaybeFilter<$LiteralFilter>;
1011
- readonly minLength?: $MaybeFilter<$NumericFilter<bigint>>;
1012
- readonly mutable?: $MaybeFilter<$BooleanFilter>;
1013
- readonly node?: $MaybeFilter<$IdentifierFilter>;
1014
- readonly nodeKind?: $MaybeFilter<$IriFilter>;
1015
- readonly not?: $CollectionFilter<$IdentifierFilter>;
1016
- readonly or?: $MaybeFilter<$CollectionFilter<$IdentifierFilter>>;
1017
- readonly patterns?: $CollectionFilter<$StringFilter>;
1018
- readonly properties?: $CollectionFilter<$IdentifierFilter>;
1019
- readonly rdfType?: $MaybeFilter<$IriFilter>;
1020
- readonly shaclmateName?: $MaybeFilter<$StringFilter>;
1021
- readonly subClassOf?: $CollectionFilter<$IriFilter>;
1022
- readonly toRdfTypes?: $CollectionFilter<$IriFilter>;
1023
- readonly tsImports?: $CollectionFilter<$StringFilter>;
1024
- readonly types?: $CollectionFilter<$IriFilter>;
1025
- readonly xone?: $MaybeFilter<$CollectionFilter<$IdentifierFilter>>;
1026
- };
1027
889
  const _fromRdfResource: $_FromRdfResourceFunction<NodeShape>;
1028
890
  const fromRdfResource: $FromRdfResourceFunction<NodeShape>;
1029
891
  const fromRdfResourceValues: $FromRdfResourceValuesFunction<NodeShape>;
@@ -1448,20 +1310,11 @@ export declare namespace NodeShape {
1448
1310
  const _toRdfResource: $_ToRdfResourceFunction<NodeShape.Identifier, NodeShape>;
1449
1311
  const toRdfResource: $ToRdfResourceFunction<NodeShape, Identifier>;
1450
1312
  function _propertiesToStrings(_nodeShape: NodeShape): Record<string, string>;
1451
- function $toString(this: NodeShape): string;
1452
1313
  function $toString(_nodeShape: NodeShape): string;
1453
1314
  }
1454
1315
  export type Shape = NodeShape | PropertyShape;
1455
1316
  export declare namespace Shape {
1456
1317
  const $toString: (value: Shape) => string;
1457
- const filter: (filter: Shape.Filter, value: Shape) => boolean;
1458
- type Filter = {
1459
- readonly $identifier?: $IdentifierFilter;
1460
- readonly on?: {
1461
- readonly NodeShape?: NodeShape.Filter;
1462
- readonly PropertyShape?: PropertyShape.Filter;
1463
- };
1464
- };
1465
1318
  const fromRdfResource: $FromRdfResourceFunction<Shape>;
1466
1319
  const fromRdfResourceValues: $FromRdfResourceValuesFunction<Shape>;
1467
1320
  type Identifier = BlankNode | NamedNode;
@@ -2586,16 +2439,6 @@ export declare namespace Shape {
2586
2439
  export type $Object = NodeShape | Ontology | PropertyGroup | PropertyShape;
2587
2440
  export declare namespace $Object {
2588
2441
  const $toString: (value: $Object) => string;
2589
- const filter: (filter: $Object.Filter, value: $Object) => boolean;
2590
- type Filter = {
2591
- readonly $identifier?: $IdentifierFilter;
2592
- readonly on?: {
2593
- readonly NodeShape?: NodeShape.Filter;
2594
- readonly Ontology?: Ontology.Filter;
2595
- readonly PropertyGroup?: PropertyGroup.Filter;
2596
- readonly PropertyShape?: PropertyShape.Filter;
2597
- };
2598
- };
2599
2442
  const fromRdfResource: $FromRdfResourceFunction<$Object>;
2600
2443
  const fromRdfResourceValues: $FromRdfResourceValuesFunction<$Object>;
2601
2444
  type Identifier = BlankNode | NamedNode;
@@ -3530,133 +3373,5 @@ export declare namespace $Object {
3530
3373
  resourceSet: ResourceSet;
3531
3374
  }) => (BlankNode | NamedNode)[];
3532
3375
  }
3533
- export interface $ObjectSet {
3534
- nodeShape(identifier: NodeShape.Identifier, options?: {
3535
- preferredLanguages?: readonly string[];
3536
- }): Promise<Either<Error, NodeShape>>;
3537
- nodeShapeCount(query?: Pick<$ObjectSet.Query<NodeShape.Filter, NodeShape.Identifier>, "filter">): Promise<Either<Error, number>>;
3538
- nodeShapeIdentifiers(query?: $ObjectSet.Query<NodeShape.Filter, NodeShape.Identifier>): Promise<Either<Error, readonly NodeShape.Identifier[]>>;
3539
- nodeShapes(query?: $ObjectSet.Query<NodeShape.Filter, NodeShape.Identifier>): Promise<Either<Error, readonly NodeShape[]>>;
3540
- ontology(identifier: Ontology.Identifier, options?: {
3541
- preferredLanguages?: readonly string[];
3542
- }): Promise<Either<Error, Ontology>>;
3543
- ontologyCount(query?: Pick<$ObjectSet.Query<Ontology.Filter, Ontology.Identifier>, "filter">): Promise<Either<Error, number>>;
3544
- ontologyIdentifiers(query?: $ObjectSet.Query<Ontology.Filter, Ontology.Identifier>): Promise<Either<Error, readonly Ontology.Identifier[]>>;
3545
- ontologies(query?: $ObjectSet.Query<Ontology.Filter, Ontology.Identifier>): Promise<Either<Error, readonly Ontology[]>>;
3546
- propertyGroup(identifier: PropertyGroup.Identifier, options?: {
3547
- preferredLanguages?: readonly string[];
3548
- }): Promise<Either<Error, PropertyGroup>>;
3549
- propertyGroupCount(query?: Pick<$ObjectSet.Query<PropertyGroup.Filter, PropertyGroup.Identifier>, "filter">): Promise<Either<Error, number>>;
3550
- propertyGroupIdentifiers(query?: $ObjectSet.Query<PropertyGroup.Filter, PropertyGroup.Identifier>): Promise<Either<Error, readonly PropertyGroup.Identifier[]>>;
3551
- propertyGroups(query?: $ObjectSet.Query<PropertyGroup.Filter, PropertyGroup.Identifier>): Promise<Either<Error, readonly PropertyGroup[]>>;
3552
- propertyShape(identifier: PropertyShape.Identifier, options?: {
3553
- preferredLanguages?: readonly string[];
3554
- }): Promise<Either<Error, PropertyShape>>;
3555
- propertyShapeCount(query?: Pick<$ObjectSet.Query<PropertyShape.Filter, PropertyShape.Identifier>, "filter">): Promise<Either<Error, number>>;
3556
- propertyShapeIdentifiers(query?: $ObjectSet.Query<PropertyShape.Filter, PropertyShape.Identifier>): Promise<Either<Error, readonly PropertyShape.Identifier[]>>;
3557
- propertyShapes(query?: $ObjectSet.Query<PropertyShape.Filter, PropertyShape.Identifier>): Promise<Either<Error, readonly PropertyShape[]>>;
3558
- shape(identifier: Shape.Identifier, options?: {
3559
- preferredLanguages?: readonly string[];
3560
- }): Promise<Either<Error, Shape>>;
3561
- shapeCount(query?: Pick<$ObjectSet.Query<Shape.Filter, Shape.Identifier>, "filter">): Promise<Either<Error, number>>;
3562
- shapeIdentifiers(query?: $ObjectSet.Query<Shape.Filter, Shape.Identifier>): Promise<Either<Error, readonly Shape.Identifier[]>>;
3563
- shapes(query?: $ObjectSet.Query<Shape.Filter, Shape.Identifier>): Promise<Either<Error, readonly Shape[]>>;
3564
- $object(identifier: $Object.Identifier, options?: {
3565
- preferredLanguages?: readonly string[];
3566
- }): Promise<Either<Error, $Object>>;
3567
- $objectCount(query?: Pick<$ObjectSet.Query<$Object.Filter, $Object.Identifier>, "filter">): Promise<Either<Error, number>>;
3568
- $objectIdentifiers(query?: $ObjectSet.Query<$Object.Filter, $Object.Identifier>): Promise<Either<Error, readonly $Object.Identifier[]>>;
3569
- $objects(query?: $ObjectSet.Query<$Object.Filter, $Object.Identifier>): Promise<Either<Error, readonly $Object[]>>;
3570
- }
3571
- export declare namespace $ObjectSet {
3572
- interface Query<ObjectFilterT, ObjectIdentifierT extends BlankNode | NamedNode> {
3573
- readonly filter?: ObjectFilterT;
3574
- readonly graph?: Exclude<Quad_Graph, Variable>;
3575
- readonly identifiers?: readonly ObjectIdentifierT[];
3576
- readonly limit?: number;
3577
- readonly offset?: number;
3578
- readonly preferredLanguages?: readonly string[];
3579
- }
3580
- }
3581
- export declare class $RdfjsDatasetObjectSet implements $ObjectSet {
3582
- #private;
3583
- constructor(dataset: DatasetCore | (() => DatasetCore), options?: {
3584
- graph?: Exclude<Quad_Graph, Variable>;
3585
- });
3586
- protected $dataset(): DatasetCore;
3587
- protected $resourceSet(): ResourceSet;
3588
- nodeShape(identifier: NodeShape.Identifier, options?: {
3589
- preferredLanguages?: readonly string[];
3590
- }): Promise<Either<Error, NodeShape>>;
3591
- nodeShapeSync(identifier: NodeShape.Identifier, options?: {
3592
- preferredLanguages?: readonly string[];
3593
- }): Either<Error, NodeShape>;
3594
- nodeShapeCount(query?: Pick<$ObjectSet.Query<NodeShape.Filter, NodeShape.Identifier>, "filter">): Promise<Either<Error, number>>;
3595
- nodeShapeCountSync(query?: Pick<$ObjectSet.Query<NodeShape.Filter, NodeShape.Identifier>, "filter">): Either<Error, number>;
3596
- nodeShapeIdentifiers(query?: $ObjectSet.Query<NodeShape.Filter, NodeShape.Identifier>): Promise<Either<Error, readonly NodeShape.Identifier[]>>;
3597
- nodeShapeIdentifiersSync(query?: $ObjectSet.Query<NodeShape.Filter, NodeShape.Identifier>): Either<Error, readonly NodeShape.Identifier[]>;
3598
- nodeShapes(query?: $ObjectSet.Query<NodeShape.Filter, NodeShape.Identifier>): Promise<Either<Error, readonly NodeShape[]>>;
3599
- nodeShapesSync(query?: $ObjectSet.Query<NodeShape.Filter, NodeShape.Identifier>): Either<Error, readonly NodeShape[]>;
3600
- ontology(identifier: Ontology.Identifier, options?: {
3601
- preferredLanguages?: readonly string[];
3602
- }): Promise<Either<Error, Ontology>>;
3603
- ontologySync(identifier: Ontology.Identifier, options?: {
3604
- preferredLanguages?: readonly string[];
3605
- }): Either<Error, Ontology>;
3606
- ontologyCount(query?: Pick<$ObjectSet.Query<Ontology.Filter, Ontology.Identifier>, "filter">): Promise<Either<Error, number>>;
3607
- ontologyCountSync(query?: Pick<$ObjectSet.Query<Ontology.Filter, Ontology.Identifier>, "filter">): Either<Error, number>;
3608
- ontologyIdentifiers(query?: $ObjectSet.Query<Ontology.Filter, Ontology.Identifier>): Promise<Either<Error, readonly Ontology.Identifier[]>>;
3609
- ontologyIdentifiersSync(query?: $ObjectSet.Query<Ontology.Filter, Ontology.Identifier>): Either<Error, readonly Ontology.Identifier[]>;
3610
- ontologies(query?: $ObjectSet.Query<Ontology.Filter, Ontology.Identifier>): Promise<Either<Error, readonly Ontology[]>>;
3611
- ontologiesSync(query?: $ObjectSet.Query<Ontology.Filter, Ontology.Identifier>): Either<Error, readonly Ontology[]>;
3612
- propertyGroup(identifier: PropertyGroup.Identifier, options?: {
3613
- preferredLanguages?: readonly string[];
3614
- }): Promise<Either<Error, PropertyGroup>>;
3615
- propertyGroupSync(identifier: PropertyGroup.Identifier, options?: {
3616
- preferredLanguages?: readonly string[];
3617
- }): Either<Error, PropertyGroup>;
3618
- propertyGroupCount(query?: Pick<$ObjectSet.Query<PropertyGroup.Filter, PropertyGroup.Identifier>, "filter">): Promise<Either<Error, number>>;
3619
- propertyGroupCountSync(query?: Pick<$ObjectSet.Query<PropertyGroup.Filter, PropertyGroup.Identifier>, "filter">): Either<Error, number>;
3620
- propertyGroupIdentifiers(query?: $ObjectSet.Query<PropertyGroup.Filter, PropertyGroup.Identifier>): Promise<Either<Error, readonly PropertyGroup.Identifier[]>>;
3621
- propertyGroupIdentifiersSync(query?: $ObjectSet.Query<PropertyGroup.Filter, PropertyGroup.Identifier>): Either<Error, readonly PropertyGroup.Identifier[]>;
3622
- propertyGroups(query?: $ObjectSet.Query<PropertyGroup.Filter, PropertyGroup.Identifier>): Promise<Either<Error, readonly PropertyGroup[]>>;
3623
- propertyGroupsSync(query?: $ObjectSet.Query<PropertyGroup.Filter, PropertyGroup.Identifier>): Either<Error, readonly PropertyGroup[]>;
3624
- propertyShape(identifier: PropertyShape.Identifier, options?: {
3625
- preferredLanguages?: readonly string[];
3626
- }): Promise<Either<Error, PropertyShape>>;
3627
- propertyShapeSync(identifier: PropertyShape.Identifier, options?: {
3628
- preferredLanguages?: readonly string[];
3629
- }): Either<Error, PropertyShape>;
3630
- propertyShapeCount(query?: Pick<$ObjectSet.Query<PropertyShape.Filter, PropertyShape.Identifier>, "filter">): Promise<Either<Error, number>>;
3631
- propertyShapeCountSync(query?: Pick<$ObjectSet.Query<PropertyShape.Filter, PropertyShape.Identifier>, "filter">): Either<Error, number>;
3632
- propertyShapeIdentifiers(query?: $ObjectSet.Query<PropertyShape.Filter, PropertyShape.Identifier>): Promise<Either<Error, readonly PropertyShape.Identifier[]>>;
3633
- propertyShapeIdentifiersSync(query?: $ObjectSet.Query<PropertyShape.Filter, PropertyShape.Identifier>): Either<Error, readonly PropertyShape.Identifier[]>;
3634
- propertyShapes(query?: $ObjectSet.Query<PropertyShape.Filter, PropertyShape.Identifier>): Promise<Either<Error, readonly PropertyShape[]>>;
3635
- propertyShapesSync(query?: $ObjectSet.Query<PropertyShape.Filter, PropertyShape.Identifier>): Either<Error, readonly PropertyShape[]>;
3636
- shape(identifier: Shape.Identifier, options?: {
3637
- preferredLanguages?: readonly string[];
3638
- }): Promise<Either<Error, Shape>>;
3639
- shapeSync(identifier: Shape.Identifier, options?: {
3640
- preferredLanguages?: readonly string[];
3641
- }): Either<Error, Shape>;
3642
- shapeCount(query?: Pick<$ObjectSet.Query<Shape.Filter, Shape.Identifier>, "filter">): Promise<Either<Error, number>>;
3643
- shapeCountSync(query?: Pick<$ObjectSet.Query<Shape.Filter, Shape.Identifier>, "filter">): Either<Error, number>;
3644
- shapeIdentifiers(query?: $ObjectSet.Query<Shape.Filter, Shape.Identifier>): Promise<Either<Error, readonly Shape.Identifier[]>>;
3645
- shapeIdentifiersSync(query?: $ObjectSet.Query<Shape.Filter, Shape.Identifier>): Either<Error, readonly Shape.Identifier[]>;
3646
- shapes(query?: $ObjectSet.Query<Shape.Filter, Shape.Identifier>): Promise<Either<Error, readonly Shape[]>>;
3647
- shapesSync(query?: $ObjectSet.Query<Shape.Filter, Shape.Identifier>): Either<Error, readonly Shape[]>;
3648
- $object(identifier: $Object.Identifier, options?: {
3649
- preferredLanguages?: readonly string[];
3650
- }): Promise<Either<Error, $Object>>;
3651
- $objectSync(identifier: $Object.Identifier, options?: {
3652
- preferredLanguages?: readonly string[];
3653
- }): Either<Error, $Object>;
3654
- $objectCount(query?: Pick<$ObjectSet.Query<$Object.Filter, $Object.Identifier>, "filter">): Promise<Either<Error, number>>;
3655
- $objectCountSync(query?: Pick<$ObjectSet.Query<$Object.Filter, $Object.Identifier>, "filter">): Either<Error, number>;
3656
- $objectIdentifiers(query?: $ObjectSet.Query<$Object.Filter, $Object.Identifier>): Promise<Either<Error, readonly $Object.Identifier[]>>;
3657
- $objectIdentifiersSync(query?: $ObjectSet.Query<$Object.Filter, $Object.Identifier>): Either<Error, readonly $Object.Identifier[]>;
3658
- $objects(query?: $ObjectSet.Query<$Object.Filter, $Object.Identifier>): Promise<Either<Error, readonly $Object[]>>;
3659
- $objectsSync(query?: $ObjectSet.Query<$Object.Filter, $Object.Identifier>): Either<Error, readonly $Object[]>;
3660
- }
3661
3376
  export {};
3662
3377
  //# sourceMappingURL=generated.d.ts.map