@shaclmate/compiler 3.0.2 → 3.0.3

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.
@@ -61,10 +61,10 @@ export class BooleanType extends PrimitiveType {
61
61
  .map((defaultValue) => {
62
62
  if (defaultValue) {
63
63
  // If the default is true, only serialize the value if it's false
64
- return `!${variables.value} ? false : undefined`;
64
+ return `(!${variables.value} ? [false] : [])`;
65
65
  }
66
66
  // If the default is false, only serialize the value if it's true
67
- return `${variables.value} ? true : undefined`;
67
+ return `(${variables.value} ? [true] : [])`;
68
68
  })
69
69
  .orDefault(variables.value);
70
70
  }
@@ -80,8 +80,8 @@ export class DateTimeType extends PrimitiveType {
80
80
  toRdfExpression({ variables, }) {
81
81
  const valueToRdf = `rdfLiteral.toRdf(${variables.value}, ${objectInitializer({ dataFactory: "dataFactory", datatype: rdfjsTermExpression(this.xsdDatatype) })})`;
82
82
  return this.primitiveDefaultValue
83
- .map((defaultValue) => `${variables.value}.getTime() !== ${defaultValue.getTime()} ? ${valueToRdf} : undefined`)
84
- .orDefault(valueToRdf);
83
+ .map((defaultValue) => `(${variables.value}.getTime() !== ${defaultValue.getTime()} ? [${valueToRdf}] : [])`)
84
+ .orDefault(`[${valueToRdf}]`);
85
85
  }
86
86
  }
87
87
  __decorate([
@@ -289,7 +289,7 @@ export class ListType extends Type {
289
289
  break;
290
290
  }
291
291
  }
292
- return `${variables.value}.length > 0 ? ${variables.value}.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
292
+ return `[${variables.value}.length > 0 ? ${variables.value}.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
293
293
  if (itemIndex === 0) {
294
294
  currentSubListResource = listResource;
295
295
  } else {
@@ -302,7 +302,7 @@ export class ListType extends Type {
302
302
 
303
303
  ${this.toRdfTypes.map((rdfType) => `currentSubListResource.add(${rdfjsTermExpression(rdf.type)}, dataFactory.namedNode("${rdfType.value}"))`).join("\n")}
304
304
 
305
- currentSubListResource.add(${rdfjsTermExpression(rdf.first)}, ${this.itemType.toRdfExpression({ variables: { mutateGraph: variables.mutateGraph, predicate: rdfjsTermExpression(rdf.first), resource: "currentSubListResource", resourceSet: variables.resourceSet, value: "item" } })});
305
+ currentSubListResource.add(${rdfjsTermExpression(rdf.first)}, ...${this.itemType.toRdfExpression({ variables: { mutateGraph: variables.mutateGraph, predicate: rdfjsTermExpression(rdf.first), resource: "currentSubListResource", resourceSet: variables.resourceSet, value: "item" } })});
306
306
 
307
307
  if (itemIndex + 1 === list.length) {
308
308
  currentSubListResource.add(${rdfjsTermExpression(rdf.rest)}, ${rdfjsTermExpression(rdf.nil)});
@@ -319,7 +319,7 @@ export class ListType extends Type {
319
319
  currentSubListResource: ${mutableResourceTypeName} | null;
320
320
  listResource: ${mutableResourceTypeName};
321
321
  },
322
- ).listResource.identifier : ${rdfjsTermExpression(rdf.nil)}`;
322
+ ).listResource.identifier : ${rdfjsTermExpression(rdf.nil)}]`;
323
323
  }
324
324
  useImports(parameters) {
325
325
  const imports = this.itemType.useImports(parameters).concat();
@@ -58,8 +58,8 @@ export class NumberType extends PrimitiveType {
58
58
  }
59
59
  toRdfExpression({ variables, }) {
60
60
  return this.primitiveDefaultValue
61
- .map((defaultValue) => `${variables.value} !== ${defaultValue} ? ${variables.value} : undefined`)
62
- .orDefault(variables.value);
61
+ .map((defaultValue) => `(${variables.value} !== ${defaultValue} ? [${variables.value}] : [])`)
62
+ .orDefault(`[${variables.value}]`);
63
63
  }
64
64
  }
65
65
  __decorate([
@@ -322,9 +322,9 @@ export class ObjectType extends DeclaredType {
322
322
  toRdfExpression({ variables, }) {
323
323
  switch (this.declarationType) {
324
324
  case "class":
325
- return `${variables.value}.${syntheticNamePrefix}toRdf({ mutateGraph: ${variables.mutateGraph}, resourceSet: ${variables.resourceSet} })`;
325
+ return `[${variables.value}.${syntheticNamePrefix}toRdf({ mutateGraph: ${variables.mutateGraph}, resourceSet: ${variables.resourceSet} }).identifier]`;
326
326
  case "interface":
327
- return `${this.staticModuleName}.${syntheticNamePrefix}toRdf(${variables.value}, { mutateGraph: ${variables.mutateGraph}, resourceSet: ${variables.resourceSet} })`;
327
+ return `[${this.staticModuleName}.${syntheticNamePrefix}toRdf(${variables.value}, { mutateGraph: ${variables.mutateGraph}, resourceSet: ${variables.resourceSet} }).identifier]`;
328
328
  }
329
329
  }
330
330
  useImports() {
@@ -621,9 +621,9 @@ return ${syntheticNamePrefix}strictEquals(left.${syntheticNamePrefix}type, right
621
621
  const options = `{ mutateGraph: ${variables.mutateGraph}, resourceSet: ${variables.resourceSet} }`;
622
622
  switch (this.memberTypes[0].declarationType) {
623
623
  case "class":
624
- return `${variables.value}.${syntheticNamePrefix}toRdf(${options})`;
624
+ return `[${variables.value}.${syntheticNamePrefix}toRdf(${options}).identifier]`;
625
625
  case "interface":
626
- return `${this.staticModuleName}.${syntheticNamePrefix}toRdf(${variables.value}, ${options})`;
626
+ return `[${this.staticModuleName}.${syntheticNamePrefix}toRdf(${variables.value}, ${options}).identifier]`;
627
627
  }
628
628
  }
629
629
  useImports() {
@@ -137,10 +137,11 @@ export class OptionType extends Type {
137
137
  const itemTypeToRdfExpression = this.itemType.toRdfExpression({
138
138
  variables: { ...variables, value: "value" },
139
139
  });
140
- if (itemTypeToRdfExpression === "value") {
141
- return variables.value;
140
+ let toRdfExpression = `${variables.value}.toList()`;
141
+ if (itemTypeToRdfExpression !== "[value]") {
142
+ toRdfExpression = `${toRdfExpression}.flatMap((value) => ${itemTypeToRdfExpression})`;
142
143
  }
143
- return `${variables.value}.map((value) => ${itemTypeToRdfExpression})`;
144
+ return toRdfExpression;
144
145
  }
145
146
  useImports(parameters) {
146
147
  return [...this.itemType.useImports(parameters), Import.PURIFY];
@@ -166,7 +166,7 @@ export class SetType extends Type {
166
166
  return `${variables.value}.map(item => (${this.itemType.toJsonExpression({ variables: { value: "item" } })}))`;
167
167
  }
168
168
  toRdfExpression({ variables, }) {
169
- return `${variables.value}.map((item) => ${this.itemType.toRdfExpression({
169
+ return `${variables.value}.flatMap((item) => ${this.itemType.toRdfExpression({
170
170
  variables: { ...variables, value: "item" },
171
171
  })})`;
172
172
  }
@@ -67,8 +67,8 @@ export class StringType extends PrimitiveType {
67
67
  }
68
68
  toRdfExpression({ variables, }) {
69
69
  return this.primitiveDefaultValue
70
- .map((defaultValue) => `${variables.value} !== "${defaultValue}" ? ${variables.value} : undefined`)
71
- .orDefault(variables.value);
70
+ .map((defaultValue) => `(${variables.value} !== "${defaultValue}" ? [${variables.value}] : [])`)
71
+ .orDefault(`[${variables.value}]`);
72
72
  }
73
73
  }
74
74
  __decorate([
@@ -252,8 +252,8 @@ export class TermType extends Type {
252
252
  }
253
253
  toRdfExpression({ variables, }) {
254
254
  return this.defaultValue
255
- .map((defaultValue) => `!${variables.value}.equals(${rdfjsTermExpression(defaultValue)}) ? ${variables.value} : undefined`)
256
- .orDefault(variables.value);
255
+ .map((defaultValue) => `(!${variables.value}.equals(${rdfjsTermExpression(defaultValue)}) ? [${variables.value}] : [])`)
256
+ .orDefault(`[${variables.value}]`);
257
257
  }
258
258
  useImports() {
259
259
  const imports = [Import.RDFJS_TYPES];
@@ -184,8 +184,8 @@ export declare abstract class Type {
184
184
  };
185
185
  }): string;
186
186
  /**
187
- * An expression that converts a property value of this type to one that that can be .add'd to
188
- * an rdfjsResource.Resource.
187
+ * An expression that converts a property value of this type to an array of values that can be .add'd to a rdfjsResource.MutableResource
188
+ * (BlankNode | Literal | NamedNode | boolean | number | string)[].
189
189
  */
190
190
  abstract toRdfExpression(parameters: {
191
191
  variables: {
@@ -374,12 +374,12 @@ ${this.memberTypes
374
374
  }
375
375
  toRdfExpression({ variables, }) {
376
376
  return this.ternaryExpression({
377
- memberTypeExpression: (memberType) => memberType.toRdfExpression({
377
+ memberTypeExpression: (memberType) => `(${memberType.toRdfExpression({
378
378
  variables: {
379
379
  ...variables,
380
380
  value: memberType.payload(variables.value),
381
381
  },
382
- }),
382
+ })} as readonly Parameters<rdfjsResource.MutableResource["add"]>[1][])`,
383
383
  variables,
384
384
  });
385
385
  }
@@ -400,9 +400,13 @@ ${this.memberTypes
400
400
  if (expression.length === 0) {
401
401
  return memberTypeExpression(memberType);
402
402
  }
403
+ const memberTypeExpression_ = memberTypeExpression(memberType);
404
+ if (memberTypeExpression_ === expression) {
405
+ return expression;
406
+ }
403
407
  return `(${memberType.discriminatorValues
404
408
  .map((value) => `${this.discriminatorVariable(variables.value)} === "${value}"`)
405
- .join(" || ")}) ? ${memberTypeExpression(memberType)} : ${expression}`;
409
+ .join(" || ")}) ? ${memberTypeExpression_} : ${expression}`;
406
410
  }, "");
407
411
  }
408
412
  }
@@ -183,7 +183,7 @@ export class ShaclProperty extends Property {
183
183
  }
184
184
  toRdfStatements({ variables, }) {
185
185
  return [
186
- `${variables.resource}.add(${this.predicate}, ${this.type.toRdfExpression({
186
+ `${variables.resource}.add(${this.predicate}, ...${this.type.toRdfExpression({
187
187
  variables: { ...variables, predicate: this.predicate },
188
188
  })});`,
189
189
  ];
@@ -71,6 +71,12 @@ function propertiesFromRdfFunctionDeclaration() {
71
71
  this.fromRdfType.ifJust((fromRdfType) => {
72
72
  const fromRdfTypeVariable = this.fromRdfTypeVariable.unsafeCoerce();
73
73
  const predicate = rdfjsTermExpression(rdf.type);
74
+ // Check the expected type and its known subtypes
75
+ const cases = new Set();
76
+ cases.add(fromRdfType.value);
77
+ for (const descendantFromRdfType of this.descendantFromRdfTypes) {
78
+ cases.add(descendantFromRdfType.value);
79
+ }
74
80
  statements.push(`\
75
81
  if (!${variables.ignoreRdfType}) {
76
82
  const ${syntheticNamePrefix}rdfTypeCheck: purify.Either<Error, true> = ${variables.resource}.value(${predicate})
@@ -78,7 +84,7 @@ if (!${variables.ignoreRdfType}) {
78
84
  .chain((actualRdfType) => {
79
85
  // Check the expected type and its known subtypes
80
86
  switch (actualRdfType.value) {
81
- ${[`case "${fromRdfType.value}":`].concat(this.descendantFromRdfTypes.map((descendantFromRdfType) => `case "${descendantFromRdfType.value}":`)).join("\n")}
87
+ ${[...cases].map((fromRdfType) => `case "${fromRdfType}":`).join("\n")}
82
88
  return purify.Either.of(true);
83
89
  }
84
90
 
@@ -1,6 +1,4 @@
1
- import type * as rdfjs from "@rdfjs/types";
2
- import * as purify from "purify-ts";
3
- import * as rdfjsResource from "rdfjs-resource";
1
+ import { purify, type rdfjs, rdfjsResource } from "@shaclmate/runtime";
4
2
  import { PropertyPath } from "./PropertyPath.js";
5
3
  export declare namespace $RdfVocabularies {
6
4
  namespace rdf {
@@ -60,14 +58,14 @@ export declare namespace BaseShaclCoreShapeStatic {
60
58
  function $fromRdf(resource: rdfjsResource.Resource, options?: {
61
59
  [_index: string]: any;
62
60
  ignoreRdfType?: boolean;
63
- languageIn?: readonly string[];
64
61
  objectSet?: $ObjectSet;
62
+ preferredLanguages?: readonly string[];
65
63
  }): purify.Either<Error, BaseShaclCoreShape>;
66
- function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, languageIn: $languageIn, objectSet: $objectSet, resource: $resource, ...$context }: {
64
+ function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, objectSet: $objectSet, preferredLanguages: $preferredLanguages, resource: $resource, ...$context }: {
67
65
  [_index: string]: any;
68
66
  ignoreRdfType: boolean;
69
- languageIn?: readonly string[];
70
67
  objectSet: $ObjectSet;
68
+ preferredLanguages?: readonly string[];
71
69
  resource: rdfjsResource.Resource;
72
70
  }): purify.Either<Error, {
73
71
  $identifier: rdfjs.BlankNode | rdfjs.NamedNode;
@@ -198,14 +196,14 @@ export declare namespace ShaclCorePropertyShapeStatic {
198
196
  function $fromRdf(resource: rdfjsResource.Resource, options?: {
199
197
  [_index: string]: any;
200
198
  ignoreRdfType?: boolean;
201
- languageIn?: readonly string[];
202
199
  objectSet?: $ObjectSet;
200
+ preferredLanguages?: readonly string[];
203
201
  }): purify.Either<Error, ShaclCorePropertyShape>;
204
- function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, languageIn: $languageIn, objectSet: $objectSet, resource: $resource, ...$context }: {
202
+ function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, objectSet: $objectSet, preferredLanguages: $preferredLanguages, resource: $resource, ...$context }: {
205
203
  [_index: string]: any;
206
204
  ignoreRdfType: boolean;
207
- languageIn?: readonly string[];
208
205
  objectSet: $ObjectSet;
206
+ preferredLanguages?: readonly string[];
209
207
  resource: rdfjsResource.Resource;
210
208
  }): purify.Either<Error, {
211
209
  $identifier: rdfjs.BlankNode | rdfjs.NamedNode;
@@ -339,14 +337,14 @@ export declare namespace ShaclmatePropertyShape {
339
337
  function $fromRdf(resource: rdfjsResource.Resource, options?: {
340
338
  [_index: string]: any;
341
339
  ignoreRdfType?: boolean;
342
- languageIn?: readonly string[];
343
340
  objectSet?: $ObjectSet;
341
+ preferredLanguages?: readonly string[];
344
342
  }): purify.Either<Error, ShaclmatePropertyShape>;
345
- function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, languageIn: $languageIn, objectSet: $objectSet, resource: $resource, ...$context }: {
343
+ function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, objectSet: $objectSet, preferredLanguages: $preferredLanguages, resource: $resource, ...$context }: {
346
344
  [_index: string]: any;
347
345
  ignoreRdfType: boolean;
348
- languageIn?: readonly string[];
349
346
  objectSet: $ObjectSet;
347
+ preferredLanguages?: readonly string[];
350
348
  resource: rdfjsResource.Resource;
351
349
  }): purify.Either<Error, {
352
350
  $identifier: rdfjs.BlankNode | rdfjs.NamedNode;
@@ -496,14 +494,14 @@ export declare namespace OwlOntologyStatic {
496
494
  function $fromRdf(resource: rdfjsResource.Resource, options?: {
497
495
  [_index: string]: any;
498
496
  ignoreRdfType?: boolean;
499
- languageIn?: readonly string[];
500
497
  objectSet?: $ObjectSet;
498
+ preferredLanguages?: readonly string[];
501
499
  }): purify.Either<Error, OwlOntology>;
502
- function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, languageIn: $languageIn, objectSet: $objectSet, resource: $resource, ...$context }: {
500
+ function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, objectSet: $objectSet, preferredLanguages: $preferredLanguages, resource: $resource, ...$context }: {
503
501
  [_index: string]: any;
504
502
  ignoreRdfType: boolean;
505
- languageIn?: readonly string[];
506
503
  objectSet: $ObjectSet;
504
+ preferredLanguages?: readonly string[];
507
505
  resource: rdfjsResource.Resource;
508
506
  }): purify.Either<Error, {
509
507
  $identifier: rdfjs.BlankNode | rdfjs.NamedNode;
@@ -536,14 +534,14 @@ export declare namespace ShaclmateOntology {
536
534
  function $fromRdf(resource: rdfjsResource.Resource, options?: {
537
535
  [_index: string]: any;
538
536
  ignoreRdfType?: boolean;
539
- languageIn?: readonly string[];
540
537
  objectSet?: $ObjectSet;
538
+ preferredLanguages?: readonly string[];
541
539
  }): purify.Either<Error, ShaclmateOntology>;
542
- function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, languageIn: $languageIn, objectSet: $objectSet, resource: $resource, ...$context }: {
540
+ function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, objectSet: $objectSet, preferredLanguages: $preferredLanguages, resource: $resource, ...$context }: {
543
541
  [_index: string]: any;
544
542
  ignoreRdfType: boolean;
545
- languageIn?: readonly string[];
546
543
  objectSet: $ObjectSet;
544
+ preferredLanguages?: readonly string[];
547
545
  resource: rdfjsResource.Resource;
548
546
  }): purify.Either<Error, {
549
547
  $identifier: rdfjs.BlankNode | rdfjs.NamedNode;
@@ -590,14 +588,14 @@ export declare namespace ShaclCoreNodeShapeStatic {
590
588
  function $fromRdf(resource: rdfjsResource.Resource, options?: {
591
589
  [_index: string]: any;
592
590
  ignoreRdfType?: boolean;
593
- languageIn?: readonly string[];
594
591
  objectSet?: $ObjectSet;
592
+ preferredLanguages?: readonly string[];
595
593
  }): purify.Either<Error, ShaclCoreNodeShape>;
596
- function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, languageIn: $languageIn, objectSet: $objectSet, resource: $resource, ...$context }: {
594
+ function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, objectSet: $objectSet, preferredLanguages: $preferredLanguages, resource: $resource, ...$context }: {
597
595
  [_index: string]: any;
598
596
  ignoreRdfType: boolean;
599
- languageIn?: readonly string[];
600
597
  objectSet: $ObjectSet;
598
+ preferredLanguages?: readonly string[];
601
599
  resource: rdfjsResource.Resource;
602
600
  }): purify.Either<Error, {
603
601
  $identifier: rdfjs.BlankNode | rdfjs.NamedNode;
@@ -722,14 +720,14 @@ export declare namespace ShaclmateNodeShape {
722
720
  function $fromRdf(resource: rdfjsResource.Resource, options?: {
723
721
  [_index: string]: any;
724
722
  ignoreRdfType?: boolean;
725
- languageIn?: readonly string[];
726
723
  objectSet?: $ObjectSet;
724
+ preferredLanguages?: readonly string[];
727
725
  }): purify.Either<Error, ShaclmateNodeShape>;
728
- function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, languageIn: $languageIn, objectSet: $objectSet, resource: $resource, ...$context }: {
726
+ function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, objectSet: $objectSet, preferredLanguages: $preferredLanguages, resource: $resource, ...$context }: {
729
727
  [_index: string]: any;
730
728
  ignoreRdfType: boolean;
731
- languageIn?: readonly string[];
732
729
  objectSet: $ObjectSet;
730
+ preferredLanguages?: readonly string[];
733
731
  resource: rdfjsResource.Resource;
734
732
  }): purify.Either<Error, {
735
733
  $identifier: rdfjs.BlankNode | rdfjs.NamedNode;
@@ -896,14 +894,14 @@ export declare namespace ShaclCorePropertyGroup {
896
894
  function $fromRdf(resource: rdfjsResource.Resource, options?: {
897
895
  [_index: string]: any;
898
896
  ignoreRdfType?: boolean;
899
- languageIn?: readonly string[];
900
897
  objectSet?: $ObjectSet;
898
+ preferredLanguages?: readonly string[];
901
899
  }): purify.Either<Error, ShaclCorePropertyGroup>;
902
- function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, languageIn: $languageIn, objectSet: $objectSet, resource: $resource, ...$context }: {
900
+ function $propertiesFromRdf({ ignoreRdfType: $ignoreRdfType, objectSet: $objectSet, preferredLanguages: $preferredLanguages, resource: $resource, ...$context }: {
903
901
  [_index: string]: any;
904
902
  ignoreRdfType: boolean;
905
- languageIn?: readonly string[];
906
903
  objectSet: $ObjectSet;
904
+ preferredLanguages?: readonly string[];
907
905
  resource: rdfjsResource.Resource;
908
906
  }): purify.Either<Error, {
909
907
  $identifier: rdfjs.BlankNode | rdfjs.NamedNode;
@@ -930,8 +928,8 @@ export declare namespace ShaclCoreShape {
930
928
  function $fromRdf(resource: rdfjsResource.Resource, options?: {
931
929
  [_index: string]: any;
932
930
  ignoreRdfType?: boolean;
933
- languageIn?: readonly string[];
934
931
  objectSet?: $ObjectSet;
932
+ preferredLanguages?: readonly string[];
935
933
  }): purify.Either<Error, ShaclCoreShape>;
936
934
  type $Identifier = rdfjs.BlankNode | rdfjs.NamedNode;
937
935
  namespace $Identifier {
@@ -949,8 +947,8 @@ export declare namespace ShaclmateShape {
949
947
  function $fromRdf(resource: rdfjsResource.Resource, options?: {
950
948
  [_index: string]: any;
951
949
  ignoreRdfType?: boolean;
952
- languageIn?: readonly string[];
953
950
  objectSet?: $ObjectSet;
951
+ preferredLanguages?: readonly string[];
954
952
  }): purify.Either<Error, ShaclmateShape>;
955
953
  type $Identifier = rdfjs.BlankNode | rdfjs.NamedNode;
956
954
  namespace $Identifier {
@@ -1016,6 +1014,45 @@ export declare namespace $ObjectSet {
1016
1014
  readonly type: "triple-objects";
1017
1015
  };
1018
1016
  }
1017
+ export declare abstract class $ForwardingObjectSet implements $ObjectSet {
1018
+ protected abstract get $delegate(): $ObjectSet;
1019
+ owlOntology(identifier: OwlOntologyStatic.$Identifier): Promise<purify.Either<Error, OwlOntology>>;
1020
+ owlOntologyIdentifiers(query?: $ObjectSet.Query<OwlOntologyStatic.$Identifier>): Promise<purify.Either<Error, readonly OwlOntologyStatic.$Identifier[]>>;
1021
+ owlOntologies(query?: $ObjectSet.Query<OwlOntologyStatic.$Identifier>): Promise<purify.Either<Error, readonly OwlOntology[]>>;
1022
+ owlOntologiesCount(query?: Pick<$ObjectSet.Query<OwlOntologyStatic.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
1023
+ shaclCoreNodeShape(identifier: ShaclCoreNodeShapeStatic.$Identifier): Promise<purify.Either<Error, ShaclCoreNodeShape>>;
1024
+ shaclCoreNodeShapeIdentifiers(query?: $ObjectSet.Query<ShaclCoreNodeShapeStatic.$Identifier>): Promise<purify.Either<Error, readonly ShaclCoreNodeShapeStatic.$Identifier[]>>;
1025
+ shaclCoreNodeShapes(query?: $ObjectSet.Query<ShaclCoreNodeShapeStatic.$Identifier>): Promise<purify.Either<Error, readonly ShaclCoreNodeShape[]>>;
1026
+ shaclCoreNodeShapesCount(query?: Pick<$ObjectSet.Query<ShaclCoreNodeShapeStatic.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
1027
+ shaclCorePropertyGroup(identifier: ShaclCorePropertyGroup.$Identifier): Promise<purify.Either<Error, ShaclCorePropertyGroup>>;
1028
+ shaclCorePropertyGroupIdentifiers(query?: $ObjectSet.Query<ShaclCorePropertyGroup.$Identifier>): Promise<purify.Either<Error, readonly ShaclCorePropertyGroup.$Identifier[]>>;
1029
+ shaclCorePropertyGroups(query?: $ObjectSet.Query<ShaclCorePropertyGroup.$Identifier>): Promise<purify.Either<Error, readonly ShaclCorePropertyGroup[]>>;
1030
+ shaclCorePropertyGroupsCount(query?: Pick<$ObjectSet.Query<ShaclCorePropertyGroup.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
1031
+ shaclCorePropertyShape(identifier: ShaclCorePropertyShapeStatic.$Identifier): Promise<purify.Either<Error, ShaclCorePropertyShape>>;
1032
+ shaclCorePropertyShapeIdentifiers(query?: $ObjectSet.Query<ShaclCorePropertyShapeStatic.$Identifier>): Promise<purify.Either<Error, readonly ShaclCorePropertyShapeStatic.$Identifier[]>>;
1033
+ shaclCorePropertyShapes(query?: $ObjectSet.Query<ShaclCorePropertyShapeStatic.$Identifier>): Promise<purify.Either<Error, readonly ShaclCorePropertyShape[]>>;
1034
+ shaclCorePropertyShapesCount(query?: Pick<$ObjectSet.Query<ShaclCorePropertyShapeStatic.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
1035
+ shaclmateNodeShape(identifier: ShaclmateNodeShape.$Identifier): Promise<purify.Either<Error, ShaclmateNodeShape>>;
1036
+ shaclmateNodeShapeIdentifiers(query?: $ObjectSet.Query<ShaclmateNodeShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclmateNodeShape.$Identifier[]>>;
1037
+ shaclmateNodeShapes(query?: $ObjectSet.Query<ShaclmateNodeShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclmateNodeShape[]>>;
1038
+ shaclmateNodeShapesCount(query?: Pick<$ObjectSet.Query<ShaclmateNodeShape.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
1039
+ shaclmateOntology(identifier: ShaclmateOntology.$Identifier): Promise<purify.Either<Error, ShaclmateOntology>>;
1040
+ shaclmateOntologyIdentifiers(query?: $ObjectSet.Query<ShaclmateOntology.$Identifier>): Promise<purify.Either<Error, readonly ShaclmateOntology.$Identifier[]>>;
1041
+ shaclmateOntologies(query?: $ObjectSet.Query<ShaclmateOntology.$Identifier>): Promise<purify.Either<Error, readonly ShaclmateOntology[]>>;
1042
+ shaclmateOntologiesCount(query?: Pick<$ObjectSet.Query<ShaclmateOntology.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
1043
+ shaclmatePropertyShape(identifier: ShaclmatePropertyShape.$Identifier): Promise<purify.Either<Error, ShaclmatePropertyShape>>;
1044
+ shaclmatePropertyShapeIdentifiers(query?: $ObjectSet.Query<ShaclmatePropertyShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclmatePropertyShape.$Identifier[]>>;
1045
+ shaclmatePropertyShapes(query?: $ObjectSet.Query<ShaclmatePropertyShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclmatePropertyShape[]>>;
1046
+ shaclmatePropertyShapesCount(query?: Pick<$ObjectSet.Query<ShaclmatePropertyShape.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
1047
+ shaclCoreShape(identifier: ShaclCoreShape.$Identifier): Promise<purify.Either<Error, ShaclCoreShape>>;
1048
+ shaclCoreShapeIdentifiers(query?: $ObjectSet.Query<ShaclCoreShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCoreShape.$Identifier[]>>;
1049
+ shaclCoreShapes(query?: $ObjectSet.Query<ShaclCoreShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclCoreShape[]>>;
1050
+ shaclCoreShapesCount(query?: Pick<$ObjectSet.Query<ShaclCoreShape.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
1051
+ shaclmateShape(identifier: ShaclmateShape.$Identifier): Promise<purify.Either<Error, ShaclmateShape>>;
1052
+ shaclmateShapeIdentifiers(query?: $ObjectSet.Query<ShaclmateShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclmateShape.$Identifier[]>>;
1053
+ shaclmateShapes(query?: $ObjectSet.Query<ShaclmateShape.$Identifier>): Promise<purify.Either<Error, readonly ShaclmateShape[]>>;
1054
+ shaclmateShapesCount(query?: Pick<$ObjectSet.Query<ShaclmateShape.$Identifier>, "where">): Promise<purify.Either<Error, number>>;
1055
+ }
1019
1056
  export declare class $RdfjsDatasetObjectSet implements $ObjectSet {
1020
1057
  readonly resourceSet: rdfjsResource.ResourceSet;
1021
1058
  constructor({ dataset }: {
@@ -1099,7 +1136,7 @@ export declare class $RdfjsDatasetObjectSet implements $ObjectSet {
1099
1136
  $fromRdf: (resource: rdfjsResource.Resource, options: {
1100
1137
  objectSet: $ObjectSet;
1101
1138
  }) => purify.Either<Error, ObjectT>;
1102
- $fromRdfType?: rdfjs.NamedNode;
1139
+ $fromRdfTypes: readonly rdfjs.NamedNode[];
1103
1140
  }, query?: $ObjectSet.Query<ObjectIdentifierT>): purify.Either<Error, readonly ObjectIdentifierT[]>;
1104
1141
  protected $objectsSync<ObjectT extends {
1105
1142
  readonly $identifier: ObjectIdentifierT;
@@ -1107,7 +1144,7 @@ export declare class $RdfjsDatasetObjectSet implements $ObjectSet {
1107
1144
  $fromRdf: (resource: rdfjsResource.Resource, options: {
1108
1145
  objectSet: $ObjectSet;
1109
1146
  }) => purify.Either<Error, ObjectT>;
1110
- $fromRdfType?: rdfjs.NamedNode;
1147
+ $fromRdfTypes: readonly rdfjs.NamedNode[];
1111
1148
  }, query?: $ObjectSet.Query<ObjectIdentifierT>): purify.Either<Error, readonly ObjectT[]>;
1112
1149
  protected $objectsCountSync<ObjectT extends {
1113
1150
  readonly $identifier: ObjectIdentifierT;
@@ -1115,7 +1152,7 @@ export declare class $RdfjsDatasetObjectSet implements $ObjectSet {
1115
1152
  $fromRdf: (resource: rdfjsResource.Resource, options: {
1116
1153
  objectSet: $ObjectSet;
1117
1154
  }) => purify.Either<Error, ObjectT>;
1118
- $fromRdfType?: rdfjs.NamedNode;
1155
+ $fromRdfTypes: readonly rdfjs.NamedNode[];
1119
1156
  }, query?: $ObjectSet.Query<ObjectIdentifierT>): purify.Either<Error, number>;
1120
1157
  protected $objectUnionIdentifiersSync<ObjectT extends {
1121
1158
  readonly $identifier: ObjectIdentifierT;
@@ -1123,7 +1160,7 @@ export declare class $RdfjsDatasetObjectSet implements $ObjectSet {
1123
1160
  $fromRdf: (resource: rdfjsResource.Resource, options: {
1124
1161
  objectSet: $ObjectSet;
1125
1162
  }) => purify.Either<Error, ObjectT>;
1126
- $fromRdfType?: rdfjs.NamedNode;
1163
+ $fromRdfTypes: readonly rdfjs.NamedNode[];
1127
1164
  }[], query?: $ObjectSet.Query<ObjectIdentifierT>): purify.Either<Error, readonly ObjectIdentifierT[]>;
1128
1165
  protected $objectUnionsSync<ObjectT extends {
1129
1166
  readonly $identifier: ObjectIdentifierT;
@@ -1131,7 +1168,7 @@ export declare class $RdfjsDatasetObjectSet implements $ObjectSet {
1131
1168
  $fromRdf: (resource: rdfjsResource.Resource, options: {
1132
1169
  objectSet: $ObjectSet;
1133
1170
  }) => purify.Either<Error, ObjectT>;
1134
- $fromRdfType?: rdfjs.NamedNode;
1171
+ $fromRdfTypes: readonly rdfjs.NamedNode[];
1135
1172
  }[], query?: $ObjectSet.Query<ObjectIdentifierT>): purify.Either<Error, readonly ObjectT[]>;
1136
1173
  protected $objectUnionsCountSync<ObjectT extends {
1137
1174
  readonly $identifier: ObjectIdentifierT;
@@ -1139,7 +1176,7 @@ export declare class $RdfjsDatasetObjectSet implements $ObjectSet {
1139
1176
  $fromRdf: (resource: rdfjsResource.Resource, options: {
1140
1177
  objectSet: $ObjectSet;
1141
1178
  }) => purify.Either<Error, ObjectT>;
1142
- $fromRdfType?: rdfjs.NamedNode;
1179
+ $fromRdfTypes: readonly rdfjs.NamedNode[];
1143
1180
  }[], query?: $ObjectSet.Query<ObjectIdentifierT>): purify.Either<Error, number>;
1144
1181
  }
1145
1182
  export {};