@shaclmate/compiler 4.0.22 → 4.0.24

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 (87) hide show
  1. package/dist/ShapesGraphToAstTransformer.js +16 -16
  2. package/dist/_ShapesGraphToAstTransformer/shapeAstTypeName.js +6 -5
  3. package/dist/_ShapesGraphToAstTransformer/shapeNodeKinds.js +1 -1
  4. package/dist/_ShapesGraphToAstTransformer/shapeOntology.js +4 -3
  5. package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstObjectTypeProperty.js +12 -11
  6. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.js +3 -3
  7. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.js +6 -9
  8. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstObjectType.js +11 -12
  9. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstTermType.js +1 -1
  10. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.js +3 -3
  11. package/dist/ast/AbstractLazyObjectType.d.ts +0 -2
  12. package/dist/ast/ListType.d.ts +1 -8
  13. package/dist/ast/ListType.js +1 -6
  14. package/dist/ast/ObjectType.d.ts +7 -9
  15. package/dist/ast/ObjectType.js +7 -8
  16. package/dist/generators/ts/AbstractLazyObjectType.d.ts +1 -0
  17. package/dist/generators/ts/AbstractLazyObjectType.js +7 -0
  18. package/dist/generators/ts/AbstractNamedUnionType.d.ts +3 -2
  19. package/dist/generators/ts/AbstractNamedUnionType.js +23 -9
  20. package/dist/generators/ts/AbstractTermType.d.ts +1 -0
  21. package/dist/generators/ts/AbstractTermType.js +3 -0
  22. package/dist/generators/ts/AbstractType.d.ts +12 -4
  23. package/dist/generators/ts/AbstractUnionType.d.ts +1 -0
  24. package/dist/generators/ts/AbstractUnionType.js +11 -1
  25. package/dist/generators/ts/AnonymousUnionType.d.ts +2 -1
  26. package/dist/generators/ts/AnonymousUnionType.js +6 -3
  27. package/dist/generators/ts/DefaultValueType.d.ts +2 -1
  28. package/dist/generators/ts/DefaultValueType.js +6 -3
  29. package/dist/generators/ts/ListType.d.ts +2 -5
  30. package/dist/generators/ts/ListType.js +11 -27
  31. package/dist/generators/ts/NamedObjectType.d.ts +2 -9
  32. package/dist/generators/ts/NamedObjectType.js +12 -29
  33. package/dist/generators/ts/NamedObjectUnionType.js +1 -1
  34. package/dist/generators/ts/OptionType.d.ts +1 -0
  35. package/dist/generators/ts/OptionType.js +3 -0
  36. package/dist/generators/ts/SetType.d.ts +1 -0
  37. package/dist/generators/ts/SetType.js +3 -0
  38. package/dist/generators/ts/TypeFactory.js +9 -46
  39. package/dist/generators/ts/_NamedObjectType/AbstractProperty.d.ts +23 -15
  40. package/dist/generators/ts/_NamedObjectType/AbstractProperty.js +6 -0
  41. package/dist/generators/ts/_NamedObjectType/DiscriminantProperty.d.ts +3 -4
  42. package/dist/generators/ts/_NamedObjectType/DiscriminantProperty.js +26 -11
  43. package/dist/generators/ts/_NamedObjectType/IdentifierProperty.d.ts +5 -14
  44. package/dist/generators/ts/_NamedObjectType/IdentifierProperty.js +34 -201
  45. package/dist/generators/ts/_NamedObjectType/NamedObjectType_classDeclaration.js +3 -11
  46. package/dist/generators/ts/_NamedObjectType/NamedObjectType_equalsFunctionOrMethodDeclaration.js +10 -9
  47. package/dist/generators/ts/_NamedObjectType/NamedObjectType_filterFunctionDeclaration.js +4 -4
  48. package/dist/generators/ts/_NamedObjectType/NamedObjectType_focusSparqlConstructTriplesFunctionDeclaration.js +1 -1
  49. package/dist/generators/ts/_NamedObjectType/NamedObjectType_focusSparqlWherePatternsFunctionDeclaration.js +1 -1
  50. package/dist/generators/ts/_NamedObjectType/NamedObjectType_fromJsonFunctionDeclaration.js +1 -5
  51. package/dist/generators/ts/_NamedObjectType/NamedObjectType_fromRdfResourceFunctionDeclaration.js +5 -10
  52. package/dist/generators/ts/_NamedObjectType/NamedObjectType_hashFunctionOrMethodDeclarations.js +13 -9
  53. package/dist/generators/ts/_NamedObjectType/NamedObjectType_interfaceDeclaration.js +1 -1
  54. package/dist/generators/ts/_NamedObjectType/NamedObjectType_jsonSchemaFunctionDeclaration.js +11 -2
  55. package/dist/generators/ts/_NamedObjectType/NamedObjectType_jsonTypeAliasDeclaration.js +2 -2
  56. package/dist/generators/ts/_NamedObjectType/NamedObjectType_jsonUiSchemaFunctionDeclaration.js +1 -1
  57. package/dist/generators/ts/_NamedObjectType/NamedObjectType_schemaVariableStatement.js +1 -1
  58. package/dist/generators/ts/_NamedObjectType/NamedObjectType_toJsonFunctionOrMethodDeclaration.js +8 -4
  59. package/dist/generators/ts/_NamedObjectType/NamedObjectType_toRdfResourceFunctionOrMethodDeclaration.js +4 -2
  60. package/dist/generators/ts/_NamedObjectType/NamedObjectType_toStringFunctionOrMethodDeclaration.d.ts +4 -0
  61. package/dist/generators/ts/_NamedObjectType/NamedObjectType_toStringFunctionOrMethodDeclaration.js +66 -0
  62. package/dist/generators/ts/_NamedObjectType/Property.d.ts +1 -2
  63. package/dist/generators/ts/_NamedObjectType/ShaclProperty.d.ts +6 -5
  64. package/dist/generators/ts/_NamedObjectType/ShaclProperty.js +26 -20
  65. package/dist/generators/ts/_snippets/snippets_LazyObject.js +2 -2
  66. package/dist/generators/ts/_snippets/snippets_LazyObjectOption.js +2 -2
  67. package/dist/generators/ts/_snippets/snippets_LazyObjectSet.js +2 -2
  68. package/dist/generators/ts/_snippets/snippets_PropertyPath.js +5 -3
  69. package/dist/generators/ts/_snippets/snippets_compactRecord.d.ts +2 -0
  70. package/dist/generators/ts/_snippets/snippets_compactRecord.js +16 -0
  71. package/dist/generators/ts/_snippets/{parseIri.d.ts → snippets_parseIri.d.ts} +1 -1
  72. package/dist/generators/ts/_snippets/{parseIri.js → snippets_parseIri.js} +1 -1
  73. package/dist/generators/ts/imports.d.ts +1 -3
  74. package/dist/generators/ts/imports.js +1 -3
  75. package/dist/generators/ts/rdfjsDatasetObjectSetClassDeclaration.js +2 -2
  76. package/dist/generators/ts/snippets.d.ts +1 -0
  77. package/dist/generators/ts/snippets.js +3 -1
  78. package/dist/generators/ts/sparqlObjectSetClassDeclaration.js +1 -1
  79. package/dist/input/generated.d.ts +104 -50
  80. package/dist/input/generated.js +284 -171
  81. package/package.json +2 -2
  82. package/dist/_ShapesGraphToAstTransformer/nodeShapeIdentifierMintingStrategy.d.ts +0 -6
  83. package/dist/_ShapesGraphToAstTransformer/nodeShapeIdentifierMintingStrategy.js +0 -32
  84. package/dist/enums/IdentifierMintingStrategy.d.ts +0 -9
  85. package/dist/enums/IdentifierMintingStrategy.js +0 -18
  86. package/dist/generators/ts/_NamedObjectType/IdentifierPrefixProperty.d.ts +0 -32
  87. package/dist/generators/ts/_NamedObjectType/IdentifierPrefixProperty.js +0 -89
@@ -1,5 +1,5 @@
1
1
  import type { BlankNode, DatasetCore, Literal, NamedNode, Quad_Graph, Variable } from "@rdfjs/types";
2
- import { PropertyPath as RdfjsResourcePropertyPath, Resource, ResourceSet } from "@rdfx/resource";
2
+ import { PropertyPath as RdfxResourcePropertyPath, Resource, ResourceSet } from "@rdfx/resource";
3
3
  import { NTriplesTerm } from "@rdfx/string";
4
4
  import { Either, Maybe } from "purify-ts";
5
5
  interface $BooleanFilter {
@@ -9,6 +9,43 @@ type $CollectionFilter<ItemFilterT> = ItemFilterT & {
9
9
  readonly $maxCount?: number;
10
10
  readonly $minCount?: number;
11
11
  };
12
+ export type $EqualsResult = Either<$EqualsResult.Unequal, true>;
13
+ export declare namespace $EqualsResult {
14
+ const Equal: $EqualsResult;
15
+ function fromBooleanEqualsResult(left: any, right: any, equalsResult: boolean | $EqualsResult): $EqualsResult;
16
+ type Unequal = {
17
+ readonly left: {
18
+ readonly array: readonly any[];
19
+ readonly element: any;
20
+ readonly elementIndex: number;
21
+ };
22
+ readonly right: {
23
+ readonly array: readonly any[];
24
+ readonly unequals: readonly Unequal[];
25
+ };
26
+ readonly type: "array-element";
27
+ } | {
28
+ readonly left: readonly any[];
29
+ readonly right: readonly any[];
30
+ readonly type: "array-length";
31
+ } | {
32
+ readonly left: any;
33
+ readonly right: any;
34
+ readonly type: "boolean";
35
+ } | {
36
+ readonly right: any;
37
+ readonly type: "left-null";
38
+ } | {
39
+ readonly left: any;
40
+ readonly right: any;
41
+ readonly propertyName: string;
42
+ readonly propertyValuesUnequal: Unequal;
43
+ readonly type: "property";
44
+ } | {
45
+ readonly left: any;
46
+ readonly type: "right-null";
47
+ };
48
+ }
12
49
  export type $FromRdfResourceFunction<T> = (resource: Resource, options?: {
13
50
  context?: unknown;
14
51
  graph?: Exclude<Quad_Graph, Variable>;
@@ -50,7 +87,7 @@ type $PropertiesFromRdfResourceFunction<T> = (resource: Resource, options: {
50
87
  objectSet: $ObjectSet;
51
88
  preferredLanguages?: readonly string[];
52
89
  }) => Either<Error, T>;
53
- export type $PropertyPath = RdfjsResourcePropertyPath;
90
+ export type $PropertyPath = RdfxResourcePropertyPath;
54
91
  export declare namespace $PropertyPath {
55
92
  type $Filter = object;
56
93
  function $filter(_filter: $Filter, _value: $PropertyPath): boolean;
@@ -58,6 +95,7 @@ export declare namespace $PropertyPath {
58
95
  const $fromRdfResourceValues: $FromRdfResourceValuesFunction<$PropertyPath>;
59
96
  const $schema: Readonly<object>;
60
97
  const $toRdfResource: $ToRdfResourceFunction<$PropertyPath>;
98
+ const $toString: typeof RdfxResourcePropertyPath.toString;
61
99
  }
62
100
  export interface $ShaclPropertySchema<TypeSchemaT = object> {
63
101
  readonly kind: "Shacl";
@@ -88,7 +126,7 @@ export type $ToRdfResourceValuesFunction<ValueT, ReturnT extends BlankNode | Lit
88
126
  resourceSet: ResourceSet;
89
127
  }) => ReturnT[];
90
128
  export interface PropertyShape {
91
- readonly $identifier: PropertyShape.$Identifier;
129
+ readonly $identifier: () => PropertyShape.$Identifier;
92
130
  readonly $type: "PropertyShape";
93
131
  readonly and: Maybe<readonly (BlankNode | NamedNode)[]>;
94
132
  readonly classes: readonly NamedNode[];
@@ -96,7 +134,10 @@ export interface PropertyShape {
96
134
  readonly datatype: Maybe<NamedNode>;
97
135
  readonly deactivated: Maybe<boolean>;
98
136
  readonly defaultValue: Maybe<NamedNode | Literal>;
99
- readonly description: Maybe<string>;
137
+ readonly description: Maybe<string> /**
138
+ * Whether to include this property in a toString()-type display, defaults to false
139
+ */;
140
+ readonly display: boolean;
100
141
  readonly flags: readonly string[];
101
142
  readonly groups: readonly (BlankNode | NamedNode)[];
102
143
  readonly hasValues: readonly (NamedNode | Literal)[];
@@ -129,7 +170,7 @@ export interface PropertyShape {
129
170
  }
130
171
  export declare namespace PropertyShape {
131
172
  function $create(parameters: {
132
- readonly $identifier?: (BlankNode | NamedNode) | string;
173
+ readonly $identifier?: (() => PropertyShape.$Identifier) | (BlankNode | NamedNode) | string;
133
174
  readonly and?: Maybe<readonly (BlankNode | NamedNode)[]> | readonly (BlankNode | NamedNode)[] | readonly string[];
134
175
  readonly classes?: readonly NamedNode[] | readonly string[];
135
176
  readonly comment?: Maybe<string> | string;
@@ -137,6 +178,7 @@ export declare namespace PropertyShape {
137
178
  readonly deactivated?: Maybe<boolean> | boolean;
138
179
  readonly defaultValue?: Maybe<NamedNode | Literal> | bigint | boolean | Date | number | string | (NamedNode | Literal);
139
180
  readonly description?: Maybe<string> | string;
181
+ readonly display?: boolean;
140
182
  readonly flags?: readonly string[];
141
183
  readonly groups?: readonly (BlankNode | NamedNode)[] | readonly string[];
142
184
  readonly hasValues?: readonly (NamedNode | Literal)[] | readonly bigint[] | readonly boolean[] | readonly number[] | readonly string[];
@@ -182,6 +224,7 @@ export declare namespace PropertyShape {
182
224
  readonly deactivated?: $MaybeFilter<$BooleanFilter>;
183
225
  readonly defaultValue?: $MaybeFilter<$TermFilter>;
184
226
  readonly description?: $MaybeFilter<$StringFilter>;
227
+ readonly display?: $BooleanFilter;
185
228
  readonly flags?: $CollectionFilter<$StringFilter>;
186
229
  readonly groups?: $CollectionFilter<$IdentifierFilter>;
187
230
  readonly hasValues?: $CollectionFilter<$TermFilter>;
@@ -226,6 +269,7 @@ export declare namespace PropertyShape {
226
269
  deactivated: Maybe<boolean>;
227
270
  defaultValue: Maybe<NamedNode | Literal>;
228
271
  description: Maybe<string>;
272
+ display: boolean;
229
273
  flags: readonly string[];
230
274
  groups: readonly (BlankNode | NamedNode)[];
231
275
  hasValues: readonly (NamedNode | Literal)[];
@@ -344,6 +388,17 @@ export declare namespace PropertyShape {
344
388
  };
345
389
  readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#description">;
346
390
  };
391
+ readonly display: {
392
+ readonly kind: "Shacl";
393
+ readonly type: () => {
394
+ kind: "DefaultValue";
395
+ item: () => {
396
+ kind: "Boolean";
397
+ };
398
+ defaultValue: import("@rdfx/data-factory/dist/Literal.js").Literal;
399
+ };
400
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#display">;
401
+ };
347
402
  readonly flags: {
348
403
  readonly kind: "Shacl";
349
404
  readonly type: () => {
@@ -646,16 +701,19 @@ export declare namespace PropertyShape {
646
701
  };
647
702
  };
648
703
  function $toRdfResource(_propertyShape: PropertyShape, options?: Parameters<$ToRdfResourceFunction<PropertyShape>>[1]): Resource;
704
+ function $propertiesToStrings(_propertyShape: PropertyShape): Record<string, string>;
705
+ function $toString(this: PropertyShape): string;
706
+ function $toString(_propertyShape: PropertyShape): string;
649
707
  }
650
708
  export interface PropertyGroup {
651
- readonly $identifier: PropertyGroup.$Identifier;
709
+ readonly $identifier: () => PropertyGroup.$Identifier;
652
710
  readonly $type: "PropertyGroup";
653
711
  readonly comment: Maybe<string>;
654
712
  readonly label: Maybe<string>;
655
713
  }
656
714
  export declare namespace PropertyGroup {
657
715
  function $create(parameters?: {
658
- readonly $identifier?: (BlankNode | NamedNode) | string;
716
+ readonly $identifier?: (() => PropertyGroup.$Identifier) | (BlankNode | NamedNode) | string;
659
717
  readonly comment?: Maybe<string> | string;
660
718
  readonly label?: Maybe<string> | string;
661
719
  }): PropertyGroup;
@@ -718,9 +776,12 @@ export declare namespace PropertyGroup {
718
776
  };
719
777
  };
720
778
  function $toRdfResource(_propertyGroup: PropertyGroup, options?: Parameters<$ToRdfResourceFunction<PropertyGroup>>[1]): Resource;
779
+ function $propertiesToStrings(_propertyGroup: PropertyGroup): Record<string, string>;
780
+ function $toString(this: PropertyGroup): string;
781
+ function $toString(_propertyGroup: PropertyGroup): string;
721
782
  }
722
783
  export interface Ontology {
723
- readonly $identifier: Ontology.$Identifier;
784
+ readonly $identifier: () => Ontology.$Identifier;
724
785
  readonly $type: "Ontology";
725
786
  readonly comment: Maybe<string>;
726
787
  readonly label: Maybe<string>;
@@ -731,7 +792,7 @@ export interface Ontology {
731
792
  }
732
793
  export declare namespace Ontology {
733
794
  function $create(parameters?: {
734
- readonly $identifier?: (BlankNode | NamedNode) | string;
795
+ readonly $identifier?: (() => Ontology.$Identifier) | (BlankNode | NamedNode) | string;
735
796
  readonly comment?: Maybe<string> | string;
736
797
  readonly label?: Maybe<string> | string;
737
798
  readonly tsFeatureExcludes?: readonly NamedNode<"http://purl.org/shaclmate/ontology#_TsFeatures_All" | "http://purl.org/shaclmate/ontology#_TsFeature_Create" | "http://purl.org/shaclmate/ontology#_TsFeatures_Default" | "http://purl.org/shaclmate/ontology#_TsFeature_Equals" | "http://purl.org/shaclmate/ontology#_TsFeature_Graphql" | "http://purl.org/shaclmate/ontology#_TsFeature_Hash" | "http://purl.org/shaclmate/ontology#_TsFeature_Json" | "http://purl.org/shaclmate/ontology#_TsFeatures_None" | "http://purl.org/shaclmate/ontology#_TsFeature_Rdf" | "http://purl.org/shaclmate/ontology#_TsFeature_Sparql">[] | readonly ("http://purl.org/shaclmate/ontology#_TsFeatures_All" | "http://purl.org/shaclmate/ontology#_TsFeature_Create" | "http://purl.org/shaclmate/ontology#_TsFeatures_Default" | "http://purl.org/shaclmate/ontology#_TsFeature_Equals" | "http://purl.org/shaclmate/ontology#_TsFeature_Graphql" | "http://purl.org/shaclmate/ontology#_TsFeature_Hash" | "http://purl.org/shaclmate/ontology#_TsFeature_Json" | "http://purl.org/shaclmate/ontology#_TsFeatures_None" | "http://purl.org/shaclmate/ontology#_TsFeature_Rdf" | "http://purl.org/shaclmate/ontology#_TsFeature_Sparql")[];
@@ -849,9 +910,12 @@ export declare namespace Ontology {
849
910
  };
850
911
  };
851
912
  function $toRdfResource(_ontology: Ontology, options?: Parameters<$ToRdfResourceFunction<Ontology>>[1]): Resource;
913
+ function $propertiesToStrings(_ontology: Ontology): Record<string, string>;
914
+ function $toString(this: Ontology): string;
915
+ function $toString(_ontology: Ontology): string;
852
916
  }
853
917
  export interface NodeShape {
854
- readonly $identifier: NodeShape.$Identifier;
918
+ readonly $identifier: () => NodeShape.$Identifier;
855
919
  readonly $type: "NodeShape";
856
920
  readonly abstract: Maybe<boolean>;
857
921
  readonly and: Maybe<readonly (BlankNode | NamedNode)[]>;
@@ -865,7 +929,6 @@ export interface NodeShape {
865
929
  readonly flags: readonly string[];
866
930
  readonly fromRdfType: Maybe<NamedNode>;
867
931
  readonly hasValues: readonly (NamedNode | Literal)[];
868
- readonly identifierMintingStrategy: Maybe<NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_BlankNode" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_SHA256" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_UUIDv4">>;
869
932
  readonly ignoredProperties: Maybe<readonly NamedNode[]>;
870
933
  readonly in_: Maybe<readonly (NamedNode | Literal)[]>;
871
934
  readonly isDefinedBy: Maybe<BlankNode | NamedNode>;
@@ -899,7 +962,7 @@ export interface NodeShape {
899
962
  }
900
963
  export declare namespace NodeShape {
901
964
  function $create(parameters?: {
902
- readonly $identifier?: (BlankNode | NamedNode) | string;
965
+ readonly $identifier?: (() => NodeShape.$Identifier) | (BlankNode | NamedNode) | string;
903
966
  readonly abstract?: Maybe<boolean> | boolean;
904
967
  readonly and?: Maybe<readonly (BlankNode | NamedNode)[]> | readonly (BlankNode | NamedNode)[] | readonly string[];
905
968
  readonly classes?: readonly NamedNode[] | readonly string[];
@@ -912,7 +975,6 @@ export declare namespace NodeShape {
912
975
  readonly flags?: readonly string[];
913
976
  readonly fromRdfType?: Maybe<NamedNode> | NamedNode | string;
914
977
  readonly hasValues?: readonly (NamedNode | Literal)[] | readonly bigint[] | readonly boolean[] | readonly number[] | readonly string[];
915
- readonly identifierMintingStrategy?: Maybe<NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_BlankNode" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_SHA256" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_UUIDv4">> | NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_BlankNode" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_SHA256" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_UUIDv4"> | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_BlankNode" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_SHA256" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_UUIDv4";
916
978
  readonly ignoredProperties?: Maybe<readonly NamedNode[]> | readonly NamedNode[] | readonly string[];
917
979
  readonly in_?: Maybe<readonly (NamedNode | Literal)[]> | readonly (NamedNode | Literal)[] | readonly bigint[] | readonly boolean[] | readonly number[] | readonly string[];
918
980
  readonly isDefinedBy?: Maybe<BlankNode | NamedNode> | (BlankNode | NamedNode) | string;
@@ -964,7 +1026,6 @@ export declare namespace NodeShape {
964
1026
  readonly flags?: $CollectionFilter<$StringFilter>;
965
1027
  readonly fromRdfType?: $MaybeFilter<$IriFilter>;
966
1028
  readonly hasValues?: $CollectionFilter<$TermFilter>;
967
- readonly identifierMintingStrategy?: $MaybeFilter<$IriFilter>;
968
1029
  readonly ignoredProperties?: $MaybeFilter<$CollectionFilter<$IriFilter>>;
969
1030
  readonly in_?: $MaybeFilter<$CollectionFilter<$TermFilter>>;
970
1031
  readonly isDefinedBy?: $MaybeFilter<$IdentifierFilter>;
@@ -1015,7 +1076,6 @@ export declare namespace NodeShape {
1015
1076
  flags: readonly string[];
1016
1077
  fromRdfType: Maybe<NamedNode>;
1017
1078
  hasValues: readonly (NamedNode | Literal)[];
1018
- identifierMintingStrategy: Maybe<NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_BlankNode" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_SHA256" | "http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_UUIDv4">>;
1019
1079
  ignoredProperties: Maybe<readonly NamedNode[]>;
1020
1080
  in_: Maybe<readonly (NamedNode | Literal)[]>;
1021
1081
  isDefinedBy: Maybe<BlankNode | NamedNode>;
@@ -1185,17 +1245,6 @@ export declare namespace NodeShape {
1185
1245
  };
1186
1246
  readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#hasValue">;
1187
1247
  };
1188
- readonly identifierMintingStrategy: {
1189
- readonly kind: "Shacl";
1190
- readonly type: () => {
1191
- kind: "Maybe";
1192
- item: () => {
1193
- kind: "Iri";
1194
- in: (import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_BlankNode"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_SHA256"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_UUIDv4">)[];
1195
- };
1196
- };
1197
- readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#identifierMintingStrategy">;
1198
- };
1199
1248
  readonly ignoredProperties: {
1200
1249
  readonly kind: "Shacl";
1201
1250
  readonly type: () => {
@@ -1518,6 +1567,9 @@ export declare namespace NodeShape {
1518
1567
  };
1519
1568
  };
1520
1569
  function $toRdfResource(_nodeShape: NodeShape, options?: Parameters<$ToRdfResourceFunction<NodeShape>>[1]): Resource;
1570
+ function $propertiesToStrings(_nodeShape: NodeShape): Record<string, string>;
1571
+ function $toString(this: NodeShape): string;
1572
+ function $toString(_nodeShape: NodeShape): string;
1521
1573
  }
1522
1574
  export type Shape = NodeShape | PropertyShape;
1523
1575
  export declare namespace Shape {
@@ -1679,17 +1731,6 @@ export declare namespace Shape {
1679
1731
  };
1680
1732
  readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#hasValue">;
1681
1733
  };
1682
- readonly identifierMintingStrategy: {
1683
- readonly kind: "Shacl";
1684
- readonly type: () => {
1685
- kind: "Maybe";
1686
- item: () => {
1687
- kind: "Iri";
1688
- in: (import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_BlankNode"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_SHA256"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_UUIDv4">)[];
1689
- };
1690
- };
1691
- readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#identifierMintingStrategy">;
1692
- };
1693
1734
  readonly ignoredProperties: {
1694
1735
  readonly kind: "Shacl";
1695
1736
  readonly type: () => {
@@ -2102,6 +2143,17 @@ export declare namespace Shape {
2102
2143
  };
2103
2144
  readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#description">;
2104
2145
  };
2146
+ readonly display: {
2147
+ readonly kind: "Shacl";
2148
+ readonly type: () => {
2149
+ kind: "DefaultValue";
2150
+ item: () => {
2151
+ kind: "Boolean";
2152
+ };
2153
+ defaultValue: import("@rdfx/data-factory/dist/Literal.js").Literal;
2154
+ };
2155
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#display">;
2156
+ };
2105
2157
  readonly flags: {
2106
2158
  readonly kind: "Shacl";
2107
2159
  readonly type: () => {
@@ -2702,6 +2754,7 @@ export declare namespace Shape {
2702
2754
  resource: Resource;
2703
2755
  resourceSet: ResourceSet;
2704
2756
  }) => (BlankNode | NamedNode)[];
2757
+ const $toString: (value: Shape) => string;
2705
2758
  function isShape(object: $Object): object is Shape;
2706
2759
  }
2707
2760
  export type $Object = NodeShape | Ontology | PropertyGroup | PropertyShape;
@@ -2866,17 +2919,6 @@ export declare namespace $Object {
2866
2919
  };
2867
2920
  readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#hasValue">;
2868
2921
  };
2869
- readonly identifierMintingStrategy: {
2870
- readonly kind: "Shacl";
2871
- readonly type: () => {
2872
- kind: "Maybe";
2873
- item: () => {
2874
- kind: "Iri";
2875
- in: (import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_BlankNode"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_SHA256"> | import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_UUIDv4">)[];
2876
- };
2877
- };
2878
- readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#identifierMintingStrategy">;
2879
- };
2880
2922
  readonly ignoredProperties: {
2881
2923
  readonly kind: "Shacl";
2882
2924
  readonly type: () => {
@@ -3412,6 +3454,17 @@ export declare namespace $Object {
3412
3454
  };
3413
3455
  readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#description">;
3414
3456
  };
3457
+ readonly display: {
3458
+ readonly kind: "Shacl";
3459
+ readonly type: () => {
3460
+ kind: "DefaultValue";
3461
+ item: () => {
3462
+ kind: "Boolean";
3463
+ };
3464
+ defaultValue: import("@rdfx/data-factory/dist/Literal.js").Literal;
3465
+ };
3466
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#display">;
3467
+ };
3415
3468
  readonly flags: {
3416
3469
  readonly kind: "Shacl";
3417
3470
  readonly type: () => {
@@ -3746,6 +3799,7 @@ export declare namespace $Object {
3746
3799
  resource: Resource;
3747
3800
  resourceSet: ResourceSet;
3748
3801
  }) => (BlankNode | NamedNode)[];
3802
+ const $toString: (value: $Object) => string;
3749
3803
  }
3750
3804
  export interface $ObjectSet {
3751
3805
  nodeShape(identifier: NodeShape.$Identifier, options?: {
@@ -3876,14 +3930,14 @@ export declare class $RdfjsDatasetObjectSet implements $ObjectSet {
3876
3930
  objects(query?: $ObjectSet.Query<$Object.$Filter, $Object.$Identifier>): Promise<Either<Error, readonly $Object[]>>;
3877
3931
  objectsSync(query?: $ObjectSet.Query<$Object.$Filter, $Object.$Identifier>): Either<Error, readonly $Object[]>;
3878
3932
  protected $objectsSync<ObjectT extends {
3879
- readonly $identifier: ObjectIdentifierT;
3933
+ readonly $identifier: () => ObjectIdentifierT;
3880
3934
  }, ObjectFilterT, ObjectIdentifierT extends BlankNode | NamedNode>(namedObjectType: {
3881
3935
  $filter: (filter: ObjectFilterT, value: ObjectT) => boolean;
3882
3936
  $fromRdfResource: $FromRdfResourceFunction<ObjectT>;
3883
3937
  $fromRdfTypes: readonly NamedNode[];
3884
3938
  }, query?: $ObjectSet.Query<ObjectFilterT, ObjectIdentifierT>): Either<Error, readonly ObjectT[]>;
3885
3939
  protected $objectUnionsSync<ObjectT extends {
3886
- readonly $identifier: ObjectIdentifierT;
3940
+ readonly $identifier: () => ObjectIdentifierT;
3887
3941
  }, ObjectFilterT, ObjectIdentifierT extends BlankNode | NamedNode>(namedObjectTypes: readonly {
3888
3942
  $filter: (filter: ObjectFilterT, value: ObjectT) => boolean;
3889
3943
  $fromRdfResource: $FromRdfResourceFunction<ObjectT>;