@shaclmate/compiler 4.0.33 → 4.0.35

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 (213) hide show
  1. package/dist/Compiler.d.ts +0 -3
  2. package/dist/Compiler.js +0 -2
  3. package/dist/ShapesGraphToAstTransformer.d.ts +1 -4
  4. package/dist/ShapesGraphToAstTransformer.js +1 -5
  5. package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstObjectTypeProperty.js +1 -3
  6. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.js +4 -7
  7. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.js +0 -1
  8. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstObjectType.js +1 -3
  9. package/dist/ast/AbstractCompoundType.d.ts +6 -4
  10. package/dist/ast/AbstractCompoundType.js +4 -37
  11. package/dist/ast/ObjectType.d.ts +1 -7
  12. package/dist/ast/ObjectType.js +1 -6
  13. package/dist/generators/ts/AbstractCollectionType.d.ts +9 -8
  14. package/dist/generators/ts/AbstractCollectionType.js +38 -120
  15. package/dist/generators/ts/AbstractContainerType.d.ts +3 -1
  16. package/dist/generators/ts/AbstractContainerType.js +20 -0
  17. package/dist/generators/ts/AbstractDateType.d.ts +5 -10
  18. package/dist/generators/ts/AbstractDateType.js +5 -32
  19. package/dist/generators/ts/AbstractIdentifierType.d.ts +4 -1
  20. package/dist/generators/ts/AbstractIdentifierType.js +0 -17
  21. package/dist/generators/ts/AbstractLazyObjectType.d.ts +9 -5
  22. package/dist/generators/ts/AbstractLazyObjectType.js +22 -21
  23. package/dist/generators/ts/AbstractLiteralType.d.ts +12 -4
  24. package/dist/generators/ts/AbstractLiteralType.js +3 -3
  25. package/dist/generators/ts/AbstractNamedUnionType.d.ts +2 -5
  26. package/dist/generators/ts/AbstractNamedUnionType.js +27 -58
  27. package/dist/generators/ts/AbstractNumericType.d.ts +3 -9
  28. package/dist/generators/ts/AbstractNumericType.js +6 -13
  29. package/dist/generators/ts/AbstractPrimitiveType.d.ts +9 -4
  30. package/dist/generators/ts/AbstractPrimitiveType.js +11 -18
  31. package/dist/generators/ts/AbstractTermType.d.ts +10 -5
  32. package/dist/generators/ts/AbstractTermType.js +14 -53
  33. package/dist/generators/ts/AbstractType.d.ts +39 -24
  34. package/dist/generators/ts/AbstractType.js +4 -2
  35. package/dist/generators/ts/AbstractUnionType.d.ts +3 -2
  36. package/dist/generators/ts/AbstractUnionType.js +29 -39
  37. package/dist/generators/ts/AnonymousUnionType.d.ts +1 -1
  38. package/dist/generators/ts/AnonymousUnionType.js +3 -3
  39. package/dist/generators/ts/BigDecimalType.d.ts +7 -4
  40. package/dist/generators/ts/BigDecimalType.js +11 -45
  41. package/dist/generators/ts/BigIntType.d.ts +3 -4
  42. package/dist/generators/ts/BigIntType.js +6 -17
  43. package/dist/generators/ts/BlankNodeType.d.ts +8 -7
  44. package/dist/generators/ts/BlankNodeType.js +18 -5
  45. package/dist/generators/ts/BooleanType.d.ts +6 -9
  46. package/dist/generators/ts/BooleanType.js +9 -16
  47. package/dist/generators/ts/DateTimeType.d.ts +4 -1
  48. package/dist/generators/ts/DateTimeType.js +6 -13
  49. package/dist/generators/ts/DateType.d.ts +4 -1
  50. package/dist/generators/ts/DateType.js +7 -14
  51. package/dist/generators/ts/DefaultValueType.d.ts +6 -6
  52. package/dist/generators/ts/DefaultValueType.js +30 -63
  53. package/dist/generators/ts/FloatType.d.ts +3 -3
  54. package/dist/generators/ts/FloatType.js +5 -5
  55. package/dist/generators/ts/IdentifierType.d.ts +7 -6
  56. package/dist/generators/ts/IdentifierType.js +26 -5
  57. package/dist/generators/ts/IntType.d.ts +3 -3
  58. package/dist/generators/ts/IntType.js +5 -5
  59. package/dist/generators/ts/IriType.d.ts +9 -12
  60. package/dist/generators/ts/IriType.js +43 -32
  61. package/dist/generators/ts/LazyObjectOptionType.d.ts +2 -1
  62. package/dist/generators/ts/LazyObjectOptionType.js +23 -44
  63. package/dist/generators/ts/LazyObjectSetType.d.ts +2 -1
  64. package/dist/generators/ts/LazyObjectSetType.js +19 -29
  65. package/dist/generators/ts/LazyObjectType.d.ts +2 -1
  66. package/dist/generators/ts/LazyObjectType.js +18 -26
  67. package/dist/generators/ts/LiteralType.d.ts +6 -3
  68. package/dist/generators/ts/LiteralType.js +27 -13
  69. package/dist/generators/ts/NamedObjectType.d.ts +7 -9
  70. package/dist/generators/ts/NamedObjectType.js +24 -32
  71. package/dist/generators/ts/NamedObjectUnionType.d.ts +3 -1
  72. package/dist/generators/ts/NamedObjectUnionType.js +21 -14
  73. package/dist/generators/ts/OptionType.d.ts +6 -5
  74. package/dist/generators/ts/OptionType.js +31 -51
  75. package/dist/generators/ts/Reusables.d.ts +3 -1
  76. package/dist/generators/ts/Reusables.js +2 -1
  77. package/dist/generators/ts/SetType.d.ts +0 -1
  78. package/dist/generators/ts/SetType.js +4 -22
  79. package/dist/generators/ts/SnippetFactory.d.ts +2 -0
  80. package/dist/generators/ts/Snippets.d.ts +36 -8
  81. package/dist/generators/ts/Snippets.js +207 -30
  82. package/dist/generators/ts/StringType.d.ts +6 -10
  83. package/dist/generators/ts/StringType.js +8 -21
  84. package/dist/generators/ts/TermType.d.ts +2 -4
  85. package/dist/generators/ts/TermType.js +6 -10
  86. package/dist/generators/ts/TsGenerator.d.ts +14 -1
  87. package/dist/generators/ts/TsGenerator.js +41 -12
  88. package/dist/generators/ts/TypeFactory.d.ts +8 -4
  89. package/dist/generators/ts/TypeFactory.js +73 -49
  90. package/dist/generators/ts/ZodGenerator.js +6 -3
  91. package/dist/generators/ts/_NamedObjectType/AbstractProperty.d.ts +27 -20
  92. package/dist/generators/ts/_NamedObjectType/AbstractProperty.js +4 -2
  93. package/dist/generators/ts/_NamedObjectType/DiscriminantProperty.d.ts +7 -7
  94. package/dist/generators/ts/_NamedObjectType/DiscriminantProperty.js +9 -9
  95. package/dist/generators/ts/_NamedObjectType/IdentifierProperty.d.ts +6 -6
  96. package/dist/generators/ts/_NamedObjectType/IdentifierProperty.js +36 -39
  97. package/dist/generators/ts/_NamedObjectType/NamedObjectType_createFunctionDeclaration.js +34 -31
  98. package/dist/generators/ts/_NamedObjectType/NamedObjectType_equalsFunctionDeclaration.js +1 -1
  99. package/dist/generators/ts/_NamedObjectType/NamedObjectType_focusSparqlConstructTriplesFunctionDeclaration.js +1 -1
  100. package/dist/generators/ts/_NamedObjectType/NamedObjectType_focusSparqlWherePatternsFunctionDeclaration.js +1 -1
  101. package/dist/generators/ts/_NamedObjectType/NamedObjectType_fromJsonFunctionDeclaration.js +31 -19
  102. package/dist/generators/ts/_NamedObjectType/NamedObjectType_fromRdfResourceFunctionDeclaration.js +30 -36
  103. package/dist/generators/ts/_NamedObjectType/NamedObjectType_fromRdfResourceValuesFunctionDeclaration.js +1 -1
  104. package/dist/generators/ts/_NamedObjectType/NamedObjectType_fromRdfTypeVariableStatement.js +1 -1
  105. package/dist/generators/ts/_NamedObjectType/NamedObjectType_graphqlTypeVariableStatement.js +2 -3
  106. package/dist/generators/ts/_NamedObjectType/NamedObjectType_hashFunctionDeclarations.js +6 -8
  107. package/dist/generators/ts/_NamedObjectType/NamedObjectType_isTypeFunctionDeclaration.js +1 -2
  108. package/dist/generators/ts/_NamedObjectType/NamedObjectType_jsonParseFunctionDeclaration.js +1 -1
  109. package/dist/generators/ts/_NamedObjectType/NamedObjectType_jsonSchemaFunctionDeclaration.js +1 -1
  110. package/dist/generators/ts/_NamedObjectType/NamedObjectType_jsonTypeAliasDeclaration.js +1 -1
  111. package/dist/generators/ts/_NamedObjectType/NamedObjectType_jsonUiSchemaFunctionDeclaration.js +1 -1
  112. package/dist/generators/ts/_NamedObjectType/NamedObjectType_objectSetMethodNames.d.ts +2 -0
  113. package/dist/generators/ts/_NamedObjectType/NamedObjectType_objectSetMethodNames.js +1 -1
  114. package/dist/generators/ts/_NamedObjectType/NamedObjectType_sparqlConstructQueryFunctionDeclaration.d.ts +2 -2
  115. package/dist/generators/ts/_NamedObjectType/NamedObjectType_sparqlConstructQueryFunctionDeclaration.js +1 -1
  116. package/dist/generators/ts/_NamedObjectType/NamedObjectType_sparqlConstructQueryStringFunctionDeclaration.d.ts +2 -2
  117. package/dist/generators/ts/_NamedObjectType/NamedObjectType_sparqlConstructQueryStringFunctionDeclaration.js +1 -1
  118. package/dist/generators/ts/_NamedObjectType/NamedObjectType_toJsonFunctionDeclaration.js +2 -2
  119. package/dist/generators/ts/_NamedObjectType/NamedObjectType_toRdfResourceFunctionDeclaration.js +1 -1
  120. package/dist/generators/ts/_NamedObjectType/NamedObjectType_toStringFunctionDeclarations.js +14 -18
  121. package/dist/generators/ts/_NamedObjectType/NamedObjectType_valueSparqlConstructTriplesFunctionDeclaration.js +1 -1
  122. package/dist/generators/ts/_NamedObjectType/NamedObjectType_valueSparqlWherePatternsFunctionDeclaration.js +1 -1
  123. package/dist/generators/ts/_NamedObjectType/ShaclProperty.d.ts +7 -7
  124. package/dist/generators/ts/_NamedObjectType/ShaclProperty.js +41 -29
  125. package/dist/generators/ts/_snippets/snippets_ConversionFunction.d.ts +3 -0
  126. package/dist/generators/ts/_snippets/snippets_ConversionFunction.js +4 -0
  127. package/dist/generators/ts/_snippets/snippets_DefaultValueSchema.js +3 -3
  128. package/dist/generators/ts/_snippets/snippets_HashFunction.d.ts +3 -0
  129. package/dist/generators/ts/_snippets/snippets_HashFunction.js +4 -0
  130. package/dist/generators/ts/_snippets/snippets_PropertyPath.js +34 -24
  131. package/dist/generators/ts/_snippets/snippets_ValidationFunction.d.ts +3 -0
  132. package/dist/generators/ts/_snippets/snippets_ValidationFunction.js +4 -0
  133. package/dist/generators/ts/_snippets/snippets_convertToArray.d.ts +3 -0
  134. package/dist/generators/ts/_snippets/snippets_convertToArray.js +8 -0
  135. package/dist/generators/ts/_snippets/snippets_convertToBlankNode.d.ts +3 -0
  136. package/dist/generators/ts/_snippets/snippets_convertToBlankNode.js +11 -0
  137. package/dist/generators/ts/_snippets/snippets_convertToBlankNodeIdentifierProperty.d.ts +3 -0
  138. package/dist/generators/ts/_snippets/snippets_convertToBlankNodeIdentifierProperty.js +17 -0
  139. package/dist/generators/ts/_snippets/snippets_convertToIdentifier.d.ts +3 -0
  140. package/dist/generators/ts/_snippets/snippets_convertToIdentifier.js +13 -0
  141. package/dist/generators/ts/_snippets/snippets_convertToIdentifierProperty.d.ts +3 -0
  142. package/dist/generators/ts/_snippets/snippets_convertToIdentifierProperty.js +21 -0
  143. package/dist/generators/ts/_snippets/snippets_convertToIri.d.ts +3 -0
  144. package/dist/generators/ts/_snippets/snippets_convertToIri.js +11 -0
  145. package/dist/generators/ts/_snippets/snippets_convertToIriIdentifierProperty.d.ts +3 -0
  146. package/dist/generators/ts/_snippets/snippets_convertToIriIdentifierProperty.js +17 -0
  147. package/dist/generators/ts/_snippets/snippets_convertToLazyObject.d.ts +3 -0
  148. package/dist/generators/ts/_snippets/snippets_convertToLazyObject.js +15 -0
  149. package/dist/generators/ts/_snippets/snippets_convertToLazyObjectOption.d.ts +3 -0
  150. package/dist/generators/ts/_snippets/snippets_convertToLazyObjectOption.js +31 -0
  151. package/dist/generators/ts/_snippets/snippets_convertToLazyObjectSet.d.ts +3 -0
  152. package/dist/generators/ts/_snippets/snippets_convertToLazyObjectSet.js +25 -0
  153. package/dist/generators/ts/_snippets/snippets_convertToLiteral.d.ts +3 -0
  154. package/dist/generators/ts/_snippets/snippets_convertToLiteral.js +13 -0
  155. package/dist/generators/ts/_snippets/snippets_convertToMaybe.d.ts +3 -0
  156. package/dist/generators/ts/_snippets/snippets_convertToMaybe.js +19 -0
  157. package/dist/generators/ts/_snippets/snippets_convertWithDefaultValue.d.ts +3 -0
  158. package/dist/generators/ts/_snippets/snippets_convertWithDefaultValue.js +11 -0
  159. package/dist/generators/ts/_snippets/snippets_defaultValueSparqlWherePatterns.js +1 -1
  160. package/dist/generators/ts/_snippets/snippets_hashArray.d.ts +3 -0
  161. package/dist/generators/ts/_snippets/snippets_hashArray.js +11 -0
  162. package/dist/generators/ts/_snippets/snippets_hashBigDecimal.d.ts +3 -0
  163. package/dist/generators/ts/_snippets/snippets_hashBigDecimal.js +7 -0
  164. package/dist/generators/ts/_snippets/snippets_hashBoolean.d.ts +3 -0
  165. package/dist/generators/ts/_snippets/snippets_hashBoolean.js +7 -0
  166. package/dist/generators/ts/_snippets/snippets_hashDate.d.ts +3 -0
  167. package/dist/generators/ts/_snippets/snippets_hashDate.js +7 -0
  168. package/dist/generators/ts/_snippets/snippets_hashDateTime.d.ts +3 -0
  169. package/dist/generators/ts/_snippets/snippets_hashDateTime.js +7 -0
  170. package/dist/generators/ts/_snippets/snippets_hashMaybe.d.ts +3 -0
  171. package/dist/generators/ts/_snippets/snippets_hashMaybe.js +11 -0
  172. package/dist/generators/ts/_snippets/snippets_hashNumeric.d.ts +3 -0
  173. package/dist/generators/ts/_snippets/snippets_hashNumeric.js +7 -0
  174. package/dist/generators/ts/_snippets/snippets_hashString.d.ts +3 -0
  175. package/dist/generators/ts/_snippets/snippets_hashString.js +7 -0
  176. package/dist/generators/ts/_snippets/snippets_hashTerm.d.ts +3 -0
  177. package/dist/generators/ts/_snippets/snippets_hashTerm.js +12 -0
  178. package/dist/generators/ts/_snippets/snippets_identityConversionFunction.d.ts +3 -0
  179. package/dist/generators/ts/_snippets/snippets_identityConversionFunction.js +6 -0
  180. package/dist/generators/ts/_snippets/snippets_identityValidationFunction.d.ts +3 -0
  181. package/dist/generators/ts/_snippets/snippets_identityValidationFunction.js +6 -0
  182. package/dist/generators/ts/_snippets/snippets_toIsoDateString.d.ts +3 -0
  183. package/dist/generators/ts/_snippets/snippets_toIsoDateString.js +6 -0
  184. package/dist/generators/ts/_snippets/snippets_validateArray.d.ts +3 -0
  185. package/dist/generators/ts/_snippets/snippets_validateArray.js +13 -0
  186. package/dist/generators/ts/_snippets/snippets_validateMaybe.d.ts +3 -0
  187. package/dist/generators/ts/_snippets/snippets_validateMaybe.js +7 -0
  188. package/dist/generators/ts/graphqlSchemaVariableStatement.d.ts +1 -1
  189. package/dist/generators/ts/graphqlSchemaVariableStatement.js +7 -4
  190. package/dist/generators/ts/objectSetDeclarations.js +4 -34
  191. package/dist/generators/ts/objectSetInterfaceDeclaration.js +1 -1
  192. package/dist/generators/ts/objectSetMethodSignatures.js +2 -2
  193. package/dist/generators/ts/rdfjsDatasetObjectSetClassDeclaration.js +2 -2
  194. package/dist/generators/ts/sparqlObjectSetClassDeclaration.js +2 -2
  195. package/dist/input/ShapesGraph.d.ts +5 -8
  196. package/dist/input/ShapesGraph.js +5 -6
  197. package/dist/input/generated.d.ts +175 -230
  198. package/dist/input/generated.js +226 -1748
  199. package/package.json +2 -2
  200. package/dist/_ShapesGraphToAstTransformer/nodeShapeTsFeatures.d.ts +0 -6
  201. package/dist/_ShapesGraphToAstTransformer/nodeShapeTsFeatures.js +0 -67
  202. package/dist/generators/ts/_snippets/snippets_isReadonlyBigIntArray.d.ts +0 -3
  203. package/dist/generators/ts/_snippets/snippets_isReadonlyBigIntArray.js +0 -6
  204. package/dist/generators/ts/_snippets/snippets_isReadonlyBooleanArray.d.ts +0 -3
  205. package/dist/generators/ts/_snippets/snippets_isReadonlyBooleanArray.js +0 -6
  206. package/dist/generators/ts/_snippets/snippets_isReadonlyNumberArray.d.ts +0 -3
  207. package/dist/generators/ts/_snippets/snippets_isReadonlyNumberArray.js +0 -6
  208. package/dist/generators/ts/_snippets/snippets_isReadonlyObjectArray.d.ts +0 -3
  209. package/dist/generators/ts/_snippets/snippets_isReadonlyObjectArray.js +0 -6
  210. package/dist/generators/ts/_snippets/snippets_isReadonlyStringArray.d.ts +0 -3
  211. package/dist/generators/ts/_snippets/snippets_isReadonlyStringArray.js +0 -6
  212. package/dist/generators/ts/syntheticNamePrefix.d.ts +0 -2
  213. package/dist/generators/ts/syntheticNamePrefix.js +0 -2
@@ -15,6 +15,79 @@ function $compactRecord(record) {
15
15
  return definedProperties;
16
16
  }, {});
17
17
  }
18
+ function $convertToArray(convertToItem, _readonly) {
19
+ return (value) => (typeof value === "undefined"
20
+ ? Either.of([])
21
+ : Either.sequence(value.map(convertToItem)));
22
+ }
23
+ function $convertToIdentifier(value) {
24
+ switch (typeof value) {
25
+ case "object":
26
+ return Either.of(value);
27
+ case "string":
28
+ return Either.of(dataFactory.namedNode(value));
29
+ case "undefined":
30
+ return Either.of(dataFactory.blankNode());
31
+ }
32
+ }
33
+ function $convertToIdentifierProperty(identifier) {
34
+ switch (typeof identifier) {
35
+ case "function":
36
+ return Either.of(identifier);
37
+ case "object": {
38
+ const captureIdentifier = identifier;
39
+ return Either.of(() => captureIdentifier);
40
+ }
41
+ case "string": {
42
+ const captureIdentifier = dataFactory.namedNode(identifier);
43
+ return Either.of(() => captureIdentifier);
44
+ }
45
+ case "undefined": {
46
+ const captureIdentifier = dataFactory.blankNode();
47
+ return Either.of(() => captureIdentifier);
48
+ }
49
+ }
50
+ }
51
+ function $convertToIri(value) {
52
+ switch (typeof value) {
53
+ case "object":
54
+ return Either.of(value);
55
+ case "string":
56
+ return Either.of(dataFactory.namedNode(value));
57
+ }
58
+ }
59
+ function $convertToLiteral(value) {
60
+ if (typeof value === "object") {
61
+ if (value instanceof Date) {
62
+ return Either.of($literalFactory.date(value));
63
+ }
64
+ return Either.of(value);
65
+ }
66
+ return Either.of($literalFactory.primitive(value));
67
+ }
68
+ function $convertToMaybe(convertToItem) {
69
+ return (value) => {
70
+ switch (typeof value) {
71
+ case "object": {
72
+ if (Maybe.isMaybe(value)) {
73
+ return Either.of(value);
74
+ }
75
+ break;
76
+ }
77
+ case "undefined":
78
+ return Either.of(Maybe.empty());
79
+ }
80
+ return convertToItem(value).map(Maybe.of);
81
+ };
82
+ }
83
+ function $convertWithDefaultValue(convertToItem, defaultValue) {
84
+ return (value) => {
85
+ if (typeof value === "undefined") {
86
+ return convertToItem(defaultValue);
87
+ }
88
+ return convertToItem(value);
89
+ };
90
+ }
18
91
  export var $EqualsResult;
19
92
  (function ($EqualsResult) {
20
93
  $EqualsResult.Equal = Right(true);
@@ -186,20 +259,11 @@ class $IdentifierSet {
186
259
  }
187
260
  }
188
261
  }
189
- function $isReadonlyBigIntArray(x) {
190
- return Array.isArray(x) && x.every((z) => typeof z === "bigint");
191
- }
192
- function $isReadonlyBooleanArray(x) {
193
- return Array.isArray(x) && x.every((z) => typeof z === "boolean");
262
+ function $identityConversionFunction(value) {
263
+ return Either.of(value);
194
264
  }
195
- function $isReadonlyNumberArray(x) {
196
- return Array.isArray(x) && x.every((z) => typeof z === "number");
197
- }
198
- function $isReadonlyObjectArray(x) {
199
- return Array.isArray(x) && x.every((z) => typeof z === "object");
200
- }
201
- function $isReadonlyStringArray(x) {
202
- return Array.isArray(x) && x.every((z) => typeof z === "string");
265
+ function $identityValidationFunction(_schema, value) {
266
+ return Either.of(value);
203
267
  }
204
268
  const $literalFactory = new LiteralFactory({ dataFactory: dataFactory });
205
269
  const $parseIdentifier = NTriplesIdentifier.parser(dataFactory);
@@ -275,6 +339,19 @@ function $shaclPropertyFromRdf({ graph, propertySchema, resource, typeFromRdf, }
275
339
  function $strictEquals(left, right) {
276
340
  return $EqualsResult.fromBooleanEqualsResult(left, right, left === right);
277
341
  }
342
+ function $validateArray(validateItem, _readonly) {
343
+ return (schema, valueArray) => {
344
+ if (schema.minCount !== undefined && valueArray.length < schema.minCount) {
345
+ return Left(new Error(`value array has length (${valueArray.length}) less than minCount (${schema.minCount})`));
346
+ }
347
+ return Either.sequence(valueArray.map((value) => validateItem(schema.item(), value)));
348
+ };
349
+ }
350
+ function $validateMaybe(validateItem) {
351
+ return (schema, valueMaybe) => valueMaybe
352
+ .map((value) => validateItem(schema.item(), value).map(() => valueMaybe))
353
+ .orDefault(Either.of(valueMaybe));
354
+ }
278
355
  function $wrap_FromRdfResourceFunction(_fromRdfResourceFunction) {
279
356
  return (resource, options) => {
280
357
  let { context, graph, ignoreRdfType = false, objectSet, preferredLanguages, } = options ?? {};
@@ -313,655 +390,57 @@ function $wrap_ToRdfResourceFunction(_toRdfResourceFunction) {
313
390
  export var PropertyShape;
314
391
  (function (PropertyShape) {
315
392
  function create(parameters) {
316
- const $identifierParameter = parameters.$identifier;
317
- let $identifier;
318
- if (typeof $identifierParameter === "function") {
319
- $identifier = $identifierParameter;
320
- }
321
- else if (typeof $identifierParameter === "object") {
322
- $identifier = () => $identifierParameter;
323
- }
324
- else if (typeof $identifierParameter === "string") {
325
- $identifier = () => dataFactory.namedNode($identifierParameter);
326
- }
327
- else if ($identifierParameter === undefined) {
328
- const $eagerIdentifier = dataFactory.blankNode();
329
- $identifier = () => $eagerIdentifier;
330
- }
331
- else {
332
- $identifier = $identifierParameter;
333
- }
334
- const $type = "PropertyShape";
335
- let and;
336
- if (Maybe.isMaybe(parameters.and)) {
337
- and = parameters.and;
338
- }
339
- else if ($isReadonlyObjectArray(parameters.and)) {
340
- and = Maybe.of(parameters.and);
341
- }
342
- else if ($isReadonlyStringArray(parameters.and)) {
343
- and = Maybe.of(parameters.and.map((item) => dataFactory.namedNode(item)));
344
- }
345
- else if (parameters.and === undefined) {
346
- and = Maybe.empty();
347
- }
348
- else {
349
- and = parameters.and;
350
- }
351
- let classes;
352
- if (parameters.classes === undefined) {
353
- classes = [];
354
- }
355
- else if ($isReadonlyObjectArray(parameters.classes)) {
356
- classes = parameters.classes;
357
- }
358
- else if ($isReadonlyStringArray(parameters.classes)) {
359
- classes = parameters.classes.map((item) => dataFactory.namedNode(item));
360
- }
361
- else {
362
- classes = parameters.classes;
363
- }
364
- let comment;
365
- if (Maybe.isMaybe(parameters.comment)) {
366
- comment = parameters.comment;
367
- }
368
- else if (typeof parameters.comment === "string") {
369
- comment = Maybe.of(parameters.comment);
370
- }
371
- else if (parameters.comment === undefined) {
372
- comment = Maybe.empty();
373
- }
374
- else {
375
- comment = parameters.comment;
376
- }
377
- let datatype;
378
- if (Maybe.isMaybe(parameters.datatype)) {
379
- datatype = parameters.datatype;
380
- }
381
- else if (typeof parameters.datatype === "object") {
382
- datatype = Maybe.of(parameters.datatype);
383
- }
384
- else if (typeof parameters.datatype === "string") {
385
- datatype = Maybe.of(dataFactory.namedNode(parameters.datatype));
386
- }
387
- else if (parameters.datatype === undefined) {
388
- datatype = Maybe.empty();
389
- }
390
- else {
391
- datatype = parameters.datatype;
392
- }
393
- let deactivated;
394
- if (Maybe.isMaybe(parameters.deactivated)) {
395
- deactivated = parameters.deactivated;
396
- }
397
- else if (typeof parameters.deactivated === "boolean") {
398
- deactivated = Maybe.of(parameters.deactivated);
399
- }
400
- else if (parameters.deactivated === undefined) {
401
- deactivated = Maybe.empty();
402
- }
403
- else {
404
- deactivated = parameters.deactivated;
405
- }
406
- let defaultValue;
407
- if (Maybe.isMaybe(parameters.defaultValue)) {
408
- defaultValue = parameters.defaultValue;
409
- }
410
- else if (typeof parameters.defaultValue === "bigint") {
411
- defaultValue = Maybe.of($literalFactory.bigint(parameters.defaultValue));
412
- }
413
- else if (typeof parameters.defaultValue === "boolean") {
414
- defaultValue = Maybe.of($literalFactory.boolean(parameters.defaultValue));
415
- }
416
- else if (typeof parameters.defaultValue === "object" &&
417
- parameters.defaultValue instanceof Date) {
418
- defaultValue = Maybe.of($literalFactory.date(parameters.defaultValue));
419
- }
420
- else if (typeof parameters.defaultValue === "number") {
421
- defaultValue = Maybe.of($literalFactory.number(parameters.defaultValue));
422
- }
423
- else if (typeof parameters.defaultValue === "string") {
424
- defaultValue = Maybe.of($literalFactory.string(parameters.defaultValue));
425
- }
426
- else if (typeof parameters.defaultValue === "object") {
427
- defaultValue = Maybe.of(parameters.defaultValue);
428
- }
429
- else if (parameters.defaultValue === undefined) {
430
- defaultValue = Maybe.empty();
431
- }
432
- else {
433
- defaultValue = parameters.defaultValue;
434
- }
435
- let description;
436
- if (Maybe.isMaybe(parameters.description)) {
437
- description = parameters.description;
438
- }
439
- else if (typeof parameters.description === "string") {
440
- description = Maybe.of(parameters.description);
441
- }
442
- else if (parameters.description === undefined) {
443
- description = Maybe.empty();
444
- }
445
- else {
446
- description = parameters.description;
447
- }
448
- let display;
449
- if (typeof parameters.display === "boolean") {
450
- display = parameters.display;
451
- }
452
- else if (parameters.display === undefined) {
453
- display = false;
454
- }
455
- else {
456
- display = parameters.display;
457
- }
458
- let flags;
459
- if (parameters.flags === undefined) {
460
- flags = [];
461
- }
462
- else if (typeof parameters.flags === "object") {
463
- flags = parameters.flags;
464
- }
465
- else {
466
- flags = parameters.flags;
467
- }
468
- let groups;
469
- if (parameters.groups === undefined) {
470
- groups = [];
471
- }
472
- else if ($isReadonlyObjectArray(parameters.groups)) {
473
- groups = parameters.groups;
474
- }
475
- else if ($isReadonlyStringArray(parameters.groups)) {
476
- groups = parameters.groups.map((item) => dataFactory.namedNode(item));
477
- }
478
- else {
479
- groups = parameters.groups;
480
- }
481
- let hasValues;
482
- if (parameters.hasValues === undefined) {
483
- hasValues = [];
484
- }
485
- else if ($isReadonlyObjectArray(parameters.hasValues)) {
486
- hasValues = parameters.hasValues;
487
- }
488
- else if ($isReadonlyBigIntArray(parameters.hasValues)) {
489
- hasValues = parameters.hasValues.map((item) => $literalFactory.bigint(item));
490
- }
491
- else if ($isReadonlyBooleanArray(parameters.hasValues)) {
492
- hasValues = parameters.hasValues.map((item) => $literalFactory.boolean(item));
493
- }
494
- else if ($isReadonlyNumberArray(parameters.hasValues)) {
495
- hasValues = parameters.hasValues.map((item) => $literalFactory.number(item));
496
- }
497
- else if ($isReadonlyStringArray(parameters.hasValues)) {
498
- hasValues = parameters.hasValues.map((item) => $literalFactory.string(item));
499
- }
500
- else {
501
- hasValues = parameters.hasValues;
502
- }
503
- let in_;
504
- if (Maybe.isMaybe(parameters.in_)) {
505
- in_ = parameters.in_;
506
- }
507
- else if ($isReadonlyObjectArray(parameters.in_)) {
508
- in_ = Maybe.of(parameters.in_);
509
- }
510
- else if ($isReadonlyBigIntArray(parameters.in_)) {
511
- in_ = Maybe.of(parameters.in_.map((item) => $literalFactory.bigint(item)));
512
- }
513
- else if ($isReadonlyBooleanArray(parameters.in_)) {
514
- in_ = Maybe.of(parameters.in_.map((item) => $literalFactory.boolean(item)));
515
- }
516
- else if ($isReadonlyNumberArray(parameters.in_)) {
517
- in_ = Maybe.of(parameters.in_.map((item) => $literalFactory.number(item)));
518
- }
519
- else if ($isReadonlyStringArray(parameters.in_)) {
520
- in_ = Maybe.of(parameters.in_.map((item) => $literalFactory.string(item)));
521
- }
522
- else if (parameters.in_ === undefined) {
523
- in_ = Maybe.empty();
524
- }
525
- else {
526
- in_ = parameters.in_;
527
- }
528
- let isDefinedBy;
529
- if (Maybe.isMaybe(parameters.isDefinedBy)) {
530
- isDefinedBy = parameters.isDefinedBy;
531
- }
532
- else if (typeof parameters.isDefinedBy === "object") {
533
- isDefinedBy = Maybe.of(parameters.isDefinedBy);
534
- }
535
- else if (typeof parameters.isDefinedBy === "string") {
536
- isDefinedBy = Maybe.of(dataFactory.namedNode(parameters.isDefinedBy));
537
- }
538
- else if (parameters.isDefinedBy === undefined) {
539
- isDefinedBy = Maybe.empty();
540
- }
541
- else {
542
- isDefinedBy = parameters.isDefinedBy;
543
- }
544
- let label;
545
- if (Maybe.isMaybe(parameters.label)) {
546
- label = parameters.label;
547
- }
548
- else if (typeof parameters.label === "string") {
549
- label = Maybe.of(parameters.label);
550
- }
551
- else if (parameters.label === undefined) {
552
- label = Maybe.empty();
553
- }
554
- else {
555
- label = parameters.label;
556
- }
557
- let languageIn;
558
- if (Maybe.isMaybe(parameters.languageIn)) {
559
- languageIn = parameters.languageIn;
560
- }
561
- else if (typeof parameters.languageIn === "object") {
562
- languageIn = Maybe.of(parameters.languageIn);
563
- }
564
- else if (parameters.languageIn === undefined) {
565
- languageIn = Maybe.empty();
566
- }
567
- else {
568
- languageIn = parameters.languageIn;
569
- }
570
- let maxCount;
571
- if (Maybe.isMaybe(parameters.maxCount)) {
572
- maxCount = parameters.maxCount;
573
- }
574
- else if (typeof parameters.maxCount === "bigint") {
575
- maxCount = Maybe.of(parameters.maxCount);
576
- }
577
- else if (typeof parameters.maxCount === "number") {
578
- maxCount = Maybe.of(BigInt(parameters.maxCount));
579
- }
580
- else if (parameters.maxCount === undefined) {
581
- maxCount = Maybe.empty();
582
- }
583
- else {
584
- maxCount = parameters.maxCount;
585
- }
586
- let maxExclusive;
587
- if (Maybe.isMaybe(parameters.maxExclusive)) {
588
- maxExclusive = parameters.maxExclusive;
589
- }
590
- else if (typeof parameters.maxExclusive === "bigint") {
591
- maxExclusive = Maybe.of($literalFactory.bigint(parameters.maxExclusive));
592
- }
593
- else if (typeof parameters.maxExclusive === "boolean") {
594
- maxExclusive = Maybe.of($literalFactory.boolean(parameters.maxExclusive));
595
- }
596
- else if (typeof parameters.maxExclusive === "object" &&
597
- parameters.maxExclusive instanceof Date) {
598
- maxExclusive = Maybe.of($literalFactory.date(parameters.maxExclusive));
599
- }
600
- else if (typeof parameters.maxExclusive === "number") {
601
- maxExclusive = Maybe.of($literalFactory.number(parameters.maxExclusive));
602
- }
603
- else if (typeof parameters.maxExclusive === "string") {
604
- maxExclusive = Maybe.of($literalFactory.string(parameters.maxExclusive));
605
- }
606
- else if (typeof parameters.maxExclusive === "object") {
607
- maxExclusive = Maybe.of(parameters.maxExclusive);
608
- }
609
- else if (parameters.maxExclusive === undefined) {
610
- maxExclusive = Maybe.empty();
611
- }
612
- else {
613
- maxExclusive = parameters.maxExclusive;
614
- }
615
- let maxInclusive;
616
- if (Maybe.isMaybe(parameters.maxInclusive)) {
617
- maxInclusive = parameters.maxInclusive;
618
- }
619
- else if (typeof parameters.maxInclusive === "bigint") {
620
- maxInclusive = Maybe.of($literalFactory.bigint(parameters.maxInclusive));
621
- }
622
- else if (typeof parameters.maxInclusive === "boolean") {
623
- maxInclusive = Maybe.of($literalFactory.boolean(parameters.maxInclusive));
624
- }
625
- else if (typeof parameters.maxInclusive === "object" &&
626
- parameters.maxInclusive instanceof Date) {
627
- maxInclusive = Maybe.of($literalFactory.date(parameters.maxInclusive));
628
- }
629
- else if (typeof parameters.maxInclusive === "number") {
630
- maxInclusive = Maybe.of($literalFactory.number(parameters.maxInclusive));
631
- }
632
- else if (typeof parameters.maxInclusive === "string") {
633
- maxInclusive = Maybe.of($literalFactory.string(parameters.maxInclusive));
634
- }
635
- else if (typeof parameters.maxInclusive === "object") {
636
- maxInclusive = Maybe.of(parameters.maxInclusive);
637
- }
638
- else if (parameters.maxInclusive === undefined) {
639
- maxInclusive = Maybe.empty();
640
- }
641
- else {
642
- maxInclusive = parameters.maxInclusive;
643
- }
644
- let maxLength;
645
- if (Maybe.isMaybe(parameters.maxLength)) {
646
- maxLength = parameters.maxLength;
647
- }
648
- else if (typeof parameters.maxLength === "bigint") {
649
- maxLength = Maybe.of(parameters.maxLength);
650
- }
651
- else if (typeof parameters.maxLength === "number") {
652
- maxLength = Maybe.of(BigInt(parameters.maxLength));
653
- }
654
- else if (parameters.maxLength === undefined) {
655
- maxLength = Maybe.empty();
656
- }
657
- else {
658
- maxLength = parameters.maxLength;
659
- }
660
- let minCount;
661
- if (Maybe.isMaybe(parameters.minCount)) {
662
- minCount = parameters.minCount;
663
- }
664
- else if (typeof parameters.minCount === "bigint") {
665
- minCount = Maybe.of(parameters.minCount);
666
- }
667
- else if (typeof parameters.minCount === "number") {
668
- minCount = Maybe.of(BigInt(parameters.minCount));
669
- }
670
- else if (parameters.minCount === undefined) {
671
- minCount = Maybe.empty();
672
- }
673
- else {
674
- minCount = parameters.minCount;
675
- }
676
- let minExclusive;
677
- if (Maybe.isMaybe(parameters.minExclusive)) {
678
- minExclusive = parameters.minExclusive;
679
- }
680
- else if (typeof parameters.minExclusive === "bigint") {
681
- minExclusive = Maybe.of($literalFactory.bigint(parameters.minExclusive));
682
- }
683
- else if (typeof parameters.minExclusive === "boolean") {
684
- minExclusive = Maybe.of($literalFactory.boolean(parameters.minExclusive));
685
- }
686
- else if (typeof parameters.minExclusive === "object" &&
687
- parameters.minExclusive instanceof Date) {
688
- minExclusive = Maybe.of($literalFactory.date(parameters.minExclusive));
689
- }
690
- else if (typeof parameters.minExclusive === "number") {
691
- minExclusive = Maybe.of($literalFactory.number(parameters.minExclusive));
692
- }
693
- else if (typeof parameters.minExclusive === "string") {
694
- minExclusive = Maybe.of($literalFactory.string(parameters.minExclusive));
695
- }
696
- else if (typeof parameters.minExclusive === "object") {
697
- minExclusive = Maybe.of(parameters.minExclusive);
698
- }
699
- else if (parameters.minExclusive === undefined) {
700
- minExclusive = Maybe.empty();
701
- }
702
- else {
703
- minExclusive = parameters.minExclusive;
704
- }
705
- let minInclusive;
706
- if (Maybe.isMaybe(parameters.minInclusive)) {
707
- minInclusive = parameters.minInclusive;
708
- }
709
- else if (typeof parameters.minInclusive === "bigint") {
710
- minInclusive = Maybe.of($literalFactory.bigint(parameters.minInclusive));
711
- }
712
- else if (typeof parameters.minInclusive === "boolean") {
713
- minInclusive = Maybe.of($literalFactory.boolean(parameters.minInclusive));
714
- }
715
- else if (typeof parameters.minInclusive === "object" &&
716
- parameters.minInclusive instanceof Date) {
717
- minInclusive = Maybe.of($literalFactory.date(parameters.minInclusive));
718
- }
719
- else if (typeof parameters.minInclusive === "number") {
720
- minInclusive = Maybe.of($literalFactory.number(parameters.minInclusive));
721
- }
722
- else if (typeof parameters.minInclusive === "string") {
723
- minInclusive = Maybe.of($literalFactory.string(parameters.minInclusive));
724
- }
725
- else if (typeof parameters.minInclusive === "object") {
726
- minInclusive = Maybe.of(parameters.minInclusive);
727
- }
728
- else if (parameters.minInclusive === undefined) {
729
- minInclusive = Maybe.empty();
730
- }
731
- else {
732
- minInclusive = parameters.minInclusive;
733
- }
734
- let minLength;
735
- if (Maybe.isMaybe(parameters.minLength)) {
736
- minLength = parameters.minLength;
737
- }
738
- else if (typeof parameters.minLength === "bigint") {
739
- minLength = Maybe.of(parameters.minLength);
740
- }
741
- else if (typeof parameters.minLength === "number") {
742
- minLength = Maybe.of(BigInt(parameters.minLength));
743
- }
744
- else if (parameters.minLength === undefined) {
745
- minLength = Maybe.empty();
746
- }
747
- else {
748
- minLength = parameters.minLength;
749
- }
750
- let mutable;
751
- if (Maybe.isMaybe(parameters.mutable)) {
752
- mutable = parameters.mutable;
753
- }
754
- else if (typeof parameters.mutable === "boolean") {
755
- mutable = Maybe.of(parameters.mutable);
756
- }
757
- else if (parameters.mutable === undefined) {
758
- mutable = Maybe.empty();
759
- }
760
- else {
761
- mutable = parameters.mutable;
762
- }
763
- let name;
764
- if (Maybe.isMaybe(parameters.name)) {
765
- name = parameters.name;
766
- }
767
- else if (typeof parameters.name === "string") {
768
- name = Maybe.of(parameters.name);
769
- }
770
- else if (parameters.name === undefined) {
771
- name = Maybe.empty();
772
- }
773
- else {
774
- name = parameters.name;
775
- }
776
- let node;
777
- if (Maybe.isMaybe(parameters.node)) {
778
- node = parameters.node;
779
- }
780
- else if (typeof parameters.node === "object") {
781
- node = Maybe.of(parameters.node);
782
- }
783
- else if (typeof parameters.node === "string") {
784
- node = Maybe.of(dataFactory.namedNode(parameters.node));
785
- }
786
- else if (parameters.node === undefined) {
787
- node = Maybe.empty();
788
- }
789
- else {
790
- node = parameters.node;
791
- }
792
- let nodeKind;
793
- if (Maybe.isMaybe(parameters.nodeKind)) {
794
- nodeKind = parameters.nodeKind;
795
- }
796
- else if (typeof parameters.nodeKind === "object") {
797
- nodeKind = Maybe.of(parameters.nodeKind);
798
- }
799
- else if (typeof parameters.nodeKind === "string") {
800
- nodeKind = Maybe.of(dataFactory.namedNode(parameters.nodeKind));
801
- }
802
- else if (parameters.nodeKind === undefined) {
803
- nodeKind = Maybe.empty();
804
- }
805
- else {
806
- nodeKind = parameters.nodeKind;
807
- }
808
- let not;
809
- if (parameters.not === undefined) {
810
- not = [];
811
- }
812
- else if ($isReadonlyObjectArray(parameters.not)) {
813
- not = parameters.not;
814
- }
815
- else if ($isReadonlyStringArray(parameters.not)) {
816
- not = parameters.not.map((item) => dataFactory.namedNode(item));
817
- }
818
- else {
819
- not = parameters.not;
820
- }
821
- let or;
822
- if (Maybe.isMaybe(parameters.or)) {
823
- or = parameters.or;
824
- }
825
- else if ($isReadonlyObjectArray(parameters.or)) {
826
- or = Maybe.of(parameters.or);
827
- }
828
- else if ($isReadonlyStringArray(parameters.or)) {
829
- or = Maybe.of(parameters.or.map((item) => dataFactory.namedNode(item)));
830
- }
831
- else if (parameters.or === undefined) {
832
- or = Maybe.empty();
833
- }
834
- else {
835
- or = parameters.or;
836
- }
837
- let order;
838
- if (Maybe.isMaybe(parameters.order)) {
839
- order = parameters.order;
840
- }
841
- else if (typeof parameters.order === "number") {
842
- order = Maybe.of(parameters.order);
843
- }
844
- else if (parameters.order === undefined) {
845
- order = Maybe.empty();
846
- }
847
- else {
848
- order = parameters.order;
849
- }
850
- const path = parameters.path;
851
- let patterns;
852
- if (parameters.patterns === undefined) {
853
- patterns = [];
854
- }
855
- else if (typeof parameters.patterns === "object") {
856
- patterns = parameters.patterns;
857
- }
858
- else {
859
- patterns = parameters.patterns;
860
- }
861
- let resolve;
862
- if (Maybe.isMaybe(parameters.resolve)) {
863
- resolve = parameters.resolve;
864
- }
865
- else if (typeof parameters.resolve === "object") {
866
- resolve = Maybe.of(parameters.resolve);
867
- }
868
- else if (typeof parameters.resolve === "string") {
869
- resolve = Maybe.of(dataFactory.namedNode(parameters.resolve));
870
- }
871
- else if (parameters.resolve === undefined) {
872
- resolve = Maybe.empty();
873
- }
874
- else {
875
- resolve = parameters.resolve;
876
- }
877
- let shaclmateName;
878
- if (Maybe.isMaybe(parameters.shaclmateName)) {
879
- shaclmateName = parameters.shaclmateName;
880
- }
881
- else if (typeof parameters.shaclmateName === "string") {
882
- shaclmateName = Maybe.of(parameters.shaclmateName);
883
- }
884
- else if (parameters.shaclmateName === undefined) {
885
- shaclmateName = Maybe.empty();
886
- }
887
- else {
888
- shaclmateName = parameters.shaclmateName;
889
- }
890
- let uniqueLang;
891
- if (Maybe.isMaybe(parameters.uniqueLang)) {
892
- uniqueLang = parameters.uniqueLang;
893
- }
894
- else if (typeof parameters.uniqueLang === "boolean") {
895
- uniqueLang = Maybe.of(parameters.uniqueLang);
896
- }
897
- else if (parameters.uniqueLang === undefined) {
898
- uniqueLang = Maybe.empty();
899
- }
900
- else {
901
- uniqueLang = parameters.uniqueLang;
902
- }
903
- let xone;
904
- if (Maybe.isMaybe(parameters.xone)) {
905
- xone = parameters.xone;
906
- }
907
- else if ($isReadonlyObjectArray(parameters.xone)) {
908
- xone = Maybe.of(parameters.xone);
909
- }
910
- else if ($isReadonlyStringArray(parameters.xone)) {
911
- xone = Maybe.of(parameters.xone.map((item) => dataFactory.namedNode(item)));
912
- }
913
- else if (parameters.xone === undefined) {
914
- xone = Maybe.empty();
915
- }
916
- else {
917
- xone = parameters.xone;
918
- }
919
- const $object = {
920
- $identifier,
921
- $type,
922
- and,
923
- classes,
924
- comment,
925
- datatype,
926
- deactivated,
927
- defaultValue,
928
- description,
929
- display,
930
- flags,
931
- groups,
932
- hasValues,
933
- in_,
934
- isDefinedBy,
935
- label,
936
- languageIn,
937
- maxCount,
938
- maxExclusive,
939
- maxInclusive,
940
- maxLength,
941
- minCount,
942
- minExclusive,
943
- minInclusive,
944
- minLength,
945
- mutable,
946
- name,
947
- node,
948
- nodeKind,
949
- not,
950
- or,
951
- order,
952
- path,
953
- patterns,
954
- resolve,
955
- shaclmateName,
956
- uniqueLang,
957
- xone,
958
- };
959
- if (!globalThis.Object.prototype.hasOwnProperty.call($object, "toString")) {
960
- $object.toString = $toString;
961
- }
962
- return $object;
393
+ return $sequenceRecord({
394
+ $identifier: $convertToIdentifierProperty(parameters.$identifier),
395
+ and: $convertToMaybe($convertToArray($convertToIdentifier, true))(parameters.and).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(PropertyShape.schema.properties.and.type(), value)),
396
+ classes: $convertToArray(($convertToIri), true)(parameters.classes).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.classes.type(), value)),
397
+ comment: $convertToMaybe($identityConversionFunction)(parameters.comment).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.comment.type(), value)),
398
+ datatype: $convertToMaybe(($convertToIri))(parameters.datatype).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.datatype.type(), value)),
399
+ deactivated: $convertToMaybe($identityConversionFunction)(parameters.deactivated).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.deactivated.type(), value)),
400
+ defaultValue: $convertToMaybe($identityConversionFunction)(parameters.defaultValue).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.defaultValue.type(), value)),
401
+ description: $convertToMaybe($identityConversionFunction)(parameters.description).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.description.type(), value)),
402
+ display: $convertWithDefaultValue($identityConversionFunction, false)(parameters.display),
403
+ flags: $convertToArray($identityConversionFunction, true)(parameters.flags).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.flags.type(), value)),
404
+ groups: $convertToArray($convertToIdentifier, true)(parameters.groups).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.groups.type(), value)),
405
+ hasValues: $convertToArray($identityConversionFunction, true)(parameters.hasValues).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.hasValues.type(), value)),
406
+ in_: $convertToMaybe($convertToArray($identityConversionFunction, true))(parameters.in_).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(PropertyShape.schema.properties.in_.type(), value)),
407
+ isDefinedBy: $convertToMaybe($convertToIdentifier)(parameters.isDefinedBy).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.isDefinedBy.type(), value)),
408
+ label: $convertToMaybe($identityConversionFunction)(parameters.label).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.label.type(), value)),
409
+ languageIn: $convertToMaybe($convertToArray($identityConversionFunction, true))(parameters.languageIn).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(PropertyShape.schema.properties.languageIn.type(), value)),
410
+ maxCount: $convertToMaybe($identityConversionFunction)(parameters.maxCount).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.maxCount.type(), value)),
411
+ maxExclusive: $convertToMaybe($convertToLiteral)(parameters.maxExclusive).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.maxExclusive.type(), value)),
412
+ maxInclusive: $convertToMaybe($convertToLiteral)(parameters.maxInclusive).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.maxInclusive.type(), value)),
413
+ maxLength: $convertToMaybe($identityConversionFunction)(parameters.maxLength).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.maxLength.type(), value)),
414
+ minCount: $convertToMaybe($identityConversionFunction)(parameters.minCount).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.minCount.type(), value)),
415
+ minExclusive: $convertToMaybe($convertToLiteral)(parameters.minExclusive).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.minExclusive.type(), value)),
416
+ minInclusive: $convertToMaybe($convertToLiteral)(parameters.minInclusive).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.minInclusive.type(), value)),
417
+ minLength: $convertToMaybe($identityConversionFunction)(parameters.minLength).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.minLength.type(), value)),
418
+ mutable: $convertToMaybe($identityConversionFunction)(parameters.mutable).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.mutable.type(), value)),
419
+ name: $convertToMaybe($identityConversionFunction)(parameters.name).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.name.type(), value)),
420
+ node: $convertToMaybe($convertToIdentifier)(parameters.node).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.node.type(), value)),
421
+ nodeKind: $convertToMaybe(($convertToIri))(parameters.nodeKind).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.nodeKind.type(), value)),
422
+ not: $convertToArray($convertToIdentifier, true)(parameters.not).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.not.type(), value)),
423
+ or: $convertToMaybe($convertToArray($convertToIdentifier, true))(parameters.or).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(PropertyShape.schema.properties.or.type(), value)),
424
+ order: $convertToMaybe($identityConversionFunction)(parameters.order).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.order.type(), value)),
425
+ path: Either.of(parameters.path),
426
+ patterns: $convertToArray($identityConversionFunction, true)(parameters.patterns).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.patterns.type(), value)),
427
+ resolve: $convertToMaybe($convertToIdentifier)(parameters.resolve).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.resolve.type(), value)),
428
+ shaclmateName: $convertToMaybe($identityConversionFunction)(parameters.shaclmateName).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.shaclmateName.type(), value)),
429
+ uniqueLang: $convertToMaybe($identityConversionFunction)(parameters.uniqueLang).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.uniqueLang.type(), value)),
430
+ xone: $convertToMaybe($convertToArray($convertToIdentifier, true))(parameters.xone).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(PropertyShape.schema.properties.xone.type(), value)),
431
+ }).map((properties) => {
432
+ const finalObject = { ...properties, $type: "PropertyShape" };
433
+ if (!globalThis.Object.prototype.hasOwnProperty.call(finalObject, "toString")) {
434
+ finalObject.toString = $toString;
435
+ }
436
+ return finalObject;
437
+ });
963
438
  }
964
439
  PropertyShape.create = create;
440
+ function createUnsafe(parameters) {
441
+ return create(parameters).unsafeCoerce();
442
+ }
443
+ PropertyShape.createUnsafe = createUnsafe;
965
444
  let Identifier;
966
445
  (function (Identifier) {
967
446
  Identifier.parse = $parseIdentifier;
@@ -1735,7 +1214,7 @@ export var PropertyShape;
1735
1214
  value: Maybe.empty(),
1736
1215
  })),
1737
1216
  }),
1738
- }).map((properties) => create(properties)));
1217
+ }).chain((properties) => create(properties)));
1739
1218
  };
1740
1219
  PropertyShape.fromRdfResource = $wrap_FromRdfResourceFunction(PropertyShape._fromRdfResource);
1741
1220
  PropertyShape.fromRdfResourceValues = (values, options) => values.chain((values) => values.chainMap((value) => value
@@ -1828,7 +1307,7 @@ export var PropertyShape;
1828
1307
  type: () => ({
1829
1308
  kind: "DefaultValue",
1830
1309
  item: () => ({ kind: "Boolean" }),
1831
- defaultValue: dataFactory.literal("false", $RdfVocabularies.xsd.boolean),
1310
+ defaultValue: false,
1832
1311
  }),
1833
1312
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#display"),
1834
1313
  },
@@ -2298,58 +1777,23 @@ export var PropertyShape;
2298
1777
  export var PropertyGroup;
2299
1778
  (function (PropertyGroup) {
2300
1779
  function create(parameters) {
2301
- const $identifierParameter = parameters?.$identifier;
2302
- let $identifier;
2303
- if (typeof $identifierParameter === "function") {
2304
- $identifier = $identifierParameter;
2305
- }
2306
- else if (typeof $identifierParameter === "object") {
2307
- $identifier = () => $identifierParameter;
2308
- }
2309
- else if (typeof $identifierParameter === "string") {
2310
- $identifier = () => dataFactory.namedNode($identifierParameter);
2311
- }
2312
- else if ($identifierParameter === undefined) {
2313
- const $eagerIdentifier = dataFactory.blankNode();
2314
- $identifier = () => $eagerIdentifier;
2315
- }
2316
- else {
2317
- $identifier = $identifierParameter;
2318
- }
2319
- const $type = "PropertyGroup";
2320
- let comment;
2321
- if (Maybe.isMaybe(parameters?.comment)) {
2322
- comment = parameters?.comment;
2323
- }
2324
- else if (typeof parameters?.comment === "string") {
2325
- comment = Maybe.of(parameters?.comment);
2326
- }
2327
- else if (parameters?.comment === undefined) {
2328
- comment = Maybe.empty();
2329
- }
2330
- else {
2331
- comment = parameters?.comment;
2332
- }
2333
- let label;
2334
- if (Maybe.isMaybe(parameters?.label)) {
2335
- label = parameters?.label;
2336
- }
2337
- else if (typeof parameters?.label === "string") {
2338
- label = Maybe.of(parameters?.label);
2339
- }
2340
- else if (parameters?.label === undefined) {
2341
- label = Maybe.empty();
2342
- }
2343
- else {
2344
- label = parameters?.label;
2345
- }
2346
- const $object = { $identifier, $type, comment, label };
2347
- if (!globalThis.Object.prototype.hasOwnProperty.call($object, "toString")) {
2348
- $object.toString = $toString;
2349
- }
2350
- return $object;
1780
+ return $sequenceRecord({
1781
+ $identifier: $convertToIdentifierProperty(parameters?.$identifier),
1782
+ comment: $convertToMaybe($identityConversionFunction)(parameters?.comment).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.comment.type(), value)),
1783
+ label: $convertToMaybe($identityConversionFunction)(parameters?.label).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.label.type(), value)),
1784
+ }).map((properties) => {
1785
+ const finalObject = { ...properties, $type: "PropertyGroup" };
1786
+ if (!globalThis.Object.prototype.hasOwnProperty.call(finalObject, "toString")) {
1787
+ finalObject.toString = $toString;
1788
+ }
1789
+ return finalObject;
1790
+ });
2351
1791
  }
2352
1792
  PropertyGroup.create = create;
1793
+ function createUnsafe(parameters) {
1794
+ return create(parameters).unsafeCoerce();
1795
+ }
1796
+ PropertyGroup.createUnsafe = createUnsafe;
2353
1797
  let Identifier;
2354
1798
  (function (Identifier) {
2355
1799
  Identifier.parse = $parseIdentifier;
@@ -2429,7 +1873,7 @@ export var PropertyGroup;
2429
1873
  value: Maybe.empty(),
2430
1874
  })),
2431
1875
  }),
2432
- }).map((properties) => create(properties)));
1876
+ }).chain((properties) => create(properties)));
2433
1877
  };
2434
1878
  PropertyGroup.fromRdfResource = $wrap_FromRdfResourceFunction(PropertyGroup._fromRdfResource);
2435
1879
  PropertyGroup.fromRdfResourceValues = (values, options) => values.chain((values) => values.chainMap((value) => value
@@ -2504,102 +1948,23 @@ export var PropertyGroup;
2504
1948
  export var Ontology;
2505
1949
  (function (Ontology) {
2506
1950
  function create(parameters) {
2507
- const $identifierParameter = parameters?.$identifier;
2508
- let $identifier;
2509
- if (typeof $identifierParameter === "function") {
2510
- $identifier = $identifierParameter;
2511
- }
2512
- else if (typeof $identifierParameter === "object") {
2513
- $identifier = () => $identifierParameter;
2514
- }
2515
- else if (typeof $identifierParameter === "string") {
2516
- $identifier = () => dataFactory.namedNode($identifierParameter);
2517
- }
2518
- else if ($identifierParameter === undefined) {
2519
- const $eagerIdentifier = dataFactory.blankNode();
2520
- $identifier = () => $eagerIdentifier;
2521
- }
2522
- else {
2523
- $identifier = $identifierParameter;
2524
- }
2525
- const $type = "Ontology";
2526
- let comment;
2527
- if (Maybe.isMaybe(parameters?.comment)) {
2528
- comment = parameters?.comment;
2529
- }
2530
- else if (typeof parameters?.comment === "string") {
2531
- comment = Maybe.of(parameters?.comment);
2532
- }
2533
- else if (parameters?.comment === undefined) {
2534
- comment = Maybe.empty();
2535
- }
2536
- else {
2537
- comment = parameters?.comment;
2538
- }
2539
- let label;
2540
- if (Maybe.isMaybe(parameters?.label)) {
2541
- label = parameters?.label;
2542
- }
2543
- else if (typeof parameters?.label === "string") {
2544
- label = Maybe.of(parameters?.label);
2545
- }
2546
- else if (parameters?.label === undefined) {
2547
- label = Maybe.empty();
2548
- }
2549
- else {
2550
- label = parameters?.label;
2551
- }
2552
- let tsFeatureExcludes;
2553
- if (parameters?.tsFeatureExcludes === undefined) {
2554
- tsFeatureExcludes = [];
2555
- }
2556
- else if ($isReadonlyObjectArray(parameters?.tsFeatureExcludes)) {
2557
- tsFeatureExcludes = parameters?.tsFeatureExcludes;
2558
- }
2559
- else if ($isReadonlyStringArray(parameters?.tsFeatureExcludes)) {
2560
- tsFeatureExcludes = parameters?.tsFeatureExcludes.map((item) => dataFactory.namedNode(item));
2561
- }
2562
- else {
2563
- tsFeatureExcludes = parameters?.tsFeatureExcludes;
2564
- }
2565
- let tsFeatureIncludes;
2566
- if (parameters?.tsFeatureIncludes === undefined) {
2567
- tsFeatureIncludes = [];
2568
- }
2569
- else if ($isReadonlyObjectArray(parameters?.tsFeatureIncludes)) {
2570
- tsFeatureIncludes = parameters?.tsFeatureIncludes;
2571
- }
2572
- else if ($isReadonlyStringArray(parameters?.tsFeatureIncludes)) {
2573
- tsFeatureIncludes = parameters?.tsFeatureIncludes.map((item) => dataFactory.namedNode(item));
2574
- }
2575
- else {
2576
- tsFeatureIncludes = parameters?.tsFeatureIncludes;
2577
- }
2578
- let tsImports;
2579
- if (parameters?.tsImports === undefined) {
2580
- tsImports = [];
2581
- }
2582
- else if (typeof parameters?.tsImports === "object") {
2583
- tsImports = parameters?.tsImports;
2584
- }
2585
- else {
2586
- tsImports = parameters?.tsImports;
2587
- }
2588
- const $object = {
2589
- $identifier,
2590
- $type,
2591
- comment,
2592
- label,
2593
- tsFeatureExcludes,
2594
- tsFeatureIncludes,
2595
- tsImports,
2596
- };
2597
- if (!globalThis.Object.prototype.hasOwnProperty.call($object, "toString")) {
2598
- $object.toString = $toString;
2599
- }
2600
- return $object;
1951
+ return $sequenceRecord({
1952
+ $identifier: $convertToIdentifierProperty(parameters?.$identifier),
1953
+ comment: $convertToMaybe($identityConversionFunction)(parameters?.comment).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.comment.type(), value)),
1954
+ label: $convertToMaybe($identityConversionFunction)(parameters?.label).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.label.type(), value)),
1955
+ }).map((properties) => {
1956
+ const finalObject = { ...properties, $type: "Ontology" };
1957
+ if (!globalThis.Object.prototype.hasOwnProperty.call(finalObject, "toString")) {
1958
+ finalObject.toString = $toString;
1959
+ }
1960
+ return finalObject;
1961
+ });
2601
1962
  }
2602
1963
  Ontology.create = create;
1964
+ function createUnsafe(parameters) {
1965
+ return create(parameters).unsafeCoerce();
1966
+ }
1967
+ Ontology.createUnsafe = createUnsafe;
2603
1968
  let Identifier;
2604
1969
  (function (Identifier) {
2605
1970
  Identifier.parse = $parseIdentifier;
@@ -2618,18 +1983,6 @@ export var Ontology;
2618
1983
  !$filterMaybe($filterString)(filter.label, value.label)) {
2619
1984
  return false;
2620
1985
  }
2621
- if (filter.tsFeatureExcludes !== undefined &&
2622
- !$filterArray($filterIri)(filter.tsFeatureExcludes, value.tsFeatureExcludes)) {
2623
- return false;
2624
- }
2625
- if (filter.tsFeatureIncludes !== undefined &&
2626
- !$filterArray($filterIri)(filter.tsFeatureIncludes, value.tsFeatureIncludes)) {
2627
- return false;
2628
- }
2629
- if (filter.tsImports !== undefined &&
2630
- !$filterArray($filterString)(filter.tsImports, value.tsImports)) {
2631
- return false;
2632
- }
2633
1986
  return true;
2634
1987
  }
2635
1988
  Ontology.filter = filter;
@@ -2691,69 +2044,7 @@ export var Ontology;
2691
2044
  value: Maybe.empty(),
2692
2045
  })),
2693
2046
  }),
2694
- tsFeatureExcludes: $shaclPropertyFromRdf({
2695
- graph: _$options.graph,
2696
- resource: $resource,
2697
- propertySchema: Ontology.schema.properties.tsFeatureExcludes,
2698
- typeFromRdf: (resourceValues) => resourceValues
2699
- .chain((values) => values.chainMap((value) => value.toIri([
2700
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_All"),
2701
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Create"),
2702
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_Default"),
2703
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Equals"),
2704
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Graphql"),
2705
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Hash"),
2706
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Json"),
2707
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_None"),
2708
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Rdf"),
2709
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Sparql"),
2710
- ])))
2711
- .map((values) => values.toArray())
2712
- .map((valuesArray) => Resource.Values.fromValue({
2713
- focusResource: $resource,
2714
- propertyPath: Ontology.schema.properties.tsFeatureExcludes.path,
2715
- value: valuesArray,
2716
- })),
2717
- }),
2718
- tsFeatureIncludes: $shaclPropertyFromRdf({
2719
- graph: _$options.graph,
2720
- resource: $resource,
2721
- propertySchema: Ontology.schema.properties.tsFeatureIncludes,
2722
- typeFromRdf: (resourceValues) => resourceValues
2723
- .chain((values) => values.chainMap((value) => value.toIri([
2724
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_All"),
2725
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Create"),
2726
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_Default"),
2727
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Equals"),
2728
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Graphql"),
2729
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Hash"),
2730
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Json"),
2731
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_None"),
2732
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Rdf"),
2733
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Sparql"),
2734
- ])))
2735
- .map((values) => values.toArray())
2736
- .map((valuesArray) => Resource.Values.fromValue({
2737
- focusResource: $resource,
2738
- propertyPath: Ontology.schema.properties.tsFeatureIncludes.path,
2739
- value: valuesArray,
2740
- })),
2741
- }),
2742
- tsImports: $shaclPropertyFromRdf({
2743
- graph: _$options.graph,
2744
- resource: $resource,
2745
- propertySchema: Ontology.schema.properties.tsImports,
2746
- typeFromRdf: (resourceValues) => resourceValues
2747
- .chain((values) => $fromRdfPreferredLanguages(values, _$options.preferredLanguages))
2748
- .chain((values) => values.chainMap((value) => value.toString()))
2749
- .map((values) => values.toArray())
2750
- .map((valuesArray) => Resource.Values.fromValue({
2751
- focusResource: $resource,
2752
- propertyPath: Ontology.schema.properties.tsImports.path,
2753
- value: valuesArray,
2754
- })),
2755
- }),
2756
- }).map((properties) => create(properties)));
2047
+ }).chain((properties) => create(properties)));
2757
2048
  };
2758
2049
  Ontology.fromRdfResource = $wrap_FromRdfResourceFunction(Ontology._fromRdfResource);
2759
2050
  Ontology.fromRdfResourceValues = (values, options) => values.chain((values) => values.chainMap((value) => value
@@ -2798,58 +2089,6 @@ export var Ontology;
2798
2089
  }),
2799
2090
  path: dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#label"),
2800
2091
  },
2801
- tsFeatureExcludes: {
2802
- kind: "Shacl",
2803
- type: () => ({
2804
- kind: "Set",
2805
- item: () => ({
2806
- kind: "Iri",
2807
- in: [
2808
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_All"),
2809
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Create"),
2810
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_Default"),
2811
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Equals"),
2812
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Graphql"),
2813
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Hash"),
2814
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Json"),
2815
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_None"),
2816
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Rdf"),
2817
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Sparql"),
2818
- ],
2819
- }),
2820
- }),
2821
- path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#tsFeatureExclude"),
2822
- },
2823
- tsFeatureIncludes: {
2824
- kind: "Shacl",
2825
- type: () => ({
2826
- kind: "Set",
2827
- item: () => ({
2828
- kind: "Iri",
2829
- in: [
2830
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_All"),
2831
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Create"),
2832
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_Default"),
2833
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Equals"),
2834
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Graphql"),
2835
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Hash"),
2836
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Json"),
2837
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_None"),
2838
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Rdf"),
2839
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Sparql"),
2840
- ],
2841
- }),
2842
- }),
2843
- path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#tsFeatureInclude"),
2844
- },
2845
- tsImports: {
2846
- kind: "Shacl",
2847
- type: () => ({
2848
- kind: "Set",
2849
- item: () => ({ kind: "String" }),
2850
- }),
2851
- path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#tsImport"),
2852
- },
2853
2092
  },
2854
2093
  };
2855
2094
  Ontology._toRdfResource = (parameters) => {
@@ -2862,11 +2101,6 @@ export var Ontology;
2862
2101
  parameters.resource.add(dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#label"), parameters.object.label
2863
2102
  .toList()
2864
2103
  .flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
2865
- parameters.resource.add(dataFactory.namedNode("http://purl.org/shaclmate/ontology#tsFeatureExclude"), parameters.object.tsFeatureExcludes.flatMap((item) => [item]), parameters.graph);
2866
- parameters.resource.add(dataFactory.namedNode("http://purl.org/shaclmate/ontology#tsFeatureInclude"), parameters.object.tsFeatureIncludes.flatMap((item) => [item]), parameters.graph);
2867
- parameters.resource.add(dataFactory.namedNode("http://purl.org/shaclmate/ontology#tsImport"), parameters.object.tsImports.flatMap((item) => [
2868
- $literalFactory.string(item),
2869
- ]), parameters.graph);
2870
2104
  return parameters.resource;
2871
2105
  };
2872
2106
  Ontology.toRdfResource = $wrap_ToRdfResourceFunction(Ontology._toRdfResource);
@@ -2885,713 +2119,59 @@ export var Ontology;
2885
2119
  export var NodeShape;
2886
2120
  (function (NodeShape) {
2887
2121
  function create(parameters) {
2888
- const $identifierParameter = parameters?.$identifier;
2889
- let $identifier;
2890
- if (typeof $identifierParameter === "function") {
2891
- $identifier = $identifierParameter;
2892
- }
2893
- else if (typeof $identifierParameter === "object") {
2894
- $identifier = () => $identifierParameter;
2895
- }
2896
- else if (typeof $identifierParameter === "string") {
2897
- $identifier = () => dataFactory.namedNode($identifierParameter);
2898
- }
2899
- else if ($identifierParameter === undefined) {
2900
- const $eagerIdentifier = dataFactory.blankNode();
2901
- $identifier = () => $eagerIdentifier;
2902
- }
2903
- else {
2904
- $identifier = $identifierParameter;
2905
- }
2906
- const $type = "NodeShape";
2907
- let and;
2908
- if (Maybe.isMaybe(parameters?.and)) {
2909
- and = parameters?.and;
2910
- }
2911
- else if ($isReadonlyObjectArray(parameters?.and)) {
2912
- and = Maybe.of(parameters?.and);
2913
- }
2914
- else if ($isReadonlyStringArray(parameters?.and)) {
2915
- and = Maybe.of(parameters?.and.map((item) => dataFactory.namedNode(item)));
2916
- }
2917
- else if (parameters?.and === undefined) {
2918
- and = Maybe.empty();
2919
- }
2920
- else {
2921
- and = parameters?.and;
2922
- }
2923
- let classes;
2924
- if (parameters?.classes === undefined) {
2925
- classes = [];
2926
- }
2927
- else if ($isReadonlyObjectArray(parameters?.classes)) {
2928
- classes = parameters?.classes;
2929
- }
2930
- else if ($isReadonlyStringArray(parameters?.classes)) {
2931
- classes = parameters?.classes.map((item) => dataFactory.namedNode(item));
2932
- }
2933
- else {
2934
- classes = parameters?.classes;
2935
- }
2936
- let closed;
2937
- if (Maybe.isMaybe(parameters?.closed)) {
2938
- closed = parameters?.closed;
2939
- }
2940
- else if (typeof parameters?.closed === "boolean") {
2941
- closed = Maybe.of(parameters?.closed);
2942
- }
2943
- else if (parameters?.closed === undefined) {
2944
- closed = Maybe.empty();
2945
- }
2946
- else {
2947
- closed = parameters?.closed;
2948
- }
2949
- let comment;
2950
- if (Maybe.isMaybe(parameters?.comment)) {
2951
- comment = parameters?.comment;
2952
- }
2953
- else if (typeof parameters?.comment === "string") {
2954
- comment = Maybe.of(parameters?.comment);
2955
- }
2956
- else if (parameters?.comment === undefined) {
2957
- comment = Maybe.empty();
2958
- }
2959
- else {
2960
- comment = parameters?.comment;
2961
- }
2962
- let datatype;
2963
- if (Maybe.isMaybe(parameters?.datatype)) {
2964
- datatype = parameters?.datatype;
2965
- }
2966
- else if (typeof parameters?.datatype === "object") {
2967
- datatype = Maybe.of(parameters?.datatype);
2968
- }
2969
- else if (typeof parameters?.datatype === "string") {
2970
- datatype = Maybe.of(dataFactory.namedNode(parameters?.datatype));
2971
- }
2972
- else if (parameters?.datatype === undefined) {
2973
- datatype = Maybe.empty();
2974
- }
2975
- else {
2976
- datatype = parameters?.datatype;
2977
- }
2978
- let deactivated;
2979
- if (Maybe.isMaybe(parameters?.deactivated)) {
2980
- deactivated = parameters?.deactivated;
2981
- }
2982
- else if (typeof parameters?.deactivated === "boolean") {
2983
- deactivated = Maybe.of(parameters?.deactivated);
2984
- }
2985
- else if (parameters?.deactivated === undefined) {
2986
- deactivated = Maybe.empty();
2987
- }
2988
- else {
2989
- deactivated = parameters?.deactivated;
2990
- }
2991
- let discriminantValue;
2992
- if (Maybe.isMaybe(parameters?.discriminantValue)) {
2993
- discriminantValue = parameters?.discriminantValue;
2994
- }
2995
- else if (typeof parameters?.discriminantValue === "string") {
2996
- discriminantValue = Maybe.of(parameters?.discriminantValue);
2997
- }
2998
- else if (parameters?.discriminantValue === undefined) {
2999
- discriminantValue = Maybe.empty();
3000
- }
3001
- else {
3002
- discriminantValue = parameters?.discriminantValue;
3003
- }
3004
- let extern;
3005
- if (Maybe.isMaybe(parameters?.extern)) {
3006
- extern = parameters?.extern;
3007
- }
3008
- else if (typeof parameters?.extern === "boolean") {
3009
- extern = Maybe.of(parameters?.extern);
3010
- }
3011
- else if (parameters?.extern === undefined) {
3012
- extern = Maybe.empty();
3013
- }
3014
- else {
3015
- extern = parameters?.extern;
3016
- }
3017
- let flags;
3018
- if (parameters?.flags === undefined) {
3019
- flags = [];
3020
- }
3021
- else if (typeof parameters?.flags === "object") {
3022
- flags = parameters?.flags;
3023
- }
3024
- else {
3025
- flags = parameters?.flags;
3026
- }
3027
- let fromRdfType;
3028
- if (Maybe.isMaybe(parameters?.fromRdfType)) {
3029
- fromRdfType = parameters?.fromRdfType;
3030
- }
3031
- else if (typeof parameters?.fromRdfType === "object") {
3032
- fromRdfType = Maybe.of(parameters?.fromRdfType);
3033
- }
3034
- else if (typeof parameters?.fromRdfType === "string") {
3035
- fromRdfType = Maybe.of(dataFactory.namedNode(parameters?.fromRdfType));
3036
- }
3037
- else if (parameters?.fromRdfType === undefined) {
3038
- fromRdfType = Maybe.empty();
3039
- }
3040
- else {
3041
- fromRdfType = parameters?.fromRdfType;
3042
- }
3043
- let hasValues;
3044
- if (parameters?.hasValues === undefined) {
3045
- hasValues = [];
3046
- }
3047
- else if ($isReadonlyObjectArray(parameters?.hasValues)) {
3048
- hasValues = parameters?.hasValues;
3049
- }
3050
- else if ($isReadonlyBigIntArray(parameters?.hasValues)) {
3051
- hasValues = parameters?.hasValues.map((item) => $literalFactory.bigint(item));
3052
- }
3053
- else if ($isReadonlyBooleanArray(parameters?.hasValues)) {
3054
- hasValues = parameters?.hasValues.map((item) => $literalFactory.boolean(item));
3055
- }
3056
- else if ($isReadonlyNumberArray(parameters?.hasValues)) {
3057
- hasValues = parameters?.hasValues.map((item) => $literalFactory.number(item));
3058
- }
3059
- else if ($isReadonlyStringArray(parameters?.hasValues)) {
3060
- hasValues = parameters?.hasValues.map((item) => $literalFactory.string(item));
3061
- }
3062
- else {
3063
- hasValues = parameters?.hasValues;
3064
- }
3065
- let ignoredProperties;
3066
- if (Maybe.isMaybe(parameters?.ignoredProperties)) {
3067
- ignoredProperties = parameters?.ignoredProperties;
3068
- }
3069
- else if ($isReadonlyObjectArray(parameters?.ignoredProperties)) {
3070
- ignoredProperties = Maybe.of(parameters?.ignoredProperties);
3071
- }
3072
- else if ($isReadonlyStringArray(parameters?.ignoredProperties)) {
3073
- ignoredProperties = Maybe.of(parameters?.ignoredProperties.map((item) => dataFactory.namedNode(item)));
3074
- }
3075
- else if (parameters?.ignoredProperties === undefined) {
3076
- ignoredProperties = Maybe.empty();
3077
- }
3078
- else {
3079
- ignoredProperties = parameters?.ignoredProperties;
3080
- }
3081
- let in_;
3082
- if (Maybe.isMaybe(parameters?.in_)) {
3083
- in_ = parameters?.in_;
3084
- }
3085
- else if ($isReadonlyObjectArray(parameters?.in_)) {
3086
- in_ = Maybe.of(parameters?.in_);
3087
- }
3088
- else if ($isReadonlyBigIntArray(parameters?.in_)) {
3089
- in_ = Maybe.of(parameters?.in_.map((item) => $literalFactory.bigint(item)));
3090
- }
3091
- else if ($isReadonlyBooleanArray(parameters?.in_)) {
3092
- in_ = Maybe.of(parameters?.in_.map((item) => $literalFactory.boolean(item)));
3093
- }
3094
- else if ($isReadonlyNumberArray(parameters?.in_)) {
3095
- in_ = Maybe.of(parameters?.in_.map((item) => $literalFactory.number(item)));
3096
- }
3097
- else if ($isReadonlyStringArray(parameters?.in_)) {
3098
- in_ = Maybe.of(parameters?.in_.map((item) => $literalFactory.string(item)));
3099
- }
3100
- else if (parameters?.in_ === undefined) {
3101
- in_ = Maybe.empty();
3102
- }
3103
- else {
3104
- in_ = parameters?.in_;
3105
- }
3106
- let isDefinedBy;
3107
- if (Maybe.isMaybe(parameters?.isDefinedBy)) {
3108
- isDefinedBy = parameters?.isDefinedBy;
3109
- }
3110
- else if (typeof parameters?.isDefinedBy === "object") {
3111
- isDefinedBy = Maybe.of(parameters?.isDefinedBy);
3112
- }
3113
- else if (typeof parameters?.isDefinedBy === "string") {
3114
- isDefinedBy = Maybe.of(dataFactory.namedNode(parameters?.isDefinedBy));
3115
- }
3116
- else if (parameters?.isDefinedBy === undefined) {
3117
- isDefinedBy = Maybe.empty();
3118
- }
3119
- else {
3120
- isDefinedBy = parameters?.isDefinedBy;
3121
- }
3122
- let label;
3123
- if (Maybe.isMaybe(parameters?.label)) {
3124
- label = parameters?.label;
3125
- }
3126
- else if (typeof parameters?.label === "string") {
3127
- label = Maybe.of(parameters?.label);
3128
- }
3129
- else if (parameters?.label === undefined) {
3130
- label = Maybe.empty();
3131
- }
3132
- else {
3133
- label = parameters?.label;
3134
- }
3135
- let languageIn;
3136
- if (Maybe.isMaybe(parameters?.languageIn)) {
3137
- languageIn = parameters?.languageIn;
3138
- }
3139
- else if (typeof parameters?.languageIn === "object") {
3140
- languageIn = Maybe.of(parameters?.languageIn);
3141
- }
3142
- else if (parameters?.languageIn === undefined) {
3143
- languageIn = Maybe.empty();
3144
- }
3145
- else {
3146
- languageIn = parameters?.languageIn;
3147
- }
3148
- let maxCount;
3149
- if (Maybe.isMaybe(parameters?.maxCount)) {
3150
- maxCount = parameters?.maxCount;
3151
- }
3152
- else if (typeof parameters?.maxCount === "bigint") {
3153
- maxCount = Maybe.of(parameters?.maxCount);
3154
- }
3155
- else if (typeof parameters?.maxCount === "number") {
3156
- maxCount = Maybe.of(BigInt(parameters?.maxCount));
3157
- }
3158
- else if (parameters?.maxCount === undefined) {
3159
- maxCount = Maybe.empty();
3160
- }
3161
- else {
3162
- maxCount = parameters?.maxCount;
3163
- }
3164
- let maxExclusive;
3165
- if (Maybe.isMaybe(parameters?.maxExclusive)) {
3166
- maxExclusive = parameters?.maxExclusive;
3167
- }
3168
- else if (typeof parameters?.maxExclusive === "bigint") {
3169
- maxExclusive = Maybe.of($literalFactory.bigint(parameters?.maxExclusive));
3170
- }
3171
- else if (typeof parameters?.maxExclusive === "boolean") {
3172
- maxExclusive = Maybe.of($literalFactory.boolean(parameters?.maxExclusive));
3173
- }
3174
- else if (typeof parameters?.maxExclusive === "object" &&
3175
- parameters?.maxExclusive instanceof Date) {
3176
- maxExclusive = Maybe.of($literalFactory.date(parameters?.maxExclusive));
3177
- }
3178
- else if (typeof parameters?.maxExclusive === "number") {
3179
- maxExclusive = Maybe.of($literalFactory.number(parameters?.maxExclusive));
3180
- }
3181
- else if (typeof parameters?.maxExclusive === "string") {
3182
- maxExclusive = Maybe.of($literalFactory.string(parameters?.maxExclusive));
3183
- }
3184
- else if (typeof parameters?.maxExclusive === "object") {
3185
- maxExclusive = Maybe.of(parameters?.maxExclusive);
3186
- }
3187
- else if (parameters?.maxExclusive === undefined) {
3188
- maxExclusive = Maybe.empty();
3189
- }
3190
- else {
3191
- maxExclusive = parameters?.maxExclusive;
3192
- }
3193
- let maxInclusive;
3194
- if (Maybe.isMaybe(parameters?.maxInclusive)) {
3195
- maxInclusive = parameters?.maxInclusive;
3196
- }
3197
- else if (typeof parameters?.maxInclusive === "bigint") {
3198
- maxInclusive = Maybe.of($literalFactory.bigint(parameters?.maxInclusive));
3199
- }
3200
- else if (typeof parameters?.maxInclusive === "boolean") {
3201
- maxInclusive = Maybe.of($literalFactory.boolean(parameters?.maxInclusive));
3202
- }
3203
- else if (typeof parameters?.maxInclusive === "object" &&
3204
- parameters?.maxInclusive instanceof Date) {
3205
- maxInclusive = Maybe.of($literalFactory.date(parameters?.maxInclusive));
3206
- }
3207
- else if (typeof parameters?.maxInclusive === "number") {
3208
- maxInclusive = Maybe.of($literalFactory.number(parameters?.maxInclusive));
3209
- }
3210
- else if (typeof parameters?.maxInclusive === "string") {
3211
- maxInclusive = Maybe.of($literalFactory.string(parameters?.maxInclusive));
3212
- }
3213
- else if (typeof parameters?.maxInclusive === "object") {
3214
- maxInclusive = Maybe.of(parameters?.maxInclusive);
3215
- }
3216
- else if (parameters?.maxInclusive === undefined) {
3217
- maxInclusive = Maybe.empty();
3218
- }
3219
- else {
3220
- maxInclusive = parameters?.maxInclusive;
3221
- }
3222
- let maxLength;
3223
- if (Maybe.isMaybe(parameters?.maxLength)) {
3224
- maxLength = parameters?.maxLength;
3225
- }
3226
- else if (typeof parameters?.maxLength === "bigint") {
3227
- maxLength = Maybe.of(parameters?.maxLength);
3228
- }
3229
- else if (typeof parameters?.maxLength === "number") {
3230
- maxLength = Maybe.of(BigInt(parameters?.maxLength));
3231
- }
3232
- else if (parameters?.maxLength === undefined) {
3233
- maxLength = Maybe.empty();
3234
- }
3235
- else {
3236
- maxLength = parameters?.maxLength;
3237
- }
3238
- let minCount;
3239
- if (Maybe.isMaybe(parameters?.minCount)) {
3240
- minCount = parameters?.minCount;
3241
- }
3242
- else if (typeof parameters?.minCount === "bigint") {
3243
- minCount = Maybe.of(parameters?.minCount);
3244
- }
3245
- else if (typeof parameters?.minCount === "number") {
3246
- minCount = Maybe.of(BigInt(parameters?.minCount));
3247
- }
3248
- else if (parameters?.minCount === undefined) {
3249
- minCount = Maybe.empty();
3250
- }
3251
- else {
3252
- minCount = parameters?.minCount;
3253
- }
3254
- let minExclusive;
3255
- if (Maybe.isMaybe(parameters?.minExclusive)) {
3256
- minExclusive = parameters?.minExclusive;
3257
- }
3258
- else if (typeof parameters?.minExclusive === "bigint") {
3259
- minExclusive = Maybe.of($literalFactory.bigint(parameters?.minExclusive));
3260
- }
3261
- else if (typeof parameters?.minExclusive === "boolean") {
3262
- minExclusive = Maybe.of($literalFactory.boolean(parameters?.minExclusive));
3263
- }
3264
- else if (typeof parameters?.minExclusive === "object" &&
3265
- parameters?.minExclusive instanceof Date) {
3266
- minExclusive = Maybe.of($literalFactory.date(parameters?.minExclusive));
3267
- }
3268
- else if (typeof parameters?.minExclusive === "number") {
3269
- minExclusive = Maybe.of($literalFactory.number(parameters?.minExclusive));
3270
- }
3271
- else if (typeof parameters?.minExclusive === "string") {
3272
- minExclusive = Maybe.of($literalFactory.string(parameters?.minExclusive));
3273
- }
3274
- else if (typeof parameters?.minExclusive === "object") {
3275
- minExclusive = Maybe.of(parameters?.minExclusive);
3276
- }
3277
- else if (parameters?.minExclusive === undefined) {
3278
- minExclusive = Maybe.empty();
3279
- }
3280
- else {
3281
- minExclusive = parameters?.minExclusive;
3282
- }
3283
- let minInclusive;
3284
- if (Maybe.isMaybe(parameters?.minInclusive)) {
3285
- minInclusive = parameters?.minInclusive;
3286
- }
3287
- else if (typeof parameters?.minInclusive === "bigint") {
3288
- minInclusive = Maybe.of($literalFactory.bigint(parameters?.minInclusive));
3289
- }
3290
- else if (typeof parameters?.minInclusive === "boolean") {
3291
- minInclusive = Maybe.of($literalFactory.boolean(parameters?.minInclusive));
3292
- }
3293
- else if (typeof parameters?.minInclusive === "object" &&
3294
- parameters?.minInclusive instanceof Date) {
3295
- minInclusive = Maybe.of($literalFactory.date(parameters?.minInclusive));
3296
- }
3297
- else if (typeof parameters?.minInclusive === "number") {
3298
- minInclusive = Maybe.of($literalFactory.number(parameters?.minInclusive));
3299
- }
3300
- else if (typeof parameters?.minInclusive === "string") {
3301
- minInclusive = Maybe.of($literalFactory.string(parameters?.minInclusive));
3302
- }
3303
- else if (typeof parameters?.minInclusive === "object") {
3304
- minInclusive = Maybe.of(parameters?.minInclusive);
3305
- }
3306
- else if (parameters?.minInclusive === undefined) {
3307
- minInclusive = Maybe.empty();
3308
- }
3309
- else {
3310
- minInclusive = parameters?.minInclusive;
3311
- }
3312
- let minLength;
3313
- if (Maybe.isMaybe(parameters?.minLength)) {
3314
- minLength = parameters?.minLength;
3315
- }
3316
- else if (typeof parameters?.minLength === "bigint") {
3317
- minLength = Maybe.of(parameters?.minLength);
3318
- }
3319
- else if (typeof parameters?.minLength === "number") {
3320
- minLength = Maybe.of(BigInt(parameters?.minLength));
3321
- }
3322
- else if (parameters?.minLength === undefined) {
3323
- minLength = Maybe.empty();
3324
- }
3325
- else {
3326
- minLength = parameters?.minLength;
3327
- }
3328
- let mutable;
3329
- if (Maybe.isMaybe(parameters?.mutable)) {
3330
- mutable = parameters?.mutable;
3331
- }
3332
- else if (typeof parameters?.mutable === "boolean") {
3333
- mutable = Maybe.of(parameters?.mutable);
3334
- }
3335
- else if (parameters?.mutable === undefined) {
3336
- mutable = Maybe.empty();
3337
- }
3338
- else {
3339
- mutable = parameters?.mutable;
3340
- }
3341
- let node;
3342
- if (Maybe.isMaybe(parameters?.node)) {
3343
- node = parameters?.node;
3344
- }
3345
- else if (typeof parameters?.node === "object") {
3346
- node = Maybe.of(parameters?.node);
3347
- }
3348
- else if (typeof parameters?.node === "string") {
3349
- node = Maybe.of(dataFactory.namedNode(parameters?.node));
3350
- }
3351
- else if (parameters?.node === undefined) {
3352
- node = Maybe.empty();
3353
- }
3354
- else {
3355
- node = parameters?.node;
3356
- }
3357
- let nodeKind;
3358
- if (Maybe.isMaybe(parameters?.nodeKind)) {
3359
- nodeKind = parameters?.nodeKind;
3360
- }
3361
- else if (typeof parameters?.nodeKind === "object") {
3362
- nodeKind = Maybe.of(parameters?.nodeKind);
3363
- }
3364
- else if (typeof parameters?.nodeKind === "string") {
3365
- nodeKind = Maybe.of(dataFactory.namedNode(parameters?.nodeKind));
3366
- }
3367
- else if (parameters?.nodeKind === undefined) {
3368
- nodeKind = Maybe.empty();
3369
- }
3370
- else {
3371
- nodeKind = parameters?.nodeKind;
3372
- }
3373
- let not;
3374
- if (parameters?.not === undefined) {
3375
- not = [];
3376
- }
3377
- else if ($isReadonlyObjectArray(parameters?.not)) {
3378
- not = parameters?.not;
3379
- }
3380
- else if ($isReadonlyStringArray(parameters?.not)) {
3381
- not = parameters?.not.map((item) => dataFactory.namedNode(item));
3382
- }
3383
- else {
3384
- not = parameters?.not;
3385
- }
3386
- let or;
3387
- if (Maybe.isMaybe(parameters?.or)) {
3388
- or = parameters?.or;
3389
- }
3390
- else if ($isReadonlyObjectArray(parameters?.or)) {
3391
- or = Maybe.of(parameters?.or);
3392
- }
3393
- else if ($isReadonlyStringArray(parameters?.or)) {
3394
- or = Maybe.of(parameters?.or.map((item) => dataFactory.namedNode(item)));
3395
- }
3396
- else if (parameters?.or === undefined) {
3397
- or = Maybe.empty();
3398
- }
3399
- else {
3400
- or = parameters?.or;
3401
- }
3402
- let patterns;
3403
- if (parameters?.patterns === undefined) {
3404
- patterns = [];
3405
- }
3406
- else if (typeof parameters?.patterns === "object") {
3407
- patterns = parameters?.patterns;
3408
- }
3409
- else {
3410
- patterns = parameters?.patterns;
3411
- }
3412
- let properties;
3413
- if (parameters?.properties === undefined) {
3414
- properties = [];
3415
- }
3416
- else if ($isReadonlyObjectArray(parameters?.properties)) {
3417
- properties = parameters?.properties;
3418
- }
3419
- else if ($isReadonlyStringArray(parameters?.properties)) {
3420
- properties = parameters?.properties.map((item) => dataFactory.namedNode(item));
3421
- }
3422
- else {
3423
- properties = parameters?.properties;
3424
- }
3425
- let rdfType;
3426
- if (Maybe.isMaybe(parameters?.rdfType)) {
3427
- rdfType = parameters?.rdfType;
3428
- }
3429
- else if (typeof parameters?.rdfType === "object") {
3430
- rdfType = Maybe.of(parameters?.rdfType);
3431
- }
3432
- else if (typeof parameters?.rdfType === "string") {
3433
- rdfType = Maybe.of(dataFactory.namedNode(parameters?.rdfType));
3434
- }
3435
- else if (parameters?.rdfType === undefined) {
3436
- rdfType = Maybe.empty();
3437
- }
3438
- else {
3439
- rdfType = parameters?.rdfType;
3440
- }
3441
- let shaclmateName;
3442
- if (Maybe.isMaybe(parameters?.shaclmateName)) {
3443
- shaclmateName = parameters?.shaclmateName;
3444
- }
3445
- else if (typeof parameters?.shaclmateName === "string") {
3446
- shaclmateName = Maybe.of(parameters?.shaclmateName);
3447
- }
3448
- else if (parameters?.shaclmateName === undefined) {
3449
- shaclmateName = Maybe.empty();
3450
- }
3451
- else {
3452
- shaclmateName = parameters?.shaclmateName;
3453
- }
3454
- let subClassOf;
3455
- if (parameters?.subClassOf === undefined) {
3456
- subClassOf = [];
3457
- }
3458
- else if ($isReadonlyObjectArray(parameters?.subClassOf)) {
3459
- subClassOf = parameters?.subClassOf;
3460
- }
3461
- else if ($isReadonlyStringArray(parameters?.subClassOf)) {
3462
- subClassOf = parameters?.subClassOf.map((item) => dataFactory.namedNode(item));
3463
- }
3464
- else {
3465
- subClassOf = parameters?.subClassOf;
3466
- }
3467
- let toRdfTypes;
3468
- if (parameters?.toRdfTypes === undefined) {
3469
- toRdfTypes = [];
3470
- }
3471
- else if ($isReadonlyObjectArray(parameters?.toRdfTypes)) {
3472
- toRdfTypes = parameters?.toRdfTypes;
3473
- }
3474
- else if ($isReadonlyStringArray(parameters?.toRdfTypes)) {
3475
- toRdfTypes = parameters?.toRdfTypes.map((item) => dataFactory.namedNode(item));
3476
- }
3477
- else {
3478
- toRdfTypes = parameters?.toRdfTypes;
3479
- }
3480
- let tsFeatureExcludes;
3481
- if (parameters?.tsFeatureExcludes === undefined) {
3482
- tsFeatureExcludes = [];
3483
- }
3484
- else if ($isReadonlyObjectArray(parameters?.tsFeatureExcludes)) {
3485
- tsFeatureExcludes = parameters?.tsFeatureExcludes;
3486
- }
3487
- else if ($isReadonlyStringArray(parameters?.tsFeatureExcludes)) {
3488
- tsFeatureExcludes = parameters?.tsFeatureExcludes.map((item) => dataFactory.namedNode(item));
3489
- }
3490
- else {
3491
- tsFeatureExcludes = parameters?.tsFeatureExcludes;
3492
- }
3493
- let tsFeatureIncludes;
3494
- if (parameters?.tsFeatureIncludes === undefined) {
3495
- tsFeatureIncludes = [];
3496
- }
3497
- else if ($isReadonlyObjectArray(parameters?.tsFeatureIncludes)) {
3498
- tsFeatureIncludes = parameters?.tsFeatureIncludes;
3499
- }
3500
- else if ($isReadonlyStringArray(parameters?.tsFeatureIncludes)) {
3501
- tsFeatureIncludes = parameters?.tsFeatureIncludes.map((item) => dataFactory.namedNode(item));
3502
- }
3503
- else {
3504
- tsFeatureIncludes = parameters?.tsFeatureIncludes;
3505
- }
3506
- let tsImports;
3507
- if (parameters?.tsImports === undefined) {
3508
- tsImports = [];
3509
- }
3510
- else if (typeof parameters?.tsImports === "object") {
3511
- tsImports = parameters?.tsImports;
3512
- }
3513
- else {
3514
- tsImports = parameters?.tsImports;
3515
- }
3516
- let types;
3517
- if (parameters?.types === undefined) {
3518
- types = [];
3519
- }
3520
- else if ($isReadonlyObjectArray(parameters?.types)) {
3521
- types = parameters?.types;
3522
- }
3523
- else if ($isReadonlyStringArray(parameters?.types)) {
3524
- types = parameters?.types.map((item) => dataFactory.namedNode(item));
3525
- }
3526
- else {
3527
- types = parameters?.types;
3528
- }
3529
- let xone;
3530
- if (Maybe.isMaybe(parameters?.xone)) {
3531
- xone = parameters?.xone;
3532
- }
3533
- else if ($isReadonlyObjectArray(parameters?.xone)) {
3534
- xone = Maybe.of(parameters?.xone);
3535
- }
3536
- else if ($isReadonlyStringArray(parameters?.xone)) {
3537
- xone = Maybe.of(parameters?.xone.map((item) => dataFactory.namedNode(item)));
3538
- }
3539
- else if (parameters?.xone === undefined) {
3540
- xone = Maybe.empty();
3541
- }
3542
- else {
3543
- xone = parameters?.xone;
3544
- }
3545
- const $object = {
3546
- $identifier,
3547
- $type,
3548
- and,
3549
- classes,
3550
- closed,
3551
- comment,
3552
- datatype,
3553
- deactivated,
3554
- discriminantValue,
3555
- extern,
3556
- flags,
3557
- fromRdfType,
3558
- hasValues,
3559
- ignoredProperties,
3560
- in_,
3561
- isDefinedBy,
3562
- label,
3563
- languageIn,
3564
- maxCount,
3565
- maxExclusive,
3566
- maxInclusive,
3567
- maxLength,
3568
- minCount,
3569
- minExclusive,
3570
- minInclusive,
3571
- minLength,
3572
- mutable,
3573
- node,
3574
- nodeKind,
3575
- not,
3576
- or,
3577
- patterns,
3578
- properties,
3579
- rdfType,
3580
- shaclmateName,
3581
- subClassOf,
3582
- toRdfTypes,
3583
- tsFeatureExcludes,
3584
- tsFeatureIncludes,
3585
- tsImports,
3586
- types,
3587
- xone,
3588
- };
3589
- if (!globalThis.Object.prototype.hasOwnProperty.call($object, "toString")) {
3590
- $object.toString = $toString;
3591
- }
3592
- return $object;
2122
+ return $sequenceRecord({
2123
+ $identifier: $convertToIdentifierProperty(parameters?.$identifier),
2124
+ and: $convertToMaybe($convertToArray($convertToIdentifier, true))(parameters?.and).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(PropertyShape.schema.properties.and.type(), value)),
2125
+ classes: $convertToArray(($convertToIri), true)(parameters?.classes).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.classes.type(), value)),
2126
+ closed: $convertToMaybe($identityConversionFunction)(parameters?.closed).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.closed.type(), value)),
2127
+ comment: $convertToMaybe($identityConversionFunction)(parameters?.comment).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.comment.type(), value)),
2128
+ datatype: $convertToMaybe(($convertToIri))(parameters?.datatype).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.datatype.type(), value)),
2129
+ deactivated: $convertToMaybe($identityConversionFunction)(parameters?.deactivated).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.deactivated.type(), value)),
2130
+ discriminantValue: $convertToMaybe($identityConversionFunction)(parameters?.discriminantValue).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.discriminantValue.type(), value)),
2131
+ extern: $convertToMaybe($identityConversionFunction)(parameters?.extern).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.extern.type(), value)),
2132
+ flags: $convertToArray($identityConversionFunction, true)(parameters?.flags).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.flags.type(), value)),
2133
+ fromRdfType: $convertToMaybe(($convertToIri))(parameters?.fromRdfType).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.fromRdfType.type(), value)),
2134
+ hasValues: $convertToArray($identityConversionFunction, true)(parameters?.hasValues).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.hasValues.type(), value)),
2135
+ ignoredProperties: $convertToMaybe($convertToArray(($convertToIri), true))(parameters?.ignoredProperties).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.ignoredProperties.type(), value)),
2136
+ in_: $convertToMaybe($convertToArray($identityConversionFunction, true))(parameters?.in_).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(PropertyShape.schema.properties.in_.type(), value)),
2137
+ isDefinedBy: $convertToMaybe($convertToIdentifier)(parameters?.isDefinedBy).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.isDefinedBy.type(), value)),
2138
+ label: $convertToMaybe($identityConversionFunction)(parameters?.label).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.label.type(), value)),
2139
+ languageIn: $convertToMaybe($convertToArray($identityConversionFunction, true))(parameters?.languageIn).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(PropertyShape.schema.properties.languageIn.type(), value)),
2140
+ maxCount: $convertToMaybe($identityConversionFunction)(parameters?.maxCount).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.maxCount.type(), value)),
2141
+ maxExclusive: $convertToMaybe($convertToLiteral)(parameters?.maxExclusive).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.maxExclusive.type(), value)),
2142
+ maxInclusive: $convertToMaybe($convertToLiteral)(parameters?.maxInclusive).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.maxInclusive.type(), value)),
2143
+ maxLength: $convertToMaybe($identityConversionFunction)(parameters?.maxLength).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.maxLength.type(), value)),
2144
+ minCount: $convertToMaybe($identityConversionFunction)(parameters?.minCount).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.minCount.type(), value)),
2145
+ minExclusive: $convertToMaybe($convertToLiteral)(parameters?.minExclusive).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.minExclusive.type(), value)),
2146
+ minInclusive: $convertToMaybe($convertToLiteral)(parameters?.minInclusive).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.minInclusive.type(), value)),
2147
+ minLength: $convertToMaybe($identityConversionFunction)(parameters?.minLength).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.minLength.type(), value)),
2148
+ mutable: $convertToMaybe($identityConversionFunction)(parameters?.mutable).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.mutable.type(), value)),
2149
+ node: $convertToMaybe($convertToIdentifier)(parameters?.node).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.node.type(), value)),
2150
+ nodeKind: $convertToMaybe(($convertToIri))(parameters?.nodeKind).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.nodeKind.type(), value)),
2151
+ not: $convertToArray($convertToIdentifier, true)(parameters?.not).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.not.type(), value)),
2152
+ or: $convertToMaybe($convertToArray($convertToIdentifier, true))(parameters?.or).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(PropertyShape.schema.properties.or.type(), value)),
2153
+ patterns: $convertToArray($identityConversionFunction, true)(parameters?.patterns).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.patterns.type(), value)),
2154
+ properties: $convertToArray($convertToIdentifier, true)(parameters?.properties).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.properties.type(), value)),
2155
+ rdfType: $convertToMaybe(($convertToIri))(parameters?.rdfType).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.rdfType.type(), value)),
2156
+ shaclmateName: $convertToMaybe($identityConversionFunction)(parameters?.shaclmateName).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.shaclmateName.type(), value)),
2157
+ subClassOf: $convertToArray(($convertToIri), true)(parameters?.subClassOf).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.subClassOf.type(), value)),
2158
+ toRdfTypes: $convertToArray(($convertToIri), true)(parameters?.toRdfTypes).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.toRdfTypes.type(), value)),
2159
+ tsImports: $convertToArray($identityConversionFunction, true)(parameters?.tsImports).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.tsImports.type(), value)),
2160
+ types: $convertToArray(($convertToIri), true)(parameters?.types).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.types.type(), value)),
2161
+ xone: $convertToMaybe($convertToArray($convertToIdentifier, true))(parameters?.xone).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(PropertyShape.schema.properties.xone.type(), value)),
2162
+ }).map((properties) => {
2163
+ const finalObject = { ...properties, $type: "NodeShape" };
2164
+ if (!globalThis.Object.prototype.hasOwnProperty.call(finalObject, "toString")) {
2165
+ finalObject.toString = $toString;
2166
+ }
2167
+ return finalObject;
2168
+ });
3593
2169
  }
3594
2170
  NodeShape.create = create;
2171
+ function createUnsafe(parameters) {
2172
+ return create(parameters).unsafeCoerce();
2173
+ }
2174
+ NodeShape.createUnsafe = createUnsafe;
3595
2175
  let Identifier;
3596
2176
  (function (Identifier) {
3597
2177
  Identifier.parse = $parseIdentifier;
@@ -3742,14 +2322,6 @@ export var NodeShape;
3742
2322
  !$filterArray($filterIri)(filter.toRdfTypes, value.toRdfTypes)) {
3743
2323
  return false;
3744
2324
  }
3745
- if (filter.tsFeatureExcludes !== undefined &&
3746
- !$filterArray($filterIri)(filter.tsFeatureExcludes, value.tsFeatureExcludes)) {
3747
- return false;
3748
- }
3749
- if (filter.tsFeatureIncludes !== undefined &&
3750
- !$filterArray($filterIri)(filter.tsFeatureIncludes, value.tsFeatureIncludes)) {
3751
- return false;
3752
- }
3753
2325
  if (filter.tsImports !== undefined &&
3754
2326
  !$filterArray($filterString)(filter.tsImports, value.tsImports)) {
3755
2327
  return false;
@@ -4350,54 +2922,6 @@ export var NodeShape;
4350
2922
  value: valuesArray,
4351
2923
  })),
4352
2924
  }),
4353
- tsFeatureExcludes: $shaclPropertyFromRdf({
4354
- graph: _$options.graph,
4355
- resource: $resource,
4356
- propertySchema: NodeShape.schema.properties.tsFeatureExcludes,
4357
- typeFromRdf: (resourceValues) => resourceValues
4358
- .chain((values) => values.chainMap((value) => value.toIri([
4359
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_All"),
4360
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Create"),
4361
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_Default"),
4362
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Equals"),
4363
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Graphql"),
4364
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Hash"),
4365
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Json"),
4366
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_None"),
4367
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Rdf"),
4368
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Sparql"),
4369
- ])))
4370
- .map((values) => values.toArray())
4371
- .map((valuesArray) => Resource.Values.fromValue({
4372
- focusResource: $resource,
4373
- propertyPath: Ontology.schema.properties.tsFeatureExcludes.path,
4374
- value: valuesArray,
4375
- })),
4376
- }),
4377
- tsFeatureIncludes: $shaclPropertyFromRdf({
4378
- graph: _$options.graph,
4379
- resource: $resource,
4380
- propertySchema: NodeShape.schema.properties.tsFeatureIncludes,
4381
- typeFromRdf: (resourceValues) => resourceValues
4382
- .chain((values) => values.chainMap((value) => value.toIri([
4383
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_All"),
4384
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Create"),
4385
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_Default"),
4386
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Equals"),
4387
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Graphql"),
4388
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Hash"),
4389
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Json"),
4390
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_None"),
4391
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Rdf"),
4392
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Sparql"),
4393
- ])))
4394
- .map((values) => values.toArray())
4395
- .map((valuesArray) => Resource.Values.fromValue({
4396
- focusResource: $resource,
4397
- propertyPath: Ontology.schema.properties.tsFeatureIncludes.path,
4398
- value: valuesArray,
4399
- })),
4400
- }),
4401
2925
  tsImports: $shaclPropertyFromRdf({
4402
2926
  graph: _$options.graph,
4403
2927
  resource: $resource,
@@ -4408,7 +2932,7 @@ export var NodeShape;
4408
2932
  .map((values) => values.toArray())
4409
2933
  .map((valuesArray) => Resource.Values.fromValue({
4410
2934
  focusResource: $resource,
4411
- propertyPath: Ontology.schema.properties.tsImports.path,
2935
+ propertyPath: NodeShape.schema.properties.tsImports.path,
4412
2936
  value: valuesArray,
4413
2937
  })),
4414
2938
  }),
@@ -4445,7 +2969,7 @@ export var NodeShape;
4445
2969
  value: Maybe.empty(),
4446
2970
  })),
4447
2971
  }),
4448
- }).map((properties) => create(properties)));
2972
+ }).chain((properties) => create(properties)));
4449
2973
  };
4450
2974
  NodeShape.fromRdfResource = $wrap_FromRdfResourceFunction(NodeShape._fromRdfResource);
4451
2975
  NodeShape.fromRdfResourceValues = (values, options) => values.chain((values) => values.chainMap((value) => value
@@ -4779,50 +3303,6 @@ export var NodeShape;
4779
3303
  }),
4780
3304
  path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#toRdfType"),
4781
3305
  },
4782
- tsFeatureExcludes: {
4783
- kind: "Shacl",
4784
- type: () => ({
4785
- kind: "Set",
4786
- item: () => ({
4787
- kind: "Iri",
4788
- in: [
4789
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_All"),
4790
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Create"),
4791
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_Default"),
4792
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Equals"),
4793
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Graphql"),
4794
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Hash"),
4795
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Json"),
4796
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_None"),
4797
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Rdf"),
4798
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Sparql"),
4799
- ],
4800
- }),
4801
- }),
4802
- path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#tsFeatureExclude"),
4803
- },
4804
- tsFeatureIncludes: {
4805
- kind: "Shacl",
4806
- type: () => ({
4807
- kind: "Set",
4808
- item: () => ({
4809
- kind: "Iri",
4810
- in: [
4811
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_All"),
4812
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Create"),
4813
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_Default"),
4814
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Equals"),
4815
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Graphql"),
4816
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Hash"),
4817
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Json"),
4818
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeatures_None"),
4819
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Rdf"),
4820
- dataFactory.namedNode("http://purl.org/shaclmate/ontology#_TsFeature_Sparql"),
4821
- ],
4822
- }),
4823
- }),
4824
- path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#tsFeatureInclude"),
4825
- },
4826
3306
  tsImports: {
4827
3307
  kind: "Shacl",
4828
3308
  type: () => ({
@@ -5038,8 +3518,6 @@ export var NodeShape;
5038
3518
  .flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
5039
3519
  parameters.resource.add($RdfVocabularies.rdfs.subClassOf, parameters.object.subClassOf.flatMap((item) => [item]), parameters.graph);
5040
3520
  parameters.resource.add(dataFactory.namedNode("http://purl.org/shaclmate/ontology#toRdfType"), parameters.object.toRdfTypes.flatMap((item) => [item]), parameters.graph);
5041
- parameters.resource.add(dataFactory.namedNode("http://purl.org/shaclmate/ontology#tsFeatureExclude"), parameters.object.tsFeatureExcludes.flatMap((item) => [item]), parameters.graph);
5042
- parameters.resource.add(dataFactory.namedNode("http://purl.org/shaclmate/ontology#tsFeatureInclude"), parameters.object.tsFeatureIncludes.flatMap((item) => [item]), parameters.graph);
5043
3521
  parameters.resource.add(dataFactory.namedNode("http://purl.org/shaclmate/ontology#tsImport"), parameters.object.tsImports.flatMap((item) => [
5044
3522
  $literalFactory.string(item),
5045
3523
  ]), parameters.graph);