@shaclmate/compiler 4.0.49 → 4.0.50

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 (594) hide show
  1. package/dist/input/input.shaclmate.ttl +85 -0
  2. package/package.json +602 -19
  3. package/dist/Compiler.d.ts +0 -14
  4. package/dist/Compiler.js +0 -18
  5. package/dist/Eithers.d.ts +0 -14
  6. package/dist/Eithers.js +0 -67
  7. package/dist/ShapesGraphToAstTransformer.d.ts +0 -18
  8. package/dist/ShapesGraphToAstTransformer.js +0 -50
  9. package/dist/_ShapesGraphToAstTransformer/ShapeStack.d.ts +0 -15
  10. package/dist/_ShapesGraphToAstTransformer/ShapeStack.js +0 -51
  11. package/dist/_ShapesGraphToAstTransformer/defaultNodeShapeNodeKinds.d.ts +0 -3
  12. package/dist/_ShapesGraphToAstTransformer/defaultNodeShapeNodeKinds.js +0 -5
  13. package/dist/_ShapesGraphToAstTransformer/shapeAstTypeName.d.ts +0 -4
  14. package/dist/_ShapesGraphToAstTransformer/shapeAstTypeName.js +0 -24
  15. package/dist/_ShapesGraphToAstTransformer/shapeNodeKinds.d.ts +0 -9
  16. package/dist/_ShapesGraphToAstTransformer/shapeNodeKinds.js +0 -150
  17. package/dist/_ShapesGraphToAstTransformer/shapeOntology.d.ts +0 -5
  18. package/dist/_ShapesGraphToAstTransformer/shapeOntology.js +0 -26
  19. package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstStructTypeField.d.ts +0 -17
  20. package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstStructTypeField.js +0 -285
  21. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.d.ts +0 -10
  22. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.js +0 -92
  23. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.d.ts +0 -11
  24. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.js +0 -149
  25. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstStructType.d.ts +0 -7
  26. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstStructType.js +0 -166
  27. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstTermType.d.ts +0 -12
  28. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstTermType.js +0 -110
  29. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.d.ts +0 -11
  30. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.js +0 -46
  31. package/dist/ast/AbstractCollectionType.d.ts +0 -30
  32. package/dist/ast/AbstractCollectionType.js +0 -33
  33. package/dist/ast/AbstractCompoundType.d.ts +0 -45
  34. package/dist/ast/AbstractCompoundType.js +0 -81
  35. package/dist/ast/AbstractContainerType.d.ts +0 -44
  36. package/dist/ast/AbstractContainerType.js +0 -63
  37. package/dist/ast/AbstractLazyType.d.ts +0 -117
  38. package/dist/ast/AbstractLazyType.js +0 -40
  39. package/dist/ast/AbstractTermType.d.ts +0 -33
  40. package/dist/ast/AbstractTermType.js +0 -47
  41. package/dist/ast/AbstractType.d.ts +0 -55
  42. package/dist/ast/AbstractType.js +0 -55
  43. package/dist/ast/Ast.d.ts +0 -6
  44. package/dist/ast/Ast.js +0 -2
  45. package/dist/ast/BlankNodeType.d.ts +0 -11
  46. package/dist/ast/BlankNodeType.js +0 -17
  47. package/dist/ast/DefaultValueType.d.ts +0 -35
  48. package/dist/ast/DefaultValueType.js +0 -50
  49. package/dist/ast/IdentifierType.d.ts +0 -12
  50. package/dist/ast/IdentifierType.js +0 -20
  51. package/dist/ast/IntersectionType.d.ts +0 -14
  52. package/dist/ast/IntersectionType.js +0 -17
  53. package/dist/ast/IriType.d.ts +0 -10
  54. package/dist/ast/IriType.js +0 -10
  55. package/dist/ast/LazyOptionType.d.ts +0 -6
  56. package/dist/ast/LazyOptionType.js +0 -5
  57. package/dist/ast/LazySetType.d.ts +0 -6
  58. package/dist/ast/LazySetType.js +0 -5
  59. package/dist/ast/LazyType.d.ts +0 -5
  60. package/dist/ast/LazyType.js +0 -5
  61. package/dist/ast/ListType.d.ts +0 -44
  62. package/dist/ast/ListType.js +0 -56
  63. package/dist/ast/LiteralType.d.ts +0 -40
  64. package/dist/ast/LiteralType.js +0 -59
  65. package/dist/ast/OptionType.d.ts +0 -13
  66. package/dist/ast/OptionType.js +0 -21
  67. package/dist/ast/SetType.d.ts +0 -31
  68. package/dist/ast/SetType.js +0 -42
  69. package/dist/ast/StructCompoundType.d.ts +0 -12
  70. package/dist/ast/StructCompoundType.js +0 -87
  71. package/dist/ast/StructIntersectionType.d.ts +0 -4
  72. package/dist/ast/StructIntersectionType.js +0 -2
  73. package/dist/ast/StructType.d.ts +0 -178
  74. package/dist/ast/StructType.js +0 -314
  75. package/dist/ast/StructUnionType.d.ts +0 -4
  76. package/dist/ast/StructUnionType.js +0 -2
  77. package/dist/ast/TermType.d.ts +0 -14
  78. package/dist/ast/TermType.js +0 -16
  79. package/dist/ast/Type.d.ts +0 -20
  80. package/dist/ast/Type.js +0 -42
  81. package/dist/ast/UnionType.d.ts +0 -30
  82. package/dist/ast/UnionType.js +0 -27
  83. package/dist/ast/equals.d.ts +0 -12
  84. package/dist/ast/equals.js +0 -65
  85. package/dist/ast/index.d.ts +0 -21
  86. package/dist/ast/index.js +0 -21
  87. package/dist/generators/AstJsonGenerator.d.ts +0 -6
  88. package/dist/generators/AstJsonGenerator.js +0 -15
  89. package/dist/generators/Cx2Generator.d.ts +0 -10
  90. package/dist/generators/Cx2Generator.js +0 -140
  91. package/dist/generators/Generator.d.ts +0 -5
  92. package/dist/generators/Generator.js +0 -2
  93. package/dist/generators/LabeledPropertyGraph.d.ts +0 -42
  94. package/dist/generators/LabeledPropertyGraph.js +0 -2
  95. package/dist/generators/index.d.ts +0 -6
  96. package/dist/generators/index.js +0 -6
  97. package/dist/generators/transformAstToLabeledPropertyGraph.d.ts +0 -4
  98. package/dist/generators/transformAstToLabeledPropertyGraph.js +0 -78
  99. package/dist/generators/ts/AbstractCollectionType.d.ts +0 -37
  100. package/dist/generators/ts/AbstractCollectionType.js +0 -88
  101. package/dist/generators/ts/AbstractContainerType.d.ts +0 -53
  102. package/dist/generators/ts/AbstractContainerType.js +0 -97
  103. package/dist/generators/ts/AbstractDateType.d.ts +0 -23
  104. package/dist/generators/ts/AbstractDateType.js +0 -37
  105. package/dist/generators/ts/AbstractIdentifierType.d.ts +0 -21
  106. package/dist/generators/ts/AbstractIdentifierType.js +0 -25
  107. package/dist/generators/ts/AbstractLazyType.d.ts +0 -67
  108. package/dist/generators/ts/AbstractLazyType.js +0 -154
  109. package/dist/generators/ts/AbstractLiteralType.d.ts +0 -26
  110. package/dist/generators/ts/AbstractLiteralType.js +0 -15
  111. package/dist/generators/ts/AbstractNumericType.d.ts +0 -21
  112. package/dist/generators/ts/AbstractNumericType.js +0 -65
  113. package/dist/generators/ts/AbstractObjectSetType.d.ts +0 -36
  114. package/dist/generators/ts/AbstractObjectSetType.js +0 -44
  115. package/dist/generators/ts/AbstractPrimitiveType.d.ts +0 -32
  116. package/dist/generators/ts/AbstractPrimitiveType.js +0 -51
  117. package/dist/generators/ts/AbstractTermType.d.ts +0 -50
  118. package/dist/generators/ts/AbstractTermType.js +0 -102
  119. package/dist/generators/ts/AbstractType.d.ts +0 -345
  120. package/dist/generators/ts/AbstractType.js +0 -135
  121. package/dist/generators/ts/BigDecimalType.d.ts +0 -28
  122. package/dist/generators/ts/BigDecimalType.js +0 -58
  123. package/dist/generators/ts/BigIntType.d.ts +0 -17
  124. package/dist/generators/ts/BigIntType.js +0 -56
  125. package/dist/generators/ts/BlankNodeType.d.ts +0 -22
  126. package/dist/generators/ts/BlankNodeType.js +0 -67
  127. package/dist/generators/ts/BooleanType.d.ts +0 -21
  128. package/dist/generators/ts/BooleanType.js +0 -53
  129. package/dist/generators/ts/DateTimeType.d.ts +0 -13
  130. package/dist/generators/ts/DateTimeType.js +0 -31
  131. package/dist/generators/ts/DateType.d.ts +0 -14
  132. package/dist/generators/ts/DateType.js +0 -32
  133. package/dist/generators/ts/DefaultValueType.d.ts +0 -83
  134. package/dist/generators/ts/DefaultValueType.js +0 -143
  135. package/dist/generators/ts/FloatType.d.ts +0 -13
  136. package/dist/generators/ts/FloatType.js +0 -30
  137. package/dist/generators/ts/GraphqlSchema.d.ts +0 -22
  138. package/dist/generators/ts/GraphqlSchema.js +0 -87
  139. package/dist/generators/ts/IdentifierType.d.ts +0 -23
  140. package/dist/generators/ts/IdentifierType.js +0 -83
  141. package/dist/generators/ts/Imports.d.ts +0 -40
  142. package/dist/generators/ts/Imports.js +0 -41
  143. package/dist/generators/ts/IntType.d.ts +0 -13
  144. package/dist/generators/ts/IntType.js +0 -30
  145. package/dist/generators/ts/IriType.d.ts +0 -23
  146. package/dist/generators/ts/IriType.js +0 -112
  147. package/dist/generators/ts/LazyOptionType.d.ts +0 -36
  148. package/dist/generators/ts/LazyOptionType.js +0 -75
  149. package/dist/generators/ts/LazySetType.d.ts +0 -20
  150. package/dist/generators/ts/LazySetType.js +0 -76
  151. package/dist/generators/ts/LazyType.d.ts +0 -19
  152. package/dist/generators/ts/LazyType.js +0 -65
  153. package/dist/generators/ts/ListType.d.ts +0 -49
  154. package/dist/generators/ts/ListType.js +0 -161
  155. package/dist/generators/ts/LiteralType.d.ts +0 -27
  156. package/dist/generators/ts/LiteralType.js +0 -71
  157. package/dist/generators/ts/ObjectSetType.d.ts +0 -6
  158. package/dist/generators/ts/ObjectSetType.js +0 -36
  159. package/dist/generators/ts/ObjectType.d.ts +0 -104
  160. package/dist/generators/ts/ObjectType.js +0 -492
  161. package/dist/generators/ts/ObjectUnionType.d.ts +0 -20
  162. package/dist/generators/ts/ObjectUnionType.js +0 -223
  163. package/dist/generators/ts/OptionType.d.ts +0 -39
  164. package/dist/generators/ts/OptionType.js +0 -157
  165. package/dist/generators/ts/RdfjsDatasetObjectSetType.d.ts +0 -6
  166. package/dist/generators/ts/RdfjsDatasetObjectSetType.js +0 -323
  167. package/dist/generators/ts/Reusables.d.ts +0 -13
  168. package/dist/generators/ts/Reusables.js +0 -15
  169. package/dist/generators/ts/SetType.d.ts +0 -32
  170. package/dist/generators/ts/SetType.js +0 -132
  171. package/dist/generators/ts/Snippet.d.ts +0 -3
  172. package/dist/generators/ts/Snippet.js +0 -2
  173. package/dist/generators/ts/SnippetFactory.d.ts +0 -16
  174. package/dist/generators/ts/SnippetFactory.js +0 -2
  175. package/dist/generators/ts/Snippets.d.ts +0 -177
  176. package/dist/generators/ts/Snippets.js +0 -1163
  177. package/dist/generators/ts/SparqlObjectSetType.d.ts +0 -6
  178. package/dist/generators/ts/SparqlObjectSetType.js +0 -241
  179. package/dist/generators/ts/StringType.d.ts +0 -22
  180. package/dist/generators/ts/StringType.js +0 -68
  181. package/dist/generators/ts/TermType.d.ts +0 -31
  182. package/dist/generators/ts/TermType.js +0 -143
  183. package/dist/generators/ts/TsFeature.d.ts +0 -3
  184. package/dist/generators/ts/TsFeature.js +0 -28
  185. package/dist/generators/ts/TsGenerator.d.ts +0 -30
  186. package/dist/generators/ts/TsGenerator.js +0 -292
  187. package/dist/generators/ts/Type.d.ts +0 -25
  188. package/dist/generators/ts/Type.js +0 -2
  189. package/dist/generators/ts/TypeFactory.d.ts +0 -43
  190. package/dist/generators/ts/TypeFactory.js +0 -540
  191. package/dist/generators/ts/Typeof.d.ts +0 -2
  192. package/dist/generators/ts/Typeof.js +0 -2
  193. package/dist/generators/ts/UnionType.d.ts +0 -126
  194. package/dist/generators/ts/UnionType.js +0 -850
  195. package/dist/generators/ts/ZodGenerator.d.ts +0 -11
  196. package/dist/generators/ts/ZodGenerator.js +0 -60
  197. package/dist/generators/ts/_ObjectType/AbstractProperty.d.ts +0 -220
  198. package/dist/generators/ts/_ObjectType/AbstractProperty.js +0 -37
  199. package/dist/generators/ts/_ObjectType/DiscriminantProperty.d.ts +0 -45
  200. package/dist/generators/ts/_ObjectType/DiscriminantProperty.js +0 -104
  201. package/dist/generators/ts/_ObjectType/IdentifierProperty.d.ts +0 -43
  202. package/dist/generators/ts/_ObjectType/IdentifierProperty.js +0 -216
  203. package/dist/generators/ts/_ObjectType/ObjectType_createFunctionExpression.d.ts +0 -4
  204. package/dist/generators/ts/_ObjectType/ObjectType_createFunctionExpression.js +0 -28
  205. package/dist/generators/ts/_ObjectType/ObjectType_equalsFunctionExpression.d.ts +0 -4
  206. package/dist/generators/ts/_ObjectType/ObjectType_equalsFunctionExpression.js +0 -15
  207. package/dist/generators/ts/_ObjectType/ObjectType_filterFunctionExpression.d.ts +0 -4
  208. package/dist/generators/ts/_ObjectType/ObjectType_filterFunctionExpression.js +0 -12
  209. package/dist/generators/ts/_ObjectType/ObjectType_filterTypeExpression.d.ts +0 -4
  210. package/dist/generators/ts/_ObjectType/ObjectType_filterTypeExpression.js +0 -20
  211. package/dist/generators/ts/_ObjectType/ObjectType_focusSparqlConstructTriplesFunctionExpression.d.ts +0 -4
  212. package/dist/generators/ts/_ObjectType/ObjectType_focusSparqlConstructTriplesFunctionExpression.js +0 -46
  213. package/dist/generators/ts/_ObjectType/ObjectType_focusSparqlWherePatternsFunctionExpression.d.ts +0 -4
  214. package/dist/generators/ts/_ObjectType/ObjectType_focusSparqlWherePatternsFunctionExpression.js +0 -79
  215. package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionExpression.d.ts +0 -4
  216. package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionExpression.js +0 -12
  217. package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunctionExpression.d.ts +0 -4
  218. package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunctionExpression.js +0 -43
  219. package/dist/generators/ts/_ObjectType/ObjectType_graphqlTypeExpression.d.ts +0 -4
  220. package/dist/generators/ts/_ObjectType/ObjectType_graphqlTypeExpression.js +0 -26
  221. package/dist/generators/ts/_ObjectType/ObjectType_hashFunctionExpression.d.ts +0 -4
  222. package/dist/generators/ts/_ObjectType/ObjectType_hashFunctionExpression.js +0 -30
  223. package/dist/generators/ts/_ObjectType/ObjectType_identifierTypeDeclarations.d.ts +0 -4
  224. package/dist/generators/ts/_ObjectType/ObjectType_identifierTypeDeclarations.js +0 -13
  225. package/dist/generators/ts/_ObjectType/ObjectType_isTypeFunctionDeclaration.d.ts +0 -5
  226. package/dist/generators/ts/_ObjectType/ObjectType_isTypeFunctionDeclaration.js +0 -20
  227. package/dist/generators/ts/_ObjectType/ObjectType_jsonParseFunctionDeclaration.d.ts +0 -4
  228. package/dist/generators/ts/_ObjectType/ObjectType_jsonParseFunctionDeclaration.js +0 -10
  229. package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaExpression.d.ts +0 -4
  230. package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaExpression.js +0 -22
  231. package/dist/generators/ts/_ObjectType/ObjectType_jsonTypeExpression.d.ts +0 -4
  232. package/dist/generators/ts/_ObjectType/ObjectType_jsonTypeExpression.js +0 -5
  233. package/dist/generators/ts/_ObjectType/ObjectType_jsonUiSchemaFunctionExpression.d.ts +0 -4
  234. package/dist/generators/ts/_ObjectType/ObjectType_jsonUiSchemaFunctionExpression.js +0 -17
  235. package/dist/generators/ts/_ObjectType/ObjectType_objectSetMethodNames.d.ts +0 -11
  236. package/dist/generators/ts/_ObjectType/ObjectType_objectSetMethodNames.js +0 -23
  237. package/dist/generators/ts/_ObjectType/ObjectType_schemaExpression.d.ts +0 -4
  238. package/dist/generators/ts/_ObjectType/ObjectType_schemaExpression.js +0 -18
  239. package/dist/generators/ts/_ObjectType/ObjectType_schemaTypeExpression.d.ts +0 -4
  240. package/dist/generators/ts/_ObjectType/ObjectType_schemaTypeExpression.js +0 -18
  241. package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunctionDeclaration.d.ts +0 -10
  242. package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunctionDeclaration.js +0 -35
  243. package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryStringFunctionDeclaration.d.ts +0 -10
  244. package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryStringFunctionDeclaration.js +0 -8
  245. package/dist/generators/ts/_ObjectType/ObjectType_toJsonFunctionExpression.d.ts +0 -4
  246. package/dist/generators/ts/_ObjectType/ObjectType_toJsonFunctionExpression.js +0 -14
  247. package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunctionExpression.d.ts +0 -4
  248. package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunctionExpression.js +0 -33
  249. package/dist/generators/ts/_ObjectType/ObjectType_toStringFunctionExpression.d.ts +0 -4
  250. package/dist/generators/ts/_ObjectType/ObjectType_toStringFunctionExpression.js +0 -7
  251. package/dist/generators/ts/_ObjectType/ObjectType_toStringRecordFunctionExpression.d.ts +0 -4
  252. package/dist/generators/ts/_ObjectType/ObjectType_toStringRecordFunctionExpression.js +0 -5
  253. package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlConstructTriplesFunctionExpression.d.ts +0 -4
  254. package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlConstructTriplesFunctionExpression.js +0 -8
  255. package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunctionExpression.d.ts +0 -4
  256. package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunctionExpression.js +0 -10
  257. package/dist/generators/ts/_ObjectType/Property.d.ts +0 -6
  258. package/dist/generators/ts/_ObjectType/Property.js +0 -2
  259. package/dist/generators/ts/_ObjectType/ShaclProperty.d.ts +0 -53
  260. package/dist/generators/ts/_ObjectType/ShaclProperty.js +0 -292
  261. package/dist/generators/ts/_snippets/snippets_BlankNodeFilter.d.ts +0 -3
  262. package/dist/generators/ts/_snippets/snippets_BlankNodeFilter.js +0 -5
  263. package/dist/generators/ts/_snippets/snippets_BlankNodeSchema.d.ts +0 -3
  264. package/dist/generators/ts/_snippets/snippets_BlankNodeSchema.js +0 -6
  265. package/dist/generators/ts/_snippets/snippets_BooleanFilter.d.ts +0 -3
  266. package/dist/generators/ts/_snippets/snippets_BooleanFilter.js +0 -6
  267. package/dist/generators/ts/_snippets/snippets_BooleanSchema.d.ts +0 -3
  268. package/dist/generators/ts/_snippets/snippets_BooleanSchema.js +0 -8
  269. package/dist/generators/ts/_snippets/snippets_CollectionFilter.d.ts +0 -3
  270. package/dist/generators/ts/_snippets/snippets_CollectionFilter.js +0 -7
  271. package/dist/generators/ts/_snippets/snippets_CollectionSchema.d.ts +0 -3
  272. package/dist/generators/ts/_snippets/snippets_CollectionSchema.js +0 -8
  273. package/dist/generators/ts/_snippets/snippets_ConversionFunction.d.ts +0 -3
  274. package/dist/generators/ts/_snippets/snippets_ConversionFunction.js +0 -4
  275. package/dist/generators/ts/_snippets/snippets_DateFilter.d.ts +0 -3
  276. package/dist/generators/ts/_snippets/snippets_DateFilter.js +0 -10
  277. package/dist/generators/ts/_snippets/snippets_DateSchema.d.ts +0 -3
  278. package/dist/generators/ts/_snippets/snippets_DateSchema.js +0 -8
  279. package/dist/generators/ts/_snippets/snippets_DefaultValueSchema.d.ts +0 -3
  280. package/dist/generators/ts/_snippets/snippets_DefaultValueSchema.js +0 -8
  281. package/dist/generators/ts/_snippets/snippets_EqualsResult.d.ts +0 -3
  282. package/dist/generators/ts/_snippets/snippets_EqualsResult.js +0 -63
  283. package/dist/generators/ts/_snippets/snippets_FocusSparqlConstructTriplesFunction.d.ts +0 -3
  284. package/dist/generators/ts/_snippets/snippets_FocusSparqlConstructTriplesFunction.js +0 -10
  285. package/dist/generators/ts/_snippets/snippets_FocusSparqlWherePatternsFunction.d.ts +0 -3
  286. package/dist/generators/ts/_snippets/snippets_FocusSparqlWherePatternsFunction.js +0 -11
  287. package/dist/generators/ts/_snippets/snippets_FromRdfResourceFunction.d.ts +0 -3
  288. package/dist/generators/ts/_snippets/snippets_FromRdfResourceFunction.js +0 -13
  289. package/dist/generators/ts/_snippets/snippets_FromRdfResourceValuesFunction.d.ts +0 -3
  290. package/dist/generators/ts/_snippets/snippets_FromRdfResourceValuesFunction.js +0 -16
  291. package/dist/generators/ts/_snippets/snippets_HashFunction.d.ts +0 -3
  292. package/dist/generators/ts/_snippets/snippets_HashFunction.js +0 -4
  293. package/dist/generators/ts/_snippets/snippets_Hasher.d.ts +0 -3
  294. package/dist/generators/ts/_snippets/snippets_Hasher.js +0 -3
  295. package/dist/generators/ts/_snippets/snippets_IdentifierFilter.d.ts +0 -3
  296. package/dist/generators/ts/_snippets/snippets_IdentifierFilter.js +0 -7
  297. package/dist/generators/ts/_snippets/snippets_IdentifierSchema.d.ts +0 -3
  298. package/dist/generators/ts/_snippets/snippets_IdentifierSchema.js +0 -7
  299. package/dist/generators/ts/_snippets/snippets_IdentifierSet.d.ts +0 -3
  300. package/dist/generators/ts/_snippets/snippets_IdentifierSet.js +0 -27
  301. package/dist/generators/ts/_snippets/snippets_IriFilter.d.ts +0 -3
  302. package/dist/generators/ts/_snippets/snippets_IriFilter.js +0 -6
  303. package/dist/generators/ts/_snippets/snippets_IriSchema.d.ts +0 -3
  304. package/dist/generators/ts/_snippets/snippets_IriSchema.js +0 -8
  305. package/dist/generators/ts/_snippets/snippets_Lazy.d.ts +0 -3
  306. package/dist/generators/ts/_snippets/snippets_Lazy.js +0 -22
  307. package/dist/generators/ts/_snippets/snippets_LazyOption.d.ts +0 -3
  308. package/dist/generators/ts/_snippets/snippets_LazyOption.js +0 -25
  309. package/dist/generators/ts/_snippets/snippets_LazySet.d.ts +0 -3
  310. package/dist/generators/ts/_snippets/snippets_LazySet.js +0 -40
  311. package/dist/generators/ts/_snippets/snippets_LiteralFilter.d.ts +0 -3
  312. package/dist/generators/ts/_snippets/snippets_LiteralFilter.js +0 -4
  313. package/dist/generators/ts/_snippets/snippets_LiteralSchema.d.ts +0 -3
  314. package/dist/generators/ts/_snippets/snippets_LiteralSchema.js +0 -9
  315. package/dist/generators/ts/_snippets/snippets_MaybeFilter.d.ts +0 -3
  316. package/dist/generators/ts/_snippets/snippets_MaybeFilter.js +0 -4
  317. package/dist/generators/ts/_snippets/snippets_MaybeSchema.d.ts +0 -3
  318. package/dist/generators/ts/_snippets/snippets_MaybeSchema.js +0 -7
  319. package/dist/generators/ts/_snippets/snippets_NumericFilter.d.ts +0 -3
  320. package/dist/generators/ts/_snippets/snippets_NumericFilter.js +0 -10
  321. package/dist/generators/ts/_snippets/snippets_NumericSchema.d.ts +0 -3
  322. package/dist/generators/ts/_snippets/snippets_NumericSchema.js +0 -8
  323. package/dist/generators/ts/_snippets/snippets_PropertyPath.d.ts +0 -6
  324. package/dist/generators/ts/_snippets/snippets_PropertyPath.js +0 -46
  325. package/dist/generators/ts/_snippets/snippets_RdfVocabularies.d.ts +0 -3
  326. package/dist/generators/ts/_snippets/snippets_RdfVocabularies.js +0 -40
  327. package/dist/generators/ts/_snippets/snippets_ShaclPropertySchema.d.ts +0 -3
  328. package/dist/generators/ts/_snippets/snippets_ShaclPropertySchema.js +0 -8
  329. package/dist/generators/ts/_snippets/snippets_SparqlFilterPattern.d.ts +0 -3
  330. package/dist/generators/ts/_snippets/snippets_SparqlFilterPattern.js +0 -3
  331. package/dist/generators/ts/_snippets/snippets_SparqlPattern.d.ts +0 -3
  332. package/dist/generators/ts/_snippets/snippets_SparqlPattern.js +0 -3
  333. package/dist/generators/ts/_snippets/snippets_SparqlPattern_isSolutionGenerating.d.ts +0 -3
  334. package/dist/generators/ts/_snippets/snippets_SparqlPattern_isSolutionGenerating.js +0 -30
  335. package/dist/generators/ts/_snippets/snippets_StringFilter.d.ts +0 -3
  336. package/dist/generators/ts/_snippets/snippets_StringFilter.js +0 -8
  337. package/dist/generators/ts/_snippets/snippets_StringSchema.d.ts +0 -3
  338. package/dist/generators/ts/_snippets/snippets_StringSchema.js +0 -9
  339. package/dist/generators/ts/_snippets/snippets_TermFilter.d.ts +0 -3
  340. package/dist/generators/ts/_snippets/snippets_TermFilter.js +0 -9
  341. package/dist/generators/ts/_snippets/snippets_TermSchema.d.ts +0 -3
  342. package/dist/generators/ts/_snippets/snippets_TermSchema.js +0 -9
  343. package/dist/generators/ts/_snippets/snippets_ToRdfResourceFunction.d.ts +0 -3
  344. package/dist/generators/ts/_snippets/snippets_ToRdfResourceFunction.js +0 -11
  345. package/dist/generators/ts/_snippets/snippets_ToRdfResourceValuesFunction.d.ts +0 -3
  346. package/dist/generators/ts/_snippets/snippets_ToRdfResourceValuesFunction.js +0 -16
  347. package/dist/generators/ts/_snippets/snippets_UnwrapR.d.ts +0 -3
  348. package/dist/generators/ts/_snippets/snippets_UnwrapR.js +0 -4
  349. package/dist/generators/ts/_snippets/snippets_ValidationFunction.d.ts +0 -3
  350. package/dist/generators/ts/_snippets/snippets_ValidationFunction.js +0 -4
  351. package/dist/generators/ts/_snippets/snippets_ValueSparqlConstructTriplesFunction.d.ts +0 -3
  352. package/dist/generators/ts/_snippets/snippets_ValueSparqlConstructTriplesFunction.js +0 -11
  353. package/dist/generators/ts/_snippets/snippets_ValueSparqlWherePatternsFunction.d.ts +0 -3
  354. package/dist/generators/ts/_snippets/snippets_ValueSparqlWherePatternsFunction.js +0 -13
  355. package/dist/generators/ts/_snippets/snippets__FromRdfResourceFunction.d.ts +0 -3
  356. package/dist/generators/ts/_snippets/snippets__FromRdfResourceFunction.js +0 -13
  357. package/dist/generators/ts/_snippets/snippets__ToRdfResourceFunction.d.ts +0 -3
  358. package/dist/generators/ts/_snippets/snippets__ToRdfResourceFunction.js +0 -12
  359. package/dist/generators/ts/_snippets/snippets_arrayEquals.d.ts +0 -3
  360. package/dist/generators/ts/_snippets/snippets_arrayEquals.js +0 -68
  361. package/dist/generators/ts/_snippets/snippets_arrayIntersection.d.ts +0 -3
  362. package/dist/generators/ts/_snippets/snippets_arrayIntersection.js +0 -29
  363. package/dist/generators/ts/_snippets/snippets_bigDecimalFromRdfResourceValues.d.ts +0 -3
  364. package/dist/generators/ts/_snippets/snippets_bigDecimalFromRdfResourceValues.js +0 -6
  365. package/dist/generators/ts/_snippets/snippets_bigDecimalLiteral.d.ts +0 -3
  366. package/dist/generators/ts/_snippets/snippets_bigDecimalLiteral.js +0 -9
  367. package/dist/generators/ts/_snippets/snippets_bigDecimalSparqlWherePatterns.d.ts +0 -3
  368. package/dist/generators/ts/_snippets/snippets_bigDecimalSparqlWherePatterns.js +0 -83
  369. package/dist/generators/ts/_snippets/snippets_bigIntFromRdfResourceValues.d.ts +0 -3
  370. package/dist/generators/ts/_snippets/snippets_bigIntFromRdfResourceValues.js +0 -6
  371. package/dist/generators/ts/_snippets/snippets_blankNodeFromRdfResourceValues.d.ts +0 -3
  372. package/dist/generators/ts/_snippets/snippets_blankNodeFromRdfResourceValues.js +0 -6
  373. package/dist/generators/ts/_snippets/snippets_blankNodeSparqlWherePatterns.d.ts +0 -3
  374. package/dist/generators/ts/_snippets/snippets_blankNodeSparqlWherePatterns.js +0 -5
  375. package/dist/generators/ts/_snippets/snippets_booleanEquals.d.ts +0 -3
  376. package/dist/generators/ts/_snippets/snippets_booleanEquals.js +0 -16
  377. package/dist/generators/ts/_snippets/snippets_booleanFromRdfResourceValues.d.ts +0 -3
  378. package/dist/generators/ts/_snippets/snippets_booleanFromRdfResourceValues.js +0 -6
  379. package/dist/generators/ts/_snippets/snippets_booleanSparqlWherePatterns.d.ts +0 -3
  380. package/dist/generators/ts/_snippets/snippets_booleanSparqlWherePatterns.js +0 -15
  381. package/dist/generators/ts/_snippets/snippets_compactRecord.d.ts +0 -3
  382. package/dist/generators/ts/_snippets/snippets_compactRecord.js +0 -15
  383. package/dist/generators/ts/_snippets/snippets_convertToArraySet.d.ts +0 -3
  384. package/dist/generators/ts/_snippets/snippets_convertToArraySet.js +0 -8
  385. package/dist/generators/ts/_snippets/snippets_convertToBlankNode.d.ts +0 -3
  386. package/dist/generators/ts/_snippets/snippets_convertToBlankNode.js +0 -11
  387. package/dist/generators/ts/_snippets/snippets_convertToBlankNodeIdentifierProperty.d.ts +0 -3
  388. package/dist/generators/ts/_snippets/snippets_convertToBlankNodeIdentifierProperty.js +0 -17
  389. package/dist/generators/ts/_snippets/snippets_convertToIdentifier.d.ts +0 -3
  390. package/dist/generators/ts/_snippets/snippets_convertToIdentifier.js +0 -13
  391. package/dist/generators/ts/_snippets/snippets_convertToIdentifierProperty.d.ts +0 -3
  392. package/dist/generators/ts/_snippets/snippets_convertToIdentifierProperty.js +0 -21
  393. package/dist/generators/ts/_snippets/snippets_convertToIri.d.ts +0 -3
  394. package/dist/generators/ts/_snippets/snippets_convertToIri.js +0 -11
  395. package/dist/generators/ts/_snippets/snippets_convertToIriIdentifierProperty.d.ts +0 -3
  396. package/dist/generators/ts/_snippets/snippets_convertToIriIdentifierProperty.js +0 -17
  397. package/dist/generators/ts/_snippets/snippets_convertToLazy.d.ts +0 -3
  398. package/dist/generators/ts/_snippets/snippets_convertToLazy.js +0 -15
  399. package/dist/generators/ts/_snippets/snippets_convertToLazyOption.d.ts +0 -3
  400. package/dist/generators/ts/_snippets/snippets_convertToLazyOption.js +0 -33
  401. package/dist/generators/ts/_snippets/snippets_convertToLazySet.d.ts +0 -3
  402. package/dist/generators/ts/_snippets/snippets_convertToLazySet.js +0 -27
  403. package/dist/generators/ts/_snippets/snippets_convertToList.d.ts +0 -3
  404. package/dist/generators/ts/_snippets/snippets_convertToList.js +0 -7
  405. package/dist/generators/ts/_snippets/snippets_convertToLiteral.d.ts +0 -3
  406. package/dist/generators/ts/_snippets/snippets_convertToLiteral.js +0 -13
  407. package/dist/generators/ts/_snippets/snippets_convertToMaybe.d.ts +0 -3
  408. package/dist/generators/ts/_snippets/snippets_convertToMaybe.js +0 -19
  409. package/dist/generators/ts/_snippets/snippets_convertToScalarSet.d.ts +0 -3
  410. package/dist/generators/ts/_snippets/snippets_convertToScalarSet.js +0 -15
  411. package/dist/generators/ts/_snippets/snippets_convertWithDefaultValue.d.ts +0 -3
  412. package/dist/generators/ts/_snippets/snippets_convertWithDefaultValue.js +0 -11
  413. package/dist/generators/ts/_snippets/snippets_dateEquals.d.ts +0 -3
  414. package/dist/generators/ts/_snippets/snippets_dateEquals.js +0 -13
  415. package/dist/generators/ts/_snippets/snippets_dateFromRdfResourceValues.d.ts +0 -3
  416. package/dist/generators/ts/_snippets/snippets_dateFromRdfResourceValues.js +0 -6
  417. package/dist/generators/ts/_snippets/snippets_dateSparqlWherePatterns.d.ts +0 -3
  418. package/dist/generators/ts/_snippets/snippets_dateSparqlWherePatterns.js +0 -71
  419. package/dist/generators/ts/_snippets/snippets_dateTimeFromRdfResourceValues.d.ts +0 -3
  420. package/dist/generators/ts/_snippets/snippets_dateTimeFromRdfResourceValues.js +0 -6
  421. package/dist/generators/ts/_snippets/snippets_decodeBigDecimalLiteral.d.ts +0 -3
  422. package/dist/generators/ts/_snippets/snippets_decodeBigDecimalLiteral.js +0 -9
  423. package/dist/generators/ts/_snippets/snippets_deduplicateSparqlPatterns.d.ts +0 -3
  424. package/dist/generators/ts/_snippets/snippets_deduplicateSparqlPatterns.js +0 -19
  425. package/dist/generators/ts/_snippets/snippets_defaultValueFromRdfResourceValues.d.ts +0 -3
  426. package/dist/generators/ts/_snippets/snippets_defaultValueFromRdfResourceValues.js +0 -10
  427. package/dist/generators/ts/_snippets/snippets_defaultValueSparqlWherePatterns.d.ts +0 -3
  428. package/dist/generators/ts/_snippets/snippets_defaultValueSparqlWherePatterns.js +0 -9
  429. package/dist/generators/ts/_snippets/snippets_ensureRdfResourceType.d.ts +0 -3
  430. package/dist/generators/ts/_snippets/snippets_ensureRdfResourceType.js +0 -16
  431. package/dist/generators/ts/_snippets/snippets_filterArray.d.ts +0 -3
  432. package/dist/generators/ts/_snippets/snippets_filterArray.js +0 -22
  433. package/dist/generators/ts/_snippets/snippets_filterBigDecimal.d.ts +0 -3
  434. package/dist/generators/ts/_snippets/snippets_filterBigDecimal.js +0 -26
  435. package/dist/generators/ts/_snippets/snippets_filterBlankNode.d.ts +0 -3
  436. package/dist/generators/ts/_snippets/snippets_filterBlankNode.js +0 -6
  437. package/dist/generators/ts/_snippets/snippets_filterBoolean.d.ts +0 -3
  438. package/dist/generators/ts/_snippets/snippets_filterBoolean.js +0 -10
  439. package/dist/generators/ts/_snippets/snippets_filterDate.d.ts +0 -3
  440. package/dist/generators/ts/_snippets/snippets_filterDate.js +0 -26
  441. package/dist/generators/ts/_snippets/snippets_filterIdentifier.d.ts +0 -3
  442. package/dist/generators/ts/_snippets/snippets_filterIdentifier.js +0 -14
  443. package/dist/generators/ts/_snippets/snippets_filterIri.d.ts +0 -3
  444. package/dist/generators/ts/_snippets/snippets_filterIri.js +0 -10
  445. package/dist/generators/ts/_snippets/snippets_filterLiteral.d.ts +0 -3
  446. package/dist/generators/ts/_snippets/snippets_filterLiteral.js +0 -6
  447. package/dist/generators/ts/_snippets/snippets_filterMaybe.d.ts +0 -3
  448. package/dist/generators/ts/_snippets/snippets_filterMaybe.js +0 -22
  449. package/dist/generators/ts/_snippets/snippets_filterNumeric.d.ts +0 -3
  450. package/dist/generators/ts/_snippets/snippets_filterNumeric.js +0 -26
  451. package/dist/generators/ts/_snippets/snippets_filterString.d.ts +0 -3
  452. package/dist/generators/ts/_snippets/snippets_filterString.js +0 -18
  453. package/dist/generators/ts/_snippets/snippets_filterTerm.d.ts +0 -3
  454. package/dist/generators/ts/_snippets/snippets_filterTerm.js +0 -22
  455. package/dist/generators/ts/_snippets/snippets_floatFromRdfResourceValues.d.ts +0 -3
  456. package/dist/generators/ts/_snippets/snippets_floatFromRdfResourceValues.js +0 -6
  457. package/dist/generators/ts/_snippets/snippets_hashArray.d.ts +0 -3
  458. package/dist/generators/ts/_snippets/snippets_hashArray.js +0 -11
  459. package/dist/generators/ts/_snippets/snippets_hashBigDecimal.d.ts +0 -3
  460. package/dist/generators/ts/_snippets/snippets_hashBigDecimal.js +0 -7
  461. package/dist/generators/ts/_snippets/snippets_hashBoolean.d.ts +0 -3
  462. package/dist/generators/ts/_snippets/snippets_hashBoolean.js +0 -7
  463. package/dist/generators/ts/_snippets/snippets_hashDate.d.ts +0 -3
  464. package/dist/generators/ts/_snippets/snippets_hashDate.js +0 -7
  465. package/dist/generators/ts/_snippets/snippets_hashDateTime.d.ts +0 -3
  466. package/dist/generators/ts/_snippets/snippets_hashDateTime.js +0 -7
  467. package/dist/generators/ts/_snippets/snippets_hashMaybe.d.ts +0 -3
  468. package/dist/generators/ts/_snippets/snippets_hashMaybe.js +0 -11
  469. package/dist/generators/ts/_snippets/snippets_hashNumeric.d.ts +0 -3
  470. package/dist/generators/ts/_snippets/snippets_hashNumeric.js +0 -7
  471. package/dist/generators/ts/_snippets/snippets_hashString.d.ts +0 -3
  472. package/dist/generators/ts/_snippets/snippets_hashString.js +0 -7
  473. package/dist/generators/ts/_snippets/snippets_hashTerm.d.ts +0 -3
  474. package/dist/generators/ts/_snippets/snippets_hashTerm.js +0 -12
  475. package/dist/generators/ts/_snippets/snippets_identifierFromRdfResourceValues.d.ts +0 -3
  476. package/dist/generators/ts/_snippets/snippets_identifierFromRdfResourceValues.js +0 -6
  477. package/dist/generators/ts/_snippets/snippets_identifierSparqlWherePatterns.d.ts +0 -3
  478. package/dist/generators/ts/_snippets/snippets_identifierSparqlWherePatterns.js +0 -30
  479. package/dist/generators/ts/_snippets/snippets_identityConversionFunction.d.ts +0 -3
  480. package/dist/generators/ts/_snippets/snippets_identityConversionFunction.js +0 -6
  481. package/dist/generators/ts/_snippets/snippets_identityValidationFunction.d.ts +0 -3
  482. package/dist/generators/ts/_snippets/snippets_identityValidationFunction.js +0 -6
  483. package/dist/generators/ts/_snippets/snippets_intFromRdfResourceValues.d.ts +0 -3
  484. package/dist/generators/ts/_snippets/snippets_intFromRdfResourceValues.js +0 -6
  485. package/dist/generators/ts/_snippets/snippets_iriFromRdfResourceValues.d.ts +0 -3
  486. package/dist/generators/ts/_snippets/snippets_iriFromRdfResourceValues.js +0 -6
  487. package/dist/generators/ts/_snippets/snippets_iriSparqlWherePatterns.d.ts +0 -3
  488. package/dist/generators/ts/_snippets/snippets_iriSparqlWherePatterns.js +0 -13
  489. package/dist/generators/ts/_snippets/snippets_liftSparqlPatterns.d.ts +0 -3
  490. package/dist/generators/ts/_snippets/snippets_liftSparqlPatterns.js +0 -15
  491. package/dist/generators/ts/_snippets/snippets_listFromRdfResourceValues.d.ts +0 -3
  492. package/dist/generators/ts/_snippets/snippets_listFromRdfResourceValues.js +0 -15
  493. package/dist/generators/ts/_snippets/snippets_listSparqlConstructTriples.d.ts +0 -3
  494. package/dist/generators/ts/_snippets/snippets_listSparqlConstructTriples.js +0 -37
  495. package/dist/generators/ts/_snippets/snippets_listSparqlWherePatterns.d.ts +0 -3
  496. package/dist/generators/ts/_snippets/snippets_listSparqlWherePatterns.js +0 -116
  497. package/dist/generators/ts/_snippets/snippets_literalFactory.d.ts +0 -3
  498. package/dist/generators/ts/_snippets/snippets_literalFactory.js +0 -3
  499. package/dist/generators/ts/_snippets/snippets_literalFromRdfResourceValues.d.ts +0 -3
  500. package/dist/generators/ts/_snippets/snippets_literalFromRdfResourceValues.js +0 -6
  501. package/dist/generators/ts/_snippets/snippets_literalSchemaSparqlPatterns.d.ts +0 -3
  502. package/dist/generators/ts/_snippets/snippets_literalSchemaSparqlPatterns.js +0 -39
  503. package/dist/generators/ts/_snippets/snippets_literalSparqlWherePatterns.d.ts +0 -3
  504. package/dist/generators/ts/_snippets/snippets_literalSparqlWherePatterns.js +0 -5
  505. package/dist/generators/ts/_snippets/snippets_maybeEquals.d.ts +0 -3
  506. package/dist/generators/ts/_snippets/snippets_maybeEquals.js +0 -31
  507. package/dist/generators/ts/_snippets/snippets_maybeFromRdfResourceValues.d.ts +0 -3
  508. package/dist/generators/ts/_snippets/snippets_maybeFromRdfResourceValues.js +0 -11
  509. package/dist/generators/ts/_snippets/snippets_maybeSparqlConstructTriples.d.ts +0 -3
  510. package/dist/generators/ts/_snippets/snippets_maybeSparqlConstructTriples.js +0 -6
  511. package/dist/generators/ts/_snippets/snippets_maybeSparqlWherePatterns.d.ts +0 -3
  512. package/dist/generators/ts/_snippets/snippets_maybeSparqlWherePatterns.js +0 -21
  513. package/dist/generators/ts/_snippets/snippets_monkeyPatchObject.d.ts +0 -3
  514. package/dist/generators/ts/_snippets/snippets_monkeyPatchObject.js +0 -16
  515. package/dist/generators/ts/_snippets/snippets_mutableListFromRdfResourceValues.d.ts +0 -3
  516. package/dist/generators/ts/_snippets/snippets_mutableListFromRdfResourceValues.js +0 -8
  517. package/dist/generators/ts/_snippets/snippets_mutableSetFromRdfResourceValues.d.ts +0 -3
  518. package/dist/generators/ts/_snippets/snippets_mutableSetFromRdfResourceValues.js +0 -8
  519. package/dist/generators/ts/_snippets/snippets_normalizeSparqlWherePatterns.d.ts +0 -3
  520. package/dist/generators/ts/_snippets/snippets_normalizeSparqlWherePatterns.js +0 -92
  521. package/dist/generators/ts/_snippets/snippets_numericSparqlWherePatterns.d.ts +0 -3
  522. package/dist/generators/ts/_snippets/snippets_numericSparqlWherePatterns.js +0 -62
  523. package/dist/generators/ts/_snippets/snippets_parseBlankNode.d.ts +0 -3
  524. package/dist/generators/ts/_snippets/snippets_parseBlankNode.js +0 -9
  525. package/dist/generators/ts/_snippets/snippets_parseIdentifier.d.ts +0 -3
  526. package/dist/generators/ts/_snippets/snippets_parseIdentifier.js +0 -4
  527. package/dist/generators/ts/_snippets/snippets_parseIri.d.ts +0 -3
  528. package/dist/generators/ts/_snippets/snippets_parseIri.js +0 -9
  529. package/dist/generators/ts/_snippets/snippets_sequenceRecord.d.ts +0 -3
  530. package/dist/generators/ts/_snippets/snippets_sequenceRecord.js +0 -18
  531. package/dist/generators/ts/_snippets/snippets_setFromRdfResourceValues.d.ts +0 -3
  532. package/dist/generators/ts/_snippets/snippets_setFromRdfResourceValues.js +0 -9
  533. package/dist/generators/ts/_snippets/snippets_setSparqlConstructTriples.d.ts +0 -3
  534. package/dist/generators/ts/_snippets/snippets_setSparqlConstructTriples.js +0 -6
  535. package/dist/generators/ts/_snippets/snippets_setSparqlWherePatterns.d.ts +0 -3
  536. package/dist/generators/ts/_snippets/snippets_setSparqlWherePatterns.js +0 -17
  537. package/dist/generators/ts/_snippets/snippets_shaclPropertyFromRdf.d.ts +0 -3
  538. package/dist/generators/ts/_snippets/snippets_shaclPropertyFromRdf.js +0 -17
  539. package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlConstructTriples.d.ts +0 -3
  540. package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlConstructTriples.js +0 -90
  541. package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlWherePatterns.d.ts +0 -3
  542. package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlWherePatterns.js +0 -86
  543. package/dist/generators/ts/_snippets/snippets_sortSparqlPatterns.d.ts +0 -3
  544. package/dist/generators/ts/_snippets/snippets_sortSparqlPatterns.js +0 -24
  545. package/dist/generators/ts/_snippets/snippets_sparqlInstancesOfPattern.d.ts +0 -3
  546. package/dist/generators/ts/_snippets/snippets_sparqlInstancesOfPattern.js +0 -29
  547. package/dist/generators/ts/_snippets/snippets_sparqlPropertyPath.d.ts +0 -3
  548. package/dist/generators/ts/_snippets/snippets_sparqlPropertyPath.js +0 -59
  549. package/dist/generators/ts/_snippets/snippets_sparqlValueInPattern.d.ts +0 -3
  550. package/dist/generators/ts/_snippets/snippets_sparqlValueInPattern.js +0 -23
  551. package/dist/generators/ts/_snippets/snippets_strictEquals.d.ts +0 -3
  552. package/dist/generators/ts/_snippets/snippets_strictEquals.js +0 -12
  553. package/dist/generators/ts/_snippets/snippets_stringFromRdfResourceValues.d.ts +0 -3
  554. package/dist/generators/ts/_snippets/snippets_stringFromRdfResourceValues.js +0 -6
  555. package/dist/generators/ts/_snippets/snippets_stringSparqlWherePatterns.d.ts +0 -3
  556. package/dist/generators/ts/_snippets/snippets_stringSparqlWherePatterns.js +0 -39
  557. package/dist/generators/ts/_snippets/snippets_termFilterSparqlPatterns.d.ts +0 -3
  558. package/dist/generators/ts/_snippets/snippets_termFilterSparqlPatterns.js +0 -93
  559. package/dist/generators/ts/_snippets/snippets_termFromRdfResourceValues.d.ts +0 -3
  560. package/dist/generators/ts/_snippets/snippets_termFromRdfResourceValues.js +0 -17
  561. package/dist/generators/ts/_snippets/snippets_termLikeFromRdfResourceValues.d.ts +0 -3
  562. package/dist/generators/ts/_snippets/snippets_termLikeFromRdfResourceValues.js +0 -60
  563. package/dist/generators/ts/_snippets/snippets_termSchemaSparqlPatterns.d.ts +0 -3
  564. package/dist/generators/ts/_snippets/snippets_termSchemaSparqlPatterns.js +0 -24
  565. package/dist/generators/ts/_snippets/snippets_termSparqlWherePatterns.d.ts +0 -3
  566. package/dist/generators/ts/_snippets/snippets_termSparqlWherePatterns.js +0 -5
  567. package/dist/generators/ts/_snippets/snippets_toIsoDateString.d.ts +0 -3
  568. package/dist/generators/ts/_snippets/snippets_toIsoDateString.js +0 -6
  569. package/dist/generators/ts/_snippets/snippets_validateArray.d.ts +0 -3
  570. package/dist/generators/ts/_snippets/snippets_validateArray.js +0 -13
  571. package/dist/generators/ts/_snippets/snippets_validateMaybe.d.ts +0 -3
  572. package/dist/generators/ts/_snippets/snippets_validateMaybe.js +0 -7
  573. package/dist/generators/ts/_snippets/snippets_wrap_FromRdfResourceFunction.d.ts +0 -3
  574. package/dist/generators/ts/_snippets/snippets_wrap_FromRdfResourceFunction.js +0 -9
  575. package/dist/generators/ts/_snippets/snippets_wrap_ToRdfResourceFunction.d.ts +0 -3
  576. package/dist/generators/ts/_snippets/snippets_wrap_ToRdfResourceFunction.js +0 -14
  577. package/dist/generators/ts/codeEquals.d.ts +0 -3
  578. package/dist/generators/ts/codeEquals.js +0 -7
  579. package/dist/generators/ts/rdfjsTermExpression.d.ts +0 -11
  580. package/dist/generators/ts/rdfjsTermExpression.js +0 -72
  581. package/dist/generators/ts/singleEntryRecord.d.ts +0 -2
  582. package/dist/generators/ts/singleEntryRecord.js +0 -6
  583. package/dist/generators/ts/ts-poet-wrapper.d.ts +0 -5
  584. package/dist/generators/ts/ts-poet-wrapper.js +0 -13
  585. package/dist/generators/ts/tsComment.d.ts +0 -5
  586. package/dist/generators/ts/tsComment.js +0 -11
  587. package/dist/index.d.ts +0 -6
  588. package/dist/index.js +0 -6
  589. package/dist/input/ShapesGraph.d.ts +0 -44
  590. package/dist/input/ShapesGraph.js +0 -66
  591. package/dist/input/generated.d.ts +0 -4074
  592. package/dist/input/generated.js +0 -3417
  593. package/dist/input/index.d.ts +0 -3
  594. package/dist/input/index.js +0 -3
@@ -1,13 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_convertToLiteral = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}convertToLiteral`, code `\
3
- function ${syntheticNamePrefix}convertToLiteral(value: bigint | boolean | Date | number | string | ${imports.Literal}): ${imports.Either}<Error, ${imports.Literal}> {
4
- if (typeof value === "object") {
5
- if (value instanceof Date) {
6
- return ${imports.Either}.of(${snippets.literalFactory}.date(value));
7
- }
8
- return ${imports.Either}.of(value);
9
- }
10
-
11
- return ${imports.Either}.of(${snippets.literalFactory}.primitive(value));
12
- }`);
13
- //# sourceMappingURL=snippets_convertToLiteral.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_convertToMaybe: SnippetFactory;
3
- //# sourceMappingURL=snippets_convertToMaybe.d.ts.map
@@ -1,19 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_convertToMaybe = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}convertToMaybe`, code `\
3
- function ${syntheticNamePrefix}convertToMaybe<ItemSourceT, ItemTargetT>(convertToItem: ${snippets.ConversionFunction}<ItemSourceT, ItemTargetT>) {
4
- return (value: ItemSourceT | ${imports.Maybe}<ItemTargetT> | undefined): ${imports.Either}<Error, ${imports.Maybe}<ItemTargetT>> => {
5
- switch (typeof value) {
6
- case "object": {
7
- if (${imports.Maybe}.isMaybe(value)) {
8
- return ${imports.Either}.of(value as ${imports.Maybe}<ItemTargetT>);
9
- }
10
- break;
11
- }
12
- case "undefined":
13
- return ${imports.Either}.of(${imports.Maybe}.empty());
14
- }
15
-
16
- return convertToItem(value).map(${imports.Maybe}.of);
17
- }
18
- }`);
19
- //# sourceMappingURL=snippets_convertToMaybe.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_convertToScalarSet: SnippetFactory;
3
- //# sourceMappingURL=snippets_convertToScalarSet.d.ts.map
@@ -1,15 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_convertToScalarSet = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}convertToScalarSet`, code `\
3
- function ${syntheticNamePrefix}convertToScalarSet<ItemSourceT, ItemTargetT, Readonly extends boolean>(convertToItem: ${snippets.ConversionFunction}<ItemSourceT, ItemTargetT>, _readonly: Readonly) {
4
- type ItemTargetArrayT = Readonly extends true ? ReadonlyArray<ItemTargetT> : Array<ItemTargetT>;
5
- return (value: ItemSourceT | readonly ItemSourceT[] | undefined): ${imports.Either}<Error, ItemTargetArrayT> => {
6
- if (typeof value === "undefined") {
7
- return ${imports.Either}.of<Error, ItemTargetArrayT>([] as unknown as ItemTargetArrayT);
8
- }
9
- if (Array.isArray(value)) {
10
- return ${imports.Either}.sequence(value.map(convertToItem)) as ${imports.Either}<Error, ItemTargetArrayT>;
11
- }
12
- return convertToItem(value as ItemSourceT).map(value => [value]) as ${imports.Either}<Error, ItemTargetArrayT>;
13
- };
14
- }`);
15
- //# sourceMappingURL=snippets_convertToScalarSet.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_convertWithDefaultValue: SnippetFactory;
3
- //# sourceMappingURL=snippets_convertWithDefaultValue.d.ts.map
@@ -1,11 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_convertWithDefaultValue = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}convertWithDefaultValue`, code `\
3
- function ${syntheticNamePrefix}convertWithDefaultValue<ItemSourceT, ItemTargetT>(convertToItem: ${snippets.ConversionFunction}<ItemSourceT, ItemTargetT>, defaultValue: ItemSourceT) {
4
- return (value: ItemSourceT | undefined): ${imports.Either}<Error, ItemTargetT> => {
5
- if (typeof value === "undefined") {
6
- return convertToItem(defaultValue);
7
- }
8
- return convertToItem(value);
9
- }
10
- }`);
11
- //# sourceMappingURL=snippets_convertWithDefaultValue.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_dateEquals: SnippetFactory;
3
- //# sourceMappingURL=snippets_dateEquals.d.ts.map
@@ -1,13 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_dateEquals = ({ snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}dateEquals`, code `\
3
- /**
4
- * Compare two Dates and return an ${snippets.EqualsResult}.
5
- */
6
- function ${syntheticNamePrefix}dateEquals(left: Date, right: Date): ${snippets.EqualsResult} {
7
- return ${snippets.EqualsResult}.fromBooleanEqualsResult(
8
- left,
9
- right,
10
- left.getTime() === right.getTime(),
11
- );
12
- }`);
13
- //# sourceMappingURL=snippets_dateEquals.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_dateFromRdfResourceValues: SnippetFactory;
3
- //# sourceMappingURL=snippets_dateFromRdfResourceValues.d.ts.map
@@ -1,6 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_dateFromRdfResourceValues = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}dateFromRdfResourceValues`, code `\
3
- function ${syntheticNamePrefix}dateFromRdfResourceValues(values: ${imports.Resource}.Values, options: Parameters<${snippets.FromRdfResourceValuesFunction}<Date, ${snippets.DateSchema}>>[1]): ${imports.Either}<Error, ${imports.Resource}.Values<Date>> {
4
- return ${snippets.termLikeFromRdfResourceValues}(values, options).chain(values => values.chainMap(value => options.schema.in ? value.toDate(options.schema.in) : value.toDate()));
5
- }`);
6
- //# sourceMappingURL=snippets_dateFromRdfResourceValues.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_dateSparqlWherePatterns: SnippetFactory;
3
- //# sourceMappingURL=snippets_dateSparqlWherePatterns.d.ts.map
@@ -1,71 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_dateSparqlWherePatterns = ({ snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}dateSparqlWherePatterns`, code `\
3
- const ${syntheticNamePrefix}dateSparqlWherePatterns: ${snippets.ValueSparqlWherePatternsFunction}<${snippets.DateFilter}, ${snippets.DateSchema}> =
4
- ({ filter, schema, valueVariable, ...otherParameters }) => {
5
- const filterPatterns: ${snippets.SparqlFilterPattern}[] = [];
6
-
7
- if (filter) {
8
- if (filter.in !== undefined && filter.in.length > 0) {
9
- filterPatterns.push({
10
- expression: {
11
- type: "operation",
12
- operator: "in",
13
- args: [valueVariable, filter.in.map(inValue => ${snippets.literalFactory}.date(inValue, schema.kind === "Date" ? ${snippets.RdfVocabularies}.xsd.date : ${snippets.RdfVocabularies}.xsd.dateTime))],
14
- },
15
- lift: true,
16
- type: "filter",
17
- });
18
- }
19
-
20
- if (filter.maxExclusive !== undefined) {
21
- filterPatterns.push({
22
- expression: {
23
- type: "operation",
24
- operator: "<",
25
- args: [valueVariable, ${snippets.literalFactory}.date(filter.maxExclusive, schema.kind === "Date" ? ${snippets.RdfVocabularies}.xsd.date : ${snippets.RdfVocabularies}.xsd.dateTime)],
26
- },
27
- lift: true,
28
- type: "filter"
29
- });
30
- }
31
-
32
- if (filter.maxInclusive !== undefined) {
33
- filterPatterns.push({
34
- expression: {
35
- type: "operation",
36
- operator: "<=",
37
- args: [valueVariable, ${snippets.literalFactory}.date(filter.maxInclusive, schema.kind === "Date" ? ${snippets.RdfVocabularies}.xsd.date : ${snippets.RdfVocabularies}.xsd.dateTime)],
38
- },
39
- lift: true,
40
- type: "filter"
41
- });
42
- }
43
-
44
- if (filter.minExclusive !== undefined) {
45
- filterPatterns.push({
46
- expression: {
47
- type: "operation",
48
- operator: ">",
49
- args: [valueVariable, ${snippets.literalFactory}.date(filter.minExclusive, schema.kind === "Date" ? ${snippets.RdfVocabularies}.xsd.date : ${snippets.RdfVocabularies}.xsd.dateTime)],
50
- },
51
- lift: true,
52
- type: "filter"
53
- });
54
- }
55
-
56
- if (filter.minInclusive !== undefined) {
57
- filterPatterns.push({
58
- expression: {
59
- type: "operation",
60
- operator: ">=",
61
- args: [valueVariable, ${snippets.literalFactory}.date(filter.minInclusive, schema.kind === "Date" ? ${snippets.RdfVocabularies}.xsd.date : ${snippets.RdfVocabularies}.xsd.dateTime)],
62
- },
63
- lift: true,
64
- type: "filter"
65
- });
66
- }
67
- }
68
-
69
- return ${snippets.termSchemaSparqlPatterns}({ ...otherParameters, filterPatterns, schema, valueVariable });
70
- }`);
71
- //# sourceMappingURL=snippets_dateSparqlWherePatterns.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_dateTimeFromRdfResourceValues: SnippetFactory;
3
- //# sourceMappingURL=snippets_dateTimeFromRdfResourceValues.d.ts.map
@@ -1,6 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_dateTimeFromRdfResourceValues = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}dateTimeFromRdfResourceValues`, code `\
3
- function ${syntheticNamePrefix}dateTimeFromRdfResourceValues(values: ${imports.Resource}.Values, options: Parameters<${snippets.FromRdfResourceValuesFunction}<Date, ${snippets.DateSchema}>>[1]): ${imports.Either}<Error, ${imports.Resource}.Values<Date>> {
4
- return ${snippets.termLikeFromRdfResourceValues}(values, options).chain(values => values.chainMap(value => options.schema.in ? value.toDateTime(options.schema.in) : value.toDateTime()));
5
- }`);
6
- //# sourceMappingURL=snippets_dateTimeFromRdfResourceValues.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_decodeBigDecimalLiteral: SnippetFactory;
3
- //# sourceMappingURL=snippets_decodeBigDecimalLiteral.d.ts.map
@@ -1,9 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_decodeBigDecimalLiteral = ({ imports, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}decodeBigDecimalLiteral`, code `\
3
- /**
4
- * Decidoe a BigDecimal from a Literal.
5
- */
6
- function ${syntheticNamePrefix}decodeBigDecimalLiteral(literal: ${imports.Literal}): ${imports.Either}<Error, ${imports.BigDecimal}> {
7
- return ${imports.Either}.encase(() => new ${imports.BigDecimal}(literal.value));
8
- }`);
9
- //# sourceMappingURL=snippets_decodeBigDecimalLiteral.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_deduplicateSparqlPatterns: SnippetFactory;
3
- //# sourceMappingURL=snippets_deduplicateSparqlPatterns.d.ts.map
@@ -1,19 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_deduplicateSparqlPatterns = ({ snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}deduplicateSparqlPatterns`, code `\
3
- function ${syntheticNamePrefix}deduplicateSparqlPatterns(patterns: readonly ${snippets.SparqlPattern}[]): readonly ${snippets.SparqlPattern}[] {
4
- if (patterns.length === 0) {
5
- return patterns;
6
- }
7
-
8
- const deduplicatedPatterns: ${snippets.SparqlPattern}[] = [];
9
- const deduplicatePatternStrings = new Set<string>();
10
- for (const pattern of patterns) {
11
- const patternString = JSON.stringify(pattern);
12
- if (!deduplicatePatternStrings.has(patternString)) {
13
- deduplicatePatternStrings.add(patternString);
14
- deduplicatedPatterns.push(pattern);
15
- }
16
- }
17
- return deduplicatedPatterns;
18
- }`);
19
- //# sourceMappingURL=snippets_deduplicateSparqlPatterns.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_defaultValueFromRdfResourceValues: SnippetFactory;
3
- //# sourceMappingURL=snippets_defaultValueFromRdfResourceValues.d.ts.map
@@ -1,10 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_defaultValueFromRdfResourceValues = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}defaultValueFromRdfResourceValues`, code `\
3
- function ${syntheticNamePrefix}defaultValueFromRdfResourceValues<ItemT, ItemSchemaT>(itemFromRdfResourceValues: ${snippets.FromRdfResourceValuesFunction}<ItemT, ItemSchemaT>): ${snippets.FromRdfResourceValuesFunction}<ItemT, ${snippets.DefaultValueSchema}<ItemSchemaT>> {
4
- return (values, options) =>
5
- itemFromRdfResourceValues(
6
- values.length > 0 ? values : new ${imports.Resource}.Value({ dataFactory: ${imports.dataFactory}, focusResource: options.focusResource, propertyPath: options.propertyPath, term: options.schema.defaultValue }).toValues(),
7
- { ...options, schema: options.schema.itemType }
8
- );
9
- }`);
10
- //# sourceMappingURL=snippets_defaultValueFromRdfResourceValues.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_defaultValueSparqlWherePatterns: SnippetFactory;
3
- //# sourceMappingURL=snippets_defaultValueSparqlWherePatterns.d.ts.map
@@ -1,9 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_defaultValueSparqlWherePatterns = ({ snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}defaultValueSparqlWherePatterns`, code `\
3
- function ${syntheticNamePrefix}defaultValueSparqlWherePatterns<ItemFilterT, ItemSchemaT>(itemSparqlWherePatternsFunction: ${snippets.ValueSparqlWherePatternsFunction}<ItemFilterT, ItemSchemaT>): ${snippets.ValueSparqlWherePatternsFunction}<ItemFilterT, ${snippets.DefaultValueSchema}<ItemSchemaT>> {
4
- return ({ schema, ...otherParameters }) => {
5
- const [itemSparqlWherePatterns, liftSparqlPatterns] = ${snippets.liftSparqlPatterns}(itemSparqlWherePatternsFunction({ ...otherParameters, schema: schema.itemType }));
6
- return [{ patterns: itemSparqlWherePatterns.concat(), type: "optional" }, ...liftSparqlPatterns];
7
- }
8
- }`);
9
- //# sourceMappingURL=snippets_defaultValueSparqlWherePatterns.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_ensureRdfResourceType: SnippetFactory;
3
- //# sourceMappingURL=snippets_ensureRdfResourceType.d.ts.map
@@ -1,16 +0,0 @@
1
- import { rdf } from "@tpluscode/rdf-ns-builders";
2
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
3
- export const snippets_ensureRdfResourceType = ({ imports, rdfjsTermExpression, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}ensureRdfResourceType`, code `\
4
- function ${syntheticNamePrefix}ensureRdfResourceType(resource: ${imports.Resource}, types: readonly ${imports.NamedNode}[], options: { graph: Exclude<${imports.Quad_Graph}, ${imports.Variable}> | undefined }): ${imports.Either}<Error, undefined> {
5
- return resource.value(${rdfjsTermExpression(rdf.type)}, options).chain(actualRdfTypeValue => actualRdfTypeValue.toIri()).chain(actualRdfType => {
6
- // Check the expected type and its known subtypes
7
- for (const type of types) {
8
- if (resource.isInstanceOf(type, options)) {
9
- return ${imports.Right}(undefined);
10
- }
11
- }
12
-
13
- return ${imports.Left}(new Error(\`\${resource.identifier} has unexpected RDF type (actual: \${actualRdfType}, expected one of \${types})\`));
14
- });
15
- }`);
16
- //# sourceMappingURL=snippets_ensureRdfResourceType.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_filterArray: SnippetFactory;
3
- //# sourceMappingURL=snippets_filterArray.d.ts.map
@@ -1,22 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_filterArray = ({ snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}filterArray`, code `\
3
- function ${syntheticNamePrefix}filterArray<ItemT, ItemFilterT>(filterItem: (itemFilter: ItemFilterT, item: ItemT) => boolean) {
4
- return (filter: ${snippets.CollectionFilter}<ItemFilterT>, values: readonly ItemT[]): boolean => {
5
- for (const value of values) {
6
- if (!filterItem(filter, value)) {
7
- return false;
8
- }
9
- }
10
-
11
- if (filter.${syntheticNamePrefix}maxCount !== undefined && values.length > filter.${syntheticNamePrefix}maxCount) {
12
- return false;
13
- }
14
-
15
- if (filter.${syntheticNamePrefix}minCount !== undefined && values.length < filter.${syntheticNamePrefix}minCount) {
16
- return false;
17
- }
18
-
19
- return true;
20
- }
21
- }`);
22
- //# sourceMappingURL=snippets_filterArray.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_filterBigDecimal: SnippetFactory;
3
- //# sourceMappingURL=snippets_filterBigDecimal.d.ts.map
@@ -1,26 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_filterBigDecimal = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}filterBigDecimal`, code `\
3
- function ${syntheticNamePrefix}filterBigDecimal(filter: ${snippets.NumericFilter}<${imports.BigDecimal}>, value: ${imports.BigDecimal}) {
4
- if (filter.in !== undefined && !filter.in.some(inValue => inValue.equals(value))) {
5
- return false;
6
- }
7
-
8
- if (filter.maxExclusive !== undefined && value.greaterThanOrEqualTo(filter.maxExclusive)) {
9
- return false;
10
- }
11
-
12
- if (filter.maxInclusive !== undefined && value.greaterThan(filter.maxInclusive)) {
13
- return false;
14
- }
15
-
16
- if (filter.minExclusive !== undefined && value.lessThanOrEqualTo(filter.minExclusive)) {
17
- return false;
18
- }
19
-
20
- if (filter.minInclusive !== undefined && value.lessThan(filter.minInclusive)) {
21
- return false;
22
- }
23
-
24
- return true;
25
- }`);
26
- //# sourceMappingURL=snippets_filterBigDecimal.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_filterBlankNode: SnippetFactory;
3
- //# sourceMappingURL=snippets_filterBlankNode.d.ts.map
@@ -1,6 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_filterBlankNode = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}filterBlankNode`, code `\
3
- function ${syntheticNamePrefix}filterBlankNode(_filter: ${snippets.BlankNodeFilter}, _value: ${imports.BlankNode}) {
4
- return true;
5
- }`);
6
- //# sourceMappingURL=snippets_filterBlankNode.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_filterBoolean: SnippetFactory;
3
- //# sourceMappingURL=snippets_filterBoolean.d.ts.map
@@ -1,10 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_filterBoolean = ({ snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}filterBoolean`, code `\
3
- function ${syntheticNamePrefix}filterBoolean(filter: ${snippets.BooleanFilter}, value: boolean) {
4
- if (filter.value !== undefined && value !== filter.value) {
5
- return false;
6
- }
7
-
8
- return true;
9
- }`);
10
- //# sourceMappingURL=snippets_filterBoolean.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_filterDate: SnippetFactory;
3
- //# sourceMappingURL=snippets_filterDate.d.ts.map
@@ -1,26 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_filterDate = ({ snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}filterDate`, code `\
3
- function ${syntheticNamePrefix}filterDate(filter: ${snippets.DateFilter}, value: Date) {
4
- if (filter.in !== undefined && !filter.in.some(inValue => inValue.getTime() === value.getTime())) {
5
- return false;
6
- }
7
-
8
- if (filter.maxExclusive !== undefined && value.getTime() >= filter.maxExclusive.getTime()) {
9
- return false;
10
- }
11
-
12
- if (filter.maxInclusive !== undefined && value.getTime() > filter.maxInclusive.getTime()) {
13
- return false;
14
- }
15
-
16
- if (filter.minExclusive !== undefined && value.getTime() <= filter.minExclusive.getTime()) {
17
- return false;
18
- }
19
-
20
- if (filter.minInclusive !== undefined && value.getTime() < filter.minInclusive.getTime()) {
21
- return false;
22
- }
23
-
24
- return true;
25
- }`);
26
- //# sourceMappingURL=snippets_filterDate.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_filterIdentifier: SnippetFactory;
3
- //# sourceMappingURL=snippets_filterIdentifier.d.ts.map
@@ -1,14 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_filterIdentifier = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}filterIdentifier`, code `\
3
- function ${syntheticNamePrefix}filterIdentifier(filter: ${snippets.IdentifierFilter}, value: ${imports.BlankNode} | ${imports.NamedNode}) {
4
- if (filter.in !== undefined && !filter.in.some(inValue => inValue.equals(value))) {
5
- return false;
6
- }
7
-
8
- if (filter.type !== undefined && value.termType !== filter.type) {
9
- return false;
10
- }
11
-
12
- return true;
13
- }`);
14
- //# sourceMappingURL=snippets_filterIdentifier.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_filterIri: SnippetFactory;
3
- //# sourceMappingURL=snippets_filterIri.d.ts.map
@@ -1,10 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_filterIri = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}filterIri`, code `\
3
- function ${syntheticNamePrefix}filterIri(filter: ${snippets.IriFilter}, value: ${imports.NamedNode}) {
4
- if (filter.in !== undefined && !filter.in.some(inValue => inValue.equals(value))) {
5
- return false;
6
- }
7
-
8
- return true;
9
- }`);
10
- //# sourceMappingURL=snippets_filterIri.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_filterLiteral: SnippetFactory;
3
- //# sourceMappingURL=snippets_filterLiteral.d.ts.map
@@ -1,6 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_filterLiteral = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}filterLiteral`, code `\
3
- function ${syntheticNamePrefix}filterLiteral(filter: ${snippets.LiteralFilter}, value: ${imports.Literal}): boolean {
4
- return ${snippets.filterTerm}(filter, value);
5
- }`);
6
- //# sourceMappingURL=snippets_filterLiteral.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_filterMaybe: SnippetFactory;
3
- //# sourceMappingURL=snippets_filterMaybe.d.ts.map
@@ -1,22 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_filterMaybe = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}filterMaybe`, code `\
3
- function ${syntheticNamePrefix}filterMaybe<ItemT, ItemFilterT>(filterItem: (itemFilter: ItemFilterT, item: ItemT) => boolean) {
4
- return (filter: ${snippets.MaybeFilter}<ItemFilterT>, value: ${imports.Maybe}<ItemT>): boolean => {
5
- if (filter !== null) {
6
- if (value.isNothing()) {
7
- return false;
8
- }
9
-
10
- if (!filterItem(filter, value.extract()!)) {
11
- return false;
12
- }
13
- } else {
14
- if (value.isJust()) {
15
- return false;
16
- }
17
- }
18
-
19
- return true;
20
- }
21
- }`);
22
- //# sourceMappingURL=snippets_filterMaybe.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_filterNumeric: SnippetFactory;
3
- //# sourceMappingURL=snippets_filterNumeric.d.ts.map
@@ -1,26 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_filterNumeric = ({ snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}filterNumeric`, code `\
3
- function ${syntheticNamePrefix}filterNumeric<NumericT extends bigint | number>(filter: ${snippets.NumericFilter}<NumericT>, value: NumericT) {
4
- if (filter.in !== undefined && !filter.in.some(inValue => inValue === value)) {
5
- return false;
6
- }
7
-
8
- if (filter.maxExclusive !== undefined && value >= filter.maxExclusive) {
9
- return false;
10
- }
11
-
12
- if (filter.maxInclusive !== undefined && value > filter.maxInclusive) {
13
- return false;
14
- }
15
-
16
- if (filter.minExclusive !== undefined && value <= filter.minExclusive) {
17
- return false;
18
- }
19
-
20
- if (filter.minInclusive !== undefined && value < filter.minInclusive) {
21
- return false;
22
- }
23
-
24
- return true;
25
- }`);
26
- //# sourceMappingURL=snippets_filterNumeric.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_filterString: SnippetFactory;
3
- //# sourceMappingURL=snippets_filterString.d.ts.map
@@ -1,18 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_filterString = ({ snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}filterString`, code `\
3
- function ${syntheticNamePrefix}filterString(filter: ${snippets.StringFilter}, value: string) {
4
- if (filter.in !== undefined && !filter.in.some(inValue => inValue === value)) {
5
- return false;
6
- }
7
-
8
- if (filter.maxLength !== undefined && value.length > filter.maxLength) {
9
- return false;
10
- }
11
-
12
- if (filter.minLength !== undefined && value.length < filter.minLength) {
13
- return false;
14
- }
15
-
16
- return true;
17
- }`);
18
- //# sourceMappingURL=snippets_filterString.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_filterTerm: SnippetFactory;
3
- //# sourceMappingURL=snippets_filterTerm.d.ts.map
@@ -1,22 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_filterTerm = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}filterTerm`, code `\
3
- function ${syntheticNamePrefix}filterTerm<TermT extends ${imports.BlankNode} | ${imports.Literal} | ${imports.NamedNode}>(filter: ${snippets.TermFilter}<TermT>, value: ${imports.BlankNode} | ${imports.Literal} | ${imports.NamedNode}): boolean {
4
- if (filter.datatypeIn !== undefined && (value.termType !== "Literal" || !filter.datatypeIn.some(inDatatype => inDatatype.equals(value.datatype)))) {
5
- return false;
6
- }
7
-
8
- if (filter.in !== undefined && !filter.in.some(inTerm => inTerm.equals(value))) {
9
- return false;
10
- }
11
-
12
- if (filter.languageIn !== undefined && (value.termType !== "Literal" || !filter.languageIn.some(inLanguage => inLanguage === value.language))) {
13
- return false;
14
- }
15
-
16
- if (filter.typeIn !== undefined && !filter.typeIn.some(inType => inType === value.termType)) {
17
- return false;
18
- }
19
-
20
- return true;
21
- }`);
22
- //# sourceMappingURL=snippets_filterTerm.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_floatFromRdfResourceValues: SnippetFactory;
3
- //# sourceMappingURL=snippets_floatFromRdfResourceValues.d.ts.map
@@ -1,6 +0,0 @@
1
- import { code, conditionalOutput } from "../ts-poet-wrapper.js";
2
- export const snippets_floatFromRdfResourceValues = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}floatFromRdfResourceValues`, code `\
3
- function ${syntheticNamePrefix}floatFromRdfResourceValues<FloatT extends number>(values: ${imports.Resource}.Values, options: Parameters<${snippets.FromRdfResourceValuesFunction}<FloatT, ${snippets.NumericSchema}<FloatT>>>[1]): ${imports.Either}<Error, ${imports.Resource}.Values<FloatT>> {
4
- return ${snippets.termLikeFromRdfResourceValues}(values, options).chain(values => values.chainMap(value => options.schema.in ? value.toFloat(options.schema.in) : value.toFloat() as ${imports.Either}<Error, FloatT>));
5
- }`);
6
- //# sourceMappingURL=snippets_floatFromRdfResourceValues.js.map
@@ -1,3 +0,0 @@
1
- import type { SnippetFactory } from "../SnippetFactory.js";
2
- export declare const snippets_hashArray: SnippetFactory;
3
- //# sourceMappingURL=snippets_hashArray.d.ts.map