@shaclmate/compiler 4.0.94 → 4.0.96

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 (572) hide show
  1. package/dist/Eithers.d.ts +2 -1
  2. package/dist/Eithers.js +15 -0
  3. package/dist/ShapesGraphToAstTransformer.js +10 -0
  4. package/dist/_ShapesGraphToAstTransformer/ShapeStack.d.ts +2 -2
  5. package/dist/_ShapesGraphToAstTransformer/ShapeStack.js +2 -1
  6. package/dist/_ShapesGraphToAstTransformer/isNodeShape.d.ts +3 -0
  7. package/dist/_ShapesGraphToAstTransformer/isNodeShape.js +4 -0
  8. package/dist/_ShapesGraphToAstTransformer/isPropertyShape.d.ts +3 -0
  9. package/dist/_ShapesGraphToAstTransformer/isPropertyShape.js +4 -0
  10. package/dist/_ShapesGraphToAstTransformer/shapeAstTypeName.d.ts +2 -1
  11. package/dist/_ShapesGraphToAstTransformer/shapeAstTypeName.js +4 -3
  12. package/dist/_ShapesGraphToAstTransformer/shapeNodeKinds.d.ts +1 -1
  13. package/dist/_ShapesGraphToAstTransformer/shapeNodeKinds.js +7 -3
  14. package/dist/_ShapesGraphToAstTransformer/shapeOntology.d.ts +1 -1
  15. package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstStructTypeField.d.ts +1 -1
  16. package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstStructTypeField.js +34 -16
  17. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.d.ts +1 -1
  18. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.js +3 -2
  19. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.d.ts +1 -1
  20. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.js +3 -3
  21. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstStructType.d.ts +1 -1
  22. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstStructType.js +86 -65
  23. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstTermType.d.ts +1 -1
  24. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstTermType.js +1 -1
  25. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.d.ts +1 -1
  26. package/dist/ast/AbstractCollectionType.d.ts +2 -2
  27. package/dist/ast/AbstractConstruct.d.ts +25 -0
  28. package/dist/ast/AbstractConstruct.js +38 -0
  29. package/dist/ast/AbstractContainerType.d.ts +2 -2
  30. package/dist/ast/AbstractLazyType.d.ts +14 -36
  31. package/dist/ast/AbstractTermType.d.ts +2 -2
  32. package/dist/ast/AbstractType.d.ts +7 -17
  33. package/dist/ast/AbstractType.js +6 -22
  34. package/dist/ast/Ast.d.ts +2 -0
  35. package/dist/ast/DefaultValueType.d.ts +2 -2
  36. package/dist/ast/DiscriminatedUnionType.d.ts +2 -2
  37. package/dist/ast/DiscriminatedUnionType.js +3 -1
  38. package/dist/ast/LiteralType.d.ts +2 -2
  39. package/dist/ast/Operation.d.ts +67 -0
  40. package/dist/ast/Operation.js +32 -0
  41. package/dist/ast/Service.d.ts +17 -0
  42. package/dist/ast/Service.js +17 -0
  43. package/dist/ast/SetType.d.ts +2 -2
  44. package/dist/ast/StructCompoundType.d.ts +1 -1
  45. package/dist/ast/StructCompoundType.js +5 -5
  46. package/dist/ast/StructType.d.ts +64 -32
  47. package/dist/ast/StructType.js +62 -29
  48. package/dist/ast/index.d.ts +2 -0
  49. package/dist/ast/index.js +2 -0
  50. package/dist/generators/transformAstToLabeledPropertyGraph.js +13 -10
  51. package/dist/generators/ts/AbstractCallable.d.ts +20 -0
  52. package/dist/generators/ts/AbstractCallable.js +9 -0
  53. package/dist/generators/ts/AbstractCollectionType.d.ts +7 -9
  54. package/dist/generators/ts/AbstractCollectionType.js +11 -11
  55. package/dist/generators/ts/AbstractCompoundType.d.ts +18 -0
  56. package/dist/generators/ts/AbstractCompoundType.js +33 -0
  57. package/dist/generators/ts/AbstractConstruct.d.ts +31 -0
  58. package/dist/generators/ts/AbstractConstruct.js +31 -0
  59. package/dist/generators/ts/AbstractContainerType.d.ts +7 -4
  60. package/dist/generators/ts/AbstractContainerType.js +5 -2
  61. package/dist/generators/ts/AbstractDateType.d.ts +8 -5
  62. package/dist/generators/ts/AbstractDateType.js +22 -8
  63. package/dist/generators/ts/AbstractDiscriminatedUnionType.d.ts +43 -45
  64. package/dist/generators/ts/AbstractDiscriminatedUnionType.js +100 -258
  65. package/dist/generators/ts/AbstractIdentifierType.d.ts +8 -3
  66. package/dist/generators/ts/AbstractIdentifierType.js +34 -5
  67. package/dist/generators/ts/AbstractIntersectionType.d.ts +48 -0
  68. package/dist/generators/ts/AbstractIntersectionType.js +80 -0
  69. package/dist/generators/ts/AbstractLazyType.d.ts +35 -17
  70. package/dist/generators/ts/AbstractLazyType.js +75 -24
  71. package/dist/generators/ts/AbstractLiteralType.d.ts +2 -2
  72. package/dist/generators/ts/AbstractLiteralType.js +15 -1
  73. package/dist/generators/ts/AbstractNumericType.d.ts +5 -4
  74. package/dist/generators/ts/AbstractNumericType.js +4 -6
  75. package/dist/generators/ts/AbstractObjectSetType.d.ts +5 -6
  76. package/dist/generators/ts/AbstractObjectSetType.js +10 -13
  77. package/dist/generators/ts/AbstractPrimitiveType.d.ts +7 -7
  78. package/dist/generators/ts/AbstractPrimitiveType.js +18 -36
  79. package/dist/generators/ts/AbstractStructuredType.d.ts +71 -0
  80. package/dist/generators/ts/AbstractStructuredType.js +273 -0
  81. package/dist/generators/ts/AbstractTermType.d.ts +8 -10
  82. package/dist/generators/ts/AbstractTermType.js +6 -18
  83. package/dist/generators/ts/AbstractType.d.ts +54 -78
  84. package/dist/generators/ts/AbstractType.js +25 -29
  85. package/dist/generators/ts/AbstractTypedLiteralType.d.ts +5 -4
  86. package/dist/generators/ts/AbstractTypedLiteralType.js +14 -3
  87. package/dist/generators/ts/BigDecimalType.d.ts +15 -13
  88. package/dist/generators/ts/BigDecimalType.js +13 -29
  89. package/dist/generators/ts/BigIntType.d.ts +10 -8
  90. package/dist/generators/ts/BigIntType.js +26 -51
  91. package/dist/generators/ts/BlankNodeType.d.ts +12 -12
  92. package/dist/generators/ts/BlankNodeType.js +9 -35
  93. package/dist/generators/ts/BooleanType.d.ts +12 -6
  94. package/dist/generators/ts/BooleanType.js +21 -11
  95. package/dist/generators/ts/Callable.d.ts +5 -0
  96. package/dist/generators/ts/Callable.js +2 -0
  97. package/dist/generators/ts/CodeThunk.d.ts +6 -0
  98. package/dist/generators/ts/CodeThunk.js +8 -0
  99. package/dist/generators/ts/DateTimeType.d.ts +7 -4
  100. package/dist/generators/ts/DateTimeType.js +8 -21
  101. package/dist/generators/ts/DateType.d.ts +7 -4
  102. package/dist/generators/ts/DateType.js +8 -21
  103. package/dist/generators/ts/DeclaredCallable.d.ts +23 -0
  104. package/dist/generators/ts/DeclaredCallable.js +59 -0
  105. package/dist/generators/ts/DefaultValueType.d.ts +24 -23
  106. package/dist/generators/ts/DefaultValueType.js +29 -59
  107. package/dist/generators/ts/FloatType.d.ts +7 -2
  108. package/dist/generators/ts/FloatType.js +16 -6
  109. package/dist/generators/ts/GraphqlSchema.js +1 -1
  110. package/dist/generators/ts/IdentifierType.d.ts +13 -13
  111. package/dist/generators/ts/IdentifierType.js +10 -39
  112. package/dist/generators/ts/Imports.d.ts +8 -0
  113. package/dist/generators/ts/Imports.js +15 -7
  114. package/dist/generators/ts/InlineCallable.d.ts +18 -0
  115. package/dist/generators/ts/InlineCallable.js +51 -0
  116. package/dist/generators/ts/IntType.d.ts +6 -1
  117. package/dist/generators/ts/IntType.js +16 -1
  118. package/dist/generators/ts/IriType.d.ts +12 -8
  119. package/dist/generators/ts/IriType.js +56 -43
  120. package/dist/generators/ts/LangStringType.d.ts +12 -7
  121. package/dist/generators/ts/LangStringType.js +37 -20
  122. package/dist/generators/ts/LazyOptionType.d.ts +5 -21
  123. package/dist/generators/ts/LazyOptionType.js +5 -26
  124. package/dist/generators/ts/LazySetType.d.ts +3 -2
  125. package/dist/generators/ts/LazySetType.js +5 -25
  126. package/dist/generators/ts/LazyType.d.ts +3 -2
  127. package/dist/generators/ts/LazyType.js +5 -21
  128. package/dist/generators/ts/ListType.d.ts +12 -7
  129. package/dist/generators/ts/ListType.js +45 -22
  130. package/dist/generators/ts/LiteralType.d.ts +11 -7
  131. package/dist/generators/ts/LiteralType.js +31 -21
  132. package/dist/generators/ts/ObjectDiscriminatedUnionType.d.ts +19 -2
  133. package/dist/generators/ts/ObjectDiscriminatedUnionType.js +105 -41
  134. package/dist/generators/ts/ObjectIntersectionType.d.ts +44 -0
  135. package/dist/generators/ts/ObjectIntersectionType.js +204 -0
  136. package/dist/generators/ts/ObjectSetType.js +0 -1
  137. package/dist/generators/ts/ObjectType.d.ts +78 -49
  138. package/dist/generators/ts/ObjectType.js +235 -362
  139. package/dist/generators/ts/Operation.d.ts +54 -0
  140. package/dist/generators/ts/Operation.js +206 -0
  141. package/dist/generators/ts/OptionType.d.ts +15 -13
  142. package/dist/generators/ts/OptionType.js +43 -33
  143. package/dist/generators/ts/RdfjsDatasetObjectSetType.js +14 -7
  144. package/dist/generators/ts/ReferenceCallable.d.ts +14 -0
  145. package/dist/generators/ts/ReferenceCallable.js +16 -0
  146. package/dist/generators/ts/Service.d.ts +15 -0
  147. package/dist/generators/ts/Service.js +53 -0
  148. package/dist/generators/ts/SetType.d.ts +11 -8
  149. package/dist/generators/ts/SetType.js +35 -35
  150. package/dist/generators/ts/SnippetFactory.d.ts +1 -1
  151. package/dist/generators/ts/Snippets.d.ts +80 -2
  152. package/dist/generators/ts/Snippets.js +622 -74
  153. package/dist/generators/ts/SparqlObjectSetType.js +1 -4
  154. package/dist/generators/ts/StringType.d.ts +10 -5
  155. package/dist/generators/ts/StringType.js +25 -17
  156. package/dist/generators/ts/TermType.d.ts +13 -7
  157. package/dist/generators/ts/TermType.js +61 -71
  158. package/dist/generators/ts/TsFeature.d.ts +4 -1
  159. package/dist/generators/ts/TsFeature.js +51 -0
  160. package/dist/generators/ts/TsGenerator.d.ts +2 -1
  161. package/dist/generators/ts/TsGenerator.js +98 -54
  162. package/dist/generators/ts/Type.d.ts +2 -1
  163. package/dist/generators/ts/TypeFactory.d.ts +10 -7
  164. package/dist/generators/ts/TypeFactory.js +193 -140
  165. package/dist/generators/ts/UberObjectDiscriminatedUnionType.d.ts +6 -2
  166. package/dist/generators/ts/UberObjectDiscriminatedUnionType.js +18 -12
  167. package/dist/generators/ts/ZodGenerator.js +6 -14
  168. package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_Discriminant.d.ts +3 -6
  169. package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_conversionFunctionExpression.d.ts → AbstractDiscriminatedUnionType_conversionFunction.d.ts} +1 -1
  170. package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_conversionFunctionExpression.js → AbstractDiscriminatedUnionType_conversionFunction.js} +2 -2
  171. package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_equalsFunctionExpression.d.ts → AbstractDiscriminatedUnionType_equalsFunction.d.ts} +1 -1
  172. package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_equalsFunctionExpression.js → AbstractDiscriminatedUnionType_equalsFunction.js} +4 -4
  173. package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_filterFunctionExpression.d.ts → AbstractDiscriminatedUnionType_filterFunction.d.ts} +1 -1
  174. package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_filterFunctionExpression.js → AbstractDiscriminatedUnionType_filterFunction.js} +7 -8
  175. package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_filterTypeExpression.js +1 -2
  176. package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_fromJsonObjectFunction.d.ts +5 -0
  177. package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_fromJsonObjectFunction.js +18 -0
  178. package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_fromRdfResourceValuesFunctionExpression.d.ts → AbstractDiscriminatedUnionType_fromRdfResourceValuesFunction.d.ts} +1 -1
  179. package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_fromRdfResourceValuesFunctionExpression.js → AbstractDiscriminatedUnionType_fromRdfResourceValuesFunction.js} +5 -5
  180. package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_hashFunctionExpression.d.ts → AbstractDiscriminatedUnionType_hashFunction.d.ts} +1 -1
  181. package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_hashFunctionExpression.js → AbstractDiscriminatedUnionType_hashFunction.js} +4 -5
  182. package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_inferDiscriminant.js +6 -9
  183. package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_inlineExpression.js +5 -5
  184. package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toJsonObjectFunction.d.ts +5 -0
  185. package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toJsonObjectFunction.js +16 -0
  186. package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toLoggableFunction.d.ts +5 -0
  187. package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toLoggableFunction.js +20 -0
  188. package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_toRdfResourceValuesFunctionExpression.d.ts → AbstractDiscriminatedUnionType_toRdfResourceValuesFunction.d.ts} +1 -1
  189. package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toRdfResourceValuesFunction.js +18 -0
  190. package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_toStringFunctionExpression.d.ts → AbstractDiscriminatedUnionType_toStringFunction.d.ts} +1 -1
  191. package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_toStringFunctionExpression.js → AbstractDiscriminatedUnionType_toStringFunction.js} +3 -3
  192. package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_valueSparqlConstructTriplesFunctionExpression.d.ts → AbstractDiscriminatedUnionType_valueSparqlConstructTriplesFunction.d.ts} +1 -1
  193. package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_valueSparqlConstructTriplesFunctionExpression.js → AbstractDiscriminatedUnionType_valueSparqlConstructTriplesFunction.js} +4 -4
  194. package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_valueSparqlWherePatternsFunctionExpression.d.ts → AbstractDiscriminatedUnionType_valueSparqlWherePatternsFunction.d.ts} +1 -1
  195. package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_valueSparqlWherePatternsFunctionExpression.js → AbstractDiscriminatedUnionType_valueSparqlWherePatternsFunction.js} +4 -4
  196. package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_equalsFunction.d.ts +5 -0
  197. package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_equalsFunction.js +7 -0
  198. package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_filterFunction.d.ts +5 -0
  199. package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_filterFunction.js +7 -0
  200. package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_hashFunction.d.ts +5 -0
  201. package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_hashFunction.js +8 -0
  202. package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_toLoggableFunction.d.ts +5 -0
  203. package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_toLoggableFunction.js +14 -0
  204. package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_toStringFunction.d.ts +5 -0
  205. package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_toStringFunction.js +17 -0
  206. package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_valueSparqlConstructTriplesFunction.d.ts +5 -0
  207. package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_valueSparqlConstructTriplesFunction.js +13 -0
  208. package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_valueSparqlWherePatternsFunction.d.ts +5 -0
  209. package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_valueSparqlWherePatternsFunction.js +13 -0
  210. package/dist/generators/ts/_AbstractType/AbstractType_DiscriminatedType.d.ts +9 -0
  211. package/dist/generators/ts/_AbstractType/AbstractType_DiscriminatedType.js +2 -0
  212. package/dist/generators/ts/_AbstractType/AbstractType_JsonType.d.ts +196 -11
  213. package/dist/generators/ts/_AbstractType/AbstractType_JsonType.js +411 -17
  214. package/dist/generators/ts/_ObjectDiscriminatedUnionType/{ObjectDiscriminatedUnionType_focusSparqlConstructTriplesFunctionDeclaration.d.ts → ObjectDiscriminatedUnionType_focusSparqlConstructTriplesFunction.d.ts} +3 -3
  215. package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_focusSparqlConstructTriplesFunction.js +12 -0
  216. package/dist/generators/ts/_ObjectDiscriminatedUnionType/{ObjectDiscriminatedUnionType_focusSparqlWherePatternsFunctionDeclaration.d.ts → ObjectDiscriminatedUnionType_focusSparqlWherePatternsFunction.d.ts} +3 -3
  217. package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_focusSparqlWherePatternsFunction.js +32 -0
  218. package/dist/generators/ts/_ObjectDiscriminatedUnionType/{ObjectDiscriminatedUnionType_fromRdfResourceFunctionDeclaration.d.ts → ObjectDiscriminatedUnionType_fromRdfResourceFunction.d.ts} +3 -3
  219. package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_fromRdfResourceFunction.js +16 -0
  220. package/dist/generators/ts/_ObjectDiscriminatedUnionType/{ObjectDiscriminatedUnionType_graphqlTypeVariableStatement.d.ts → ObjectDiscriminatedUnionType_graphqlTypeExpression.d.ts} +2 -2
  221. package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_graphqlTypeExpression.js +11 -0
  222. package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_schemaExpression.d.ts +4 -0
  223. package/dist/generators/ts/_ObjectDiscriminatedUnionType/{ObjectDiscriminatedUnionType_schemaVariableStatement.js → ObjectDiscriminatedUnionType_schemaExpression.js} +3 -8
  224. package/dist/generators/ts/_ObjectDiscriminatedUnionType/{ObjectDiscriminatedUnionType_toRdfResourceFunctionDeclaration.d.ts → ObjectDiscriminatedUnionType_toRdfResourceFunction.d.ts} +3 -3
  225. package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_toRdfResourceFunction.js +17 -0
  226. package/dist/generators/ts/_ObjectDiscriminatedUnionType/{ObjectDiscriminatedUnionType_typeGuardFunctionDeclaration.d.ts → ObjectDiscriminatedUnionType_typeGuardFunction.d.ts} +4 -3
  227. package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_typeGuardFunction.js +14 -0
  228. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType__fromRdfResourceFunction.d.ts +4 -0
  229. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType__fromRdfResourceFunction.js +16 -0
  230. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType__toRdfResourceFunction.d.ts +4 -0
  231. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType__toRdfResourceFunction.js +18 -0
  232. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_createFunction.d.ts +4 -0
  233. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_createFunction.js +30 -0
  234. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_createFunctionParameters.d.ts +4 -0
  235. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_createFunctionParameters.js +25 -0
  236. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_createUnsafeFunction.d.ts +4 -0
  237. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_createUnsafeFunction.js +10 -0
  238. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_focusSparqlConstructTriplesFunction.d.ts +4 -0
  239. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_focusSparqlConstructTriplesFunction.js +19 -0
  240. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_focusSparqlWherePatternsFunction.d.ts +4 -0
  241. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_focusSparqlWherePatternsFunction.js +19 -0
  242. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_fromJsonObjectFunction.d.ts +5 -0
  243. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_fromJsonObjectFunction.js +15 -0
  244. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_fromRdfResourceFunction.d.ts +4 -0
  245. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_fromRdfResourceFunction.js +9 -0
  246. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_fromRdfResourceValuesFunction.d.ts +5 -0
  247. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_fromRdfResourceValuesFunction.js +8 -0
  248. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_toJsonObjectFunction.d.ts +4 -0
  249. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_toJsonObjectFunction.js +7 -0
  250. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_toRdfResourceFunction.d.ts +4 -0
  251. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_toRdfResourceFunction.js +12 -0
  252. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_toRdfResourceValuesFunction.d.ts +4 -0
  253. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_toRdfResourceValuesFunction.js +5 -0
  254. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_typeGuardFunction.d.ts +5 -0
  255. package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_typeGuardFunction.js +18 -0
  256. package/dist/generators/ts/_ObjectType/ObjectType_AbstractProperty.d.ts +37 -23
  257. package/dist/generators/ts/_ObjectType/ObjectType_AbstractProperty.js +19 -1
  258. package/dist/generators/ts/_ObjectType/ObjectType_DiscriminantProperty.d.ts +15 -15
  259. package/dist/generators/ts/_ObjectType/ObjectType_DiscriminantProperty.js +22 -56
  260. package/dist/generators/ts/_ObjectType/ObjectType_IdentifierProperty.d.ts +9 -10
  261. package/dist/generators/ts/_ObjectType/ObjectType_IdentifierProperty.js +40 -49
  262. package/dist/generators/ts/_ObjectType/ObjectType_RdfTypeProperty.d.ts +8 -9
  263. package/dist/generators/ts/_ObjectType/ObjectType_RdfTypeProperty.js +47 -14
  264. package/dist/generators/ts/_ObjectType/ObjectType_ShaclProperty.d.ts +10 -10
  265. package/dist/generators/ts/_ObjectType/ObjectType_ShaclProperty.js +41 -57
  266. package/dist/generators/ts/_ObjectType/ObjectType__fromRdfResourceFunction.d.ts +4 -0
  267. package/dist/generators/ts/_ObjectType/{ObjectType_fromRdfResourceFunctionExpression.js → ObjectType__fromRdfResourceFunction.js} +14 -11
  268. package/dist/generators/ts/_ObjectType/ObjectType__toRdfResourceFunction.d.ts +4 -0
  269. package/dist/generators/ts/_ObjectType/ObjectType__toRdfResourceFunction.js +32 -0
  270. package/dist/generators/ts/_ObjectType/ObjectType_conversionFunction.d.ts +5 -0
  271. package/dist/generators/ts/_ObjectType/ObjectType_conversionFunction.js +28 -0
  272. package/dist/generators/ts/_ObjectType/ObjectType_createFunction.d.ts +4 -0
  273. package/dist/generators/ts/_ObjectType/ObjectType_createFunction.js +31 -0
  274. package/dist/generators/ts/_ObjectType/ObjectType_createFunctionParameters.d.ts +3 -0
  275. package/dist/generators/ts/_ObjectType/ObjectType_createFunctionParameters.js +29 -0
  276. package/dist/generators/ts/_ObjectType/ObjectType_createUnsafeFunction.d.ts +4 -0
  277. package/dist/generators/ts/_ObjectType/ObjectType_createUnsafeFunction.js +10 -0
  278. package/dist/generators/ts/_ObjectType/{ObjectType_equalsFunctionExpression.d.ts → ObjectType_equalsFunction.d.ts} +2 -1
  279. package/dist/generators/ts/_ObjectType/{ObjectType_equalsFunctionExpression.js → ObjectType_equalsFunction.js} +6 -4
  280. package/dist/generators/ts/_ObjectType/{ObjectType_filterFunctionExpression.d.ts → ObjectType_filterFunction.d.ts} +2 -1
  281. package/dist/generators/ts/_ObjectType/{ObjectType_filterFunctionExpression.js → ObjectType_filterFunction.js} +5 -2
  282. package/dist/generators/ts/_ObjectType/{ObjectType_focusSparqlConstructTriplesFunctionExpression.d.ts → ObjectType_focusSparqlConstructTriplesFunction.d.ts} +3 -3
  283. package/dist/generators/ts/_ObjectType/{ObjectType_focusSparqlConstructTriplesFunctionExpression.js → ObjectType_focusSparqlConstructTriplesFunction.js} +11 -4
  284. package/dist/generators/ts/_ObjectType/{ObjectType_focusSparqlWherePatternsFunctionExpression.d.ts → ObjectType_focusSparqlWherePatternsFunction.d.ts} +3 -3
  285. package/dist/generators/ts/_ObjectType/{ObjectType_focusSparqlWherePatternsFunctionExpression.js → ObjectType_focusSparqlWherePatternsFunction.js} +11 -4
  286. package/dist/generators/ts/_ObjectType/ObjectType_fromJsonObjectFunction.d.ts +5 -0
  287. package/dist/generators/ts/_ObjectType/ObjectType_fromJsonObjectFunction.js +19 -0
  288. package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunction.d.ts +4 -0
  289. package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunction.js +9 -0
  290. package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceValuesFunction.d.ts +5 -0
  291. package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceValuesFunction.js +8 -0
  292. package/dist/generators/ts/_ObjectType/{ObjectType_hashFunctionExpression.d.ts → ObjectType_hashFunction.d.ts} +2 -1
  293. package/dist/generators/ts/_ObjectType/{ObjectType_hashFunctionExpression.js → ObjectType_hashFunction.js} +10 -14
  294. package/dist/generators/ts/_ObjectType/ObjectType_identifierTypeDeclarations.d.ts +6 -2
  295. package/dist/generators/ts/_ObjectType/ObjectType_identifierTypeDeclarations.js +1 -2
  296. package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunction.d.ts +20 -0
  297. package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunction.js +39 -0
  298. package/dist/generators/ts/_ObjectType/{ObjectType_sparqlConstructQueryStringFunctionDeclaration.d.ts → ObjectType_sparqlConstructQueryStringFunction.d.ts} +11 -4
  299. package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryStringFunction.js +11 -0
  300. package/dist/generators/ts/_ObjectType/ObjectType_toJsonObjectFunction.d.ts +5 -0
  301. package/dist/generators/ts/_ObjectType/ObjectType_toJsonObjectFunction.js +16 -0
  302. package/dist/generators/ts/_ObjectType/ObjectType_toLoggableFunction.d.ts +5 -0
  303. package/dist/generators/ts/_ObjectType/ObjectType_toLoggableFunction.js +11 -0
  304. package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunction.d.ts +4 -0
  305. package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunction.js +12 -0
  306. package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceValuesFunction.d.ts +5 -0
  307. package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceValuesFunction.js +8 -0
  308. package/dist/generators/ts/_ObjectType/{ObjectType_toStringFunctionExpression.d.ts → ObjectType_toStringFunction.d.ts} +2 -1
  309. package/dist/generators/ts/_ObjectType/ObjectType_toStringFunction.js +10 -0
  310. package/dist/generators/ts/_ObjectType/ObjectType_toStringRecordFunction.d.ts +4 -0
  311. package/dist/generators/ts/_ObjectType/ObjectType_toStringRecordFunction.js +17 -0
  312. package/dist/generators/ts/_ObjectType/ObjectType_typeGuardFunction.d.ts +5 -0
  313. package/dist/generators/ts/_ObjectType/ObjectType_typeGuardFunction.js +18 -0
  314. package/dist/generators/ts/_ObjectType/{ObjectType_valueSparqlConstructTriplesFunctionExpression.d.ts → ObjectType_valueSparqlConstructTriplesFunction.d.ts} +1 -1
  315. package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlConstructTriplesFunction.js +7 -0
  316. package/dist/generators/ts/_ObjectType/{ObjectType_valueSparqlWherePatternsFunctionExpression.d.ts → ObjectType_valueSparqlWherePatternsFunction.d.ts} +1 -1
  317. package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunction.js +9 -0
  318. package/dist/generators/ts/_snippets/snippets_BooleanSchema.js +1 -0
  319. package/dist/generators/ts/_snippets/snippets_DateSchema.js +1 -0
  320. package/dist/generators/ts/_snippets/snippets_FilterFunction.d.ts +3 -0
  321. package/dist/generators/ts/_snippets/snippets_FilterFunction.js +3 -0
  322. package/dist/generators/ts/_snippets/snippets_FromJsonObjectFunction.d.ts +3 -0
  323. package/dist/generators/ts/_snippets/snippets_FromJsonObjectFunction.js +21 -0
  324. package/dist/generators/ts/_snippets/snippets_FromJsonValueFunction.d.ts +3 -0
  325. package/dist/generators/ts/_snippets/snippets_FromJsonValueFunction.js +21 -0
  326. package/dist/generators/ts/_snippets/snippets_HashFunction.js +1 -1
  327. package/dist/generators/ts/_snippets/snippets_Hasher.js +1 -1
  328. package/dist/generators/ts/_snippets/snippets_IdentifierJsonObject.d.ts +3 -0
  329. package/dist/generators/ts/_snippets/snippets_IdentifierJsonObject.js +12 -0
  330. package/dist/generators/ts/_snippets/snippets_LangStringJsonObject.d.ts +3 -0
  331. package/dist/generators/ts/_snippets/snippets_LangStringJsonObject.js +14 -0
  332. package/dist/generators/ts/_snippets/snippets_Lazy.js +8 -1
  333. package/dist/generators/ts/_snippets/snippets_LazyOption.js +17 -1
  334. package/dist/generators/ts/_snippets/snippets_LazySet.js +8 -1
  335. package/dist/generators/ts/_snippets/snippets_LiteralJsonObject.d.ts +3 -0
  336. package/dist/generators/ts/_snippets/snippets_LiteralJsonObject.js +16 -0
  337. package/dist/generators/ts/_snippets/snippets_NumericSchema.js +1 -0
  338. package/dist/generators/ts/_snippets/snippets_ObjectTypeGuardFunction.d.ts +3 -0
  339. package/dist/generators/ts/_snippets/snippets_ObjectTypeGuardFunction.js +4 -0
  340. package/dist/generators/ts/_snippets/snippets_Primitive.d.ts +3 -0
  341. package/dist/generators/ts/_snippets/snippets_Primitive.js +4 -0
  342. package/dist/generators/ts/_snippets/snippets_ProblemDetailsJson.d.ts +3 -0
  343. package/dist/generators/ts/_snippets/snippets_ProblemDetailsJson.js +41 -0
  344. package/dist/generators/ts/_snippets/snippets_PropertyPath.js +11 -6
  345. package/dist/generators/ts/_snippets/snippets_SparqlConstructQueryFunction.d.ts +3 -0
  346. package/dist/generators/ts/_snippets/snippets_SparqlConstructQueryFunction.js +12 -0
  347. package/dist/generators/ts/_snippets/snippets_SparqlConstructQueryStringFunction.d.ts +3 -0
  348. package/dist/generators/ts/_snippets/snippets_SparqlConstructQueryStringFunction.js +13 -0
  349. package/dist/generators/ts/_snippets/snippets_StringSchema.js +1 -0
  350. package/dist/generators/ts/_snippets/snippets_TermJsonObject.d.ts +3 -0
  351. package/dist/generators/ts/_snippets/snippets_TermJsonObject.js +8 -0
  352. package/dist/generators/ts/_snippets/snippets_ToJsonObjectFunction.d.ts +3 -0
  353. package/dist/generators/ts/_snippets/snippets_ToJsonObjectFunction.js +3 -0
  354. package/dist/generators/ts/_snippets/snippets_ToJsonValueFunction.d.ts +3 -0
  355. package/dist/generators/ts/_snippets/snippets_ToJsonValueFunction.js +3 -0
  356. package/dist/generators/ts/_snippets/snippets_ToLoggableFunction.d.ts +3 -0
  357. package/dist/generators/ts/_snippets/snippets_ToLoggableFunction.js +3 -0
  358. package/dist/generators/ts/_snippets/snippets_ToRdfResourceFunction.js +1 -1
  359. package/dist/generators/ts/_snippets/snippets_ToStringFunction.d.ts +3 -0
  360. package/dist/generators/ts/_snippets/snippets_ToStringFunction.js +3 -0
  361. package/dist/generators/ts/_snippets/snippets_ToStringRecordFunction.d.ts +3 -0
  362. package/dist/generators/ts/_snippets/snippets_ToStringRecordFunction.js +3 -0
  363. package/dist/generators/ts/_snippets/snippets_TypedLiteralJsonObject.d.ts +3 -0
  364. package/dist/generators/ts/_snippets/snippets_TypedLiteralJsonObject.js +14 -0
  365. package/dist/generators/ts/_snippets/snippets__ToRdfResourceFunction.js +1 -1
  366. package/dist/generators/ts/_snippets/snippets_arrayFromJsonArray.d.ts +3 -0
  367. package/dist/generators/ts/_snippets/snippets_arrayFromJsonArray.js +13 -0
  368. package/dist/generators/ts/_snippets/snippets_arrayToJsonArray.d.ts +3 -0
  369. package/dist/generators/ts/_snippets/snippets_arrayToJsonArray.js +6 -0
  370. package/dist/generators/ts/_snippets/snippets_bigDecimalFromJsonObject.d.ts +3 -0
  371. package/dist/generators/ts/_snippets/snippets_bigDecimalFromJsonObject.js +5 -0
  372. package/dist/generators/ts/_snippets/snippets_bigDecimalFromJsonString.d.ts +3 -0
  373. package/dist/generators/ts/_snippets/snippets_bigDecimalFromJsonString.js +5 -0
  374. package/dist/generators/ts/_snippets/snippets_bigDecimalFromRdfResourceValues.js +3 -3
  375. package/dist/generators/ts/_snippets/snippets_bigDecimalLiteral.js +3 -2
  376. package/dist/generators/ts/_snippets/snippets_bigDecimalToJsonObject.d.ts +3 -0
  377. package/dist/generators/ts/_snippets/snippets_bigDecimalToJsonObject.js +6 -0
  378. package/dist/generators/ts/_snippets/snippets_bigDecimalToJsonString.d.ts +3 -0
  379. package/dist/generators/ts/_snippets/snippets_bigDecimalToJsonString.js +5 -0
  380. package/dist/generators/ts/_snippets/snippets_bigIntFromJsonObject.d.ts +3 -0
  381. package/dist/generators/ts/_snippets/snippets_bigIntFromJsonObject.js +9 -0
  382. package/dist/generators/ts/_snippets/snippets_bigIntFromJsonString.d.ts +3 -0
  383. package/dist/generators/ts/_snippets/snippets_bigIntFromJsonString.js +8 -0
  384. package/dist/generators/ts/_snippets/snippets_bigIntFromRdfResourceValues.js +2 -2
  385. package/dist/generators/ts/_snippets/snippets_bigIntToJsonObject.d.ts +3 -0
  386. package/dist/generators/ts/_snippets/snippets_bigIntToJsonObject.js +6 -0
  387. package/dist/generators/ts/_snippets/snippets_bigIntToJsonString.d.ts +3 -0
  388. package/dist/generators/ts/_snippets/snippets_bigIntToJsonString.js +5 -0
  389. package/dist/generators/ts/_snippets/snippets_blankNodeFromJsonObject.d.ts +3 -0
  390. package/dist/generators/ts/_snippets/snippets_blankNodeFromJsonObject.js +5 -0
  391. package/dist/generators/ts/_snippets/snippets_blankNodeFromJsonString.d.ts +3 -0
  392. package/dist/generators/ts/_snippets/snippets_blankNodeFromJsonString.js +5 -0
  393. package/dist/generators/ts/_snippets/snippets_blankNodeFromRdfResourceValues.js +2 -3
  394. package/dist/generators/ts/_snippets/snippets_blankNodeToJsonObject.d.ts +3 -0
  395. package/dist/generators/ts/_snippets/snippets_blankNodeToJsonObject.js +5 -0
  396. package/dist/generators/ts/_snippets/snippets_blankNodeToJsonString.d.ts +3 -0
  397. package/dist/generators/ts/_snippets/snippets_blankNodeToJsonString.js +5 -0
  398. package/dist/generators/ts/_snippets/snippets_booleanFromJsonBoolean.d.ts +3 -0
  399. package/dist/generators/ts/_snippets/snippets_booleanFromJsonBoolean.js +6 -0
  400. package/dist/generators/ts/_snippets/snippets_booleanFromJsonObject.d.ts +3 -0
  401. package/dist/generators/ts/_snippets/snippets_booleanFromJsonObject.js +9 -0
  402. package/dist/generators/ts/_snippets/snippets_constrainPrimitive.d.ts +3 -0
  403. package/dist/generators/ts/_snippets/snippets_constrainPrimitive.js +12 -0
  404. package/dist/generators/ts/_snippets/snippets_convertToLazy.js +2 -13
  405. package/dist/generators/ts/_snippets/snippets_convertToLazyOption.js +2 -13
  406. package/dist/generators/ts/_snippets/snippets_convertToLazySet.js +2 -15
  407. package/dist/generators/ts/_snippets/snippets_dateFromJsonObject.d.ts +3 -0
  408. package/dist/generators/ts/_snippets/snippets_dateFromJsonObject.js +5 -0
  409. package/dist/generators/ts/_snippets/snippets_dateFromJsonString.d.ts +3 -0
  410. package/dist/generators/ts/_snippets/snippets_dateFromJsonString.js +5 -0
  411. package/dist/generators/ts/_snippets/snippets_dateFromRdfResourceValues.js +3 -4
  412. package/dist/generators/ts/_snippets/snippets_dateSparqlWherePatterns.js +7 -6
  413. package/dist/generators/ts/_snippets/snippets_dateTimeFromJsonObject.d.ts +3 -0
  414. package/dist/generators/ts/_snippets/snippets_dateTimeFromJsonObject.js +5 -0
  415. package/dist/generators/ts/_snippets/snippets_dateTimeFromRdfResourceValues.js +3 -4
  416. package/dist/generators/ts/_snippets/snippets_dateTimeToJsonString.d.ts +3 -0
  417. package/dist/generators/ts/_snippets/snippets_dateTimeToJsonString.js +5 -0
  418. package/dist/generators/ts/_snippets/snippets_dateToJsonObject.d.ts +3 -0
  419. package/dist/generators/ts/_snippets/snippets_dateToJsonObject.js +6 -0
  420. package/dist/generators/ts/_snippets/snippets_dateToJsonString.d.ts +3 -0
  421. package/dist/generators/ts/_snippets/snippets_dateToJsonString.js +5 -0
  422. package/dist/generators/ts/_snippets/snippets_defaultValueFromJsonObject.d.ts +3 -0
  423. package/dist/generators/ts/_snippets/snippets_defaultValueFromJsonObject.js +9 -0
  424. package/dist/generators/ts/_snippets/snippets_defaultValueFromJsonValue.d.ts +3 -0
  425. package/dist/generators/ts/_snippets/snippets_defaultValueFromJsonValue.js +9 -0
  426. package/dist/generators/ts/_snippets/snippets_errorToProblemDetailsJson.d.ts +3 -0
  427. package/dist/generators/ts/_snippets/snippets_errorToProblemDetailsJson.js +27 -0
  428. package/dist/generators/ts/_snippets/snippets_filterBigDecimal.js +1 -1
  429. package/dist/generators/ts/_snippets/snippets_filterBlankNode.js +1 -3
  430. package/dist/generators/ts/_snippets/snippets_filterBoolean.js +1 -1
  431. package/dist/generators/ts/_snippets/snippets_filterDate.js +1 -1
  432. package/dist/generators/ts/_snippets/snippets_filterIdentifier.js +1 -1
  433. package/dist/generators/ts/_snippets/snippets_filterIri.js +1 -1
  434. package/dist/generators/ts/_snippets/snippets_filterLiteral.js +1 -3
  435. package/dist/generators/ts/_snippets/snippets_filterString.js +1 -1
  436. package/dist/generators/ts/_snippets/snippets_filterTerm.js +17 -17
  437. package/dist/generators/ts/_snippets/snippets_floatFromJsonNumber.d.ts +3 -0
  438. package/dist/generators/ts/_snippets/snippets_floatFromJsonNumber.js +6 -0
  439. package/dist/generators/ts/_snippets/snippets_floatFromJsonObject.d.ts +3 -0
  440. package/dist/generators/ts/_snippets/snippets_floatFromJsonObject.js +9 -0
  441. package/dist/generators/ts/_snippets/snippets_hashArray.js +1 -2
  442. package/dist/generators/ts/_snippets/snippets_hashBigDecimal.js +1 -2
  443. package/dist/generators/ts/_snippets/snippets_hashBoolean.js +1 -2
  444. package/dist/generators/ts/_snippets/snippets_hashDate.js +1 -2
  445. package/dist/generators/ts/_snippets/snippets_hashDateTime.js +1 -2
  446. package/dist/generators/ts/_snippets/snippets_hashMaybe.js +1 -2
  447. package/dist/generators/ts/_snippets/snippets_hashNumeric.js +1 -2
  448. package/dist/generators/ts/_snippets/snippets_hashString.js +1 -2
  449. package/dist/generators/ts/_snippets/snippets_hashTerm.js +1 -2
  450. package/dist/generators/ts/_snippets/snippets_identifierFromJsonObject.d.ts +3 -0
  451. package/dist/generators/ts/_snippets/snippets_identifierFromJsonObject.js +5 -0
  452. package/dist/generators/ts/_snippets/snippets_identifierFromJsonString.d.ts +3 -0
  453. package/dist/generators/ts/_snippets/snippets_identifierFromJsonString.js +5 -0
  454. package/dist/generators/ts/_snippets/snippets_identifierFromRdfResourceValues.js +2 -3
  455. package/dist/generators/ts/_snippets/snippets_identifierToJsonObject.d.ts +3 -0
  456. package/dist/generators/ts/_snippets/snippets_identifierToJsonObject.js +5 -0
  457. package/dist/generators/ts/_snippets/snippets_identifierToJsonString.d.ts +3 -0
  458. package/dist/generators/ts/_snippets/snippets_identifierToJsonString.js +5 -0
  459. package/dist/generators/ts/_snippets/snippets_intFromJsonNumber.d.ts +3 -0
  460. package/dist/generators/ts/_snippets/snippets_intFromJsonNumber.js +6 -0
  461. package/dist/generators/ts/_snippets/snippets_intFromJsonObject.d.ts +3 -0
  462. package/dist/generators/ts/_snippets/snippets_intFromJsonObject.js +9 -0
  463. package/dist/generators/ts/_snippets/snippets_iriFromJsonObject.d.ts +3 -0
  464. package/dist/generators/ts/_snippets/snippets_iriFromJsonObject.js +6 -0
  465. package/dist/generators/ts/_snippets/snippets_iriFromJsonString.d.ts +3 -0
  466. package/dist/generators/ts/_snippets/snippets_iriFromJsonString.js +6 -0
  467. package/dist/generators/ts/_snippets/snippets_iriToJsonObject.d.ts +3 -0
  468. package/dist/generators/ts/_snippets/snippets_iriToJsonObject.js +6 -0
  469. package/dist/generators/ts/_snippets/snippets_iriToJsonString.d.ts +3 -0
  470. package/dist/generators/ts/_snippets/snippets_iriToJsonString.js +6 -0
  471. package/dist/generators/ts/_snippets/snippets_langStringFromJsonObject.d.ts +3 -0
  472. package/dist/generators/ts/_snippets/snippets_langStringFromJsonObject.js +5 -0
  473. package/dist/generators/ts/_snippets/snippets_langStringFromRdfResourceValues.js +2 -3
  474. package/dist/generators/ts/_snippets/snippets_langStringToJsonObject.d.ts +3 -0
  475. package/dist/generators/ts/_snippets/snippets_langStringToJsonObject.js +5 -0
  476. package/dist/generators/ts/_snippets/snippets_listFromJsonObject.d.ts +3 -0
  477. package/dist/generators/ts/_snippets/snippets_listFromJsonObject.js +10 -0
  478. package/dist/generators/ts/_snippets/snippets_listSparqlConstructTriples.js +6 -5
  479. package/dist/generators/ts/_snippets/snippets_listToJsonObject.d.ts +3 -0
  480. package/dist/generators/ts/_snippets/snippets_listToJsonObject.js +6 -0
  481. package/dist/generators/ts/_snippets/snippets_literalFromJsonObject.d.ts +3 -0
  482. package/dist/generators/ts/_snippets/snippets_literalFromJsonObject.js +16 -0
  483. package/dist/generators/ts/_snippets/snippets_literalFromRdfResourceValues.js +2 -3
  484. package/dist/generators/ts/_snippets/snippets_literalToJsonObject.d.ts +3 -0
  485. package/dist/generators/ts/_snippets/snippets_literalToJsonObject.js +15 -0
  486. package/dist/generators/ts/_snippets/snippets_maybeFromJsonObject.d.ts +3 -0
  487. package/dist/generators/ts/_snippets/snippets_maybeFromJsonObject.js +12 -0
  488. package/dist/generators/ts/_snippets/snippets_maybeFromJsonValue.d.ts +3 -0
  489. package/dist/generators/ts/_snippets/snippets_maybeFromJsonValue.js +12 -0
  490. package/dist/generators/ts/_snippets/snippets_maybeToJsonObject.d.ts +3 -0
  491. package/dist/generators/ts/_snippets/snippets_maybeToJsonObject.js +6 -0
  492. package/dist/generators/ts/_snippets/snippets_maybeToJsonValue.d.ts +3 -0
  493. package/dist/generators/ts/_snippets/snippets_maybeToJsonValue.js +6 -0
  494. package/dist/generators/ts/_snippets/snippets_missingResolver.d.ts +3 -0
  495. package/dist/generators/ts/_snippets/snippets_missingResolver.js +3 -0
  496. package/dist/generators/ts/_snippets/snippets_primitiveToJsonObject.d.ts +3 -0
  497. package/dist/generators/ts/_snippets/snippets_primitiveToJsonObject.js +6 -0
  498. package/dist/generators/ts/_snippets/snippets_primitiveToJsonValue.d.ts +3 -0
  499. package/dist/generators/ts/_snippets/snippets_primitiveToJsonValue.js +6 -0
  500. package/dist/generators/ts/_snippets/snippets_sparqlInstancesOfPattern.js +4 -3
  501. package/dist/generators/ts/_snippets/snippets_stringFromJsonObject.d.ts +3 -0
  502. package/dist/generators/ts/_snippets/snippets_stringFromJsonObject.js +9 -0
  503. package/dist/generators/ts/_snippets/snippets_stringFromJsonString.d.ts +3 -0
  504. package/dist/generators/ts/_snippets/snippets_stringFromJsonString.js +6 -0
  505. package/dist/generators/ts/_snippets/snippets_termFromJsonObject.d.ts +3 -0
  506. package/dist/generators/ts/_snippets/snippets_termFromJsonObject.js +31 -0
  507. package/dist/generators/ts/_snippets/snippets_termToJsonObject.d.ts +3 -0
  508. package/dist/generators/ts/_snippets/snippets_termToJsonObject.js +14 -0
  509. package/dist/generators/ts/_snippets/snippets_typedLiteralToJsonObject.d.ts +3 -0
  510. package/dist/generators/ts/_snippets/snippets_typedLiteralToJsonObject.js +5 -0
  511. package/dist/generators/ts/_snippets/snippets_wrap_ToRdfResourceFunction.js +23 -3
  512. package/dist/generators/ts/_snippets/snippets_zValidator.d.ts +3 -0
  513. package/dist/generators/ts/_snippets/snippets_zValidator.js +16 -0
  514. package/dist/generators/ts/rdfjsTermExpression.d.ts +1 -1
  515. package/dist/generators/ts/rdfjsTermExpression.js +5 -54
  516. package/dist/input/ShapesGraph.d.ts +7 -3
  517. package/dist/input/ShapesGraph.js +74 -3
  518. package/dist/input/index.d.ts +3 -1
  519. package/dist/input/index.js +1 -1
  520. package/dist/input/input.shaclmate.d.ts +1494 -240
  521. package/dist/input/input.shaclmate.js +1159 -387
  522. package/dist/input/input.shaclmate.ttl +245 -0
  523. package/package.json +331 -98
  524. package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_fromJsonFunctionExpression.d.ts +0 -5
  525. package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_fromJsonFunctionExpression.js +0 -14
  526. package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_jsonSchemaExpression.d.ts +0 -5
  527. package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_jsonSchemaExpression.js +0 -32
  528. package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_jsonTypeLiteral.d.ts +0 -5
  529. package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_jsonTypeLiteral.js +0 -26
  530. package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toJsonFunctionExpression.d.ts +0 -5
  531. package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toJsonFunctionExpression.js +0 -10
  532. package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toRdfResourceValuesFunctionExpression.js +0 -30
  533. package/dist/generators/ts/_AbstractType/AbstractType_DiscriminantProperty.d.ts +0 -9
  534. package/dist/generators/ts/_AbstractType/AbstractType_DiscriminantProperty.js +0 -2
  535. package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_focusSparqlConstructTriplesFunctionDeclaration.js +0 -13
  536. package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_focusSparqlWherePatternsFunctionDeclaration.js +0 -32
  537. package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_fromRdfResourceFunctionDeclaration.js +0 -17
  538. package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_graphqlTypeVariableStatement.js +0 -16
  539. package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_identifierTypeDeclarations.d.ts +0 -4
  540. package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_identifierTypeDeclarations.js +0 -14
  541. package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_schemaVariableStatement.d.ts +0 -4
  542. package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_toRdfResourceFunctionDeclaration.js +0 -15
  543. package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_typeGuardFunctionDeclaration.js +0 -16
  544. package/dist/generators/ts/_ObjectType/ObjectType_createFunctionExpression.d.ts +0 -4
  545. package/dist/generators/ts/_ObjectType/ObjectType_createFunctionExpression.js +0 -29
  546. package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionExpression.d.ts +0 -4
  547. package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionExpression.js +0 -12
  548. package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunctionExpression.d.ts +0 -4
  549. package/dist/generators/ts/_ObjectType/ObjectType_jsonParseFunctionDeclaration.d.ts +0 -4
  550. package/dist/generators/ts/_ObjectType/ObjectType_jsonParseFunctionDeclaration.js +0 -10
  551. package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaExpression.d.ts +0 -4
  552. package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaExpression.js +0 -22
  553. package/dist/generators/ts/_ObjectType/ObjectType_jsonTypeExpression.d.ts +0 -4
  554. package/dist/generators/ts/_ObjectType/ObjectType_jsonTypeExpression.js +0 -5
  555. package/dist/generators/ts/_ObjectType/ObjectType_jsonUiSchemaFunctionExpression.d.ts +0 -4
  556. package/dist/generators/ts/_ObjectType/ObjectType_jsonUiSchemaFunctionExpression.js +0 -17
  557. package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunctionDeclaration.d.ts +0 -10
  558. package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunctionDeclaration.js +0 -35
  559. package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryStringFunctionDeclaration.js +0 -8
  560. package/dist/generators/ts/_ObjectType/ObjectType_toJsonFunctionExpression.d.ts +0 -4
  561. package/dist/generators/ts/_ObjectType/ObjectType_toJsonFunctionExpression.js +0 -12
  562. package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunctionExpression.d.ts +0 -4
  563. package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunctionExpression.js +0 -26
  564. package/dist/generators/ts/_ObjectType/ObjectType_toStringFunctionExpression.js +0 -7
  565. package/dist/generators/ts/_ObjectType/ObjectType_toStringRecordFunctionExpression.d.ts +0 -4
  566. package/dist/generators/ts/_ObjectType/ObjectType_toStringRecordFunctionExpression.js +0 -5
  567. package/dist/generators/ts/_ObjectType/ObjectType_typeGuardFunctionExpression.d.ts +0 -5
  568. package/dist/generators/ts/_ObjectType/ObjectType_typeGuardFunctionExpression.js +0 -14
  569. package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlConstructTriplesFunctionExpression.js +0 -8
  570. package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunctionExpression.js +0 -10
  571. package/dist/generators/ts/_snippets/snippets_RdfVocabularies.d.ts +0 -3
  572. package/dist/generators/ts/_snippets/snippets_RdfVocabularies.js +0 -42
@@ -1,6 +1,5 @@
1
1
  import type { BlankNode, Literal, NamedNode, Quad_Graph, Variable } from "@rdfjs/types";
2
2
  import { PropertyPath as RdfxResourcePropertyPath, Resource } from "@rdfx/resource";
3
- import { NTriplesTerm } from "@rdfx/string";
4
3
  import { Either, Maybe } from "purify-ts";
5
4
  type $_FromRdfResourceFunction<T> = (resource: Resource, options: {
6
5
  context: undefined | unknown;
@@ -27,6 +26,7 @@ export type $FromRdfResourceValuesFunction<ValueT, ValueSchemaT> = (resourceValu
27
26
  * NamespaceBuilder type excerpted from @rdfjs/namespace (MIT license) in lieu of a type import.
28
27
  */
29
28
  export type $NamespaceBuilder<TermNames extends string = any> = Record<TermNames, NamedNode> & ((property?: TemplateStringsArray | TermNames) => NamedNode);
29
+ export type $ObjectTypeGuardFunction<ObjectT extends $Object> = (object: $Object) => object is ObjectT;
30
30
  export type $PropertyPath = RdfxResourcePropertyPath;
31
31
  export declare namespace $PropertyPath {
32
32
  const fromRdfResource: $FromRdfResourceFunction<$PropertyPath>;
@@ -40,15 +40,39 @@ export interface $ShaclPropertySchema<TypeSchemaT> {
40
40
  readonly path: $PropertyPath;
41
41
  readonly type: TypeSchemaT;
42
42
  }
43
+ export type $ToStringFunction<T> = (value: T) => string;
44
+ export type $ToStringRecordFunction<T> = (value: T) => Record<string, string>;
43
45
  export type NodeShape = {
44
46
  readonly $identifier: () => NodeShape.Identifier;
45
- readonly $type: "NodeShape";
46
47
  readonly and: Maybe<readonly (BlankNode | NamedNode)[]>;
47
48
  readonly classes: readonly NamedNode[];
48
49
  readonly closed: Maybe<boolean>;
49
50
  readonly comment: Maybe<string>;
50
51
  readonly datatype: Maybe<NamedNode>;
51
52
  readonly deactivated: Maybe<boolean>;
53
+ /**
54
+ * The type discriminant value to use when a type in a discriminated union needs to be wrapped in a discriminant envelope.
55
+ *
56
+ * Example:
57
+ *
58
+ * sh:xone ([
59
+ * shaclmate:discriminantValue "date" ;
60
+ * sh:datatype xsd:date
61
+ * ]
62
+ * [
63
+ * shaclmate:discriminantValue "dateTime" ;
64
+ * sh:datatype xsd:dateTime
65
+ * ]
66
+ * )
67
+ *
68
+ * Because xsd:date and xsd:dateTime are both Date in JavaScript, the generated discriminated union needs to be wrapped in an envelope like:
69
+ *
70
+ * { $type: 'type1'; value: Date } | { $type: 'type2'; value: Date }
71
+ *
72
+ * in order to discriminate values at runtime. With shaclmate:discriminantValue from the example above, the generated type would be:
73
+ *
74
+ * { $type: 'date'; value: Date } | { $type: 'dateTime'; value: Date }
75
+ */
52
76
  readonly discriminantValue: Maybe<string>;
53
77
  readonly extern: Maybe<boolean>;
54
78
  readonly flags: Maybe<string>;
@@ -70,6 +94,9 @@ export type NodeShape = {
70
94
  readonly minExclusive: Maybe<Literal>;
71
95
  readonly minInclusive: Maybe<Literal>;
72
96
  readonly minLength: Maybe<bigint>;
97
+ /**
98
+ * Whether the code generated from the shape should be mutable e.g., a mutable property, a mutable array, etc.
99
+ */
73
100
  readonly mutable: Maybe<boolean>;
74
101
  readonly node: Maybe<BlankNode | NamedNode>;
75
102
  readonly nodeKind: Maybe<NamedNode<"http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal">>;
@@ -79,6 +106,9 @@ export type NodeShape = {
79
106
  readonly properties: readonly (BlankNode | NamedNode)[];
80
107
  readonly rdfType: Maybe<NamedNode>;
81
108
  readonly severity: Maybe<Severity>;
109
+ /**
110
+ * Name to use in generated code. Used on node shapes (which don't permit sh:name) and to override sh:name in property shapes.
111
+ */
82
112
  readonly shaclmateName: Maybe<string>;
83
113
  readonly subClassOf: readonly NamedNode[];
84
114
  readonly targetClasses: readonly NamedNode[];
@@ -91,56 +121,10 @@ export type NodeShape = {
91
121
  readonly xone: Maybe<readonly (BlankNode | NamedNode)[]>;
92
122
  };
93
123
  export declare namespace NodeShape {
94
- const _fromRdfResource: $_FromRdfResourceFunction<NodeShape>;
95
- const $toString: (_nodeShape: NodeShape) => string;
96
- const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: {
97
- readonly $defaultNamespace?: $DefaultNamespaceT;
98
- readonly $identifier?: (() => NodeShape.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
99
- readonly and?: readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
100
- readonly classes?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
101
- readonly closed?: boolean | Maybe<boolean>;
102
- readonly comment?: string | Maybe<string>;
103
- readonly datatype?: (keyof $DefaultNamespaceT & string) | NamedNode | Maybe<NamedNode>;
104
- readonly deactivated?: boolean | Maybe<boolean>;
105
- readonly discriminantValue?: string | Maybe<string>;
106
- readonly extern?: boolean | Maybe<boolean>;
107
- readonly flags?: string | Maybe<string>;
108
- readonly fromRdfType?: (keyof $DefaultNamespaceT & string) | NamedNode | Maybe<NamedNode>;
109
- readonly hasValues?: (NamedNode | Literal) | readonly (NamedNode | Literal)[];
110
- readonly ignore?: boolean;
111
- readonly ignoredProperties?: readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[] | Maybe<readonly NamedNode[]>;
112
- readonly in_?: readonly (NamedNode | Literal)[] | Maybe<readonly (NamedNode | Literal)[]>;
113
- readonly isDefinedBy?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<BlankNode | NamedNode>;
114
- readonly label?: string | Maybe<string>;
115
- readonly languageIn?: readonly string[] | Maybe<readonly string[]>;
116
- readonly maxExclusive?: bigint | boolean | number | string | Date | Literal | Maybe<Literal>;
117
- readonly maxInclusive?: bigint | boolean | number | string | Date | Literal | Maybe<Literal>;
118
- readonly maxLength?: bigint | number | string | Maybe<bigint>;
119
- readonly message?: string | Maybe<string>;
120
- readonly minExclusive?: bigint | boolean | number | string | Date | Literal | Maybe<Literal>;
121
- readonly minInclusive?: bigint | boolean | number | string | Date | Literal | Maybe<Literal>;
122
- readonly minLength?: bigint | number | string | Maybe<bigint>;
123
- readonly mutable?: boolean | Maybe<boolean>;
124
- readonly node?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<BlankNode | NamedNode>;
125
- readonly nodeKind?: ("http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal") | NamedNode<"http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal"> | Maybe<NamedNode<"http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal">>;
126
- readonly not?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[];
127
- readonly or?: readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
128
- readonly pattern?: string | Maybe<string>;
129
- readonly properties?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[];
130
- readonly rdfType?: (keyof $DefaultNamespaceT & string) | NamedNode | Maybe<NamedNode>;
131
- readonly severity?: Severity["value"] | Severity | Maybe<Severity>;
132
- readonly shaclmateName?: string | Maybe<string>;
133
- readonly subClassOf?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
134
- readonly targetClasses?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
135
- readonly targetNodes?: (NamedNode | Literal) | readonly (NamedNode | Literal)[];
136
- readonly targetObjectsOf?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
137
- readonly targetSubjectsOf?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
138
- readonly toRdfTypes?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
139
- readonly tsImports?: string | readonly string[];
140
- readonly types?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
141
- readonly xone?: readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
142
- }) => Either<Error, NodeShape>;
143
- function createUnsafe<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: {
124
+ const _fromRdfResource: $_FromRdfResourceFunction<NodeShape.Discriminated>;
125
+ const $toString: $ToStringFunction<Pick<NodeShape, "$identifier" | "label" | "shaclmateName">>;
126
+ const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: NodeShape.CreateParameters<$DefaultNamespaceT>) => Either<Error, NodeShape.Discriminated>;
127
+ type CreateParameters<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder> = {
144
128
  readonly $defaultNamespace?: $DefaultNamespaceT;
145
129
  readonly $identifier?: (() => NodeShape.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
146
130
  readonly and?: readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
@@ -186,15 +170,18 @@ export declare namespace NodeShape {
186
170
  readonly tsImports?: string | readonly string[];
187
171
  readonly types?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
188
172
  readonly xone?: readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
189
- }): NodeShape;
190
- const fromRdfResource: $FromRdfResourceFunction<NodeShape>;
191
- const fromRdfResourceValues: $FromRdfResourceValuesFunction<NodeShape, NodeShape.Schema>;
173
+ };
174
+ const createUnsafe: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: NodeShape.CreateParameters<$DefaultNamespaceT>) => NodeShape.Discriminated;
175
+ type Discriminated = NodeShape & {
176
+ readonly $type: "NodeShape";
177
+ };
178
+ const fromRdfResource: $FromRdfResourceFunction<NodeShape.Discriminated>;
179
+ const fromRdfResourceValues: $FromRdfResourceValuesFunction<NodeShape.Discriminated, NodeShape.Schema>;
192
180
  type Identifier = BlankNode | NamedNode;
193
181
  namespace Identifier {
194
182
  const parse: (value: string) => Either<Error, import("@rdfx/string/dist/Identifier.js").Identifier>;
195
- const stringify: typeof NTriplesTerm.stringify;
196
183
  }
197
- const isNodeShape: (object: $Object) => object is NodeShape;
184
+ const isNodeShape: $ObjectTypeGuardFunction<NodeShape.Discriminated>;
198
185
  const schema: {
199
186
  readonly properties: {
200
187
  readonly $identifier: {
@@ -208,10 +195,6 @@ export declare namespace NodeShape {
208
195
  readonly kind: "RdfType";
209
196
  readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#NodeShape">];
210
197
  };
211
- readonly $type: {
212
- readonly kind: "Discriminant";
213
- readonly value: "NodeShape";
214
- };
215
198
  readonly and: {
216
199
  readonly kind: "Shacl";
217
200
  readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#and">;
@@ -242,6 +225,7 @@ export declare namespace NodeShape {
242
225
  readonly kind: "Option";
243
226
  readonly itemType: {
244
227
  readonly kind: "Boolean";
228
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
245
229
  };
246
230
  };
247
231
  };
@@ -252,6 +236,7 @@ export declare namespace NodeShape {
252
236
  readonly kind: "Option";
253
237
  readonly itemType: {
254
238
  readonly kind: "String";
239
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
255
240
  };
256
241
  };
257
242
  };
@@ -272,6 +257,7 @@ export declare namespace NodeShape {
272
257
  readonly kind: "Option";
273
258
  readonly itemType: {
274
259
  readonly kind: "Boolean";
260
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
275
261
  };
276
262
  };
277
263
  };
@@ -282,6 +268,7 @@ export declare namespace NodeShape {
282
268
  readonly kind: "Option";
283
269
  readonly itemType: {
284
270
  readonly kind: "String";
271
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
285
272
  };
286
273
  };
287
274
  };
@@ -292,6 +279,7 @@ export declare namespace NodeShape {
292
279
  readonly kind: "Option";
293
280
  readonly itemType: {
294
281
  readonly kind: "Boolean";
282
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
295
283
  };
296
284
  };
297
285
  };
@@ -302,6 +290,7 @@ export declare namespace NodeShape {
302
290
  readonly kind: "Option";
303
291
  readonly itemType: {
304
292
  readonly kind: "String";
293
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
305
294
  };
306
295
  };
307
296
  };
@@ -333,6 +322,7 @@ export declare namespace NodeShape {
333
322
  readonly kind: "DefaultValue";
334
323
  readonly itemType: {
335
324
  readonly kind: "Boolean";
325
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
336
326
  };
337
327
  readonly defaultValue: import("@rdfx/data-factory/dist/Literal.js").Literal;
338
328
  };
@@ -381,6 +371,7 @@ export declare namespace NodeShape {
381
371
  readonly kind: "Option";
382
372
  readonly itemType: {
383
373
  readonly kind: "String";
374
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
384
375
  };
385
376
  };
386
377
  };
@@ -393,6 +384,7 @@ export declare namespace NodeShape {
393
384
  readonly kind: "List";
394
385
  readonly itemType: {
395
386
  readonly kind: "String";
387
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
396
388
  };
397
389
  };
398
390
  };
@@ -424,6 +416,7 @@ export declare namespace NodeShape {
424
416
  readonly kind: "Option";
425
417
  readonly itemType: {
426
418
  readonly kind: "BigInt";
419
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#integer">;
427
420
  };
428
421
  };
429
422
  };
@@ -434,6 +427,7 @@ export declare namespace NodeShape {
434
427
  readonly kind: "Option";
435
428
  readonly itemType: {
436
429
  readonly kind: "String";
430
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
437
431
  };
438
432
  };
439
433
  };
@@ -464,6 +458,7 @@ export declare namespace NodeShape {
464
458
  readonly kind: "Option";
465
459
  readonly itemType: {
466
460
  readonly kind: "BigInt";
461
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#integer">;
467
462
  };
468
463
  };
469
464
  };
@@ -474,6 +469,7 @@ export declare namespace NodeShape {
474
469
  readonly kind: "Option";
475
470
  readonly itemType: {
476
471
  readonly kind: "Boolean";
472
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
477
473
  };
478
474
  };
479
475
  };
@@ -528,6 +524,7 @@ export declare namespace NodeShape {
528
524
  readonly kind: "Option";
529
525
  readonly itemType: {
530
526
  readonly kind: "String";
527
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
531
528
  };
532
529
  };
533
530
  };
@@ -570,6 +567,7 @@ export declare namespace NodeShape {
570
567
  readonly kind: "Option";
571
568
  readonly itemType: {
572
569
  readonly kind: "String";
570
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
573
571
  };
574
572
  };
575
573
  };
@@ -641,6 +639,7 @@ export declare namespace NodeShape {
641
639
  readonly kind: "Set";
642
640
  readonly itemType: {
643
641
  readonly kind: "String";
642
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
644
643
  };
645
644
  };
646
645
  };
@@ -670,37 +669,128 @@ export declare namespace NodeShape {
670
669
  };
671
670
  };
672
671
  type Schema = typeof schema;
673
- const toStringRecord: (_nodeShape: NodeShape) => Record<string, string>;
672
+ const toStringRecord: $ToStringRecordFunction<Pick<NodeShape, "$identifier" | "label" | "shaclmateName">>;
674
673
  }
675
674
  export type Ontology = {
676
675
  readonly $identifier: () => Ontology.Identifier;
677
- readonly $type: "Ontology";
678
676
  readonly comment: Maybe<string>;
679
677
  readonly label: Maybe<string>;
680
678
  };
681
679
  export declare namespace Ontology {
682
- const _fromRdfResource: $_FromRdfResourceFunction<Ontology>;
683
- const $toString: (_ontology: Ontology) => string;
684
- const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: {
680
+ const _fromRdfResource: $_FromRdfResourceFunction<Ontology.Discriminated>;
681
+ const $toString: $ToStringFunction<Omit<Ontology, "comment">>;
682
+ const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: Ontology.CreateParameters<$DefaultNamespaceT>) => Either<Error, Ontology.Discriminated>;
683
+ type CreateParameters<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder> = {
685
684
  readonly $defaultNamespace?: $DefaultNamespaceT;
686
685
  readonly $identifier?: (() => Ontology.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
687
686
  readonly comment?: string | Maybe<string>;
688
687
  readonly label?: string | Maybe<string>;
689
- }) => Either<Error, Ontology>;
690
- function createUnsafe<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: {
688
+ };
689
+ const createUnsafe: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: Ontology.CreateParameters<$DefaultNamespaceT>) => Ontology.Discriminated;
690
+ type Discriminated = Ontology & {
691
+ readonly $type: "Ontology";
692
+ };
693
+ const fromRdfResource: $FromRdfResourceFunction<Ontology.Discriminated>;
694
+ const fromRdfResourceValues: $FromRdfResourceValuesFunction<Ontology.Discriminated, Ontology.Schema>;
695
+ type Identifier = BlankNode | NamedNode;
696
+ namespace Identifier {
697
+ const parse: (value: string) => Either<Error, import("@rdfx/string/dist/Identifier.js").Identifier>;
698
+ }
699
+ const isOntology: $ObjectTypeGuardFunction<Ontology.Discriminated>;
700
+ const schema: {
701
+ readonly properties: {
702
+ readonly $identifier: {
703
+ readonly kind: "Identifier";
704
+ readonly type: {
705
+ readonly kind: "Identifier";
706
+ };
707
+ };
708
+ readonly $rdfType: {
709
+ readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2002/07/owl#Ontology">;
710
+ readonly kind: "RdfType";
711
+ readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2002/07/owl#Ontology">];
712
+ };
713
+ readonly comment: {
714
+ readonly kind: "Shacl";
715
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#comment">;
716
+ readonly type: {
717
+ readonly kind: "Option";
718
+ readonly itemType: {
719
+ readonly kind: "String";
720
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
721
+ };
722
+ };
723
+ };
724
+ readonly label: {
725
+ readonly kind: "Shacl";
726
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
727
+ readonly type: {
728
+ readonly kind: "Option";
729
+ readonly itemType: {
730
+ readonly kind: "String";
731
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
732
+ };
733
+ };
734
+ };
735
+ };
736
+ };
737
+ type Schema = typeof schema;
738
+ const toStringRecord: $ToStringRecordFunction<Omit<Ontology, "comment">>;
739
+ }
740
+ /**
741
+ * Service operation
742
+ */
743
+ export type Operation = {
744
+ readonly $identifier: () => Operation.Identifier;
745
+ /**
746
+ * Transport bindings for the operation, loosely modeled after WSDL. If no bindings are specified the operation will be excluded from transport client and server generation.
747
+ */
748
+ readonly bindings: readonly OperationHttpBinding[];
749
+ readonly comment: Maybe<string>;
750
+ /**
751
+ * Error types associated with the operation
752
+ */
753
+ readonly error: readonly OperationError[];
754
+ readonly label: Maybe<string>;
755
+ /**
756
+ * Identifier-safe name of the operation, incorporated into generated code.
757
+ */
758
+ readonly name: Maybe<string>;
759
+ /**
760
+ * Optional parameter type. This must be a node shape with properties (a 'struct').
761
+ */
762
+ readonly parameter: Maybe<OperationParameter>;
763
+ /**
764
+ * Optional result type. The type is a property shape in order to incorporate cardinality.
765
+ */
766
+ readonly result: Maybe<OperationResult>;
767
+ };
768
+ export declare namespace Operation {
769
+ const _fromRdfResource: $_FromRdfResourceFunction<Operation.Discriminated>;
770
+ const $toString: $ToStringFunction<Pick<Operation, "$identifier" | "label" | "name">>;
771
+ const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: Operation.CreateParameters<$DefaultNamespaceT>) => Either<Error, Operation.Discriminated>;
772
+ type CreateParameters<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder> = {
691
773
  readonly $defaultNamespace?: $DefaultNamespaceT;
692
- readonly $identifier?: (() => Ontology.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
774
+ readonly $identifier?: (() => Operation.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
775
+ readonly bindings?: OperationHttpBinding | readonly OperationHttpBinding[];
693
776
  readonly comment?: string | Maybe<string>;
777
+ readonly error?: OperationError | readonly OperationError[];
694
778
  readonly label?: string | Maybe<string>;
695
- }): Ontology;
696
- const fromRdfResource: $FromRdfResourceFunction<Ontology>;
697
- const fromRdfResourceValues: $FromRdfResourceValuesFunction<Ontology, Ontology.Schema>;
779
+ readonly name?: string | Maybe<string>;
780
+ readonly parameter?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<OperationParameter>;
781
+ readonly result?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<OperationResult>;
782
+ };
783
+ const createUnsafe: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: Operation.CreateParameters<$DefaultNamespaceT>) => Operation.Discriminated;
784
+ type Discriminated = Operation & {
785
+ readonly $type: "Operation";
786
+ };
787
+ const fromRdfResource: $FromRdfResourceFunction<Operation.Discriminated>;
788
+ const fromRdfResourceValues: $FromRdfResourceValuesFunction<Operation.Discriminated, Operation.Schema>;
698
789
  type Identifier = BlankNode | NamedNode;
699
790
  namespace Identifier {
700
791
  const parse: (value: string) => Either<Error, import("@rdfx/string/dist/Identifier.js").Identifier>;
701
- const stringify: typeof NTriplesTerm.stringify;
702
792
  }
703
- const isOntology: (object: $Object) => object is Ontology;
793
+ const isOperation: $ObjectTypeGuardFunction<Operation.Discriminated>;
704
794
  const schema: {
705
795
  readonly properties: {
706
796
  readonly $identifier: {
@@ -710,13 +800,46 @@ export declare namespace Ontology {
710
800
  };
711
801
  };
712
802
  readonly $rdfType: {
713
- readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2002/07/owl#Ontology">;
803
+ readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#Operation">;
714
804
  readonly kind: "RdfType";
715
- readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2002/07/owl#Ontology">];
805
+ readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#Operation">];
716
806
  };
717
- readonly $type: {
718
- readonly kind: "Discriminant";
719
- readonly value: "Ontology";
807
+ readonly bindings: {
808
+ readonly kind: "Shacl";
809
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#binding">;
810
+ readonly type: {
811
+ kind: "Set";
812
+ readonly itemType: {
813
+ readonly properties: {
814
+ readonly $identifier: {
815
+ readonly kind: "Identifier";
816
+ readonly type: {
817
+ readonly kind: "Identifier";
818
+ };
819
+ };
820
+ readonly method: {
821
+ readonly kind: "Shacl";
822
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://schema.org/httpMethod">;
823
+ readonly type: {
824
+ kind: "Option";
825
+ readonly itemType: {
826
+ kind: "String";
827
+ in: readonly ["DELETE", "GET", "POST", "PUT"];
828
+ datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
829
+ };
830
+ };
831
+ };
832
+ readonly urlTemplate: {
833
+ readonly kind: "Shacl";
834
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://schema.org/urlTemplate">;
835
+ readonly type: {
836
+ readonly kind: "String";
837
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
838
+ };
839
+ };
840
+ };
841
+ };
842
+ };
720
843
  };
721
844
  readonly comment: {
722
845
  readonly kind: "Shacl";
@@ -725,53 +848,768 @@ export declare namespace Ontology {
725
848
  readonly kind: "Option";
726
849
  readonly itemType: {
727
850
  readonly kind: "String";
851
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
852
+ };
853
+ };
854
+ };
855
+ readonly error: {
856
+ readonly kind: "Shacl";
857
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#error">;
858
+ readonly type: {
859
+ kind: "Set";
860
+ readonly itemType: {
861
+ readonly properties: {
862
+ readonly $identifier: {
863
+ readonly kind: "Identifier";
864
+ readonly type: {
865
+ readonly kind: "Identifier";
866
+ };
867
+ };
868
+ readonly classes: {
869
+ readonly kind: "Shacl";
870
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#class">;
871
+ readonly type: {
872
+ readonly kind: "Set";
873
+ readonly itemType: {
874
+ readonly kind: "Iri";
875
+ };
876
+ };
877
+ };
878
+ readonly closed: {
879
+ readonly kind: "Shacl";
880
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#closed">;
881
+ readonly type: {
882
+ readonly kind: "Option";
883
+ readonly itemType: {
884
+ readonly kind: "Boolean";
885
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
886
+ };
887
+ };
888
+ };
889
+ readonly comment: {
890
+ readonly kind: "Shacl";
891
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#comment">;
892
+ readonly type: {
893
+ readonly kind: "Option";
894
+ readonly itemType: {
895
+ readonly kind: "String";
896
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
897
+ };
898
+ };
899
+ };
900
+ readonly deactivated: {
901
+ readonly kind: "Shacl";
902
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#deactivated">;
903
+ readonly type: {
904
+ readonly kind: "Option";
905
+ readonly itemType: {
906
+ readonly kind: "Boolean";
907
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
908
+ };
909
+ };
910
+ };
911
+ readonly extern: {
912
+ readonly kind: "Shacl";
913
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#extern">;
914
+ readonly type: {
915
+ readonly kind: "Option";
916
+ readonly itemType: {
917
+ readonly kind: "Boolean";
918
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
919
+ };
920
+ };
921
+ };
922
+ readonly fromRdfType: {
923
+ readonly kind: "Shacl";
924
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#fromRdfType">;
925
+ readonly type: {
926
+ readonly kind: "Option";
927
+ readonly itemType: {
928
+ readonly kind: "Iri";
929
+ };
930
+ };
931
+ };
932
+ readonly ignoredProperties: {
933
+ readonly kind: "Shacl";
934
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ignoredProperties">;
935
+ readonly type: {
936
+ readonly kind: "Option";
937
+ readonly itemType: {
938
+ readonly kind: "List";
939
+ readonly itemType: {
940
+ readonly kind: "Iri";
941
+ };
942
+ };
943
+ };
944
+ };
945
+ readonly isDefinedBy: {
946
+ readonly kind: "Shacl";
947
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#isDefinedBy">;
948
+ readonly type: {
949
+ readonly kind: "Option";
950
+ readonly itemType: {
951
+ readonly kind: "Identifier";
952
+ };
953
+ };
954
+ };
955
+ readonly label: {
956
+ readonly kind: "Shacl";
957
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
958
+ readonly type: {
959
+ readonly kind: "Option";
960
+ readonly itemType: {
961
+ readonly kind: "String";
962
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
963
+ };
964
+ };
965
+ };
966
+ readonly message: {
967
+ readonly kind: "Shacl";
968
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#message">;
969
+ readonly type: {
970
+ readonly kind: "Option";
971
+ readonly itemType: {
972
+ readonly kind: "String";
973
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
974
+ };
975
+ };
976
+ };
977
+ readonly nodeKind: {
978
+ readonly kind: "Shacl";
979
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#nodeKind">;
980
+ readonly type: {
981
+ readonly kind: "Option";
982
+ readonly itemType: {
983
+ readonly kind: "Iri";
984
+ readonly in: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#BlankNode">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrIRI">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrLiteral">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#IRI">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#IRIOrLiteral">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Literal">];
985
+ };
986
+ };
987
+ };
988
+ readonly properties: {
989
+ readonly kind: "Shacl";
990
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#property">;
991
+ readonly type: {
992
+ readonly kind: "Set";
993
+ readonly itemType: {
994
+ readonly kind: "Identifier";
995
+ };
996
+ readonly minCount: 1;
997
+ };
998
+ };
999
+ readonly rdfType: {
1000
+ readonly kind: "Shacl";
1001
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#rdfType">;
1002
+ readonly type: {
1003
+ readonly kind: "Option";
1004
+ readonly itemType: {
1005
+ readonly kind: "Iri";
1006
+ };
1007
+ };
1008
+ };
1009
+ readonly severity: {
1010
+ readonly kind: "Shacl";
1011
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#severity">;
1012
+ readonly type: {
1013
+ kind: "Option";
1014
+ readonly itemType: {
1015
+ kind: "Iri";
1016
+ in: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation">[];
1017
+ inValues: readonly ["http://www.w3.org/ns/shacl#Info", "http://www.w3.org/ns/shacl#Warning", "http://www.w3.org/ns/shacl#Violation"];
1018
+ };
1019
+ };
1020
+ };
1021
+ readonly shaclmateName: {
1022
+ readonly kind: "Shacl";
1023
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#name">;
1024
+ readonly type: {
1025
+ readonly kind: "Option";
1026
+ readonly itemType: {
1027
+ readonly kind: "String";
1028
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1029
+ };
1030
+ };
1031
+ };
1032
+ readonly subClassOf: {
1033
+ readonly kind: "Shacl";
1034
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#subClassOf">;
1035
+ readonly type: {
1036
+ readonly kind: "Set";
1037
+ readonly itemType: {
1038
+ readonly kind: "Iri";
1039
+ };
1040
+ };
1041
+ };
1042
+ readonly toRdfTypes: {
1043
+ readonly kind: "Shacl";
1044
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#toRdfType">;
1045
+ readonly type: {
1046
+ readonly kind: "Set";
1047
+ readonly itemType: {
1048
+ readonly kind: "Iri";
1049
+ };
1050
+ };
1051
+ };
1052
+ readonly tsImports: {
1053
+ readonly kind: "Shacl";
1054
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#tsImport">;
1055
+ readonly type: {
1056
+ readonly kind: "Set";
1057
+ readonly itemType: {
1058
+ readonly kind: "String";
1059
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1060
+ };
1061
+ };
1062
+ };
1063
+ readonly types: {
1064
+ readonly kind: "Shacl";
1065
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/1999/02/22-rdf-syntax-ns#type">;
1066
+ readonly type: {
1067
+ readonly kind: "Set";
1068
+ readonly itemType: {
1069
+ readonly kind: "Iri";
1070
+ };
1071
+ };
1072
+ };
1073
+ };
1074
+ };
1075
+ };
1076
+ };
1077
+ readonly label: {
1078
+ readonly kind: "Shacl";
1079
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
1080
+ readonly type: {
1081
+ readonly kind: "Option";
1082
+ readonly itemType: {
1083
+ readonly kind: "String";
1084
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1085
+ };
1086
+ };
1087
+ };
1088
+ readonly name: {
1089
+ readonly kind: "Shacl";
1090
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#name">;
1091
+ readonly type: {
1092
+ readonly kind: "Option";
1093
+ readonly itemType: {
1094
+ readonly kind: "String";
1095
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1096
+ };
1097
+ };
1098
+ };
1099
+ readonly parameter: {
1100
+ readonly kind: "Shacl";
1101
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#parameter">;
1102
+ readonly type: {
1103
+ kind: "Option";
1104
+ readonly itemType: {
1105
+ kind: "Identifier";
1106
+ };
1107
+ };
1108
+ };
1109
+ readonly result: {
1110
+ readonly kind: "Shacl";
1111
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#result">;
1112
+ readonly type: {
1113
+ kind: "Option";
1114
+ readonly itemType: {
1115
+ kind: "Identifier";
1116
+ };
1117
+ };
1118
+ };
1119
+ };
1120
+ };
1121
+ type Schema = typeof schema;
1122
+ const toStringRecord: $ToStringRecordFunction<Pick<Operation, "$identifier" | "label" | "name">>;
1123
+ }
1124
+ /**
1125
+ * Error type associated with an operation. Must be a struct type (i.e., have at least one sh:property).
1126
+ */
1127
+ export type OperationError = {
1128
+ readonly $identifier: () => OperationError.Identifier;
1129
+ readonly classes: readonly NamedNode[];
1130
+ readonly closed: Maybe<boolean>;
1131
+ readonly comment: Maybe<string>;
1132
+ readonly deactivated: Maybe<boolean>;
1133
+ readonly extern: Maybe<boolean>;
1134
+ readonly fromRdfType: Maybe<NamedNode>;
1135
+ readonly ignoredProperties: Maybe<readonly NamedNode[]>;
1136
+ readonly isDefinedBy: Maybe<BlankNode | NamedNode>;
1137
+ readonly label: Maybe<string>;
1138
+ readonly message: Maybe<string>;
1139
+ readonly nodeKind: Maybe<NamedNode<"http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal">>;
1140
+ readonly properties: readonly (BlankNode | NamedNode)[];
1141
+ readonly rdfType: Maybe<NamedNode>;
1142
+ readonly severity: Maybe<Severity>;
1143
+ /**
1144
+ * Name to use in generated code. Used on node shapes (which don't permit sh:name) and to override sh:name in property shapes.
1145
+ */
1146
+ readonly shaclmateName: Maybe<string>;
1147
+ readonly subClassOf: readonly NamedNode[];
1148
+ readonly toRdfTypes: readonly NamedNode[];
1149
+ readonly tsImports: readonly string[];
1150
+ readonly types: readonly NamedNode[];
1151
+ };
1152
+ export declare namespace OperationError {
1153
+ const _fromRdfResource: $_FromRdfResourceFunction<OperationError.Discriminated>;
1154
+ const $toString: $ToStringFunction<Pick<OperationError, "$identifier" | "label" | "shaclmateName">>;
1155
+ const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: OperationError.CreateParameters<$DefaultNamespaceT>) => Either<Error, OperationError.Discriminated>;
1156
+ type CreateParameters<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder> = {
1157
+ readonly $defaultNamespace?: $DefaultNamespaceT;
1158
+ readonly $identifier?: (() => OperationError.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
1159
+ readonly classes?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
1160
+ readonly closed?: boolean | Maybe<boolean>;
1161
+ readonly comment?: string | Maybe<string>;
1162
+ readonly deactivated?: boolean | Maybe<boolean>;
1163
+ readonly extern?: boolean | Maybe<boolean>;
1164
+ readonly fromRdfType?: (keyof $DefaultNamespaceT & string) | NamedNode | Maybe<NamedNode>;
1165
+ readonly ignoredProperties?: readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[] | Maybe<readonly NamedNode[]>;
1166
+ readonly isDefinedBy?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<BlankNode | NamedNode>;
1167
+ readonly label?: string | Maybe<string>;
1168
+ readonly message?: string | Maybe<string>;
1169
+ readonly nodeKind?: ("http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal") | NamedNode<"http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal"> | Maybe<NamedNode<"http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal">>;
1170
+ readonly properties?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[];
1171
+ readonly rdfType?: (keyof $DefaultNamespaceT & string) | NamedNode | Maybe<NamedNode>;
1172
+ readonly severity?: Severity["value"] | Severity | Maybe<Severity>;
1173
+ readonly shaclmateName?: string | Maybe<string>;
1174
+ readonly subClassOf?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
1175
+ readonly toRdfTypes?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
1176
+ readonly tsImports?: string | readonly string[];
1177
+ readonly types?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
1178
+ };
1179
+ const createUnsafe: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: OperationError.CreateParameters<$DefaultNamespaceT>) => OperationError.Discriminated;
1180
+ type Discriminated = OperationError & {
1181
+ readonly $type: "OperationError";
1182
+ };
1183
+ const fromRdfResource: $FromRdfResourceFunction<OperationError.Discriminated>;
1184
+ const fromRdfResourceValues: $FromRdfResourceValuesFunction<OperationError.Discriminated, OperationError.Schema>;
1185
+ type Identifier = BlankNode | NamedNode;
1186
+ namespace Identifier {
1187
+ const parse: (value: string) => Either<Error, import("@rdfx/string/dist/Identifier.js").Identifier>;
1188
+ }
1189
+ const isOperationError: $ObjectTypeGuardFunction<OperationError.Discriminated>;
1190
+ const schema: {
1191
+ readonly properties: {
1192
+ readonly $identifier: {
1193
+ readonly kind: "Identifier";
1194
+ readonly type: {
1195
+ readonly kind: "Identifier";
1196
+ };
1197
+ };
1198
+ readonly classes: {
1199
+ readonly kind: "Shacl";
1200
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#class">;
1201
+ readonly type: {
1202
+ readonly kind: "Set";
1203
+ readonly itemType: {
1204
+ readonly kind: "Iri";
1205
+ };
1206
+ };
1207
+ };
1208
+ readonly closed: {
1209
+ readonly kind: "Shacl";
1210
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#closed">;
1211
+ readonly type: {
1212
+ readonly kind: "Option";
1213
+ readonly itemType: {
1214
+ readonly kind: "Boolean";
1215
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
1216
+ };
1217
+ };
1218
+ };
1219
+ readonly comment: {
1220
+ readonly kind: "Shacl";
1221
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#comment">;
1222
+ readonly type: {
1223
+ readonly kind: "Option";
1224
+ readonly itemType: {
1225
+ readonly kind: "String";
1226
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1227
+ };
1228
+ };
1229
+ };
1230
+ readonly deactivated: {
1231
+ readonly kind: "Shacl";
1232
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#deactivated">;
1233
+ readonly type: {
1234
+ readonly kind: "Option";
1235
+ readonly itemType: {
1236
+ readonly kind: "Boolean";
1237
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
1238
+ };
1239
+ };
1240
+ };
1241
+ readonly extern: {
1242
+ readonly kind: "Shacl";
1243
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#extern">;
1244
+ readonly type: {
1245
+ readonly kind: "Option";
1246
+ readonly itemType: {
1247
+ readonly kind: "Boolean";
1248
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
1249
+ };
1250
+ };
1251
+ };
1252
+ readonly fromRdfType: {
1253
+ readonly kind: "Shacl";
1254
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#fromRdfType">;
1255
+ readonly type: {
1256
+ readonly kind: "Option";
1257
+ readonly itemType: {
1258
+ readonly kind: "Iri";
1259
+ };
1260
+ };
1261
+ };
1262
+ readonly ignoredProperties: {
1263
+ readonly kind: "Shacl";
1264
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ignoredProperties">;
1265
+ readonly type: {
1266
+ readonly kind: "Option";
1267
+ readonly itemType: {
1268
+ readonly kind: "List";
1269
+ readonly itemType: {
1270
+ readonly kind: "Iri";
1271
+ };
1272
+ };
1273
+ };
1274
+ };
1275
+ readonly isDefinedBy: {
1276
+ readonly kind: "Shacl";
1277
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#isDefinedBy">;
1278
+ readonly type: {
1279
+ readonly kind: "Option";
1280
+ readonly itemType: {
1281
+ readonly kind: "Identifier";
1282
+ };
1283
+ };
1284
+ };
1285
+ readonly label: {
1286
+ readonly kind: "Shacl";
1287
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
1288
+ readonly type: {
1289
+ readonly kind: "Option";
1290
+ readonly itemType: {
1291
+ readonly kind: "String";
1292
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1293
+ };
1294
+ };
1295
+ };
1296
+ readonly message: {
1297
+ readonly kind: "Shacl";
1298
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#message">;
1299
+ readonly type: {
1300
+ readonly kind: "Option";
1301
+ readonly itemType: {
1302
+ readonly kind: "String";
1303
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1304
+ };
1305
+ };
1306
+ };
1307
+ readonly nodeKind: {
1308
+ readonly kind: "Shacl";
1309
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#nodeKind">;
1310
+ readonly type: {
1311
+ readonly kind: "Option";
1312
+ readonly itemType: {
1313
+ readonly kind: "Iri";
1314
+ readonly in: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#BlankNode">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrIRI">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrLiteral">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#IRI">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#IRIOrLiteral">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Literal">];
1315
+ };
1316
+ };
1317
+ };
1318
+ readonly properties: {
1319
+ readonly kind: "Shacl";
1320
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#property">;
1321
+ readonly type: {
1322
+ readonly kind: "Set";
1323
+ readonly itemType: {
1324
+ readonly kind: "Identifier";
1325
+ };
1326
+ readonly minCount: 1;
1327
+ };
1328
+ };
1329
+ readonly rdfType: {
1330
+ readonly kind: "Shacl";
1331
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#rdfType">;
1332
+ readonly type: {
1333
+ readonly kind: "Option";
1334
+ readonly itemType: {
1335
+ readonly kind: "Iri";
1336
+ };
1337
+ };
1338
+ };
1339
+ readonly severity: {
1340
+ readonly kind: "Shacl";
1341
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#severity">;
1342
+ readonly type: {
1343
+ kind: "Option";
1344
+ readonly itemType: {
1345
+ kind: "Iri";
1346
+ in: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation">[];
1347
+ inValues: readonly ["http://www.w3.org/ns/shacl#Info", "http://www.w3.org/ns/shacl#Warning", "http://www.w3.org/ns/shacl#Violation"];
1348
+ };
1349
+ };
1350
+ };
1351
+ readonly shaclmateName: {
1352
+ readonly kind: "Shacl";
1353
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#name">;
1354
+ readonly type: {
1355
+ readonly kind: "Option";
1356
+ readonly itemType: {
1357
+ readonly kind: "String";
1358
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1359
+ };
1360
+ };
1361
+ };
1362
+ readonly subClassOf: {
1363
+ readonly kind: "Shacl";
1364
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#subClassOf">;
1365
+ readonly type: {
1366
+ readonly kind: "Set";
1367
+ readonly itemType: {
1368
+ readonly kind: "Iri";
1369
+ };
1370
+ };
1371
+ };
1372
+ readonly toRdfTypes: {
1373
+ readonly kind: "Shacl";
1374
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#toRdfType">;
1375
+ readonly type: {
1376
+ readonly kind: "Set";
1377
+ readonly itemType: {
1378
+ readonly kind: "Iri";
1379
+ };
1380
+ };
1381
+ };
1382
+ readonly tsImports: {
1383
+ readonly kind: "Shacl";
1384
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#tsImport">;
1385
+ readonly type: {
1386
+ readonly kind: "Set";
1387
+ readonly itemType: {
1388
+ readonly kind: "String";
1389
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1390
+ };
1391
+ };
1392
+ };
1393
+ readonly types: {
1394
+ readonly kind: "Shacl";
1395
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/1999/02/22-rdf-syntax-ns#type">;
1396
+ readonly type: {
1397
+ readonly kind: "Set";
1398
+ readonly itemType: {
1399
+ readonly kind: "Iri";
1400
+ };
1401
+ };
1402
+ };
1403
+ };
1404
+ };
1405
+ type Schema = typeof schema;
1406
+ const toStringRecord: $ToStringRecordFunction<Pick<OperationError, "$identifier" | "label" | "shaclmateName">>;
1407
+ }
1408
+ /**
1409
+ * HTTP binding for an operation error
1410
+ */
1411
+ export type OperationErrorHttpBinding = {
1412
+ readonly $identifier: () => OperationErrorHttpBinding.Identifier;
1413
+ /**
1414
+ * HTTP client/server error code for the bound error.
1415
+ */
1416
+ readonly statusCode: OperationErrorHttpBindingStatusCode;
1417
+ };
1418
+ export declare namespace OperationErrorHttpBinding {
1419
+ const _fromRdfResource: $_FromRdfResourceFunction<OperationErrorHttpBinding.Discriminated>;
1420
+ const $toString: $ToStringFunction<Pick<OperationErrorHttpBinding, "$identifier">>;
1421
+ const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters: OperationErrorHttpBinding.CreateParameters<$DefaultNamespaceT>) => Either<Error, OperationErrorHttpBinding.Discriminated>;
1422
+ type CreateParameters<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder> = {
1423
+ readonly $defaultNamespace?: $DefaultNamespaceT;
1424
+ readonly $identifier?: (() => OperationErrorHttpBinding.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
1425
+ readonly statusCode: OperationErrorHttpBindingStatusCode;
1426
+ };
1427
+ const createUnsafe: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters: OperationErrorHttpBinding.CreateParameters<$DefaultNamespaceT>) => OperationErrorHttpBinding.Discriminated;
1428
+ type Discriminated = OperationErrorHttpBinding & {
1429
+ readonly $type: "OperationErrorHttpBinding";
1430
+ };
1431
+ const fromRdfResource: $FromRdfResourceFunction<OperationErrorHttpBinding.Discriminated>;
1432
+ const fromRdfResourceValues: $FromRdfResourceValuesFunction<OperationErrorHttpBinding.Discriminated, OperationErrorHttpBinding.Schema>;
1433
+ type Identifier = BlankNode | NamedNode;
1434
+ namespace Identifier {
1435
+ const parse: (value: string) => Either<Error, import("@rdfx/string/dist/Identifier.js").Identifier>;
1436
+ }
1437
+ const isOperationErrorHttpBinding: $ObjectTypeGuardFunction<OperationErrorHttpBinding.Discriminated>;
1438
+ const schema: {
1439
+ readonly properties: {
1440
+ readonly $identifier: {
1441
+ readonly kind: "Identifier";
1442
+ readonly type: {
1443
+ readonly kind: "Identifier";
1444
+ };
1445
+ };
1446
+ readonly statusCode: {
1447
+ readonly kind: "Shacl";
1448
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#httpStatusCode">;
1449
+ readonly type: {
1450
+ kind: "Int";
1451
+ in: readonly [400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 421, 422, 423, 424, 425, 426, 428, 429, 431, 451, 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, 511];
1452
+ datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#int">;
1453
+ };
1454
+ };
1455
+ };
1456
+ };
1457
+ type Schema = typeof schema;
1458
+ const toStringRecord: $ToStringRecordFunction<Pick<OperationErrorHttpBinding, "$identifier">>;
1459
+ }
1460
+ export type OperationErrorHttpBindingStatusCode = OperationErrorHttpBindingStatusCode.Schema["in"][number];
1461
+ export declare namespace OperationErrorHttpBindingStatusCode {
1462
+ const schema: {
1463
+ kind: "Int";
1464
+ in: readonly [400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 421, 422, 423, 424, 425, 426, 428, 429, 431, 451, 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, 511];
1465
+ datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#int">;
1466
+ };
1467
+ type Schema = typeof schema;
1468
+ }
1469
+ /**
1470
+ * HTTP binding for an operation
1471
+ */
1472
+ export type OperationHttpBinding = {
1473
+ readonly $identifier: () => OperationHttpBinding.Identifier;
1474
+ /**
1475
+ * HTTP request body method. If this is not specified, it's inferred from the existence of path, query, and/or body parameters
1476
+ */
1477
+ readonly method: Maybe<OperationHttpBindingMethod>;
1478
+ /**
1479
+ * RFC 6570 URI template for the HTTP request. Variables in the template must correspond to properties of the parameter. Any other properties of the parameter are serialized into the HTTP requets body following the given/inferred content type.
1480
+ */
1481
+ readonly urlTemplate: string;
1482
+ };
1483
+ export declare namespace OperationHttpBinding {
1484
+ const _fromRdfResource: $_FromRdfResourceFunction<OperationHttpBinding.Discriminated>;
1485
+ const $toString: $ToStringFunction<Pick<OperationHttpBinding, "$identifier">>;
1486
+ const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters: OperationHttpBinding.CreateParameters<$DefaultNamespaceT>) => Either<Error, OperationHttpBinding.Discriminated>;
1487
+ type CreateParameters<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder> = {
1488
+ readonly $defaultNamespace?: $DefaultNamespaceT;
1489
+ readonly $identifier?: (() => OperationHttpBinding.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
1490
+ readonly method?: OperationHttpBindingMethod | Maybe<OperationHttpBindingMethod>;
1491
+ readonly urlTemplate: string;
1492
+ };
1493
+ const createUnsafe: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters: OperationHttpBinding.CreateParameters<$DefaultNamespaceT>) => OperationHttpBinding.Discriminated;
1494
+ type Discriminated = OperationHttpBinding & {
1495
+ readonly $type: "OperationHttpBinding";
1496
+ };
1497
+ const fromRdfResource: $FromRdfResourceFunction<OperationHttpBinding.Discriminated>;
1498
+ const fromRdfResourceValues: $FromRdfResourceValuesFunction<OperationHttpBinding.Discriminated, OperationHttpBinding.Schema>;
1499
+ type Identifier = BlankNode | NamedNode;
1500
+ namespace Identifier {
1501
+ const parse: (value: string) => Either<Error, import("@rdfx/string/dist/Identifier.js").Identifier>;
1502
+ }
1503
+ const isOperationHttpBinding: $ObjectTypeGuardFunction<OperationHttpBinding.Discriminated>;
1504
+ const schema: {
1505
+ readonly properties: {
1506
+ readonly $identifier: {
1507
+ readonly kind: "Identifier";
1508
+ readonly type: {
1509
+ readonly kind: "Identifier";
1510
+ };
1511
+ };
1512
+ readonly method: {
1513
+ readonly kind: "Shacl";
1514
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://schema.org/httpMethod">;
1515
+ readonly type: {
1516
+ kind: "Option";
1517
+ readonly itemType: {
1518
+ kind: "String";
1519
+ in: readonly ["DELETE", "GET", "POST", "PUT"];
1520
+ datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
728
1521
  };
729
1522
  };
730
1523
  };
731
- readonly label: {
1524
+ readonly urlTemplate: {
732
1525
  readonly kind: "Shacl";
733
- readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
1526
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://schema.org/urlTemplate">;
734
1527
  readonly type: {
735
- readonly kind: "Option";
736
- readonly itemType: {
737
- readonly kind: "String";
738
- };
1528
+ readonly kind: "String";
1529
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
739
1530
  };
740
1531
  };
741
1532
  };
742
1533
  };
743
1534
  type Schema = typeof schema;
744
- const toStringRecord: (_ontology: Ontology) => Record<string, string>;
1535
+ const toStringRecord: $ToStringRecordFunction<Pick<OperationHttpBinding, "$identifier">>;
1536
+ }
1537
+ export type OperationHttpBindingMethod = OperationHttpBindingMethod.Schema["in"][number];
1538
+ export declare namespace OperationHttpBindingMethod {
1539
+ const schema: {
1540
+ kind: "String";
1541
+ in: readonly ["DELETE", "GET", "POST", "PUT"];
1542
+ datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1543
+ };
1544
+ type Schema = typeof schema;
1545
+ }
1546
+ export type OperationHttpBindingStatusCode = OperationHttpBindingStatusCode.Schema["in"][number];
1547
+ export declare namespace OperationHttpBindingStatusCode {
1548
+ const schema: {
1549
+ kind: "Int";
1550
+ in: readonly [200, 201, 202, 203, 204, 205, 206, 207, 208, 226];
1551
+ datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#int">;
1552
+ };
1553
+ type Schema = typeof schema;
1554
+ }
1555
+ export type OperationParameter = BlankNode | NamedNode;
1556
+ export declare namespace OperationParameter {
1557
+ const schema: {
1558
+ kind: "Identifier";
1559
+ };
1560
+ type Schema = typeof schema;
1561
+ }
1562
+ export type OperationParameterHttpBindingContentType = OperationParameterHttpBindingContentType.Schema["in"][number];
1563
+ export declare namespace OperationParameterHttpBindingContentType {
1564
+ const schema: {
1565
+ kind: "String";
1566
+ in: readonly ["application/json"];
1567
+ datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1568
+ };
1569
+ type Schema = typeof schema;
1570
+ }
1571
+ export type OperationResult = BlankNode | NamedNode;
1572
+ export declare namespace OperationResult {
1573
+ const schema: {
1574
+ kind: "Identifier";
1575
+ };
1576
+ type Schema = typeof schema;
1577
+ }
1578
+ export type OperationResultHttpBindingContentType = OperationResultHttpBindingContentType.Schema["in"][number];
1579
+ export declare namespace OperationResultHttpBindingContentType {
1580
+ const schema: {
1581
+ kind: "String";
1582
+ in: readonly ["application/json"];
1583
+ datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1584
+ };
1585
+ type Schema = typeof schema;
745
1586
  }
746
1587
  export type PropertyGroup = {
747
1588
  readonly $identifier: () => PropertyGroup.Identifier;
748
- readonly $type: "PropertyGroup";
749
1589
  readonly comment: Maybe<string>;
750
1590
  readonly label: Maybe<string>;
751
1591
  };
752
1592
  export declare namespace PropertyGroup {
753
- const _fromRdfResource: $_FromRdfResourceFunction<PropertyGroup>;
754
- const $toString: (_propertyGroup: PropertyGroup) => string;
755
- const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: {
756
- readonly $defaultNamespace?: $DefaultNamespaceT;
757
- readonly $identifier?: (() => PropertyGroup.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
758
- readonly comment?: string | Maybe<string>;
759
- readonly label?: string | Maybe<string>;
760
- }) => Either<Error, PropertyGroup>;
761
- function createUnsafe<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: {
1593
+ const _fromRdfResource: $_FromRdfResourceFunction<PropertyGroup.Discriminated>;
1594
+ const $toString: $ToStringFunction<Omit<PropertyGroup, "comment">>;
1595
+ const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: PropertyGroup.CreateParameters<$DefaultNamespaceT>) => Either<Error, PropertyGroup.Discriminated>;
1596
+ type CreateParameters<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder> = {
762
1597
  readonly $defaultNamespace?: $DefaultNamespaceT;
763
1598
  readonly $identifier?: (() => PropertyGroup.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
764
1599
  readonly comment?: string | Maybe<string>;
765
1600
  readonly label?: string | Maybe<string>;
766
- }): PropertyGroup;
767
- const fromRdfResource: $FromRdfResourceFunction<PropertyGroup>;
768
- const fromRdfResourceValues: $FromRdfResourceValuesFunction<PropertyGroup, PropertyGroup.Schema>;
1601
+ };
1602
+ const createUnsafe: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: PropertyGroup.CreateParameters<$DefaultNamespaceT>) => PropertyGroup.Discriminated;
1603
+ type Discriminated = PropertyGroup & {
1604
+ readonly $type: "PropertyGroup";
1605
+ };
1606
+ const fromRdfResource: $FromRdfResourceFunction<PropertyGroup.Discriminated>;
1607
+ const fromRdfResourceValues: $FromRdfResourceValuesFunction<PropertyGroup.Discriminated, PropertyGroup.Schema>;
769
1608
  type Identifier = BlankNode | NamedNode;
770
1609
  namespace Identifier {
771
1610
  const parse: (value: string) => Either<Error, import("@rdfx/string/dist/Identifier.js").Identifier>;
772
- const stringify: typeof NTriplesTerm.stringify;
773
1611
  }
774
- const isPropertyGroup: (object: $Object) => object is PropertyGroup;
1612
+ const isPropertyGroup: $ObjectTypeGuardFunction<PropertyGroup.Discriminated>;
775
1613
  const schema: {
776
1614
  readonly properties: {
777
1615
  readonly $identifier: {
@@ -785,10 +1623,6 @@ export declare namespace PropertyGroup {
785
1623
  readonly kind: "RdfType";
786
1624
  readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#PropertyGroup">];
787
1625
  };
788
- readonly $type: {
789
- readonly kind: "Discriminant";
790
- readonly value: "PropertyGroup";
791
- };
792
1626
  readonly comment: {
793
1627
  readonly kind: "Shacl";
794
1628
  readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#comment">;
@@ -796,6 +1630,7 @@ export declare namespace PropertyGroup {
796
1630
  readonly kind: "Option";
797
1631
  readonly itemType: {
798
1632
  readonly kind: "String";
1633
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
799
1634
  };
800
1635
  };
801
1636
  };
@@ -806,17 +1641,17 @@ export declare namespace PropertyGroup {
806
1641
  readonly kind: "Option";
807
1642
  readonly itemType: {
808
1643
  readonly kind: "String";
1644
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
809
1645
  };
810
1646
  };
811
1647
  };
812
1648
  };
813
1649
  };
814
1650
  type Schema = typeof schema;
815
- const toStringRecord: (_propertyGroup: PropertyGroup) => Record<string, string>;
1651
+ const toStringRecord: $ToStringRecordFunction<Omit<PropertyGroup, "comment">>;
816
1652
  }
817
1653
  export type PropertyShape = {
818
1654
  readonly $identifier: () => PropertyShape.Identifier;
819
- readonly $type: "PropertyShape";
820
1655
  readonly and: Maybe<readonly (BlankNode | NamedNode)[]>;
821
1656
  readonly classes: readonly NamedNode[];
822
1657
  readonly comment: Maybe<string>;
@@ -852,6 +1687,9 @@ export type PropertyShape = {
852
1687
  readonly minExclusive: Maybe<Literal>;
853
1688
  readonly minInclusive: Maybe<Literal>;
854
1689
  readonly minLength: Maybe<bigint>;
1690
+ /**
1691
+ * Whether the code generated from the shape should be mutable e.g., a mutable property, a mutable array, etc.
1692
+ */
855
1693
  readonly mutable: Maybe<boolean>;
856
1694
  readonly name: Maybe<string>;
857
1695
  readonly node: Maybe<BlankNode | NamedNode>;
@@ -867,6 +1705,9 @@ export type PropertyShape = {
867
1705
  readonly qualifiedValueShapesDisjoint: Maybe<boolean>;
868
1706
  readonly resolve: Maybe<BlankNode | NamedNode>;
869
1707
  readonly severity: Maybe<Severity>;
1708
+ /**
1709
+ * Name to use in generated code. Used on node shapes (which don't permit sh:name) and to override sh:name in property shapes.
1710
+ */
870
1711
  readonly shaclmateName: Maybe<string>;
871
1712
  readonly targetClasses: readonly NamedNode[];
872
1713
  readonly targetNodes: readonly (NamedNode | Literal)[];
@@ -876,64 +1717,10 @@ export type PropertyShape = {
876
1717
  readonly xone: Maybe<readonly (BlankNode | NamedNode)[]>;
877
1718
  };
878
1719
  export declare namespace PropertyShape {
879
- const _fromRdfResource: $_FromRdfResourceFunction<PropertyShape>;
880
- const $toString: (_propertyShape: PropertyShape) => string;
881
- const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters: {
882
- readonly $defaultNamespace?: $DefaultNamespaceT;
883
- readonly $identifier?: (() => PropertyShape.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
884
- readonly and?: readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
885
- readonly classes?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
886
- readonly comment?: string | Maybe<string>;
887
- readonly datatype?: (keyof $DefaultNamespaceT & string) | NamedNode | Maybe<NamedNode>;
888
- readonly deactivated?: boolean | Maybe<boolean>;
889
- readonly defaultValue?: (NamedNode | Literal) | Maybe<NamedNode | Literal>;
890
- readonly description?: string | Maybe<string>;
891
- readonly disjoint?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
892
- readonly display?: boolean;
893
- readonly equals?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
894
- readonly flags?: string | Maybe<string>;
895
- readonly groups?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[];
896
- readonly hasValues?: (NamedNode | Literal) | readonly (NamedNode | Literal)[];
897
- readonly ignore?: boolean;
898
- readonly in_?: readonly (NamedNode | Literal)[] | Maybe<readonly (NamedNode | Literal)[]>;
899
- readonly isDefinedBy?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<BlankNode | NamedNode>;
900
- readonly label?: string | Maybe<string>;
901
- readonly languageIn?: readonly string[] | Maybe<readonly string[]>;
902
- readonly lessThan?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
903
- readonly lessThanOrEquals?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
904
- readonly maxCount?: bigint | number | string | Maybe<bigint>;
905
- readonly maxExclusive?: bigint | boolean | number | string | Date | Literal | Maybe<Literal>;
906
- readonly maxInclusive?: bigint | boolean | number | string | Date | Literal | Maybe<Literal>;
907
- readonly maxLength?: bigint | number | string | Maybe<bigint>;
908
- readonly message?: string | Maybe<string>;
909
- readonly minCount?: bigint | number | string | Maybe<bigint>;
910
- readonly minExclusive?: bigint | boolean | number | string | Date | Literal | Maybe<Literal>;
911
- readonly minInclusive?: bigint | boolean | number | string | Date | Literal | Maybe<Literal>;
912
- readonly minLength?: bigint | number | string | Maybe<bigint>;
913
- readonly mutable?: boolean | Maybe<boolean>;
914
- readonly name?: string | Maybe<string>;
915
- readonly node?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<BlankNode | NamedNode>;
916
- readonly nodeKind?: ("http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal") | NamedNode<"http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal"> | Maybe<NamedNode<"http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal">>;
917
- readonly not?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[];
918
- readonly or?: readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
919
- readonly order?: number | Maybe<number>;
920
- readonly path: $PropertyPath;
921
- readonly pattern?: string | Maybe<string>;
922
- readonly qualifiedMaxCount?: bigint | number | string | Maybe<bigint>;
923
- readonly qualifiedMinCount?: bigint | number | string | Maybe<bigint>;
924
- readonly qualifiedValueShape?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<BlankNode | NamedNode>;
925
- readonly qualifiedValueShapesDisjoint?: boolean | Maybe<boolean>;
926
- readonly resolve?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<BlankNode | NamedNode>;
927
- readonly severity?: Severity["value"] | Severity | Maybe<Severity>;
928
- readonly shaclmateName?: string | Maybe<string>;
929
- readonly targetClasses?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
930
- readonly targetNodes?: (NamedNode | Literal) | readonly (NamedNode | Literal)[];
931
- readonly targetObjectsOf?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
932
- readonly targetSubjectsOf?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
933
- readonly uniqueLang?: boolean | Maybe<boolean>;
934
- readonly xone?: readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
935
- }) => Either<Error, PropertyShape>;
936
- function createUnsafe<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters: {
1720
+ const _fromRdfResource: $_FromRdfResourceFunction<PropertyShape.Discriminated>;
1721
+ const $toString: $ToStringFunction<Pick<PropertyShape, "$identifier" | "label" | "name" | "path" | "shaclmateName">>;
1722
+ const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters: PropertyShape.CreateParameters<$DefaultNamespaceT>) => Either<Error, PropertyShape.Discriminated>;
1723
+ type CreateParameters<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder> = {
937
1724
  readonly $defaultNamespace?: $DefaultNamespaceT;
938
1725
  readonly $identifier?: (() => PropertyShape.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
939
1726
  readonly and?: readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
@@ -987,15 +1774,18 @@ export declare namespace PropertyShape {
987
1774
  readonly targetSubjectsOf?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
988
1775
  readonly uniqueLang?: boolean | Maybe<boolean>;
989
1776
  readonly xone?: readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
990
- }): PropertyShape;
991
- const fromRdfResource: $FromRdfResourceFunction<PropertyShape>;
992
- const fromRdfResourceValues: $FromRdfResourceValuesFunction<PropertyShape, PropertyShape.Schema>;
1777
+ };
1778
+ const createUnsafe: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters: PropertyShape.CreateParameters<$DefaultNamespaceT>) => PropertyShape.Discriminated;
1779
+ type Discriminated = PropertyShape & {
1780
+ readonly $type: "PropertyShape";
1781
+ };
1782
+ const fromRdfResource: $FromRdfResourceFunction<PropertyShape.Discriminated>;
1783
+ const fromRdfResourceValues: $FromRdfResourceValuesFunction<PropertyShape.Discriminated, PropertyShape.Schema>;
993
1784
  type Identifier = BlankNode | NamedNode;
994
1785
  namespace Identifier {
995
1786
  const parse: (value: string) => Either<Error, import("@rdfx/string/dist/Identifier.js").Identifier>;
996
- const stringify: typeof NTriplesTerm.stringify;
997
1787
  }
998
- const isPropertyShape: (object: $Object) => object is PropertyShape;
1788
+ const isPropertyShape: $ObjectTypeGuardFunction<PropertyShape.Discriminated>;
999
1789
  const schema: {
1000
1790
  readonly properties: {
1001
1791
  readonly $identifier: {
@@ -1009,10 +1799,6 @@ export declare namespace PropertyShape {
1009
1799
  readonly kind: "RdfType";
1010
1800
  readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#PropertyShape">];
1011
1801
  };
1012
- readonly $type: {
1013
- readonly kind: "Discriminant";
1014
- readonly value: "PropertyShape";
1015
- };
1016
1802
  readonly and: {
1017
1803
  readonly kind: "Shacl";
1018
1804
  readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#and">;
@@ -1043,6 +1829,7 @@ export declare namespace PropertyShape {
1043
1829
  readonly kind: "Option";
1044
1830
  readonly itemType: {
1045
1831
  readonly kind: "String";
1832
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1046
1833
  };
1047
1834
  };
1048
1835
  };
@@ -1063,6 +1850,7 @@ export declare namespace PropertyShape {
1063
1850
  readonly kind: "Option";
1064
1851
  readonly itemType: {
1065
1852
  readonly kind: "Boolean";
1853
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
1066
1854
  };
1067
1855
  };
1068
1856
  };
@@ -1084,6 +1872,7 @@ export declare namespace PropertyShape {
1084
1872
  readonly kind: "Option";
1085
1873
  readonly itemType: {
1086
1874
  readonly kind: "String";
1875
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1087
1876
  };
1088
1877
  };
1089
1878
  };
@@ -1104,6 +1893,7 @@ export declare namespace PropertyShape {
1104
1893
  readonly kind: "DefaultValue";
1105
1894
  readonly itemType: {
1106
1895
  readonly kind: "Boolean";
1896
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
1107
1897
  };
1108
1898
  readonly defaultValue: import("@rdfx/data-factory/dist/Literal.js").Literal;
1109
1899
  };
@@ -1125,6 +1915,7 @@ export declare namespace PropertyShape {
1125
1915
  readonly kind: "Option";
1126
1916
  readonly itemType: {
1127
1917
  readonly kind: "String";
1918
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1128
1919
  };
1129
1920
  };
1130
1921
  };
@@ -1156,6 +1947,7 @@ export declare namespace PropertyShape {
1156
1947
  readonly kind: "DefaultValue";
1157
1948
  readonly itemType: {
1158
1949
  readonly kind: "Boolean";
1950
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
1159
1951
  };
1160
1952
  readonly defaultValue: import("@rdfx/data-factory/dist/Literal.js").Literal;
1161
1953
  };
@@ -1191,6 +1983,7 @@ export declare namespace PropertyShape {
1191
1983
  readonly kind: "Option";
1192
1984
  readonly itemType: {
1193
1985
  readonly kind: "String";
1986
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1194
1987
  };
1195
1988
  };
1196
1989
  };
@@ -1203,6 +1996,7 @@ export declare namespace PropertyShape {
1203
1996
  readonly kind: "List";
1204
1997
  readonly itemType: {
1205
1998
  readonly kind: "String";
1999
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1206
2000
  };
1207
2001
  };
1208
2002
  };
@@ -1234,6 +2028,7 @@ export declare namespace PropertyShape {
1234
2028
  readonly kind: "Option";
1235
2029
  readonly itemType: {
1236
2030
  readonly kind: "BigInt";
2031
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#integer">;
1237
2032
  };
1238
2033
  };
1239
2034
  };
@@ -1264,6 +2059,7 @@ export declare namespace PropertyShape {
1264
2059
  readonly kind: "Option";
1265
2060
  readonly itemType: {
1266
2061
  readonly kind: "BigInt";
2062
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#integer">;
1267
2063
  };
1268
2064
  };
1269
2065
  };
@@ -1274,6 +2070,7 @@ export declare namespace PropertyShape {
1274
2070
  readonly kind: "Option";
1275
2071
  readonly itemType: {
1276
2072
  readonly kind: "String";
2073
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1277
2074
  };
1278
2075
  };
1279
2076
  };
@@ -1284,6 +2081,7 @@ export declare namespace PropertyShape {
1284
2081
  readonly kind: "Option";
1285
2082
  readonly itemType: {
1286
2083
  readonly kind: "BigInt";
2084
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#integer">;
1287
2085
  };
1288
2086
  };
1289
2087
  };
@@ -1314,6 +2112,7 @@ export declare namespace PropertyShape {
1314
2112
  readonly kind: "Option";
1315
2113
  readonly itemType: {
1316
2114
  readonly kind: "BigInt";
2115
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#integer">;
1317
2116
  };
1318
2117
  };
1319
2118
  };
@@ -1324,6 +2123,7 @@ export declare namespace PropertyShape {
1324
2123
  readonly kind: "Option";
1325
2124
  readonly itemType: {
1326
2125
  readonly kind: "Boolean";
2126
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
1327
2127
  };
1328
2128
  };
1329
2129
  };
@@ -1334,6 +2134,7 @@ export declare namespace PropertyShape {
1334
2134
  readonly kind: "Option";
1335
2135
  readonly itemType: {
1336
2136
  readonly kind: "String";
2137
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1337
2138
  };
1338
2139
  };
1339
2140
  };
@@ -1388,6 +2189,7 @@ export declare namespace PropertyShape {
1388
2189
  readonly kind: "Option";
1389
2190
  readonly itemType: {
1390
2191
  readonly kind: "Float";
2192
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#double">;
1391
2193
  };
1392
2194
  };
1393
2195
  };
@@ -1403,6 +2205,7 @@ export declare namespace PropertyShape {
1403
2205
  readonly kind: "Option";
1404
2206
  readonly itemType: {
1405
2207
  readonly kind: "String";
2208
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1406
2209
  };
1407
2210
  };
1408
2211
  };
@@ -1413,6 +2216,7 @@ export declare namespace PropertyShape {
1413
2216
  readonly kind: "Option";
1414
2217
  readonly itemType: {
1415
2218
  readonly kind: "BigInt";
2219
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#integer">;
1416
2220
  };
1417
2221
  };
1418
2222
  };
@@ -1423,6 +2227,7 @@ export declare namespace PropertyShape {
1423
2227
  readonly kind: "Option";
1424
2228
  readonly itemType: {
1425
2229
  readonly kind: "BigInt";
2230
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#integer">;
1426
2231
  };
1427
2232
  };
1428
2233
  };
@@ -1443,6 +2248,7 @@ export declare namespace PropertyShape {
1443
2248
  readonly kind: "Option";
1444
2249
  readonly itemType: {
1445
2250
  readonly kind: "Boolean";
2251
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
1446
2252
  };
1447
2253
  };
1448
2254
  };
@@ -1475,6 +2281,7 @@ export declare namespace PropertyShape {
1475
2281
  readonly kind: "Option";
1476
2282
  readonly itemType: {
1477
2283
  readonly kind: "String";
2284
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1478
2285
  };
1479
2286
  };
1480
2287
  };
@@ -1526,6 +2333,7 @@ export declare namespace PropertyShape {
1526
2333
  readonly kind: "Option";
1527
2334
  readonly itemType: {
1528
2335
  readonly kind: "Boolean";
2336
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
1529
2337
  };
1530
2338
  };
1531
2339
  };
@@ -1545,7 +2353,431 @@ export declare namespace PropertyShape {
1545
2353
  };
1546
2354
  };
1547
2355
  type Schema = typeof schema;
1548
- const toStringRecord: (_propertyShape: PropertyShape) => Record<string, string>;
2356
+ const toStringRecord: $ToStringRecordFunction<Pick<PropertyShape, "$identifier" | "label" | "name" | "path" | "shaclmateName">>;
2357
+ }
2358
+ /**
2359
+ * Service with operations
2360
+ */
2361
+ export type Service = {
2362
+ readonly $identifier: () => Service.Identifier;
2363
+ readonly comment: Maybe<string>;
2364
+ readonly label: Maybe<string>;
2365
+ /**
2366
+ * Identifier-safe name of the service
2367
+ */
2368
+ readonly name: Maybe<string>;
2369
+ /**
2370
+ * Set of operations associated with the service
2371
+ */
2372
+ readonly operations: readonly Operation[];
2373
+ };
2374
+ export declare namespace Service {
2375
+ const _fromRdfResource: $_FromRdfResourceFunction<Service.Discriminated>;
2376
+ const $toString: $ToStringFunction<Omit<Service, "comment" | "operations">>;
2377
+ const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: Service.CreateParameters<$DefaultNamespaceT>) => Either<Error, Service.Discriminated>;
2378
+ type CreateParameters<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder> = {
2379
+ readonly $defaultNamespace?: $DefaultNamespaceT;
2380
+ readonly $identifier?: (() => Service.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
2381
+ readonly comment?: string | Maybe<string>;
2382
+ readonly label?: string | Maybe<string>;
2383
+ readonly name?: string | Maybe<string>;
2384
+ readonly operations?: Operation | readonly Operation[];
2385
+ };
2386
+ const createUnsafe: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: Service.CreateParameters<$DefaultNamespaceT>) => Service.Discriminated;
2387
+ type Discriminated = Service & {
2388
+ readonly $type: "Service";
2389
+ };
2390
+ const fromRdfResource: $FromRdfResourceFunction<Service.Discriminated>;
2391
+ const fromRdfResourceValues: $FromRdfResourceValuesFunction<Service.Discriminated, Service.Schema>;
2392
+ type Identifier = BlankNode | NamedNode;
2393
+ namespace Identifier {
2394
+ const parse: (value: string) => Either<Error, import("@rdfx/string/dist/Identifier.js").Identifier>;
2395
+ }
2396
+ const isService: $ObjectTypeGuardFunction<Service.Discriminated>;
2397
+ const schema: {
2398
+ readonly properties: {
2399
+ readonly $identifier: {
2400
+ readonly kind: "Identifier";
2401
+ readonly type: {
2402
+ readonly kind: "Identifier";
2403
+ };
2404
+ };
2405
+ readonly $rdfType: {
2406
+ readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#Service">;
2407
+ readonly kind: "RdfType";
2408
+ readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#Service">];
2409
+ };
2410
+ readonly comment: {
2411
+ readonly kind: "Shacl";
2412
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#comment">;
2413
+ readonly type: {
2414
+ readonly kind: "Option";
2415
+ readonly itemType: {
2416
+ readonly kind: "String";
2417
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2418
+ };
2419
+ };
2420
+ };
2421
+ readonly label: {
2422
+ readonly kind: "Shacl";
2423
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
2424
+ readonly type: {
2425
+ readonly kind: "Option";
2426
+ readonly itemType: {
2427
+ readonly kind: "String";
2428
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2429
+ };
2430
+ };
2431
+ };
2432
+ readonly name: {
2433
+ readonly kind: "Shacl";
2434
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#name">;
2435
+ readonly type: {
2436
+ readonly kind: "Option";
2437
+ readonly itemType: {
2438
+ readonly kind: "String";
2439
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2440
+ };
2441
+ };
2442
+ };
2443
+ readonly operations: {
2444
+ readonly kind: "Shacl";
2445
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#operation">;
2446
+ readonly type: {
2447
+ kind: "Set";
2448
+ readonly itemType: {
2449
+ readonly properties: {
2450
+ readonly $identifier: {
2451
+ readonly kind: "Identifier";
2452
+ readonly type: {
2453
+ readonly kind: "Identifier";
2454
+ };
2455
+ };
2456
+ readonly $rdfType: {
2457
+ readonly fromRdfType: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#Operation">;
2458
+ readonly kind: "RdfType";
2459
+ readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#Operation">];
2460
+ };
2461
+ readonly bindings: {
2462
+ readonly kind: "Shacl";
2463
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#binding">;
2464
+ readonly type: {
2465
+ kind: "Set";
2466
+ readonly itemType: {
2467
+ readonly properties: {
2468
+ readonly $identifier: {
2469
+ readonly kind: "Identifier";
2470
+ readonly type: {
2471
+ readonly kind: "Identifier";
2472
+ };
2473
+ };
2474
+ readonly method: {
2475
+ readonly kind: "Shacl";
2476
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://schema.org/httpMethod">;
2477
+ readonly type: {
2478
+ kind: "Option";
2479
+ readonly itemType: {
2480
+ kind: "String";
2481
+ in: readonly ["DELETE", "GET", "POST", "PUT"];
2482
+ datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2483
+ };
2484
+ };
2485
+ };
2486
+ readonly urlTemplate: {
2487
+ readonly kind: "Shacl";
2488
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://schema.org/urlTemplate">;
2489
+ readonly type: {
2490
+ readonly kind: "String";
2491
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2492
+ };
2493
+ };
2494
+ };
2495
+ };
2496
+ };
2497
+ };
2498
+ readonly comment: {
2499
+ readonly kind: "Shacl";
2500
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#comment">;
2501
+ readonly type: {
2502
+ readonly kind: "Option";
2503
+ readonly itemType: {
2504
+ readonly kind: "String";
2505
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2506
+ };
2507
+ };
2508
+ };
2509
+ readonly error: {
2510
+ readonly kind: "Shacl";
2511
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#error">;
2512
+ readonly type: {
2513
+ kind: "Set";
2514
+ readonly itemType: {
2515
+ readonly properties: {
2516
+ readonly $identifier: {
2517
+ readonly kind: "Identifier";
2518
+ readonly type: {
2519
+ readonly kind: "Identifier";
2520
+ };
2521
+ };
2522
+ readonly classes: {
2523
+ readonly kind: "Shacl";
2524
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#class">;
2525
+ readonly type: {
2526
+ readonly kind: "Set";
2527
+ readonly itemType: {
2528
+ readonly kind: "Iri";
2529
+ };
2530
+ };
2531
+ };
2532
+ readonly closed: {
2533
+ readonly kind: "Shacl";
2534
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#closed">;
2535
+ readonly type: {
2536
+ readonly kind: "Option";
2537
+ readonly itemType: {
2538
+ readonly kind: "Boolean";
2539
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
2540
+ };
2541
+ };
2542
+ };
2543
+ readonly comment: {
2544
+ readonly kind: "Shacl";
2545
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#comment">;
2546
+ readonly type: {
2547
+ readonly kind: "Option";
2548
+ readonly itemType: {
2549
+ readonly kind: "String";
2550
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2551
+ };
2552
+ };
2553
+ };
2554
+ readonly deactivated: {
2555
+ readonly kind: "Shacl";
2556
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#deactivated">;
2557
+ readonly type: {
2558
+ readonly kind: "Option";
2559
+ readonly itemType: {
2560
+ readonly kind: "Boolean";
2561
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
2562
+ };
2563
+ };
2564
+ };
2565
+ readonly extern: {
2566
+ readonly kind: "Shacl";
2567
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#extern">;
2568
+ readonly type: {
2569
+ readonly kind: "Option";
2570
+ readonly itemType: {
2571
+ readonly kind: "Boolean";
2572
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
2573
+ };
2574
+ };
2575
+ };
2576
+ readonly fromRdfType: {
2577
+ readonly kind: "Shacl";
2578
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#fromRdfType">;
2579
+ readonly type: {
2580
+ readonly kind: "Option";
2581
+ readonly itemType: {
2582
+ readonly kind: "Iri";
2583
+ };
2584
+ };
2585
+ };
2586
+ readonly ignoredProperties: {
2587
+ readonly kind: "Shacl";
2588
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ignoredProperties">;
2589
+ readonly type: {
2590
+ readonly kind: "Option";
2591
+ readonly itemType: {
2592
+ readonly kind: "List";
2593
+ readonly itemType: {
2594
+ readonly kind: "Iri";
2595
+ };
2596
+ };
2597
+ };
2598
+ };
2599
+ readonly isDefinedBy: {
2600
+ readonly kind: "Shacl";
2601
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#isDefinedBy">;
2602
+ readonly type: {
2603
+ readonly kind: "Option";
2604
+ readonly itemType: {
2605
+ readonly kind: "Identifier";
2606
+ };
2607
+ };
2608
+ };
2609
+ readonly label: {
2610
+ readonly kind: "Shacl";
2611
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
2612
+ readonly type: {
2613
+ readonly kind: "Option";
2614
+ readonly itemType: {
2615
+ readonly kind: "String";
2616
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2617
+ };
2618
+ };
2619
+ };
2620
+ readonly message: {
2621
+ readonly kind: "Shacl";
2622
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#message">;
2623
+ readonly type: {
2624
+ readonly kind: "Option";
2625
+ readonly itemType: {
2626
+ readonly kind: "String";
2627
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2628
+ };
2629
+ };
2630
+ };
2631
+ readonly nodeKind: {
2632
+ readonly kind: "Shacl";
2633
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#nodeKind">;
2634
+ readonly type: {
2635
+ readonly kind: "Option";
2636
+ readonly itemType: {
2637
+ readonly kind: "Iri";
2638
+ readonly in: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#BlankNode">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrIRI">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrLiteral">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#IRI">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#IRIOrLiteral">, import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Literal">];
2639
+ };
2640
+ };
2641
+ };
2642
+ readonly properties: {
2643
+ readonly kind: "Shacl";
2644
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#property">;
2645
+ readonly type: {
2646
+ readonly kind: "Set";
2647
+ readonly itemType: {
2648
+ readonly kind: "Identifier";
2649
+ };
2650
+ readonly minCount: 1;
2651
+ };
2652
+ };
2653
+ readonly rdfType: {
2654
+ readonly kind: "Shacl";
2655
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#rdfType">;
2656
+ readonly type: {
2657
+ readonly kind: "Option";
2658
+ readonly itemType: {
2659
+ readonly kind: "Iri";
2660
+ };
2661
+ };
2662
+ };
2663
+ readonly severity: {
2664
+ readonly kind: "Shacl";
2665
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#severity">;
2666
+ readonly type: {
2667
+ kind: "Option";
2668
+ readonly itemType: {
2669
+ kind: "Iri";
2670
+ in: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation">[];
2671
+ inValues: readonly ["http://www.w3.org/ns/shacl#Info", "http://www.w3.org/ns/shacl#Warning", "http://www.w3.org/ns/shacl#Violation"];
2672
+ };
2673
+ };
2674
+ };
2675
+ readonly shaclmateName: {
2676
+ readonly kind: "Shacl";
2677
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#name">;
2678
+ readonly type: {
2679
+ readonly kind: "Option";
2680
+ readonly itemType: {
2681
+ readonly kind: "String";
2682
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2683
+ };
2684
+ };
2685
+ };
2686
+ readonly subClassOf: {
2687
+ readonly kind: "Shacl";
2688
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#subClassOf">;
2689
+ readonly type: {
2690
+ readonly kind: "Set";
2691
+ readonly itemType: {
2692
+ readonly kind: "Iri";
2693
+ };
2694
+ };
2695
+ };
2696
+ readonly toRdfTypes: {
2697
+ readonly kind: "Shacl";
2698
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#toRdfType">;
2699
+ readonly type: {
2700
+ readonly kind: "Set";
2701
+ readonly itemType: {
2702
+ readonly kind: "Iri";
2703
+ };
2704
+ };
2705
+ };
2706
+ readonly tsImports: {
2707
+ readonly kind: "Shacl";
2708
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#tsImport">;
2709
+ readonly type: {
2710
+ readonly kind: "Set";
2711
+ readonly itemType: {
2712
+ readonly kind: "String";
2713
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2714
+ };
2715
+ };
2716
+ };
2717
+ readonly types: {
2718
+ readonly kind: "Shacl";
2719
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/1999/02/22-rdf-syntax-ns#type">;
2720
+ readonly type: {
2721
+ readonly kind: "Set";
2722
+ readonly itemType: {
2723
+ readonly kind: "Iri";
2724
+ };
2725
+ };
2726
+ };
2727
+ };
2728
+ };
2729
+ };
2730
+ };
2731
+ readonly label: {
2732
+ readonly kind: "Shacl";
2733
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
2734
+ readonly type: {
2735
+ readonly kind: "Option";
2736
+ readonly itemType: {
2737
+ readonly kind: "String";
2738
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2739
+ };
2740
+ };
2741
+ };
2742
+ readonly name: {
2743
+ readonly kind: "Shacl";
2744
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#name">;
2745
+ readonly type: {
2746
+ readonly kind: "Option";
2747
+ readonly itemType: {
2748
+ readonly kind: "String";
2749
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2750
+ };
2751
+ };
2752
+ };
2753
+ readonly parameter: {
2754
+ readonly kind: "Shacl";
2755
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#parameter">;
2756
+ readonly type: {
2757
+ kind: "Option";
2758
+ readonly itemType: {
2759
+ kind: "Identifier";
2760
+ };
2761
+ };
2762
+ };
2763
+ readonly result: {
2764
+ readonly kind: "Shacl";
2765
+ readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://purl.org/shaclmate/ontology#result">;
2766
+ readonly type: {
2767
+ kind: "Option";
2768
+ readonly itemType: {
2769
+ kind: "Identifier";
2770
+ };
2771
+ };
2772
+ };
2773
+ };
2774
+ };
2775
+ };
2776
+ };
2777
+ };
2778
+ };
2779
+ type Schema = typeof schema;
2780
+ const toStringRecord: $ToStringRecordFunction<Omit<Service, "comment" | "operations">>;
1549
2781
  }
1550
2782
  export type Severity = NamedNode<(typeof Severity.schema)["inValues"][number]>;
1551
2783
  export declare namespace Severity {
@@ -1554,39 +2786,36 @@ export declare namespace Severity {
1554
2786
  in: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#Info" | "http://www.w3.org/ns/shacl#Warning" | "http://www.w3.org/ns/shacl#Violation">[];
1555
2787
  inValues: readonly ["http://www.w3.org/ns/shacl#Info", "http://www.w3.org/ns/shacl#Warning", "http://www.w3.org/ns/shacl#Violation"];
1556
2788
  };
2789
+ type Schema = typeof schema;
1557
2790
  }
1558
2791
  export type ValidationReport = {
1559
2792
  readonly $identifier: () => ValidationReport.Identifier;
1560
- readonly $type: "ValidationReport";
1561
2793
  readonly conforms: boolean;
1562
2794
  readonly results: readonly ValidationResult[];
1563
2795
  readonly shapesGraphWellFormed: Maybe<boolean>;
1564
2796
  };
1565
2797
  export declare namespace ValidationReport {
1566
- const _fromRdfResource: $_FromRdfResourceFunction<ValidationReport>;
1567
- const $toString: (_validationReport: ValidationReport) => string;
1568
- const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters: {
1569
- readonly $defaultNamespace?: $DefaultNamespaceT;
1570
- readonly $identifier?: (() => ValidationReport.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
1571
- readonly conforms: boolean;
1572
- readonly results?: ValidationResult | readonly ValidationResult[];
1573
- readonly shapesGraphWellFormed?: boolean | Maybe<boolean>;
1574
- }) => Either<Error, ValidationReport>;
1575
- function createUnsafe<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters: {
2798
+ const _fromRdfResource: $_FromRdfResourceFunction<ValidationReport.Discriminated>;
2799
+ const $toString: $ToStringFunction<Pick<ValidationReport, "$identifier">>;
2800
+ const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters: ValidationReport.CreateParameters<$DefaultNamespaceT>) => Either<Error, ValidationReport.Discriminated>;
2801
+ type CreateParameters<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder> = {
1576
2802
  readonly $defaultNamespace?: $DefaultNamespaceT;
1577
2803
  readonly $identifier?: (() => ValidationReport.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
1578
2804
  readonly conforms: boolean;
1579
2805
  readonly results?: ValidationResult | readonly ValidationResult[];
1580
2806
  readonly shapesGraphWellFormed?: boolean | Maybe<boolean>;
1581
- }): ValidationReport;
1582
- const fromRdfResource: $FromRdfResourceFunction<ValidationReport>;
1583
- const fromRdfResourceValues: $FromRdfResourceValuesFunction<ValidationReport, ValidationReport.Schema>;
2807
+ };
2808
+ const createUnsafe: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters: ValidationReport.CreateParameters<$DefaultNamespaceT>) => ValidationReport.Discriminated;
2809
+ type Discriminated = ValidationReport & {
2810
+ readonly $type: "ValidationReport";
2811
+ };
2812
+ const fromRdfResource: $FromRdfResourceFunction<ValidationReport.Discriminated>;
2813
+ const fromRdfResourceValues: $FromRdfResourceValuesFunction<ValidationReport.Discriminated, ValidationReport.Schema>;
1584
2814
  type Identifier = BlankNode | NamedNode;
1585
2815
  namespace Identifier {
1586
2816
  const parse: (value: string) => Either<Error, import("@rdfx/string/dist/Identifier.js").Identifier>;
1587
- const stringify: typeof NTriplesTerm.stringify;
1588
2817
  }
1589
- const isValidationReport: (object: $Object) => object is ValidationReport;
2818
+ const isValidationReport: $ObjectTypeGuardFunction<ValidationReport.Discriminated>;
1590
2819
  const schema: {
1591
2820
  readonly properties: {
1592
2821
  readonly $identifier: {
@@ -1600,15 +2829,12 @@ export declare namespace ValidationReport {
1600
2829
  readonly kind: "RdfType";
1601
2830
  readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationReport">];
1602
2831
  };
1603
- readonly $type: {
1604
- readonly kind: "Discriminant";
1605
- readonly value: "ValidationReport";
1606
- };
1607
2832
  readonly conforms: {
1608
2833
  readonly kind: "Shacl";
1609
2834
  readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#conforms">;
1610
2835
  readonly type: {
1611
2836
  readonly kind: "Boolean";
2837
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
1612
2838
  };
1613
2839
  };
1614
2840
  readonly results: {
@@ -1629,10 +2855,6 @@ export declare namespace ValidationReport {
1629
2855
  readonly kind: "RdfType";
1630
2856
  readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationResult">];
1631
2857
  };
1632
- readonly $type: {
1633
- readonly kind: "Discriminant";
1634
- readonly value: "ValidationResult";
1635
- };
1636
2858
  readonly details: {
1637
2859
  readonly kind: "Shacl";
1638
2860
  readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#detail">;
@@ -1659,6 +2881,7 @@ export declare namespace ValidationReport {
1659
2881
  readonly kind: "Option";
1660
2882
  readonly itemType: {
1661
2883
  readonly kind: "String";
2884
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1662
2885
  };
1663
2886
  };
1664
2887
  };
@@ -1718,17 +2941,17 @@ export declare namespace ValidationReport {
1718
2941
  readonly kind: "Option";
1719
2942
  readonly itemType: {
1720
2943
  readonly kind: "Boolean";
2944
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
1721
2945
  };
1722
2946
  };
1723
2947
  };
1724
2948
  };
1725
2949
  };
1726
2950
  type Schema = typeof schema;
1727
- const toStringRecord: (_validationReport: ValidationReport) => Record<string, string>;
2951
+ const toStringRecord: $ToStringRecordFunction<Pick<ValidationReport, "$identifier">>;
1728
2952
  }
1729
2953
  export type ValidationResult = {
1730
2954
  readonly $identifier: () => ValidationResult.Identifier;
1731
- readonly $type: "ValidationResult";
1732
2955
  readonly details: readonly (BlankNode | NamedNode | Literal)[];
1733
2956
  readonly focusNode: BlankNode | NamedNode | Literal;
1734
2957
  readonly message: Maybe<string>;
@@ -1739,9 +2962,10 @@ export type ValidationResult = {
1739
2962
  readonly value: Maybe<BlankNode | NamedNode | Literal>;
1740
2963
  };
1741
2964
  export declare namespace ValidationResult {
1742
- const _fromRdfResource: $_FromRdfResourceFunction<ValidationResult>;
1743
- const $toString: (_validationResult: ValidationResult) => string;
1744
- const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters: {
2965
+ const _fromRdfResource: $_FromRdfResourceFunction<ValidationResult.Discriminated>;
2966
+ const $toString: $ToStringFunction<Pick<ValidationResult, "$identifier">>;
2967
+ const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters: ValidationResult.CreateParameters<$DefaultNamespaceT>) => Either<Error, ValidationResult.Discriminated>;
2968
+ type CreateParameters<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder> = {
1745
2969
  readonly $defaultNamespace?: $DefaultNamespaceT;
1746
2970
  readonly $identifier?: (() => ValidationResult.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
1747
2971
  readonly details?: (BlankNode | NamedNode | Literal) | readonly (BlankNode | NamedNode | Literal)[];
@@ -1752,27 +2976,18 @@ export declare namespace ValidationResult {
1752
2976
  readonly sourceConstraintComponent: (keyof $DefaultNamespaceT & string) | NamedNode;
1753
2977
  readonly sourceShape?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<BlankNode | NamedNode>;
1754
2978
  readonly value?: (BlankNode | NamedNode | Literal) | Maybe<BlankNode | NamedNode | Literal>;
1755
- }) => Either<Error, ValidationResult>;
1756
- function createUnsafe<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters: {
1757
- readonly $defaultNamespace?: $DefaultNamespaceT;
1758
- readonly $identifier?: (() => ValidationResult.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
1759
- readonly details?: (BlankNode | NamedNode | Literal) | readonly (BlankNode | NamedNode | Literal)[];
1760
- readonly focusNode: BlankNode | NamedNode | Literal;
1761
- readonly message?: string | Maybe<string>;
1762
- readonly path?: $PropertyPath | Maybe<$PropertyPath>;
1763
- readonly severity: Severity["value"] | Severity;
1764
- readonly sourceConstraintComponent: (keyof $DefaultNamespaceT & string) | NamedNode;
1765
- readonly sourceShape?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<BlankNode | NamedNode>;
1766
- readonly value?: (BlankNode | NamedNode | Literal) | Maybe<BlankNode | NamedNode | Literal>;
1767
- }): ValidationResult;
1768
- const fromRdfResource: $FromRdfResourceFunction<ValidationResult>;
1769
- const fromRdfResourceValues: $FromRdfResourceValuesFunction<ValidationResult, ValidationResult.Schema>;
2979
+ };
2980
+ const createUnsafe: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters: ValidationResult.CreateParameters<$DefaultNamespaceT>) => ValidationResult.Discriminated;
2981
+ type Discriminated = ValidationResult & {
2982
+ readonly $type: "ValidationResult";
2983
+ };
2984
+ const fromRdfResource: $FromRdfResourceFunction<ValidationResult.Discriminated>;
2985
+ const fromRdfResourceValues: $FromRdfResourceValuesFunction<ValidationResult.Discriminated, ValidationResult.Schema>;
1770
2986
  type Identifier = BlankNode | NamedNode;
1771
2987
  namespace Identifier {
1772
2988
  const parse: (value: string) => Either<Error, import("@rdfx/string/dist/Identifier.js").Identifier>;
1773
- const stringify: typeof NTriplesTerm.stringify;
1774
2989
  }
1775
- const isValidationResult: (object: $Object) => object is ValidationResult;
2990
+ const isValidationResult: $ObjectTypeGuardFunction<ValidationResult.Discriminated>;
1776
2991
  const schema: {
1777
2992
  readonly properties: {
1778
2993
  readonly $identifier: {
@@ -1786,10 +3001,6 @@ export declare namespace ValidationResult {
1786
3001
  readonly kind: "RdfType";
1787
3002
  readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#ValidationResult">];
1788
3003
  };
1789
- readonly $type: {
1790
- readonly kind: "Discriminant";
1791
- readonly value: "ValidationResult";
1792
- };
1793
3004
  readonly details: {
1794
3005
  readonly kind: "Shacl";
1795
3006
  readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#detail">;
@@ -1816,6 +3027,7 @@ export declare namespace ValidationResult {
1816
3027
  readonly kind: "Option";
1817
3028
  readonly itemType: {
1818
3029
  readonly kind: "String";
3030
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1819
3031
  };
1820
3032
  };
1821
3033
  };
@@ -1867,19 +3079,18 @@ export declare namespace ValidationResult {
1867
3079
  };
1868
3080
  };
1869
3081
  type Schema = typeof schema;
1870
- const toStringRecord: (_validationResult: ValidationResult) => Record<string, string>;
3082
+ const toStringRecord: $ToStringRecordFunction<Pick<ValidationResult, "$identifier">>;
1871
3083
  }
1872
- export type Shape = NodeShape | PropertyShape;
3084
+ export type Shape = NodeShape.Discriminated | PropertyShape.Discriminated;
1873
3085
  export declare namespace Shape {
1874
- const $toString: (value: Shape) => string;
3086
+ const $toString: $ToStringFunction<Shape>;
1875
3087
  const fromRdfResource: $FromRdfResourceFunction<Shape>;
1876
- const fromRdfResourceValues: $FromRdfResourceValuesFunction<Shape, typeof Shape.schema>;
3088
+ const fromRdfResourceValues: $FromRdfResourceValuesFunction<Shape, Shape.Schema>;
1877
3089
  type Identifier = BlankNode | NamedNode;
1878
3090
  namespace Identifier {
1879
3091
  const parse: (value: string) => Either<Error, import("@rdfx/string/dist/Identifier.js").Identifier>;
1880
- const stringify: typeof NTriplesTerm.stringify;
1881
3092
  }
1882
- function isShape(object: $Object): object is Shape;
3093
+ const isShape: $ObjectTypeGuardFunction<Shape>;
1883
3094
  const schema: {
1884
3095
  readonly kind: "ObjectDiscriminatedUnion";
1885
3096
  readonly members: {
@@ -1898,10 +3109,6 @@ export declare namespace Shape {
1898
3109
  readonly kind: "RdfType";
1899
3110
  readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#NodeShape">];
1900
3111
  };
1901
- readonly $type: {
1902
- readonly kind: "Discriminant";
1903
- readonly value: "NodeShape";
1904
- };
1905
3112
  readonly and: {
1906
3113
  readonly kind: "Shacl";
1907
3114
  readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#and">;
@@ -1932,6 +3139,7 @@ export declare namespace Shape {
1932
3139
  readonly kind: "Option";
1933
3140
  readonly itemType: {
1934
3141
  readonly kind: "Boolean";
3142
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
1935
3143
  };
1936
3144
  };
1937
3145
  };
@@ -1942,6 +3150,7 @@ export declare namespace Shape {
1942
3150
  readonly kind: "Option";
1943
3151
  readonly itemType: {
1944
3152
  readonly kind: "String";
3153
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1945
3154
  };
1946
3155
  };
1947
3156
  };
@@ -1962,6 +3171,7 @@ export declare namespace Shape {
1962
3171
  readonly kind: "Option";
1963
3172
  readonly itemType: {
1964
3173
  readonly kind: "Boolean";
3174
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
1965
3175
  };
1966
3176
  };
1967
3177
  };
@@ -1972,6 +3182,7 @@ export declare namespace Shape {
1972
3182
  readonly kind: "Option";
1973
3183
  readonly itemType: {
1974
3184
  readonly kind: "String";
3185
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1975
3186
  };
1976
3187
  };
1977
3188
  };
@@ -1982,6 +3193,7 @@ export declare namespace Shape {
1982
3193
  readonly kind: "Option";
1983
3194
  readonly itemType: {
1984
3195
  readonly kind: "Boolean";
3196
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
1985
3197
  };
1986
3198
  };
1987
3199
  };
@@ -1992,6 +3204,7 @@ export declare namespace Shape {
1992
3204
  readonly kind: "Option";
1993
3205
  readonly itemType: {
1994
3206
  readonly kind: "String";
3207
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
1995
3208
  };
1996
3209
  };
1997
3210
  };
@@ -2023,6 +3236,7 @@ export declare namespace Shape {
2023
3236
  readonly kind: "DefaultValue";
2024
3237
  readonly itemType: {
2025
3238
  readonly kind: "Boolean";
3239
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
2026
3240
  };
2027
3241
  readonly defaultValue: import("@rdfx/data-factory/dist/Literal.js").Literal;
2028
3242
  };
@@ -2071,6 +3285,7 @@ export declare namespace Shape {
2071
3285
  readonly kind: "Option";
2072
3286
  readonly itemType: {
2073
3287
  readonly kind: "String";
3288
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2074
3289
  };
2075
3290
  };
2076
3291
  };
@@ -2083,6 +3298,7 @@ export declare namespace Shape {
2083
3298
  readonly kind: "List";
2084
3299
  readonly itemType: {
2085
3300
  readonly kind: "String";
3301
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2086
3302
  };
2087
3303
  };
2088
3304
  };
@@ -2114,6 +3330,7 @@ export declare namespace Shape {
2114
3330
  readonly kind: "Option";
2115
3331
  readonly itemType: {
2116
3332
  readonly kind: "BigInt";
3333
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#integer">;
2117
3334
  };
2118
3335
  };
2119
3336
  };
@@ -2124,6 +3341,7 @@ export declare namespace Shape {
2124
3341
  readonly kind: "Option";
2125
3342
  readonly itemType: {
2126
3343
  readonly kind: "String";
3344
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2127
3345
  };
2128
3346
  };
2129
3347
  };
@@ -2154,6 +3372,7 @@ export declare namespace Shape {
2154
3372
  readonly kind: "Option";
2155
3373
  readonly itemType: {
2156
3374
  readonly kind: "BigInt";
3375
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#integer">;
2157
3376
  };
2158
3377
  };
2159
3378
  };
@@ -2164,6 +3383,7 @@ export declare namespace Shape {
2164
3383
  readonly kind: "Option";
2165
3384
  readonly itemType: {
2166
3385
  readonly kind: "Boolean";
3386
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
2167
3387
  };
2168
3388
  };
2169
3389
  };
@@ -2218,6 +3438,7 @@ export declare namespace Shape {
2218
3438
  readonly kind: "Option";
2219
3439
  readonly itemType: {
2220
3440
  readonly kind: "String";
3441
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2221
3442
  };
2222
3443
  };
2223
3444
  };
@@ -2260,6 +3481,7 @@ export declare namespace Shape {
2260
3481
  readonly kind: "Option";
2261
3482
  readonly itemType: {
2262
3483
  readonly kind: "String";
3484
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2263
3485
  };
2264
3486
  };
2265
3487
  };
@@ -2331,6 +3553,7 @@ export declare namespace Shape {
2331
3553
  readonly kind: "Set";
2332
3554
  readonly itemType: {
2333
3555
  readonly kind: "String";
3556
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2334
3557
  };
2335
3558
  };
2336
3559
  };
@@ -2375,10 +3598,6 @@ export declare namespace Shape {
2375
3598
  readonly kind: "RdfType";
2376
3599
  readonly toRdfTypes: readonly [import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#PropertyShape">];
2377
3600
  };
2378
- readonly $type: {
2379
- readonly kind: "Discriminant";
2380
- readonly value: "PropertyShape";
2381
- };
2382
3601
  readonly and: {
2383
3602
  readonly kind: "Shacl";
2384
3603
  readonly path: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/ns/shacl#and">;
@@ -2409,6 +3628,7 @@ export declare namespace Shape {
2409
3628
  readonly kind: "Option";
2410
3629
  readonly itemType: {
2411
3630
  readonly kind: "String";
3631
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2412
3632
  };
2413
3633
  };
2414
3634
  };
@@ -2429,6 +3649,7 @@ export declare namespace Shape {
2429
3649
  readonly kind: "Option";
2430
3650
  readonly itemType: {
2431
3651
  readonly kind: "Boolean";
3652
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
2432
3653
  };
2433
3654
  };
2434
3655
  };
@@ -2450,6 +3671,7 @@ export declare namespace Shape {
2450
3671
  readonly kind: "Option";
2451
3672
  readonly itemType: {
2452
3673
  readonly kind: "String";
3674
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2453
3675
  };
2454
3676
  };
2455
3677
  };
@@ -2470,6 +3692,7 @@ export declare namespace Shape {
2470
3692
  readonly kind: "DefaultValue";
2471
3693
  readonly itemType: {
2472
3694
  readonly kind: "Boolean";
3695
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
2473
3696
  };
2474
3697
  readonly defaultValue: import("@rdfx/data-factory/dist/Literal.js").Literal;
2475
3698
  };
@@ -2491,6 +3714,7 @@ export declare namespace Shape {
2491
3714
  readonly kind: "Option";
2492
3715
  readonly itemType: {
2493
3716
  readonly kind: "String";
3717
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2494
3718
  };
2495
3719
  };
2496
3720
  };
@@ -2522,6 +3746,7 @@ export declare namespace Shape {
2522
3746
  readonly kind: "DefaultValue";
2523
3747
  readonly itemType: {
2524
3748
  readonly kind: "Boolean";
3749
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
2525
3750
  };
2526
3751
  readonly defaultValue: import("@rdfx/data-factory/dist/Literal.js").Literal;
2527
3752
  };
@@ -2557,6 +3782,7 @@ export declare namespace Shape {
2557
3782
  readonly kind: "Option";
2558
3783
  readonly itemType: {
2559
3784
  readonly kind: "String";
3785
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2560
3786
  };
2561
3787
  };
2562
3788
  };
@@ -2569,6 +3795,7 @@ export declare namespace Shape {
2569
3795
  readonly kind: "List";
2570
3796
  readonly itemType: {
2571
3797
  readonly kind: "String";
3798
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2572
3799
  };
2573
3800
  };
2574
3801
  };
@@ -2600,6 +3827,7 @@ export declare namespace Shape {
2600
3827
  readonly kind: "Option";
2601
3828
  readonly itemType: {
2602
3829
  readonly kind: "BigInt";
3830
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#integer">;
2603
3831
  };
2604
3832
  };
2605
3833
  };
@@ -2630,6 +3858,7 @@ export declare namespace Shape {
2630
3858
  readonly kind: "Option";
2631
3859
  readonly itemType: {
2632
3860
  readonly kind: "BigInt";
3861
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#integer">;
2633
3862
  };
2634
3863
  };
2635
3864
  };
@@ -2640,6 +3869,7 @@ export declare namespace Shape {
2640
3869
  readonly kind: "Option";
2641
3870
  readonly itemType: {
2642
3871
  readonly kind: "String";
3872
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2643
3873
  };
2644
3874
  };
2645
3875
  };
@@ -2650,6 +3880,7 @@ export declare namespace Shape {
2650
3880
  readonly kind: "Option";
2651
3881
  readonly itemType: {
2652
3882
  readonly kind: "BigInt";
3883
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#integer">;
2653
3884
  };
2654
3885
  };
2655
3886
  };
@@ -2680,6 +3911,7 @@ export declare namespace Shape {
2680
3911
  readonly kind: "Option";
2681
3912
  readonly itemType: {
2682
3913
  readonly kind: "BigInt";
3914
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#integer">;
2683
3915
  };
2684
3916
  };
2685
3917
  };
@@ -2690,6 +3922,7 @@ export declare namespace Shape {
2690
3922
  readonly kind: "Option";
2691
3923
  readonly itemType: {
2692
3924
  readonly kind: "Boolean";
3925
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
2693
3926
  };
2694
3927
  };
2695
3928
  };
@@ -2700,6 +3933,7 @@ export declare namespace Shape {
2700
3933
  readonly kind: "Option";
2701
3934
  readonly itemType: {
2702
3935
  readonly kind: "String";
3936
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2703
3937
  };
2704
3938
  };
2705
3939
  };
@@ -2754,6 +3988,7 @@ export declare namespace Shape {
2754
3988
  readonly kind: "Option";
2755
3989
  readonly itemType: {
2756
3990
  readonly kind: "Float";
3991
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#double">;
2757
3992
  };
2758
3993
  };
2759
3994
  };
@@ -2769,6 +4004,7 @@ export declare namespace Shape {
2769
4004
  readonly kind: "Option";
2770
4005
  readonly itemType: {
2771
4006
  readonly kind: "String";
4007
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2772
4008
  };
2773
4009
  };
2774
4010
  };
@@ -2779,6 +4015,7 @@ export declare namespace Shape {
2779
4015
  readonly kind: "Option";
2780
4016
  readonly itemType: {
2781
4017
  readonly kind: "BigInt";
4018
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#integer">;
2782
4019
  };
2783
4020
  };
2784
4021
  };
@@ -2789,6 +4026,7 @@ export declare namespace Shape {
2789
4026
  readonly kind: "Option";
2790
4027
  readonly itemType: {
2791
4028
  readonly kind: "BigInt";
4029
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#integer">;
2792
4030
  };
2793
4031
  };
2794
4032
  };
@@ -2809,6 +4047,7 @@ export declare namespace Shape {
2809
4047
  readonly kind: "Option";
2810
4048
  readonly itemType: {
2811
4049
  readonly kind: "Boolean";
4050
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
2812
4051
  };
2813
4052
  };
2814
4053
  };
@@ -2841,6 +4080,7 @@ export declare namespace Shape {
2841
4080
  readonly kind: "Option";
2842
4081
  readonly itemType: {
2843
4082
  readonly kind: "String";
4083
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2844
4084
  };
2845
4085
  };
2846
4086
  };
@@ -2892,6 +4132,7 @@ export declare namespace Shape {
2892
4132
  readonly kind: "Option";
2893
4133
  readonly itemType: {
2894
4134
  readonly kind: "Boolean";
4135
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
2895
4136
  };
2896
4137
  };
2897
4138
  };
@@ -2943,6 +4184,7 @@ export declare namespace Shape {
2943
4184
  readonly kind: "Option";
2944
4185
  readonly itemType: {
2945
4186
  readonly kind: "String";
4187
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2946
4188
  };
2947
4189
  };
2948
4190
  };
@@ -2963,6 +4205,7 @@ export declare namespace Shape {
2963
4205
  readonly kind: "Option";
2964
4206
  readonly itemType: {
2965
4207
  readonly kind: "Boolean";
4208
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
2966
4209
  };
2967
4210
  };
2968
4211
  };
@@ -2973,6 +4216,7 @@ export declare namespace Shape {
2973
4216
  readonly kind: "Option";
2974
4217
  readonly itemType: {
2975
4218
  readonly kind: "String";
4219
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
2976
4220
  };
2977
4221
  };
2978
4222
  };
@@ -2994,6 +4238,7 @@ export declare namespace Shape {
2994
4238
  readonly kind: "DefaultValue";
2995
4239
  readonly itemType: {
2996
4240
  readonly kind: "Boolean";
4241
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
2997
4242
  };
2998
4243
  readonly defaultValue: import("@rdfx/data-factory/dist/Literal.js").Literal;
2999
4244
  };
@@ -3029,6 +4274,7 @@ export declare namespace Shape {
3029
4274
  readonly kind: "Option";
3030
4275
  readonly itemType: {
3031
4276
  readonly kind: "String";
4277
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
3032
4278
  };
3033
4279
  };
3034
4280
  };
@@ -3041,6 +4287,7 @@ export declare namespace Shape {
3041
4287
  readonly kind: "List";
3042
4288
  readonly itemType: {
3043
4289
  readonly kind: "String";
4290
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
3044
4291
  };
3045
4292
  };
3046
4293
  };
@@ -3072,6 +4319,7 @@ export declare namespace Shape {
3072
4319
  readonly kind: "Option";
3073
4320
  readonly itemType: {
3074
4321
  readonly kind: "BigInt";
4322
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#integer">;
3075
4323
  };
3076
4324
  };
3077
4325
  };
@@ -3082,6 +4330,7 @@ export declare namespace Shape {
3082
4330
  readonly kind: "Option";
3083
4331
  readonly itemType: {
3084
4332
  readonly kind: "String";
4333
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
3085
4334
  };
3086
4335
  };
3087
4336
  };
@@ -3112,6 +4361,7 @@ export declare namespace Shape {
3112
4361
  readonly kind: "Option";
3113
4362
  readonly itemType: {
3114
4363
  readonly kind: "BigInt";
4364
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#integer">;
3115
4365
  };
3116
4366
  };
3117
4367
  };
@@ -3122,6 +4372,7 @@ export declare namespace Shape {
3122
4372
  readonly kind: "Option";
3123
4373
  readonly itemType: {
3124
4374
  readonly kind: "Boolean";
4375
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
3125
4376
  };
3126
4377
  };
3127
4378
  };
@@ -3176,6 +4427,7 @@ export declare namespace Shape {
3176
4427
  readonly kind: "Option";
3177
4428
  readonly itemType: {
3178
4429
  readonly kind: "String";
4430
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
3179
4431
  };
3180
4432
  };
3181
4433
  };
@@ -3198,6 +4450,7 @@ export declare namespace Shape {
3198
4450
  readonly kind: "Option";
3199
4451
  readonly itemType: {
3200
4452
  readonly kind: "String";
4453
+ readonly datatype: import("@rdfx/data-factory/dist/NamedNode.js").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
3201
4454
  };
3202
4455
  };
3203
4456
  };
@@ -3257,8 +4510,9 @@ export declare namespace Shape {
3257
4510
  };
3258
4511
  };
3259
4512
  };
4513
+ type Schema = typeof schema;
3260
4514
  }
3261
- export type $Object = NodeShape | Ontology | PropertyGroup | PropertyShape | ValidationReport | ValidationResult;
4515
+ export type $Object = NodeShape.Discriminated | Ontology.Discriminated | Operation.Discriminated | OperationError.Discriminated | OperationErrorHttpBinding.Discriminated | OperationHttpBinding.Discriminated | PropertyGroup.Discriminated | PropertyShape.Discriminated | Service.Discriminated | ValidationReport.Discriminated | ValidationResult.Discriminated;
3262
4516
  export declare namespace $Object {
3263
4517
  function $toString(object: $Object): string;
3264
4518
  }