@shaclmate/compiler 4.0.8 → 4.0.10

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 (372) hide show
  1. package/dist/Compiler.d.ts +1 -4
  2. package/dist/Compiler.js +1 -5
  3. package/dist/ShapesGraphToAstTransformer.d.ts +2 -11
  4. package/dist/ShapesGraphToAstTransformer.js +25 -27
  5. package/dist/_ShapesGraphToAstTransformer/defaultNodeShapeNodeKinds.d.ts +3 -0
  6. package/dist/_ShapesGraphToAstTransformer/defaultNodeShapeNodeKinds.js +5 -0
  7. package/dist/_ShapesGraphToAstTransformer/shapeAstTypeName.d.ts +4 -0
  8. package/dist/_ShapesGraphToAstTransformer/shapeAstTypeName.js +27 -0
  9. package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstObjectTypeProperty.js +74 -19
  10. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.d.ts +1 -1
  11. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.js +45 -91
  12. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.d.ts +11 -0
  13. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.js +146 -0
  14. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstObjectType.d.ts +7 -0
  15. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstObjectType.js +182 -0
  16. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstTermType.js +9 -7
  17. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.d.ts +3 -5
  18. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.js +33 -10
  19. package/dist/ast/AbstractCompoundType.d.ts +26 -8
  20. package/dist/ast/AbstractCompoundType.js +84 -16
  21. package/dist/ast/AbstractContainerType.d.ts +2 -4
  22. package/dist/ast/AbstractContainerType.js +3 -4
  23. package/dist/ast/AbstractLazyObjectType.d.ts +1 -0
  24. package/dist/ast/AbstractLazyObjectType.js +3 -0
  25. package/dist/ast/AbstractTermType.d.ts +1 -0
  26. package/dist/ast/AbstractTermType.js +1 -0
  27. package/dist/ast/AbstractType.d.ts +16 -1
  28. package/dist/ast/AbstractType.js +11 -1
  29. package/dist/ast/Ast.d.ts +5 -5
  30. package/dist/ast/BlankNodeType.d.ts +1 -1
  31. package/dist/ast/DefaultValueType.d.ts +1 -2
  32. package/dist/ast/DefaultValueType.js +2 -0
  33. package/dist/ast/IdentifierType.d.ts +1 -1
  34. package/dist/ast/IntersectionType.d.ts +7 -2
  35. package/dist/ast/IntersectionType.js +8 -0
  36. package/dist/ast/ListType.d.ts +2 -9
  37. package/dist/ast/ListType.js +1 -9
  38. package/dist/ast/LiteralType.d.ts +1 -0
  39. package/dist/ast/LiteralType.js +26 -0
  40. package/dist/ast/ObjectCompoundType.d.ts +12 -0
  41. package/dist/ast/ObjectCompoundType.js +88 -0
  42. package/dist/ast/ObjectIntersectionType.d.ts +3 -7
  43. package/dist/ast/ObjectIntersectionType.js +1 -7
  44. package/dist/ast/ObjectType.d.ts +14 -31
  45. package/dist/ast/ObjectType.js +41 -73
  46. package/dist/ast/ObjectUnionType.d.ts +3 -7
  47. package/dist/ast/ObjectUnionType.js +1 -7
  48. package/dist/ast/OptionType.d.ts +1 -2
  49. package/dist/ast/OptionType.js +2 -0
  50. package/dist/ast/SetType.d.ts +1 -2
  51. package/dist/ast/SetType.js +2 -0
  52. package/dist/ast/Type.d.ts +1 -4
  53. package/dist/ast/Type.js +0 -6
  54. package/dist/ast/UnionType.d.ts +11 -6
  55. package/dist/ast/UnionType.js +6 -4
  56. package/dist/ast/index.d.ts +1 -2
  57. package/dist/ast/index.js +1 -2
  58. package/dist/generators/json/AstJsonGenerator.js +17 -15
  59. package/dist/generators/ts/AbstractCollectionType.d.ts +1 -1
  60. package/dist/generators/ts/AbstractCollectionType.js +10 -12
  61. package/dist/generators/ts/AbstractContainerType.d.ts +9 -4
  62. package/dist/generators/ts/AbstractContainerType.js +10 -3
  63. package/dist/generators/ts/AbstractDateType.d.ts +2 -2
  64. package/dist/generators/ts/AbstractDateType.js +2 -2
  65. package/dist/generators/ts/AbstractIdentifierType.d.ts +1 -1
  66. package/dist/generators/ts/AbstractIdentifierType.js +1 -1
  67. package/dist/generators/ts/AbstractLazyObjectType.d.ts +13 -10
  68. package/dist/generators/ts/AbstractLazyObjectType.js +21 -16
  69. package/dist/generators/ts/AbstractNamedUnionType.d.ts +33 -0
  70. package/dist/generators/ts/AbstractNamedUnionType.js +195 -0
  71. package/dist/generators/ts/AbstractNumericType.d.ts +3 -3
  72. package/dist/generators/ts/AbstractNumericType.js +4 -4
  73. package/dist/generators/ts/AbstractTermType.d.ts +7 -4
  74. package/dist/generators/ts/AbstractTermType.js +7 -4
  75. package/dist/generators/ts/AbstractType.d.ts +34 -19
  76. package/dist/generators/ts/AbstractUnionType.d.ts +80 -0
  77. package/dist/generators/ts/AbstractUnionType.js +514 -0
  78. package/dist/generators/ts/AnonymousUnionType.d.ts +26 -0
  79. package/dist/generators/ts/AnonymousUnionType.js +56 -0
  80. package/dist/generators/ts/BigDecimalType.d.ts +4 -4
  81. package/dist/generators/ts/BigDecimalType.js +5 -5
  82. package/dist/generators/ts/BigIntType.d.ts +1 -1
  83. package/dist/generators/ts/BigIntType.js +1 -1
  84. package/dist/generators/ts/BlankNodeType.d.ts +2 -2
  85. package/dist/generators/ts/BlankNodeType.js +2 -2
  86. package/dist/generators/ts/BooleanType.d.ts +3 -3
  87. package/dist/generators/ts/BooleanType.js +3 -3
  88. package/dist/generators/ts/DateTimeType.d.ts +1 -1
  89. package/dist/generators/ts/DateTimeType.js +1 -1
  90. package/dist/generators/ts/DateType.d.ts +1 -1
  91. package/dist/generators/ts/DateType.js +1 -1
  92. package/dist/generators/ts/DefaultValueType.d.ts +5 -5
  93. package/dist/generators/ts/DefaultValueType.js +17 -16
  94. package/dist/generators/ts/IdentifierType.d.ts +2 -2
  95. package/dist/generators/ts/IdentifierType.js +2 -2
  96. package/dist/generators/ts/IriType.d.ts +2 -2
  97. package/dist/generators/ts/IriType.js +2 -2
  98. package/dist/generators/ts/LazyObjectOptionType.d.ts +1 -1
  99. package/dist/generators/ts/LazyObjectOptionType.js +10 -10
  100. package/dist/generators/ts/LazyObjectSetType.d.ts +1 -1
  101. package/dist/generators/ts/LazyObjectSetType.js +8 -8
  102. package/dist/generators/ts/LazyObjectType.d.ts +1 -1
  103. package/dist/generators/ts/LazyObjectType.js +9 -10
  104. package/dist/generators/ts/ListType.d.ts +9 -8
  105. package/dist/generators/ts/ListType.js +15 -14
  106. package/dist/generators/ts/LiteralType.d.ts +2 -2
  107. package/dist/generators/ts/LiteralType.js +3 -3
  108. package/dist/generators/ts/NamedObjectType.d.ts +126 -0
  109. package/dist/generators/ts/NamedObjectType.js +420 -0
  110. package/dist/generators/ts/NamedObjectUnionType.d.ts +35 -0
  111. package/dist/generators/ts/NamedObjectUnionType.js +217 -0
  112. package/dist/generators/ts/NamedUnionType.d.ts +11 -0
  113. package/dist/generators/ts/NamedUnionType.js +13 -0
  114. package/dist/generators/ts/OptionType.d.ts +5 -5
  115. package/dist/generators/ts/OptionType.js +12 -12
  116. package/dist/generators/ts/SetType.d.ts +4 -4
  117. package/dist/generators/ts/SetType.js +13 -11
  118. package/dist/generators/ts/StringType.d.ts +3 -3
  119. package/dist/generators/ts/StringType.js +3 -3
  120. package/dist/generators/ts/TermType.d.ts +2 -2
  121. package/dist/generators/ts/TermType.js +3 -3
  122. package/dist/generators/ts/TsGenerator.js +28 -20
  123. package/dist/generators/ts/Type.d.ts +5 -4
  124. package/dist/generators/ts/TypeFactory.d.ts +9 -7
  125. package/dist/generators/ts/TypeFactory.js +139 -112
  126. package/dist/generators/ts/ZodGenerator.js +18 -16
  127. package/dist/generators/ts/{_ObjectType → _NamedObjectType}/AbstractProperty.d.ts +9 -9
  128. package/dist/generators/ts/{_ObjectType → _NamedObjectType}/AbstractProperty.js +3 -3
  129. package/dist/generators/ts/{_ObjectType/TypeDiscriminantProperty.d.ts → _NamedObjectType/DiscriminantProperty.d.ts} +14 -14
  130. package/dist/generators/ts/{_ObjectType/TypeDiscriminantProperty.js → _NamedObjectType/DiscriminantProperty.js} +22 -20
  131. package/dist/generators/ts/{_ObjectType → _NamedObjectType}/IdentifierPrefixProperty.d.ts +3 -3
  132. package/dist/generators/ts/{_ObjectType → _NamedObjectType}/IdentifierPrefixProperty.js +6 -6
  133. package/dist/generators/ts/{_ObjectType → _NamedObjectType}/IdentifierProperty.d.ts +3 -3
  134. package/dist/generators/ts/{_ObjectType → _NamedObjectType}/IdentifierProperty.js +31 -28
  135. package/dist/generators/ts/_NamedObjectType/NamedObjectType_classDeclaration.d.ts +4 -0
  136. package/dist/generators/ts/{_ObjectType/ObjectType_classDeclaration.js → _NamedObjectType/NamedObjectType_classDeclaration.js} +15 -15
  137. package/dist/generators/ts/_NamedObjectType/NamedObjectType_createFunctionDeclaration.d.ts +5 -0
  138. package/dist/generators/ts/{_ObjectType/ObjectType_createFunctionDeclaration.js → _NamedObjectType/NamedObjectType_createFunctionDeclaration.js} +2 -2
  139. package/dist/generators/ts/_NamedObjectType/NamedObjectType_equalsFunctionOrMethodDeclaration.d.ts +5 -0
  140. package/dist/generators/ts/{_ObjectType/ObjectType_equalsFunctionOrMethodDeclaration.js → _NamedObjectType/NamedObjectType_equalsFunctionOrMethodDeclaration.js} +2 -2
  141. package/dist/generators/ts/_NamedObjectType/NamedObjectType_filterFunctionDeclaration.d.ts +4 -0
  142. package/dist/generators/ts/{_ObjectType/ObjectType_filterFunctionDeclaration.js → _NamedObjectType/NamedObjectType_filterFunctionDeclaration.js} +2 -2
  143. package/dist/generators/ts/_NamedObjectType/NamedObjectType_filterTypeDeclaration.d.ts +4 -0
  144. package/dist/generators/ts/{_ObjectType/ObjectType_filterTypeDeclaration.js → _NamedObjectType/NamedObjectType_filterTypeDeclaration.js} +2 -2
  145. package/dist/generators/ts/_NamedObjectType/NamedObjectType_focusSparqlConstructTriplesFunctionDeclaration.d.ts +5 -0
  146. package/dist/generators/ts/{_ObjectType/ObjectType_sparqlConstructTriplesFunctionDeclaration.js → _NamedObjectType/NamedObjectType_focusSparqlConstructTriplesFunctionDeclaration.js} +6 -5
  147. package/dist/generators/ts/_NamedObjectType/NamedObjectType_focusSparqlWherePatternsFunctionDeclaration.d.ts +5 -0
  148. package/dist/generators/ts/{_ObjectType/ObjectType_sparqlWherePatternsFunctionDeclarations.js → _NamedObjectType/NamedObjectType_focusSparqlWherePatternsFunctionDeclaration.js} +5 -5
  149. package/dist/generators/ts/_NamedObjectType/NamedObjectType_fromJsonFunctionDeclaration.d.ts +5 -0
  150. package/dist/generators/ts/_NamedObjectType/NamedObjectType_fromJsonFunctionDeclaration.js +20 -0
  151. package/dist/generators/ts/_NamedObjectType/NamedObjectType_fromRdfResourceFunctionDeclaration.d.ts +5 -0
  152. package/dist/generators/ts/{_ObjectType/ObjectType_fromRdfFunctionDeclaration.js → _NamedObjectType/NamedObjectType_fromRdfResourceFunctionDeclaration.js} +6 -7
  153. package/dist/generators/ts/_NamedObjectType/NamedObjectType_fromRdfResourceValuesFunctionDeclaration.d.ts +5 -0
  154. package/dist/generators/ts/_NamedObjectType/NamedObjectType_fromRdfResourceValuesFunctionDeclaration.js +20 -0
  155. package/dist/generators/ts/_NamedObjectType/NamedObjectType_fromRdfTypeVariableStatement.d.ts +5 -0
  156. package/dist/generators/ts/{_ObjectType/ObjectType_fromRdfTypeVariableStatement.js → _NamedObjectType/NamedObjectType_fromRdfTypeVariableStatement.js} +2 -2
  157. package/dist/generators/ts/_NamedObjectType/NamedObjectType_graphqlTypeVariableStatement.d.ts +5 -0
  158. package/dist/generators/ts/{_ObjectType/ObjectType_graphqlTypeVariableStatement.js → _NamedObjectType/NamedObjectType_graphqlTypeVariableStatement.js} +2 -2
  159. package/dist/generators/ts/_NamedObjectType/NamedObjectType_hashFunctionOrMethodDeclarations.d.ts +4 -0
  160. package/dist/generators/ts/{_ObjectType/ObjectType_hashFunctionOrMethodDeclarations.js → _NamedObjectType/NamedObjectType_hashFunctionOrMethodDeclarations.js} +2 -2
  161. package/dist/generators/ts/_NamedObjectType/NamedObjectType_interfaceDeclaration.d.ts +4 -0
  162. package/dist/generators/ts/{_ObjectType/ObjectType_interfaceDeclaration.js → _NamedObjectType/NamedObjectType_interfaceDeclaration.js} +2 -2
  163. package/dist/generators/ts/_NamedObjectType/NamedObjectType_isTypeFunctionDeclaration.d.ts +4 -0
  164. package/dist/generators/ts/{_ObjectType/ObjectType_isTypeFunctionDeclaration.js → _NamedObjectType/NamedObjectType_isTypeFunctionDeclaration.js} +4 -4
  165. package/dist/generators/ts/_NamedObjectType/NamedObjectType_jsonParseFunctionDeclaration.d.ts +5 -0
  166. package/dist/generators/ts/_NamedObjectType/NamedObjectType_jsonParseFunctionDeclaration.js +19 -0
  167. package/dist/generators/ts/_NamedObjectType/NamedObjectType_jsonSchemaFunctionDeclaration.d.ts +5 -0
  168. package/dist/generators/ts/{_ObjectType/ObjectType_jsonZodSchemaFunctionDeclaration.js → _NamedObjectType/NamedObjectType_jsonSchemaFunctionDeclaration.js} +5 -5
  169. package/dist/generators/ts/_NamedObjectType/NamedObjectType_jsonTypeAliasDeclaration.d.ts +5 -0
  170. package/dist/generators/ts/{_ObjectType/ObjectType_jsonTypeAliasDeclaration.js → _NamedObjectType/NamedObjectType_jsonTypeAliasDeclaration.js} +2 -2
  171. package/dist/generators/ts/_NamedObjectType/NamedObjectType_jsonUiSchemaFunctionDeclaration.d.ts +5 -0
  172. package/dist/generators/ts/{_ObjectType/ObjectType_jsonUiSchemaFunctionDeclaration.js → _NamedObjectType/NamedObjectType_jsonUiSchemaFunctionDeclaration.js} +4 -4
  173. package/dist/generators/ts/_NamedObjectType/NamedObjectType_objectSetMethodNames.d.ts +9 -0
  174. package/dist/generators/ts/{_ObjectType/ObjectType_objectSetMethodNames.js → _NamedObjectType/NamedObjectType_objectSetMethodNames.js} +2 -2
  175. package/dist/generators/ts/_NamedObjectType/NamedObjectType_propertiesFromJsonFunctionDeclaration.d.ts +5 -0
  176. package/dist/generators/ts/_NamedObjectType/NamedObjectType_propertiesFromJsonFunctionDeclaration.js +38 -0
  177. package/dist/generators/ts/_NamedObjectType/NamedObjectType_propertiesFromRdfResourceFunctionDeclaration.d.ts +5 -0
  178. package/dist/generators/ts/{_ObjectType/ObjectType_propertiesFromRdfFunctionDeclaration.js → _NamedObjectType/NamedObjectType_propertiesFromRdfResourceFunctionDeclaration.js} +16 -15
  179. package/dist/generators/ts/_NamedObjectType/NamedObjectType_schemaVariableStatement.d.ts +4 -0
  180. package/dist/generators/ts/{_ObjectType/ObjectType_schemaVariableStatement.js → _NamedObjectType/NamedObjectType_schemaVariableStatement.js} +3 -4
  181. package/dist/generators/ts/{_ObjectType/ObjectType_sparqlConstructQueryFunctionDeclaration.d.ts → _NamedObjectType/NamedObjectType_sparqlConstructQueryFunctionDeclaration.d.ts} +2 -2
  182. package/dist/generators/ts/{_ObjectType/ObjectType_sparqlConstructQueryFunctionDeclaration.js → _NamedObjectType/NamedObjectType_sparqlConstructQueryFunctionDeclaration.js} +4 -4
  183. package/dist/generators/ts/{_ObjectType/ObjectType_sparqlConstructQueryStringFunctionDeclaration.d.ts → _NamedObjectType/NamedObjectType_sparqlConstructQueryStringFunctionDeclaration.d.ts} +2 -2
  184. package/dist/generators/ts/{_ObjectType/ObjectType_sparqlConstructQueryStringFunctionDeclaration.js → _NamedObjectType/NamedObjectType_sparqlConstructQueryStringFunctionDeclaration.js} +2 -2
  185. package/dist/generators/ts/_NamedObjectType/NamedObjectType_toJsonFunctionOrMethodDeclaration.d.ts +5 -0
  186. package/dist/generators/ts/{_ObjectType/ObjectType_toJsonFunctionOrMethodDeclaration.js → _NamedObjectType/NamedObjectType_toJsonFunctionOrMethodDeclaration.js} +2 -2
  187. package/dist/generators/ts/_NamedObjectType/NamedObjectType_toRdfResourceFunctionOrMethodDeclaration.d.ts +5 -0
  188. package/dist/generators/ts/{_ObjectType/ObjectType_toRdfFunctionOrMethodDeclaration.js → _NamedObjectType/NamedObjectType_toRdfResourceFunctionOrMethodDeclaration.js} +10 -8
  189. package/dist/generators/ts/_NamedObjectType/NamedObjectType_valueSparqlConstructTriplesFunctionDeclaration.d.ts +5 -0
  190. package/dist/generators/ts/_NamedObjectType/NamedObjectType_valueSparqlConstructTriplesFunctionDeclaration.js +13 -0
  191. package/dist/generators/ts/_NamedObjectType/NamedObjectType_valueSparqlWherePatternsFunctionDeclaration.d.ts +5 -0
  192. package/dist/generators/ts/_NamedObjectType/NamedObjectType_valueSparqlWherePatternsFunctionDeclaration.js +15 -0
  193. package/dist/generators/ts/{_ObjectType → _NamedObjectType}/Property.d.ts +2 -2
  194. package/dist/generators/ts/{_ObjectType → _NamedObjectType}/ShaclProperty.d.ts +3 -3
  195. package/dist/generators/ts/{_ObjectType → _NamedObjectType}/ShaclProperty.js +14 -14
  196. package/dist/generators/ts/_NamedObjectType/identifierTypeDeclarations.d.ts +4 -0
  197. package/dist/generators/ts/_snippets/snippets_FocusSparqlConstructTriplesFunction.d.ts +2 -0
  198. package/dist/generators/ts/_snippets/snippets_FocusSparqlConstructTriplesFunction.js +12 -0
  199. package/dist/generators/ts/_snippets/snippets_FocusSparqlWherePatternsFunction.d.ts +2 -0
  200. package/dist/generators/ts/_snippets/snippets_FocusSparqlWherePatternsFunction.js +14 -0
  201. package/dist/generators/ts/_snippets/snippets_FromRdfResourceFunction.d.ts +2 -0
  202. package/dist/generators/ts/_snippets/snippets_FromRdfResourceFunction.js +15 -0
  203. package/dist/generators/ts/_snippets/snippets_FromRdfResourceValuesFunction.d.ts +2 -0
  204. package/dist/generators/ts/_snippets/snippets_FromRdfResourceValuesFunction.js +17 -0
  205. package/dist/generators/ts/_snippets/snippets_PropertiesFromRdfResourceFunction.d.ts +2 -0
  206. package/dist/generators/ts/_snippets/snippets_PropertiesFromRdfResourceFunction.js +15 -0
  207. package/dist/generators/ts/_snippets/snippets_PropertyPath.d.ts +5 -0
  208. package/dist/generators/ts/_snippets/snippets_PropertyPath.js +35 -0
  209. package/dist/generators/ts/_snippets/snippets_ShaclPropertySchema.js +2 -2
  210. package/dist/generators/ts/_snippets/snippets_ToRdfResourceFunction.d.ts +2 -0
  211. package/dist/generators/ts/_snippets/snippets_ToRdfResourceFunction.js +7 -0
  212. package/dist/generators/ts/_snippets/snippets_ToRdfResourceValuesFunction.d.ts +2 -0
  213. package/dist/generators/ts/_snippets/snippets_ToRdfResourceValuesFunction.js +16 -0
  214. package/dist/generators/ts/_snippets/snippets_ValueSparqlConstructTriplesFunction.d.ts +2 -0
  215. package/dist/generators/ts/_snippets/snippets_ValueSparqlConstructTriplesFunction.js +13 -0
  216. package/dist/generators/ts/_snippets/snippets_ValueSparqlWherePatternsFunction.d.ts +2 -0
  217. package/dist/generators/ts/_snippets/snippets_ValueSparqlWherePatternsFunction.js +16 -0
  218. package/dist/generators/ts/_snippets/snippets_bigDecimalSparqlWherePatterns.js +2 -2
  219. package/dist/generators/ts/_snippets/snippets_blankNodeSparqlWherePatterns.js +2 -2
  220. package/dist/generators/ts/_snippets/snippets_booleanEquals.js +1 -1
  221. package/dist/generators/ts/_snippets/snippets_booleanSparqlWherePatterns.js +2 -2
  222. package/dist/generators/ts/_snippets/snippets_dateSparqlWherePatterns.js +2 -2
  223. package/dist/generators/ts/_snippets/snippets_defaultValueSparqlWherePatterns.js +2 -2
  224. package/dist/generators/ts/_snippets/snippets_fromRdfLanguageIn.js +1 -1
  225. package/dist/generators/ts/_snippets/snippets_identifierSparqlWherePatterns.js +2 -2
  226. package/dist/generators/ts/_snippets/snippets_iriSparqlWherePatterns.js +2 -2
  227. package/dist/generators/ts/_snippets/snippets_listSparqlConstructTriples.js +2 -2
  228. package/dist/generators/ts/_snippets/snippets_listSparqlWherePatterns.js +2 -2
  229. package/dist/generators/ts/_snippets/snippets_literalSparqlWherePatterns.js +2 -2
  230. package/dist/generators/ts/_snippets/snippets_maybeSparqlConstructTriples.js +2 -2
  231. package/dist/generators/ts/_snippets/snippets_maybeSparqlWherePatterns.js +2 -2
  232. package/dist/generators/ts/_snippets/snippets_numericSparqlWherePatterns.js +2 -3
  233. package/dist/generators/ts/_snippets/snippets_setSparqlConstructTriples.js +2 -2
  234. package/dist/generators/ts/_snippets/snippets_setSparqlWherePatterns.js +2 -2
  235. package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlConstructTriples.js +4 -3
  236. package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlWherePatterns.js +4 -3
  237. package/dist/generators/ts/_snippets/snippets_sparqlPropertyPath.js +3 -2
  238. package/dist/generators/ts/_snippets/snippets_stringSparqlWherePatterns.js +2 -2
  239. package/dist/generators/ts/_snippets/snippets_termSparqlWherePatterns.js +2 -2
  240. package/dist/generators/ts/graphqlSchemaVariableStatement.d.ts +4 -4
  241. package/dist/generators/ts/graphqlSchemaVariableStatement.js +25 -25
  242. package/dist/generators/ts/imports.d.ts +1 -1
  243. package/dist/generators/ts/imports.js +1 -1
  244. package/dist/generators/ts/objectSetDeclarations.d.ts +5 -5
  245. package/dist/generators/ts/objectSetDeclarations.js +34 -31
  246. package/dist/generators/ts/objectSetInterfaceDeclaration.d.ts +5 -5
  247. package/dist/generators/ts/objectSetInterfaceDeclaration.js +6 -4
  248. package/dist/generators/ts/objectSetMethodSignatures.d.ts +4 -4
  249. package/dist/generators/ts/objectSetMethodSignatures.js +9 -9
  250. package/dist/generators/ts/rdfjsDatasetObjectSetClassDeclaration.d.ts +5 -5
  251. package/dist/generators/ts/rdfjsDatasetObjectSetClassDeclaration.js +54 -53
  252. package/dist/generators/ts/singleEntryRecord.d.ts +2 -0
  253. package/dist/generators/ts/singleEntryRecord.js +6 -0
  254. package/dist/generators/ts/snippets.d.ts +10 -6
  255. package/dist/generators/ts/snippets.js +20 -12
  256. package/dist/generators/ts/sparqlObjectSetClassDeclaration.d.ts +5 -5
  257. package/dist/generators/ts/sparqlObjectSetClassDeclaration.js +19 -20
  258. package/dist/generators/ts/synthesizeUberObjectUnionType.d.ts +4 -4
  259. package/dist/generators/ts/synthesizeUberObjectUnionType.js +14 -9
  260. package/dist/generators/ts/unsupportedObjectSetMethodDeclarations.d.ts +5 -5
  261. package/dist/generators/ts/unsupportedObjectSetMethodDeclarations.js +2 -2
  262. package/dist/input/NodeShape.d.ts +0 -1
  263. package/dist/input/NodeShape.js +0 -3
  264. package/dist/input/ShapesGraph.d.ts +3 -2
  265. package/dist/input/ShapesGraph.js +12 -7
  266. package/dist/input/generated.d.ts +1899 -88
  267. package/dist/input/generated.js +676 -564
  268. package/package.json +5 -7
  269. package/dist/_ShapesGraphToAstTransformer/CurieFactory.d.ts +0 -16
  270. package/dist/_ShapesGraphToAstTransformer/CurieFactory.js +0 -45
  271. package/dist/_ShapesGraphToAstTransformer/NodeShapeAstType.d.ts +0 -3
  272. package/dist/_ShapesGraphToAstTransformer/NodeShapeAstType.js +0 -2
  273. package/dist/_ShapesGraphToAstTransformer/index.d.ts +0 -6
  274. package/dist/_ShapesGraphToAstTransformer/index.js +0 -6
  275. package/dist/_ShapesGraphToAstTransformer/shapeIdentifier.d.ts +0 -5
  276. package/dist/_ShapesGraphToAstTransformer/shapeIdentifier.js +0 -9
  277. package/dist/_ShapesGraphToAstTransformer/transformNodeShapeToAstType.d.ts +0 -11
  278. package/dist/_ShapesGraphToAstTransformer/transformNodeShapeToAstType.js +0 -338
  279. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstAbstractTypeProperties.d.ts +0 -12
  280. package/dist/_ShapesGraphToAstTransformer/transformShapeToAstAbstractTypeProperties.js +0 -31
  281. package/dist/ast/AbstractObjectCompoundType.d.ts +0 -45
  282. package/dist/ast/AbstractObjectCompoundType.js +0 -180
  283. package/dist/ast/Curie.d.ts +0 -21
  284. package/dist/ast/Curie.js +0 -29
  285. package/dist/ast/PlaceholderType.d.ts +0 -15
  286. package/dist/ast/PlaceholderType.js +0 -19
  287. package/dist/generators/codeName.d.ts +0 -6
  288. package/dist/generators/codeName.js +0 -66
  289. package/dist/generators/ts/AbstractDeclaredType.d.ts +0 -23
  290. package/dist/generators/ts/AbstractDeclaredType.js +0 -17
  291. package/dist/generators/ts/ObjectType.d.ts +0 -117
  292. package/dist/generators/ts/ObjectType.js +0 -402
  293. package/dist/generators/ts/ObjectUnionType.d.ts +0 -65
  294. package/dist/generators/ts/ObjectUnionType.js +0 -257
  295. package/dist/generators/ts/UnionType.d.ts +0 -40
  296. package/dist/generators/ts/UnionType.js +0 -527
  297. package/dist/generators/ts/_ObjectType/ObjectType_classDeclaration.d.ts +0 -4
  298. package/dist/generators/ts/_ObjectType/ObjectType_createFunctionDeclaration.d.ts +0 -5
  299. package/dist/generators/ts/_ObjectType/ObjectType_equalsFunctionOrMethodDeclaration.d.ts +0 -5
  300. package/dist/generators/ts/_ObjectType/ObjectType_filterFunctionDeclaration.d.ts +0 -4
  301. package/dist/generators/ts/_ObjectType/ObjectType_filterTypeDeclaration.d.ts +0 -4
  302. package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionDeclarations.d.ts +0 -4
  303. package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionDeclarations.js +0 -66
  304. package/dist/generators/ts/_ObjectType/ObjectType_fromRdfFunctionDeclaration.d.ts +0 -5
  305. package/dist/generators/ts/_ObjectType/ObjectType_fromRdfTypeVariableStatement.d.ts +0 -5
  306. package/dist/generators/ts/_ObjectType/ObjectType_graphqlTypeVariableStatement.d.ts +0 -5
  307. package/dist/generators/ts/_ObjectType/ObjectType_hashFunctionOrMethodDeclarations.d.ts +0 -4
  308. package/dist/generators/ts/_ObjectType/ObjectType_interfaceDeclaration.d.ts +0 -4
  309. package/dist/generators/ts/_ObjectType/ObjectType_isTypeFunctionDeclaration.d.ts +0 -4
  310. package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaFunctionDeclaration.d.ts +0 -5
  311. package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaFunctionDeclaration.js +0 -14
  312. package/dist/generators/ts/_ObjectType/ObjectType_jsonTypeAliasDeclaration.d.ts +0 -5
  313. package/dist/generators/ts/_ObjectType/ObjectType_jsonUiSchemaFunctionDeclaration.d.ts +0 -5
  314. package/dist/generators/ts/_ObjectType/ObjectType_jsonZodSchemaFunctionDeclaration.d.ts +0 -5
  315. package/dist/generators/ts/_ObjectType/ObjectType_objectSetMethodNames.d.ts +0 -9
  316. package/dist/generators/ts/_ObjectType/ObjectType_propertiesFromRdfFunctionDeclaration.d.ts +0 -5
  317. package/dist/generators/ts/_ObjectType/ObjectType_schemaVariableStatement.d.ts +0 -4
  318. package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructTriplesFunctionDeclaration.d.ts +0 -5
  319. package/dist/generators/ts/_ObjectType/ObjectType_sparqlWherePatternsFunctionDeclarations.d.ts +0 -5
  320. package/dist/generators/ts/_ObjectType/ObjectType_toJsonFunctionOrMethodDeclaration.d.ts +0 -5
  321. package/dist/generators/ts/_ObjectType/ObjectType_toRdfFunctionOrMethodDeclaration.d.ts +0 -5
  322. package/dist/generators/ts/_ObjectType/identifierTypeDeclarations.d.ts +0 -4
  323. package/dist/generators/ts/_ObjectUnionType/MemberType.d.ts +0 -34
  324. package/dist/generators/ts/_ObjectUnionType/MemberType.js +0 -105
  325. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_equalsFunctionDeclaration.d.ts +0 -5
  326. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_equalsFunctionDeclaration.js +0 -29
  327. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_filterFunctionDeclaration.d.ts +0 -4
  328. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_filterFunctionDeclaration.js +0 -19
  329. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_filterTypeDeclaration.d.ts +0 -4
  330. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_filterTypeDeclaration.js +0 -10
  331. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_fromJsonFunctionDeclaration.d.ts +0 -5
  332. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_fromJsonFunctionDeclaration.js +0 -19
  333. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_fromRdfFunctionDeclarations.d.ts +0 -5
  334. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_fromRdfFunctionDeclarations.js +0 -20
  335. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_graphqlTypeVariableStatement.d.ts +0 -5
  336. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_graphqlTypeVariableStatement.js +0 -18
  337. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_hashFunctionDeclaration.d.ts +0 -5
  338. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_hashFunctionDeclaration.js +0 -28
  339. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_identifierTypeDeclarations.d.ts +0 -4
  340. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_identifierTypeDeclarations.js +0 -9
  341. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_isTypeFunctionDeclaration.d.ts +0 -5
  342. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_isTypeFunctionDeclaration.js +0 -13
  343. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_jsonTypeAliasDeclaration.d.ts +0 -5
  344. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_jsonTypeAliasDeclaration.js +0 -10
  345. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_jsonZodSchemaFunctionDeclaration.d.ts +0 -5
  346. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_jsonZodSchemaFunctionDeclaration.js +0 -14
  347. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_schemaVariableStatement.d.ts +0 -4
  348. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_schemaVariableStatement.js +0 -37
  349. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_sparqlConstructTriplesFunctionDeclaration.d.ts +0 -5
  350. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_sparqlConstructTriplesFunctionDeclaration.js +0 -15
  351. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_sparqlWherePatternsFunctionDeclaration.d.ts +0 -5
  352. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_sparqlWherePatternsFunctionDeclaration.js +0 -35
  353. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_toJsonFunctionDeclaration.d.ts +0 -5
  354. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_toJsonFunctionDeclaration.js +0 -26
  355. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_toRdfFunctionDeclarations.d.ts +0 -5
  356. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_toRdfFunctionDeclarations.js +0 -43
  357. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_typeAliasDeclaration.d.ts +0 -4
  358. package/dist/generators/ts/_ObjectUnionType/ObjectUnionType_typeAliasDeclaration.js +0 -10
  359. package/dist/generators/ts/_snippets/snippets_FromRdfOptions.d.ts +0 -2
  360. package/dist/generators/ts/_snippets/snippets_FromRdfOptions.js +0 -5
  361. package/dist/generators/ts/_snippets/snippets_PropertiesFromRdfParameters.d.ts +0 -2
  362. package/dist/generators/ts/_snippets/snippets_PropertiesFromRdfParameters.js +0 -5
  363. package/dist/generators/ts/_snippets/snippets_SparqlConstructTriplesFunction.d.ts +0 -2
  364. package/dist/generators/ts/_snippets/snippets_SparqlConstructTriplesFunction.js +0 -6
  365. package/dist/generators/ts/_snippets/snippets_SparqlConstructTriplesFunctionParameters.d.ts +0 -2
  366. package/dist/generators/ts/_snippets/snippets_SparqlConstructTriplesFunctionParameters.js +0 -12
  367. package/dist/generators/ts/_snippets/snippets_SparqlWherePatternsFunction.d.ts +0 -2
  368. package/dist/generators/ts/_snippets/snippets_SparqlWherePatternsFunction.js +0 -6
  369. package/dist/generators/ts/_snippets/snippets_SparqlWherePatternsFunctionParameters.d.ts +0 -2
  370. package/dist/generators/ts/_snippets/snippets_SparqlWherePatternsFunctionParameters.js +0 -15
  371. /package/dist/generators/ts/{_ObjectType → _NamedObjectType}/Property.js +0 -0
  372. /package/dist/generators/ts/{_ObjectType → _NamedObjectType}/identifierTypeDeclarations.js +0 -0
@@ -1,6 +1,6 @@
1
1
  import type { BlankNode, DatasetCore, Literal, NamedNode, Quad_Graph, Variable } from "@rdfjs/types";
2
2
  import { Either, Maybe } from "purify-ts";
3
- import { PropertyPath, Resource, ResourceSet } from "rdfjs-resource";
3
+ import { PropertyPath as RdfjsResourcePropertyPath, Resource, ResourceSet } from "rdfjs-resource";
4
4
  interface $BooleanFilter {
5
5
  readonly value?: boolean;
6
6
  }
@@ -8,13 +8,22 @@ type $CollectionFilter<ItemFilterT> = ItemFilterT & {
8
8
  readonly $maxCount?: number;
9
9
  readonly $minCount?: number;
10
10
  };
11
- type $FromRdfOptions = {
11
+ export type $FromRdfResourceFunction<T> = (resource: Resource, options?: {
12
12
  context?: unknown;
13
13
  graph?: Exclude<Quad_Graph, Variable>;
14
14
  ignoreRdfType?: boolean;
15
15
  objectSet?: $ObjectSet;
16
16
  preferredLanguages?: readonly string[];
17
- };
17
+ }) => Either<Error, T>;
18
+ export type $FromRdfResourceValuesFunction<T> = (resourceValues: Either<Error, Resource.Values>, options: {
19
+ context?: unknown;
20
+ graph?: Exclude<Quad_Graph, Variable>;
21
+ ignoreRdfType?: boolean;
22
+ objectSet?: $ObjectSet;
23
+ preferredLanguages?: readonly string[];
24
+ propertyPath: $PropertyPath;
25
+ resource: Resource;
26
+ }) => Either<Error, Resource.Values<T>>;
18
27
  interface $IdentifierFilter {
19
28
  readonly in?: readonly (BlankNode | NamedNode)[];
20
29
  readonly type?: "BlankNode" | "NamedNode";
@@ -34,17 +43,25 @@ interface $NumericFilter<T> {
34
43
  readonly minExclusive?: T;
35
44
  readonly minInclusive?: T;
36
45
  }
37
- type $PropertiesFromRdfParameters = {
38
- context?: unknown;
39
- graph?: Exclude<Quad_Graph, Variable>;
46
+ type $PropertiesFromRdfResourceFunction<T> = (resource: Resource, options: {
47
+ context: undefined | unknown;
48
+ graph: Exclude<Quad_Graph, Variable> | undefined;
40
49
  ignoreRdfType: boolean;
41
50
  objectSet: $ObjectSet;
42
51
  preferredLanguages?: readonly string[];
43
- resource: Resource;
44
- };
52
+ }) => Either<Error, T>;
53
+ export type $PropertyPath = RdfjsResourcePropertyPath;
54
+ export declare namespace $PropertyPath {
55
+ type $Filter = object;
56
+ function $filter(_filter: $Filter, _value: $PropertyPath): boolean;
57
+ const $fromRdfResource: $FromRdfResourceFunction<$PropertyPath>;
58
+ const $fromRdfResourceValues: $FromRdfResourceValuesFunction<$PropertyPath>;
59
+ const $schema: Readonly<object>;
60
+ const $toRdfResource: $ToRdfResourceFunction<$PropertyPath>;
61
+ }
45
62
  export interface $ShaclPropertySchema<TypeSchemaT = object> {
46
63
  readonly kind: "Shacl";
47
- readonly path: PropertyPath;
64
+ readonly path: $PropertyPath;
48
65
  readonly type: () => TypeSchemaT;
49
66
  }
50
67
  interface $StringFilter {
@@ -58,6 +75,18 @@ interface $TermFilter {
58
75
  readonly languageIn?: readonly string[];
59
76
  readonly typeIn?: readonly ("BlankNode" | "Literal" | "NamedNode")[];
60
77
  }
78
+ export type $ToRdfResourceFunction<T> = (value: T, options?: {
79
+ graph?: Exclude<Quad_Graph, Variable>;
80
+ ignoreRdfType?: boolean;
81
+ resourceSet?: ResourceSet;
82
+ }) => Resource;
83
+ export type $ToRdfResourceValuesFunction<T> = (value: T, options: {
84
+ graph?: Exclude<Quad_Graph, Variable>;
85
+ ignoreRdfType?: boolean;
86
+ propertyPath: $PropertyPath;
87
+ resource: Resource;
88
+ resourceSet: ResourceSet;
89
+ }) => (bigint | boolean | number | string | BlankNode | Literal | NamedNode)[];
61
90
  export interface PropertyShape {
62
91
  readonly $identifier: PropertyShape.$Identifier;
63
92
  readonly $type: "PropertyShape";
@@ -91,7 +120,7 @@ export interface PropertyShape {
91
120
  readonly not: readonly (BlankNode | NamedNode)[];
92
121
  readonly or: readonly (readonly (BlankNode | NamedNode)[])[];
93
122
  readonly order: Maybe<number>;
94
- readonly path: PropertyPath;
123
+ readonly path: $PropertyPath;
95
124
  readonly patterns: readonly string[];
96
125
  readonly resolve: Maybe<BlankNode | NamedNode>;
97
126
  readonly uniqueLang: Maybe<boolean>;
@@ -137,17 +166,18 @@ export declare namespace PropertyShape {
137
166
  readonly not?: $CollectionFilter<$IdentifierFilter>;
138
167
  readonly or?: $CollectionFilter<$CollectionFilter<$IdentifierFilter>>;
139
168
  readonly order?: $MaybeFilter<$NumericFilter<number>>;
140
- readonly path?: PropertyPath.$Filter;
169
+ readonly path?: $PropertyPath.$Filter;
141
170
  readonly patterns?: $CollectionFilter<$StringFilter>;
142
171
  readonly resolve?: $MaybeFilter<$IdentifierFilter>;
143
172
  readonly uniqueLang?: $MaybeFilter<$BooleanFilter>;
144
173
  readonly visibility?: $MaybeFilter<$IriFilter>;
145
174
  readonly xone?: $CollectionFilter<$CollectionFilter<$IdentifierFilter>>;
146
175
  };
147
- function $fromRdf(resource: Resource, options?: $FromRdfOptions): Either<Error, PropertyShape>;
176
+ const $fromRdfResource: $FromRdfResourceFunction<PropertyShape>;
177
+ const $fromRdfResourceValues: $FromRdfResourceValuesFunction<PropertyShape>;
148
178
  const $fromRdfType: NamedNode<string>;
149
179
  function isPropertyShape(object: $Object): object is PropertyShape;
150
- function $propertiesFromRdf($parameters: $PropertiesFromRdfParameters): Either<Error, {
180
+ const $propertiesFromRdfResource: $PropertiesFromRdfResourceFunction<{
151
181
  $identifier: BlankNode | NamedNode;
152
182
  $type: "PropertyShape";
153
183
  and: readonly (readonly (BlankNode | NamedNode)[])[];
@@ -180,7 +210,7 @@ export declare namespace PropertyShape {
180
210
  not: readonly (BlankNode | NamedNode)[];
181
211
  or: readonly (readonly (BlankNode | NamedNode)[])[];
182
212
  order: Maybe<number>;
183
- path: PropertyPath;
213
+ path: $PropertyPath;
184
214
  patterns: readonly string[];
185
215
  resolve: Maybe<BlankNode | NamedNode>;
186
216
  uniqueLang: Maybe<boolean>;
@@ -196,7 +226,7 @@ export declare namespace PropertyShape {
196
226
  };
197
227
  };
198
228
  readonly $type: {
199
- readonly kind: "TypeDiscriminant";
229
+ readonly kind: "Discriminant";
200
230
  readonly type: () => {
201
231
  kind: "TypeDiscriminant";
202
232
  ownValues: string[];
@@ -576,11 +606,7 @@ export declare namespace PropertyShape {
576
606
  };
577
607
  };
578
608
  };
579
- function $toRdf(_propertyShape: PropertyShape, options?: {
580
- ignoreRdfType?: boolean;
581
- graph?: Exclude<Quad_Graph, Variable>;
582
- resourceSet?: ResourceSet;
583
- }): Resource;
609
+ function $toRdfResource(_propertyShape: PropertyShape, options?: Parameters<$ToRdfResourceFunction<PropertyShape>>[1]): Resource;
584
610
  }
585
611
  export interface PropertyGroup {
586
612
  readonly $identifier: PropertyGroup.$Identifier;
@@ -600,10 +626,11 @@ export declare namespace PropertyGroup {
600
626
  readonly comments?: $CollectionFilter<$StringFilter>;
601
627
  readonly labels?: $CollectionFilter<$StringFilter>;
602
628
  };
603
- function $fromRdf(resource: Resource, options?: $FromRdfOptions): Either<Error, PropertyGroup>;
629
+ const $fromRdfResource: $FromRdfResourceFunction<PropertyGroup>;
630
+ const $fromRdfResourceValues: $FromRdfResourceValuesFunction<PropertyGroup>;
604
631
  const $fromRdfType: NamedNode<string>;
605
632
  function isPropertyGroup(object: $Object): object is PropertyGroup;
606
- function $propertiesFromRdf($parameters: $PropertiesFromRdfParameters): Either<Error, {
633
+ const $propertiesFromRdfResource: $PropertiesFromRdfResourceFunction<{
607
634
  $identifier: BlankNode | NamedNode;
608
635
  $type: "PropertyGroup";
609
636
  comments: readonly string[];
@@ -618,7 +645,7 @@ export declare namespace PropertyGroup {
618
645
  };
619
646
  };
620
647
  readonly $type: {
621
- readonly kind: "TypeDiscriminant";
648
+ readonly kind: "Discriminant";
622
649
  readonly type: () => {
623
650
  kind: "TypeDiscriminant";
624
651
  ownValues: string[];
@@ -646,11 +673,7 @@ export declare namespace PropertyGroup {
646
673
  };
647
674
  };
648
675
  };
649
- function $toRdf(_propertyGroup: PropertyGroup, options?: {
650
- ignoreRdfType?: boolean;
651
- graph?: Exclude<Quad_Graph, Variable>;
652
- resourceSet?: ResourceSet;
653
- }): Resource;
676
+ function $toRdfResource(_propertyGroup: PropertyGroup, options?: Parameters<$ToRdfResourceFunction<PropertyGroup>>[1]): Resource;
654
677
  }
655
678
  export interface Ontology {
656
679
  readonly $identifier: Ontology.$Identifier;
@@ -676,10 +699,11 @@ export declare namespace Ontology {
676
699
  readonly tsImports?: $CollectionFilter<$StringFilter>;
677
700
  readonly tsObjectDeclarationType?: $MaybeFilter<$IriFilter>;
678
701
  };
679
- function $fromRdf(resource: Resource, options?: $FromRdfOptions): Either<Error, Ontology>;
702
+ const $fromRdfResource: $FromRdfResourceFunction<Ontology>;
703
+ const $fromRdfResourceValues: $FromRdfResourceValuesFunction<Ontology>;
680
704
  const $fromRdfType: NamedNode<string>;
681
705
  function isOntology(object: $Object): object is Ontology;
682
- function $propertiesFromRdf($parameters: $PropertiesFromRdfParameters): Either<Error, {
706
+ const $propertiesFromRdfResource: $PropertiesFromRdfResourceFunction<{
683
707
  $identifier: BlankNode | NamedNode;
684
708
  $type: "Ontology";
685
709
  labels: readonly string[];
@@ -697,7 +721,7 @@ export declare namespace Ontology {
697
721
  };
698
722
  };
699
723
  readonly $type: {
700
- readonly kind: "TypeDiscriminant";
724
+ readonly kind: "Discriminant";
701
725
  readonly type: () => {
702
726
  kind: "TypeDiscriminant";
703
727
  ownValues: string[];
@@ -758,11 +782,7 @@ export declare namespace Ontology {
758
782
  };
759
783
  };
760
784
  };
761
- function $toRdf(_ontology: Ontology, options?: {
762
- ignoreRdfType?: boolean;
763
- graph?: Exclude<Quad_Graph, Variable>;
764
- resourceSet?: ResourceSet;
765
- }): Resource;
785
+ function $toRdfResource(_ontology: Ontology, options?: Parameters<$ToRdfResourceFunction<Ontology>>[1]): Resource;
766
786
  }
767
787
  export interface NodeShape {
768
788
  readonly $identifier: NodeShape.$Identifier;
@@ -775,7 +795,6 @@ export interface NodeShape {
775
795
  readonly datatype: Maybe<NamedNode>;
776
796
  readonly deactivated: Maybe<boolean>;
777
797
  readonly discriminantValue: Maybe<string>;
778
- readonly export_: Maybe<boolean>;
779
798
  readonly extern: Maybe<boolean>;
780
799
  readonly flags: readonly string[];
781
800
  readonly fromRdfType: Maybe<NamedNode>;
@@ -827,7 +846,6 @@ export declare namespace NodeShape {
827
846
  readonly datatype?: $MaybeFilter<$IriFilter>;
828
847
  readonly deactivated?: $MaybeFilter<$BooleanFilter>;
829
848
  readonly discriminantValue?: $MaybeFilter<$StringFilter>;
830
- readonly export_?: $MaybeFilter<$BooleanFilter>;
831
849
  readonly extern?: $MaybeFilter<$BooleanFilter>;
832
850
  readonly flags?: $CollectionFilter<$StringFilter>;
833
851
  readonly fromRdfType?: $MaybeFilter<$IriFilter>;
@@ -862,10 +880,11 @@ export declare namespace NodeShape {
862
880
  readonly tsObjectDeclarationType?: $MaybeFilter<$IriFilter>;
863
881
  readonly xone?: $CollectionFilter<$CollectionFilter<$IdentifierFilter>>;
864
882
  };
865
- function $fromRdf(resource: Resource, options?: $FromRdfOptions): Either<Error, NodeShape>;
883
+ const $fromRdfResource: $FromRdfResourceFunction<NodeShape>;
884
+ const $fromRdfResourceValues: $FromRdfResourceValuesFunction<NodeShape>;
866
885
  const $fromRdfType: NamedNode<string>;
867
886
  function isNodeShape(object: $Object): object is NodeShape;
868
- function $propertiesFromRdf($parameters: $PropertiesFromRdfParameters): Either<Error, {
887
+ const $propertiesFromRdfResource: $PropertiesFromRdfResourceFunction<{
869
888
  $identifier: BlankNode | NamedNode;
870
889
  $type: "NodeShape";
871
890
  abstract: Maybe<boolean>;
@@ -876,7 +895,6 @@ export declare namespace NodeShape {
876
895
  datatype: Maybe<NamedNode>;
877
896
  deactivated: Maybe<boolean>;
878
897
  discriminantValue: Maybe<string>;
879
- export_: Maybe<boolean>;
880
898
  extern: Maybe<boolean>;
881
899
  flags: readonly string[];
882
900
  fromRdfType: Maybe<NamedNode>;
@@ -920,7 +938,7 @@ export declare namespace NodeShape {
920
938
  };
921
939
  };
922
940
  readonly $type: {
923
- readonly kind: "TypeDiscriminant";
941
+ readonly kind: "Discriminant";
924
942
  readonly type: () => {
925
943
  kind: "TypeDiscriminant";
926
944
  ownValues: string[];
@@ -1009,16 +1027,6 @@ export declare namespace NodeShape {
1009
1027
  };
1010
1028
  readonly path: NamedNode<"http://purl.org/shaclmate/ontology#discriminantValue">;
1011
1029
  };
1012
- readonly export_: {
1013
- readonly kind: "Shacl";
1014
- readonly type: () => {
1015
- kind: "Maybe";
1016
- item: () => {
1017
- kind: "Boolean";
1018
- };
1019
- };
1020
- readonly path: NamedNode<"http://purl.org/shaclmate/ontology#export">;
1021
- };
1022
1030
  readonly extern: {
1023
1031
  readonly kind: "Shacl";
1024
1032
  readonly type: () => {
@@ -1371,30 +1379,875 @@ export declare namespace NodeShape {
1371
1379
  };
1372
1380
  };
1373
1381
  };
1374
- function $toRdf(_nodeShape: NodeShape, options?: {
1375
- ignoreRdfType?: boolean;
1376
- graph?: Exclude<Quad_Graph, Variable>;
1377
- resourceSet?: ResourceSet;
1378
- }): Resource;
1382
+ function $toRdfResource(_nodeShape: NodeShape, options?: Parameters<$ToRdfResourceFunction<NodeShape>>[1]): Resource;
1379
1383
  }
1380
1384
  export type Shape = NodeShape | PropertyShape;
1381
1385
  export declare namespace Shape {
1386
+ const $toRdfResource: $ToRdfResourceFunction<Shape>;
1387
+ const $filter: (filter: Shape.$Filter, value: Shape) => boolean;
1388
+ type $Filter = {
1389
+ readonly $identifier?: $IdentifierFilter;
1390
+ readonly on?: {
1391
+ readonly NodeShape?: NodeShape.$Filter;
1392
+ readonly PropertyShape?: PropertyShape.$Filter;
1393
+ };
1394
+ };
1395
+ const $fromRdfResource: $FromRdfResourceFunction<Shape>;
1396
+ const $fromRdfResourceValues: $FromRdfResourceValuesFunction<Shape>;
1382
1397
  type $Identifier = BlankNode | NamedNode;
1383
1398
  namespace $Identifier {
1384
1399
  const fromString: typeof $identifierFromString;
1385
1400
  const toString: typeof import("rdfjs-resource/dist/Identifier.js").Identifier.toString;
1386
1401
  }
1387
- function $filter(filter: Shape.$Filter, value: Shape): boolean;
1388
- interface $Filter {
1389
- readonly $identifier?: $IdentifierFilter;
1390
- readonly on?: {
1391
- readonly NodeShape?: Omit<NodeShape.$Filter, "$identifier">;
1392
- readonly PropertyShape?: Omit<PropertyShape.$Filter, "$identifier">;
1393
- };
1394
- }
1395
- function $fromRdf(resource: Resource, options?: $FromRdfOptions): Either<Error, Shape>;
1396
- function isShape(object: $Object): object is Shape;
1397
1402
  const $schema: {
1403
+ readonly kind: "NamedObjectUnion";
1404
+ readonly members: {
1405
+ readonly NodeShape: {
1406
+ readonly discriminantValues: readonly ["NodeShape"];
1407
+ readonly type: {
1408
+ readonly properties: {
1409
+ readonly $identifier: {
1410
+ readonly kind: "Identifier";
1411
+ readonly type: () => {
1412
+ kind: "Identifier";
1413
+ };
1414
+ };
1415
+ readonly $type: {
1416
+ readonly kind: "Discriminant";
1417
+ readonly type: () => {
1418
+ kind: "TypeDiscriminant";
1419
+ ownValues: string[];
1420
+ };
1421
+ };
1422
+ readonly abstract: {
1423
+ readonly kind: "Shacl";
1424
+ readonly type: () => {
1425
+ kind: "Maybe";
1426
+ item: () => {
1427
+ kind: "Boolean";
1428
+ };
1429
+ };
1430
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#abstract">;
1431
+ };
1432
+ readonly and: {
1433
+ readonly kind: "Shacl";
1434
+ readonly type: () => {
1435
+ kind: "Set";
1436
+ item: () => {
1437
+ kind: "List";
1438
+ item: () => {
1439
+ kind: "Identifier";
1440
+ };
1441
+ };
1442
+ };
1443
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#and">;
1444
+ };
1445
+ readonly classes: {
1446
+ readonly kind: "Shacl";
1447
+ readonly type: () => {
1448
+ kind: "Set";
1449
+ item: () => {
1450
+ kind: "Iri";
1451
+ };
1452
+ };
1453
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#class">;
1454
+ };
1455
+ readonly closed: {
1456
+ readonly kind: "Shacl";
1457
+ readonly type: () => {
1458
+ kind: "Maybe";
1459
+ item: () => {
1460
+ kind: "Boolean";
1461
+ };
1462
+ };
1463
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#closed">;
1464
+ };
1465
+ readonly comments: {
1466
+ readonly kind: "Shacl";
1467
+ readonly type: () => {
1468
+ kind: "Set";
1469
+ item: () => {
1470
+ kind: "String";
1471
+ };
1472
+ };
1473
+ readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#comment">;
1474
+ };
1475
+ readonly datatype: {
1476
+ readonly kind: "Shacl";
1477
+ readonly type: () => {
1478
+ kind: "Maybe";
1479
+ item: () => {
1480
+ kind: "Iri";
1481
+ };
1482
+ };
1483
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#datatype">;
1484
+ };
1485
+ readonly deactivated: {
1486
+ readonly kind: "Shacl";
1487
+ readonly type: () => {
1488
+ kind: "Maybe";
1489
+ item: () => {
1490
+ kind: "Boolean";
1491
+ };
1492
+ };
1493
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#deactivated">;
1494
+ };
1495
+ readonly discriminantValue: {
1496
+ readonly kind: "Shacl";
1497
+ readonly type: () => {
1498
+ kind: "Maybe";
1499
+ item: () => {
1500
+ kind: "String";
1501
+ };
1502
+ };
1503
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#discriminantValue">;
1504
+ };
1505
+ readonly extern: {
1506
+ readonly kind: "Shacl";
1507
+ readonly type: () => {
1508
+ kind: "Maybe";
1509
+ item: () => {
1510
+ kind: "Boolean";
1511
+ };
1512
+ };
1513
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#extern">;
1514
+ };
1515
+ readonly flags: {
1516
+ readonly kind: "Shacl";
1517
+ readonly type: () => {
1518
+ kind: "Set";
1519
+ item: () => {
1520
+ kind: "String";
1521
+ };
1522
+ };
1523
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#flags">;
1524
+ };
1525
+ readonly fromRdfType: {
1526
+ readonly kind: "Shacl";
1527
+ readonly type: () => {
1528
+ kind: "Maybe";
1529
+ item: () => {
1530
+ kind: "Iri";
1531
+ };
1532
+ };
1533
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#fromRdfType">;
1534
+ };
1535
+ readonly hasValues: {
1536
+ readonly kind: "Shacl";
1537
+ readonly type: () => {
1538
+ kind: "Set";
1539
+ item: () => {
1540
+ kind: "Term";
1541
+ };
1542
+ };
1543
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#hasValue">;
1544
+ };
1545
+ readonly identifierMintingStrategy: {
1546
+ readonly kind: "Shacl";
1547
+ readonly type: () => {
1548
+ kind: "Maybe";
1549
+ item: () => {
1550
+ kind: "Iri";
1551
+ in: (NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_BlankNode"> | NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_SHA256"> | NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_UUIDv4">)[];
1552
+ };
1553
+ };
1554
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#identifierMintingStrategy">;
1555
+ };
1556
+ readonly ignoredProperties: {
1557
+ readonly kind: "Shacl";
1558
+ readonly type: () => {
1559
+ kind: "Maybe";
1560
+ item: () => {
1561
+ kind: "List";
1562
+ item: () => {
1563
+ kind: "Iri";
1564
+ };
1565
+ };
1566
+ };
1567
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#ignoredProperties">;
1568
+ };
1569
+ readonly in_: {
1570
+ readonly kind: "Shacl";
1571
+ readonly type: () => {
1572
+ kind: "Maybe";
1573
+ item: () => {
1574
+ kind: "List";
1575
+ item: () => {
1576
+ kind: "Term";
1577
+ };
1578
+ };
1579
+ };
1580
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#in">;
1581
+ };
1582
+ readonly isDefinedBy: {
1583
+ readonly kind: "Shacl";
1584
+ readonly type: () => {
1585
+ kind: "Maybe";
1586
+ item: () => {
1587
+ kind: "Identifier";
1588
+ };
1589
+ };
1590
+ readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#isDefinedBy">;
1591
+ };
1592
+ readonly labels: {
1593
+ readonly kind: "Shacl";
1594
+ readonly type: () => {
1595
+ kind: "Set";
1596
+ item: () => {
1597
+ kind: "String";
1598
+ };
1599
+ };
1600
+ readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
1601
+ };
1602
+ readonly languageIn: {
1603
+ readonly kind: "Shacl";
1604
+ readonly type: () => {
1605
+ kind: "Maybe";
1606
+ item: () => {
1607
+ kind: "List";
1608
+ item: () => {
1609
+ kind: "String";
1610
+ };
1611
+ };
1612
+ };
1613
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#languageIn">;
1614
+ };
1615
+ readonly maxCount: {
1616
+ readonly kind: "Shacl";
1617
+ readonly type: () => {
1618
+ kind: "Maybe";
1619
+ item: () => {
1620
+ kind: "Int";
1621
+ };
1622
+ };
1623
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxCount">;
1624
+ };
1625
+ readonly maxExclusive: {
1626
+ readonly kind: "Shacl";
1627
+ readonly type: () => {
1628
+ kind: "Maybe";
1629
+ item: () => {
1630
+ kind: "Literal";
1631
+ };
1632
+ };
1633
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxExclusive">;
1634
+ };
1635
+ readonly maxInclusive: {
1636
+ readonly kind: "Shacl";
1637
+ readonly type: () => {
1638
+ kind: "Maybe";
1639
+ item: () => {
1640
+ kind: "Literal";
1641
+ };
1642
+ };
1643
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxInclusive">;
1644
+ };
1645
+ readonly maxLength: {
1646
+ readonly kind: "Shacl";
1647
+ readonly type: () => {
1648
+ kind: "Maybe";
1649
+ item: () => {
1650
+ kind: "Int";
1651
+ };
1652
+ };
1653
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxLength">;
1654
+ };
1655
+ readonly minCount: {
1656
+ readonly kind: "Shacl";
1657
+ readonly type: () => {
1658
+ kind: "Maybe";
1659
+ item: () => {
1660
+ kind: "Int";
1661
+ };
1662
+ };
1663
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#minCount">;
1664
+ };
1665
+ readonly minExclusive: {
1666
+ readonly kind: "Shacl";
1667
+ readonly type: () => {
1668
+ kind: "Maybe";
1669
+ item: () => {
1670
+ kind: "Literal";
1671
+ };
1672
+ };
1673
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#minExclusive">;
1674
+ };
1675
+ readonly minInclusive: {
1676
+ readonly kind: "Shacl";
1677
+ readonly type: () => {
1678
+ kind: "Maybe";
1679
+ item: () => {
1680
+ kind: "Literal";
1681
+ };
1682
+ };
1683
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#minInclusive">;
1684
+ };
1685
+ readonly minLength: {
1686
+ readonly kind: "Shacl";
1687
+ readonly type: () => {
1688
+ kind: "Maybe";
1689
+ item: () => {
1690
+ kind: "Int";
1691
+ };
1692
+ };
1693
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#minLength">;
1694
+ };
1695
+ readonly mutable: {
1696
+ readonly kind: "Shacl";
1697
+ readonly type: () => {
1698
+ kind: "Maybe";
1699
+ item: () => {
1700
+ kind: "Boolean";
1701
+ };
1702
+ };
1703
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#mutable">;
1704
+ };
1705
+ readonly name: {
1706
+ readonly kind: "Shacl";
1707
+ readonly type: () => {
1708
+ kind: "Maybe";
1709
+ item: () => {
1710
+ kind: "String";
1711
+ };
1712
+ };
1713
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#name">;
1714
+ };
1715
+ readonly nodeKind: {
1716
+ readonly kind: "Shacl";
1717
+ readonly type: () => {
1718
+ kind: "Maybe";
1719
+ item: () => {
1720
+ kind: "Iri";
1721
+ in: (NamedNode<"http://www.w3.org/ns/shacl#BlankNode"> | NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrIRI"> | NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrLiteral"> | NamedNode<"http://www.w3.org/ns/shacl#IRI"> | NamedNode<"http://www.w3.org/ns/shacl#IRIOrLiteral"> | NamedNode<"http://www.w3.org/ns/shacl#Literal">)[];
1722
+ };
1723
+ };
1724
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#nodeKind">;
1725
+ };
1726
+ readonly nodes: {
1727
+ readonly kind: "Shacl";
1728
+ readonly type: () => {
1729
+ kind: "Set";
1730
+ item: () => {
1731
+ kind: "Identifier";
1732
+ };
1733
+ };
1734
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#node">;
1735
+ };
1736
+ readonly not: {
1737
+ readonly kind: "Shacl";
1738
+ readonly type: () => {
1739
+ kind: "Set";
1740
+ item: () => {
1741
+ kind: "Identifier";
1742
+ };
1743
+ };
1744
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#not">;
1745
+ };
1746
+ readonly or: {
1747
+ readonly kind: "Shacl";
1748
+ readonly type: () => {
1749
+ kind: "Set";
1750
+ item: () => {
1751
+ kind: "List";
1752
+ item: () => {
1753
+ kind: "Identifier";
1754
+ };
1755
+ };
1756
+ };
1757
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#or">;
1758
+ };
1759
+ readonly patterns: {
1760
+ readonly kind: "Shacl";
1761
+ readonly type: () => {
1762
+ kind: "Set";
1763
+ item: () => {
1764
+ kind: "String";
1765
+ };
1766
+ };
1767
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#pattern">;
1768
+ };
1769
+ readonly properties: {
1770
+ readonly kind: "Shacl";
1771
+ readonly type: () => {
1772
+ kind: "Set";
1773
+ item: () => {
1774
+ kind: "Identifier";
1775
+ };
1776
+ };
1777
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#property">;
1778
+ };
1779
+ readonly rdfType: {
1780
+ readonly kind: "Shacl";
1781
+ readonly type: () => {
1782
+ kind: "Maybe";
1783
+ item: () => {
1784
+ kind: "Iri";
1785
+ };
1786
+ };
1787
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#rdfType">;
1788
+ };
1789
+ readonly toRdfTypes: {
1790
+ readonly kind: "Shacl";
1791
+ readonly type: () => {
1792
+ kind: "Set";
1793
+ item: () => {
1794
+ kind: "Iri";
1795
+ };
1796
+ };
1797
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#toRdfType">;
1798
+ };
1799
+ readonly tsFeatureExcludes: {
1800
+ readonly kind: "Shacl";
1801
+ readonly type: () => {
1802
+ kind: "Set";
1803
+ item: () => {
1804
+ kind: "Iri";
1805
+ in: (NamedNode<"http://purl.org/shaclmate/ontology#_TsFeatures_All"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Create"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeatures_Default"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Equals"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Graphql"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Hash"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Json"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeatures_None"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Rdf"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Sparql">)[];
1806
+ };
1807
+ };
1808
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#tsFeatureExclude">;
1809
+ };
1810
+ readonly tsFeatureIncludes: {
1811
+ readonly kind: "Shacl";
1812
+ readonly type: () => {
1813
+ kind: "Set";
1814
+ item: () => {
1815
+ kind: "Iri";
1816
+ in: (NamedNode<"http://purl.org/shaclmate/ontology#_TsFeatures_All"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Create"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeatures_Default"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Equals"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Graphql"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Hash"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Json"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeatures_None"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Rdf"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Sparql">)[];
1817
+ };
1818
+ };
1819
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#tsFeatureInclude">;
1820
+ };
1821
+ readonly tsImports: {
1822
+ readonly kind: "Shacl";
1823
+ readonly type: () => {
1824
+ kind: "Set";
1825
+ item: () => {
1826
+ kind: "String";
1827
+ };
1828
+ };
1829
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#tsImport">;
1830
+ };
1831
+ readonly tsObjectDeclarationType: {
1832
+ readonly kind: "Shacl";
1833
+ readonly type: () => {
1834
+ kind: "Maybe";
1835
+ item: () => {
1836
+ kind: "Iri";
1837
+ in: (NamedNode<"http://purl.org/shaclmate/ontology#_TsObjectDeclarationType_Class"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsObjectDeclarationType_Interface">)[];
1838
+ };
1839
+ };
1840
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#tsObjectDeclarationType">;
1841
+ };
1842
+ readonly xone: {
1843
+ readonly kind: "Shacl";
1844
+ readonly type: () => {
1845
+ kind: "Set";
1846
+ item: () => {
1847
+ kind: "List";
1848
+ item: () => {
1849
+ kind: "Identifier";
1850
+ };
1851
+ };
1852
+ };
1853
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#xone">;
1854
+ };
1855
+ };
1856
+ };
1857
+ };
1858
+ readonly PropertyShape: {
1859
+ readonly discriminantValues: readonly ["PropertyShape"];
1860
+ readonly type: {
1861
+ readonly properties: {
1862
+ readonly $identifier: {
1863
+ readonly kind: "Identifier";
1864
+ readonly type: () => {
1865
+ kind: "Identifier";
1866
+ };
1867
+ };
1868
+ readonly $type: {
1869
+ readonly kind: "Discriminant";
1870
+ readonly type: () => {
1871
+ kind: "TypeDiscriminant";
1872
+ ownValues: string[];
1873
+ };
1874
+ };
1875
+ readonly and: {
1876
+ readonly kind: "Shacl";
1877
+ readonly type: () => {
1878
+ kind: "Set";
1879
+ item: () => {
1880
+ kind: "List";
1881
+ item: () => {
1882
+ kind: "Identifier";
1883
+ };
1884
+ };
1885
+ };
1886
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#and">;
1887
+ };
1888
+ readonly classes: {
1889
+ readonly kind: "Shacl";
1890
+ readonly type: () => {
1891
+ kind: "Set";
1892
+ item: () => {
1893
+ kind: "Iri";
1894
+ };
1895
+ };
1896
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#class">;
1897
+ };
1898
+ readonly comments: {
1899
+ readonly kind: "Shacl";
1900
+ readonly type: () => {
1901
+ kind: "Set";
1902
+ item: () => {
1903
+ kind: "String";
1904
+ };
1905
+ };
1906
+ readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#comment">;
1907
+ };
1908
+ readonly datatype: {
1909
+ readonly kind: "Shacl";
1910
+ readonly type: () => {
1911
+ kind: "Maybe";
1912
+ item: () => {
1913
+ kind: "Iri";
1914
+ };
1915
+ };
1916
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#datatype">;
1917
+ };
1918
+ readonly deactivated: {
1919
+ readonly kind: "Shacl";
1920
+ readonly type: () => {
1921
+ kind: "Maybe";
1922
+ item: () => {
1923
+ kind: "Boolean";
1924
+ };
1925
+ };
1926
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#deactivated">;
1927
+ };
1928
+ readonly defaultValue: {
1929
+ readonly kind: "Shacl";
1930
+ readonly type: () => {
1931
+ kind: "Maybe";
1932
+ item: () => {
1933
+ kind: "Term";
1934
+ };
1935
+ };
1936
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#defaultValue">;
1937
+ };
1938
+ readonly descriptions: {
1939
+ readonly kind: "Shacl";
1940
+ readonly type: () => {
1941
+ kind: "Set";
1942
+ item: () => {
1943
+ kind: "String";
1944
+ };
1945
+ };
1946
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#description">;
1947
+ };
1948
+ readonly flags: {
1949
+ readonly kind: "Shacl";
1950
+ readonly type: () => {
1951
+ kind: "Set";
1952
+ item: () => {
1953
+ kind: "String";
1954
+ };
1955
+ };
1956
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#flags">;
1957
+ };
1958
+ readonly groups: {
1959
+ readonly kind: "Shacl";
1960
+ readonly type: () => {
1961
+ kind: "Set";
1962
+ item: () => {
1963
+ kind: "Identifier";
1964
+ };
1965
+ };
1966
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#group">;
1967
+ };
1968
+ readonly hasValues: {
1969
+ readonly kind: "Shacl";
1970
+ readonly type: () => {
1971
+ kind: "Set";
1972
+ item: () => {
1973
+ kind: "Term";
1974
+ };
1975
+ };
1976
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#hasValue">;
1977
+ };
1978
+ readonly in_: {
1979
+ readonly kind: "Shacl";
1980
+ readonly type: () => {
1981
+ kind: "Maybe";
1982
+ item: () => {
1983
+ kind: "List";
1984
+ item: () => {
1985
+ kind: "Term";
1986
+ };
1987
+ };
1988
+ };
1989
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#in">;
1990
+ };
1991
+ readonly isDefinedBy: {
1992
+ readonly kind: "Shacl";
1993
+ readonly type: () => {
1994
+ kind: "Maybe";
1995
+ item: () => {
1996
+ kind: "Identifier";
1997
+ };
1998
+ };
1999
+ readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#isDefinedBy">;
2000
+ };
2001
+ readonly labels: {
2002
+ readonly kind: "Shacl";
2003
+ readonly type: () => {
2004
+ kind: "Set";
2005
+ item: () => {
2006
+ kind: "String";
2007
+ };
2008
+ };
2009
+ readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
2010
+ };
2011
+ readonly languageIn: {
2012
+ readonly kind: "Shacl";
2013
+ readonly type: () => {
2014
+ kind: "Maybe";
2015
+ item: () => {
2016
+ kind: "List";
2017
+ item: () => {
2018
+ kind: "String";
2019
+ };
2020
+ };
2021
+ };
2022
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#languageIn">;
2023
+ };
2024
+ readonly maxCount: {
2025
+ readonly kind: "Shacl";
2026
+ readonly type: () => {
2027
+ kind: "Maybe";
2028
+ item: () => {
2029
+ kind: "Int";
2030
+ };
2031
+ };
2032
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxCount">;
2033
+ };
2034
+ readonly maxExclusive: {
2035
+ readonly kind: "Shacl";
2036
+ readonly type: () => {
2037
+ kind: "Maybe";
2038
+ item: () => {
2039
+ kind: "Literal";
2040
+ };
2041
+ };
2042
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxExclusive">;
2043
+ };
2044
+ readonly maxInclusive: {
2045
+ readonly kind: "Shacl";
2046
+ readonly type: () => {
2047
+ kind: "Maybe";
2048
+ item: () => {
2049
+ kind: "Literal";
2050
+ };
2051
+ };
2052
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxInclusive">;
2053
+ };
2054
+ readonly maxLength: {
2055
+ readonly kind: "Shacl";
2056
+ readonly type: () => {
2057
+ kind: "Maybe";
2058
+ item: () => {
2059
+ kind: "Int";
2060
+ };
2061
+ };
2062
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxLength">;
2063
+ };
2064
+ readonly minCount: {
2065
+ readonly kind: "Shacl";
2066
+ readonly type: () => {
2067
+ kind: "Maybe";
2068
+ item: () => {
2069
+ kind: "Int";
2070
+ };
2071
+ };
2072
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#minCount">;
2073
+ };
2074
+ readonly minExclusive: {
2075
+ readonly kind: "Shacl";
2076
+ readonly type: () => {
2077
+ kind: "Maybe";
2078
+ item: () => {
2079
+ kind: "Literal";
2080
+ };
2081
+ };
2082
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#minExclusive">;
2083
+ };
2084
+ readonly minInclusive: {
2085
+ readonly kind: "Shacl";
2086
+ readonly type: () => {
2087
+ kind: "Maybe";
2088
+ item: () => {
2089
+ kind: "Literal";
2090
+ };
2091
+ };
2092
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#minInclusive">;
2093
+ };
2094
+ readonly minLength: {
2095
+ readonly kind: "Shacl";
2096
+ readonly type: () => {
2097
+ kind: "Maybe";
2098
+ item: () => {
2099
+ kind: "Int";
2100
+ };
2101
+ };
2102
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#minLength">;
2103
+ };
2104
+ readonly mutable: {
2105
+ readonly kind: "Shacl";
2106
+ readonly type: () => {
2107
+ kind: "Maybe";
2108
+ item: () => {
2109
+ kind: "Boolean";
2110
+ };
2111
+ };
2112
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#mutable">;
2113
+ };
2114
+ readonly name: {
2115
+ readonly kind: "Shacl";
2116
+ readonly type: () => {
2117
+ kind: "Maybe";
2118
+ item: () => {
2119
+ kind: "String";
2120
+ };
2121
+ };
2122
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#name">;
2123
+ };
2124
+ readonly names: {
2125
+ readonly kind: "Shacl";
2126
+ readonly type: () => {
2127
+ kind: "Set";
2128
+ item: () => {
2129
+ kind: "String";
2130
+ };
2131
+ };
2132
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#name">;
2133
+ };
2134
+ readonly nodeKind: {
2135
+ readonly kind: "Shacl";
2136
+ readonly type: () => {
2137
+ kind: "Maybe";
2138
+ item: () => {
2139
+ kind: "Iri";
2140
+ in: (NamedNode<"http://www.w3.org/ns/shacl#BlankNode"> | NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrIRI"> | NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrLiteral"> | NamedNode<"http://www.w3.org/ns/shacl#IRI"> | NamedNode<"http://www.w3.org/ns/shacl#IRIOrLiteral"> | NamedNode<"http://www.w3.org/ns/shacl#Literal">)[];
2141
+ };
2142
+ };
2143
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#nodeKind">;
2144
+ };
2145
+ readonly nodes: {
2146
+ readonly kind: "Shacl";
2147
+ readonly type: () => {
2148
+ kind: "Set";
2149
+ item: () => {
2150
+ kind: "Identifier";
2151
+ };
2152
+ };
2153
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#node">;
2154
+ };
2155
+ readonly not: {
2156
+ readonly kind: "Shacl";
2157
+ readonly type: () => {
2158
+ kind: "Set";
2159
+ item: () => {
2160
+ kind: "Identifier";
2161
+ };
2162
+ };
2163
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#not">;
2164
+ };
2165
+ readonly or: {
2166
+ readonly kind: "Shacl";
2167
+ readonly type: () => {
2168
+ kind: "Set";
2169
+ item: () => {
2170
+ kind: "List";
2171
+ item: () => {
2172
+ kind: "Identifier";
2173
+ };
2174
+ };
2175
+ };
2176
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#or">;
2177
+ };
2178
+ readonly order: {
2179
+ readonly kind: "Shacl";
2180
+ readonly type: () => {
2181
+ kind: "Maybe";
2182
+ item: () => {
2183
+ kind: "Float";
2184
+ };
2185
+ };
2186
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#order">;
2187
+ };
2188
+ readonly path: {
2189
+ readonly kind: "Shacl";
2190
+ readonly type: () => object;
2191
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#path">;
2192
+ };
2193
+ readonly patterns: {
2194
+ readonly kind: "Shacl";
2195
+ readonly type: () => {
2196
+ kind: "Set";
2197
+ item: () => {
2198
+ kind: "String";
2199
+ };
2200
+ };
2201
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#pattern">;
2202
+ };
2203
+ readonly resolve: {
2204
+ readonly kind: "Shacl";
2205
+ readonly type: () => {
2206
+ kind: "Maybe";
2207
+ item: () => {
2208
+ kind: "Identifier";
2209
+ };
2210
+ };
2211
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#resolve">;
2212
+ };
2213
+ readonly uniqueLang: {
2214
+ readonly kind: "Shacl";
2215
+ readonly type: () => {
2216
+ kind: "Maybe";
2217
+ item: () => {
2218
+ kind: "Boolean";
2219
+ };
2220
+ };
2221
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#uniqueLang">;
2222
+ };
2223
+ readonly visibility: {
2224
+ readonly kind: "Shacl";
2225
+ readonly type: () => {
2226
+ kind: "Maybe";
2227
+ item: () => {
2228
+ kind: "Iri";
2229
+ in: (NamedNode<"http://purl.org/shaclmate/ontology#_Visibility_Private"> | NamedNode<"http://purl.org/shaclmate/ontology#_Visibility_Protected"> | NamedNode<"http://purl.org/shaclmate/ontology#_Visibility_Public">)[];
2230
+ };
2231
+ };
2232
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#visibility">;
2233
+ };
2234
+ readonly xone: {
2235
+ readonly kind: "Shacl";
2236
+ readonly type: () => {
2237
+ kind: "Set";
2238
+ item: () => {
2239
+ kind: "List";
2240
+ item: () => {
2241
+ kind: "Identifier";
2242
+ };
2243
+ };
2244
+ };
2245
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#xone">;
2246
+ };
2247
+ };
2248
+ };
2249
+ };
2250
+ };
1398
2251
  readonly properties: {
1399
2252
  readonly and: {
1400
2253
  readonly kind: "Shacl";
@@ -1684,30 +2537,991 @@ export declare namespace Shape {
1684
2537
  };
1685
2538
  };
1686
2539
  };
1687
- function $toRdf(_shape: Shape, _parameters?: {
1688
- graph?: Exclude<Quad_Graph, Variable>;
1689
- resourceSet?: ResourceSet;
1690
- }): Resource;
2540
+ const $toRdfResourceValues: $ToRdfResourceValuesFunction<Shape>;
2541
+ function isShape(object: $Object): object is Shape;
1691
2542
  }
1692
2543
  export type $Object = NodeShape | Ontology | PropertyGroup | PropertyShape;
1693
2544
  export declare namespace $Object {
2545
+ const $toRdfResource: $ToRdfResourceFunction<$Object>;
2546
+ const $filter: (filter: $Object.$Filter, value: $Object) => boolean;
2547
+ type $Filter = {
2548
+ readonly $identifier?: $IdentifierFilter;
2549
+ readonly on?: {
2550
+ readonly NodeShape?: NodeShape.$Filter;
2551
+ readonly Ontology?: Ontology.$Filter;
2552
+ readonly PropertyGroup?: PropertyGroup.$Filter;
2553
+ readonly PropertyShape?: PropertyShape.$Filter;
2554
+ };
2555
+ };
2556
+ const $fromRdfResource: $FromRdfResourceFunction<$Object>;
2557
+ const $fromRdfResourceValues: $FromRdfResourceValuesFunction<$Object>;
1694
2558
  type $Identifier = BlankNode | NamedNode;
1695
2559
  namespace $Identifier {
1696
2560
  const fromString: typeof $identifierFromString;
1697
2561
  const toString: typeof import("rdfjs-resource/dist/Identifier.js").Identifier.toString;
1698
2562
  }
1699
- function $filter(filter: $Object.$Filter, value: $Object): boolean;
1700
- interface $Filter {
1701
- readonly $identifier?: $IdentifierFilter;
1702
- readonly on?: {
1703
- readonly NodeShape?: Omit<NodeShape.$Filter, "$identifier">;
1704
- readonly Ontology?: Omit<Ontology.$Filter, "$identifier">;
1705
- readonly PropertyGroup?: Omit<PropertyGroup.$Filter, "$identifier">;
1706
- readonly PropertyShape?: Omit<PropertyShape.$Filter, "$identifier">;
1707
- };
1708
- }
1709
- function $fromRdf(resource: Resource, options?: $FromRdfOptions): Either<Error, $Object>;
1710
2563
  const $schema: {
2564
+ readonly kind: "NamedObjectUnion";
2565
+ readonly members: {
2566
+ readonly NodeShape: {
2567
+ readonly discriminantValues: readonly ["NodeShape"];
2568
+ readonly type: {
2569
+ readonly properties: {
2570
+ readonly $identifier: {
2571
+ readonly kind: "Identifier";
2572
+ readonly type: () => {
2573
+ kind: "Identifier";
2574
+ };
2575
+ };
2576
+ readonly $type: {
2577
+ readonly kind: "Discriminant";
2578
+ readonly type: () => {
2579
+ kind: "TypeDiscriminant";
2580
+ ownValues: string[];
2581
+ };
2582
+ };
2583
+ readonly abstract: {
2584
+ readonly kind: "Shacl";
2585
+ readonly type: () => {
2586
+ kind: "Maybe";
2587
+ item: () => {
2588
+ kind: "Boolean";
2589
+ };
2590
+ };
2591
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#abstract">;
2592
+ };
2593
+ readonly and: {
2594
+ readonly kind: "Shacl";
2595
+ readonly type: () => {
2596
+ kind: "Set";
2597
+ item: () => {
2598
+ kind: "List";
2599
+ item: () => {
2600
+ kind: "Identifier";
2601
+ };
2602
+ };
2603
+ };
2604
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#and">;
2605
+ };
2606
+ readonly classes: {
2607
+ readonly kind: "Shacl";
2608
+ readonly type: () => {
2609
+ kind: "Set";
2610
+ item: () => {
2611
+ kind: "Iri";
2612
+ };
2613
+ };
2614
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#class">;
2615
+ };
2616
+ readonly closed: {
2617
+ readonly kind: "Shacl";
2618
+ readonly type: () => {
2619
+ kind: "Maybe";
2620
+ item: () => {
2621
+ kind: "Boolean";
2622
+ };
2623
+ };
2624
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#closed">;
2625
+ };
2626
+ readonly comments: {
2627
+ readonly kind: "Shacl";
2628
+ readonly type: () => {
2629
+ kind: "Set";
2630
+ item: () => {
2631
+ kind: "String";
2632
+ };
2633
+ };
2634
+ readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#comment">;
2635
+ };
2636
+ readonly datatype: {
2637
+ readonly kind: "Shacl";
2638
+ readonly type: () => {
2639
+ kind: "Maybe";
2640
+ item: () => {
2641
+ kind: "Iri";
2642
+ };
2643
+ };
2644
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#datatype">;
2645
+ };
2646
+ readonly deactivated: {
2647
+ readonly kind: "Shacl";
2648
+ readonly type: () => {
2649
+ kind: "Maybe";
2650
+ item: () => {
2651
+ kind: "Boolean";
2652
+ };
2653
+ };
2654
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#deactivated">;
2655
+ };
2656
+ readonly discriminantValue: {
2657
+ readonly kind: "Shacl";
2658
+ readonly type: () => {
2659
+ kind: "Maybe";
2660
+ item: () => {
2661
+ kind: "String";
2662
+ };
2663
+ };
2664
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#discriminantValue">;
2665
+ };
2666
+ readonly extern: {
2667
+ readonly kind: "Shacl";
2668
+ readonly type: () => {
2669
+ kind: "Maybe";
2670
+ item: () => {
2671
+ kind: "Boolean";
2672
+ };
2673
+ };
2674
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#extern">;
2675
+ };
2676
+ readonly flags: {
2677
+ readonly kind: "Shacl";
2678
+ readonly type: () => {
2679
+ kind: "Set";
2680
+ item: () => {
2681
+ kind: "String";
2682
+ };
2683
+ };
2684
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#flags">;
2685
+ };
2686
+ readonly fromRdfType: {
2687
+ readonly kind: "Shacl";
2688
+ readonly type: () => {
2689
+ kind: "Maybe";
2690
+ item: () => {
2691
+ kind: "Iri";
2692
+ };
2693
+ };
2694
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#fromRdfType">;
2695
+ };
2696
+ readonly hasValues: {
2697
+ readonly kind: "Shacl";
2698
+ readonly type: () => {
2699
+ kind: "Set";
2700
+ item: () => {
2701
+ kind: "Term";
2702
+ };
2703
+ };
2704
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#hasValue">;
2705
+ };
2706
+ readonly identifierMintingStrategy: {
2707
+ readonly kind: "Shacl";
2708
+ readonly type: () => {
2709
+ kind: "Maybe";
2710
+ item: () => {
2711
+ kind: "Iri";
2712
+ in: (NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_BlankNode"> | NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_SHA256"> | NamedNode<"http://purl.org/shaclmate/ontology#_IdentifierMintingStrategy_UUIDv4">)[];
2713
+ };
2714
+ };
2715
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#identifierMintingStrategy">;
2716
+ };
2717
+ readonly ignoredProperties: {
2718
+ readonly kind: "Shacl";
2719
+ readonly type: () => {
2720
+ kind: "Maybe";
2721
+ item: () => {
2722
+ kind: "List";
2723
+ item: () => {
2724
+ kind: "Iri";
2725
+ };
2726
+ };
2727
+ };
2728
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#ignoredProperties">;
2729
+ };
2730
+ readonly in_: {
2731
+ readonly kind: "Shacl";
2732
+ readonly type: () => {
2733
+ kind: "Maybe";
2734
+ item: () => {
2735
+ kind: "List";
2736
+ item: () => {
2737
+ kind: "Term";
2738
+ };
2739
+ };
2740
+ };
2741
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#in">;
2742
+ };
2743
+ readonly isDefinedBy: {
2744
+ readonly kind: "Shacl";
2745
+ readonly type: () => {
2746
+ kind: "Maybe";
2747
+ item: () => {
2748
+ kind: "Identifier";
2749
+ };
2750
+ };
2751
+ readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#isDefinedBy">;
2752
+ };
2753
+ readonly labels: {
2754
+ readonly kind: "Shacl";
2755
+ readonly type: () => {
2756
+ kind: "Set";
2757
+ item: () => {
2758
+ kind: "String";
2759
+ };
2760
+ };
2761
+ readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
2762
+ };
2763
+ readonly languageIn: {
2764
+ readonly kind: "Shacl";
2765
+ readonly type: () => {
2766
+ kind: "Maybe";
2767
+ item: () => {
2768
+ kind: "List";
2769
+ item: () => {
2770
+ kind: "String";
2771
+ };
2772
+ };
2773
+ };
2774
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#languageIn">;
2775
+ };
2776
+ readonly maxCount: {
2777
+ readonly kind: "Shacl";
2778
+ readonly type: () => {
2779
+ kind: "Maybe";
2780
+ item: () => {
2781
+ kind: "Int";
2782
+ };
2783
+ };
2784
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxCount">;
2785
+ };
2786
+ readonly maxExclusive: {
2787
+ readonly kind: "Shacl";
2788
+ readonly type: () => {
2789
+ kind: "Maybe";
2790
+ item: () => {
2791
+ kind: "Literal";
2792
+ };
2793
+ };
2794
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxExclusive">;
2795
+ };
2796
+ readonly maxInclusive: {
2797
+ readonly kind: "Shacl";
2798
+ readonly type: () => {
2799
+ kind: "Maybe";
2800
+ item: () => {
2801
+ kind: "Literal";
2802
+ };
2803
+ };
2804
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxInclusive">;
2805
+ };
2806
+ readonly maxLength: {
2807
+ readonly kind: "Shacl";
2808
+ readonly type: () => {
2809
+ kind: "Maybe";
2810
+ item: () => {
2811
+ kind: "Int";
2812
+ };
2813
+ };
2814
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxLength">;
2815
+ };
2816
+ readonly minCount: {
2817
+ readonly kind: "Shacl";
2818
+ readonly type: () => {
2819
+ kind: "Maybe";
2820
+ item: () => {
2821
+ kind: "Int";
2822
+ };
2823
+ };
2824
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#minCount">;
2825
+ };
2826
+ readonly minExclusive: {
2827
+ readonly kind: "Shacl";
2828
+ readonly type: () => {
2829
+ kind: "Maybe";
2830
+ item: () => {
2831
+ kind: "Literal";
2832
+ };
2833
+ };
2834
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#minExclusive">;
2835
+ };
2836
+ readonly minInclusive: {
2837
+ readonly kind: "Shacl";
2838
+ readonly type: () => {
2839
+ kind: "Maybe";
2840
+ item: () => {
2841
+ kind: "Literal";
2842
+ };
2843
+ };
2844
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#minInclusive">;
2845
+ };
2846
+ readonly minLength: {
2847
+ readonly kind: "Shacl";
2848
+ readonly type: () => {
2849
+ kind: "Maybe";
2850
+ item: () => {
2851
+ kind: "Int";
2852
+ };
2853
+ };
2854
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#minLength">;
2855
+ };
2856
+ readonly mutable: {
2857
+ readonly kind: "Shacl";
2858
+ readonly type: () => {
2859
+ kind: "Maybe";
2860
+ item: () => {
2861
+ kind: "Boolean";
2862
+ };
2863
+ };
2864
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#mutable">;
2865
+ };
2866
+ readonly name: {
2867
+ readonly kind: "Shacl";
2868
+ readonly type: () => {
2869
+ kind: "Maybe";
2870
+ item: () => {
2871
+ kind: "String";
2872
+ };
2873
+ };
2874
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#name">;
2875
+ };
2876
+ readonly nodeKind: {
2877
+ readonly kind: "Shacl";
2878
+ readonly type: () => {
2879
+ kind: "Maybe";
2880
+ item: () => {
2881
+ kind: "Iri";
2882
+ in: (NamedNode<"http://www.w3.org/ns/shacl#BlankNode"> | NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrIRI"> | NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrLiteral"> | NamedNode<"http://www.w3.org/ns/shacl#IRI"> | NamedNode<"http://www.w3.org/ns/shacl#IRIOrLiteral"> | NamedNode<"http://www.w3.org/ns/shacl#Literal">)[];
2883
+ };
2884
+ };
2885
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#nodeKind">;
2886
+ };
2887
+ readonly nodes: {
2888
+ readonly kind: "Shacl";
2889
+ readonly type: () => {
2890
+ kind: "Set";
2891
+ item: () => {
2892
+ kind: "Identifier";
2893
+ };
2894
+ };
2895
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#node">;
2896
+ };
2897
+ readonly not: {
2898
+ readonly kind: "Shacl";
2899
+ readonly type: () => {
2900
+ kind: "Set";
2901
+ item: () => {
2902
+ kind: "Identifier";
2903
+ };
2904
+ };
2905
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#not">;
2906
+ };
2907
+ readonly or: {
2908
+ readonly kind: "Shacl";
2909
+ readonly type: () => {
2910
+ kind: "Set";
2911
+ item: () => {
2912
+ kind: "List";
2913
+ item: () => {
2914
+ kind: "Identifier";
2915
+ };
2916
+ };
2917
+ };
2918
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#or">;
2919
+ };
2920
+ readonly patterns: {
2921
+ readonly kind: "Shacl";
2922
+ readonly type: () => {
2923
+ kind: "Set";
2924
+ item: () => {
2925
+ kind: "String";
2926
+ };
2927
+ };
2928
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#pattern">;
2929
+ };
2930
+ readonly properties: {
2931
+ readonly kind: "Shacl";
2932
+ readonly type: () => {
2933
+ kind: "Set";
2934
+ item: () => {
2935
+ kind: "Identifier";
2936
+ };
2937
+ };
2938
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#property">;
2939
+ };
2940
+ readonly rdfType: {
2941
+ readonly kind: "Shacl";
2942
+ readonly type: () => {
2943
+ kind: "Maybe";
2944
+ item: () => {
2945
+ kind: "Iri";
2946
+ };
2947
+ };
2948
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#rdfType">;
2949
+ };
2950
+ readonly toRdfTypes: {
2951
+ readonly kind: "Shacl";
2952
+ readonly type: () => {
2953
+ kind: "Set";
2954
+ item: () => {
2955
+ kind: "Iri";
2956
+ };
2957
+ };
2958
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#toRdfType">;
2959
+ };
2960
+ readonly tsFeatureExcludes: {
2961
+ readonly kind: "Shacl";
2962
+ readonly type: () => {
2963
+ kind: "Set";
2964
+ item: () => {
2965
+ kind: "Iri";
2966
+ in: (NamedNode<"http://purl.org/shaclmate/ontology#_TsFeatures_All"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Create"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeatures_Default"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Equals"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Graphql"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Hash"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Json"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeatures_None"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Rdf"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Sparql">)[];
2967
+ };
2968
+ };
2969
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#tsFeatureExclude">;
2970
+ };
2971
+ readonly tsFeatureIncludes: {
2972
+ readonly kind: "Shacl";
2973
+ readonly type: () => {
2974
+ kind: "Set";
2975
+ item: () => {
2976
+ kind: "Iri";
2977
+ in: (NamedNode<"http://purl.org/shaclmate/ontology#_TsFeatures_All"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Create"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeatures_Default"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Equals"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Graphql"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Hash"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Json"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeatures_None"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Rdf"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Sparql">)[];
2978
+ };
2979
+ };
2980
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#tsFeatureInclude">;
2981
+ };
2982
+ readonly tsImports: {
2983
+ readonly kind: "Shacl";
2984
+ readonly type: () => {
2985
+ kind: "Set";
2986
+ item: () => {
2987
+ kind: "String";
2988
+ };
2989
+ };
2990
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#tsImport">;
2991
+ };
2992
+ readonly tsObjectDeclarationType: {
2993
+ readonly kind: "Shacl";
2994
+ readonly type: () => {
2995
+ kind: "Maybe";
2996
+ item: () => {
2997
+ kind: "Iri";
2998
+ in: (NamedNode<"http://purl.org/shaclmate/ontology#_TsObjectDeclarationType_Class"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsObjectDeclarationType_Interface">)[];
2999
+ };
3000
+ };
3001
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#tsObjectDeclarationType">;
3002
+ };
3003
+ readonly xone: {
3004
+ readonly kind: "Shacl";
3005
+ readonly type: () => {
3006
+ kind: "Set";
3007
+ item: () => {
3008
+ kind: "List";
3009
+ item: () => {
3010
+ kind: "Identifier";
3011
+ };
3012
+ };
3013
+ };
3014
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#xone">;
3015
+ };
3016
+ };
3017
+ };
3018
+ };
3019
+ readonly Ontology: {
3020
+ readonly discriminantValues: readonly ["Ontology"];
3021
+ readonly type: {
3022
+ readonly properties: {
3023
+ readonly $identifier: {
3024
+ readonly kind: "Identifier";
3025
+ readonly type: () => {
3026
+ kind: "Identifier";
3027
+ };
3028
+ };
3029
+ readonly $type: {
3030
+ readonly kind: "Discriminant";
3031
+ readonly type: () => {
3032
+ kind: "TypeDiscriminant";
3033
+ ownValues: string[];
3034
+ };
3035
+ };
3036
+ readonly labels: {
3037
+ readonly kind: "Shacl";
3038
+ readonly type: () => {
3039
+ kind: "Set";
3040
+ item: () => {
3041
+ kind: "String";
3042
+ };
3043
+ };
3044
+ readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
3045
+ };
3046
+ readonly tsFeatureExcludes: {
3047
+ readonly kind: "Shacl";
3048
+ readonly type: () => {
3049
+ kind: "Set";
3050
+ item: () => {
3051
+ kind: "Iri";
3052
+ in: (NamedNode<"http://purl.org/shaclmate/ontology#_TsFeatures_All"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Create"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeatures_Default"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Equals"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Graphql"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Hash"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Json"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeatures_None"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Rdf"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Sparql">)[];
3053
+ };
3054
+ };
3055
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#tsFeatureExclude">;
3056
+ };
3057
+ readonly tsFeatureIncludes: {
3058
+ readonly kind: "Shacl";
3059
+ readonly type: () => {
3060
+ kind: "Set";
3061
+ item: () => {
3062
+ kind: "Iri";
3063
+ in: (NamedNode<"http://purl.org/shaclmate/ontology#_TsFeatures_All"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Create"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeatures_Default"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Equals"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Graphql"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Hash"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Json"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeatures_None"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Rdf"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsFeature_Sparql">)[];
3064
+ };
3065
+ };
3066
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#tsFeatureInclude">;
3067
+ };
3068
+ readonly tsImports: {
3069
+ readonly kind: "Shacl";
3070
+ readonly type: () => {
3071
+ kind: "Set";
3072
+ item: () => {
3073
+ kind: "String";
3074
+ };
3075
+ };
3076
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#tsImport">;
3077
+ };
3078
+ readonly tsObjectDeclarationType: {
3079
+ readonly kind: "Shacl";
3080
+ readonly type: () => {
3081
+ kind: "Maybe";
3082
+ item: () => {
3083
+ kind: "Iri";
3084
+ in: (NamedNode<"http://purl.org/shaclmate/ontology#_TsObjectDeclarationType_Class"> | NamedNode<"http://purl.org/shaclmate/ontology#_TsObjectDeclarationType_Interface">)[];
3085
+ };
3086
+ };
3087
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#tsObjectDeclarationType">;
3088
+ };
3089
+ };
3090
+ };
3091
+ };
3092
+ readonly PropertyGroup: {
3093
+ readonly discriminantValues: readonly ["PropertyGroup"];
3094
+ readonly type: {
3095
+ readonly properties: {
3096
+ readonly $identifier: {
3097
+ readonly kind: "Identifier";
3098
+ readonly type: () => {
3099
+ kind: "Identifier";
3100
+ };
3101
+ };
3102
+ readonly $type: {
3103
+ readonly kind: "Discriminant";
3104
+ readonly type: () => {
3105
+ kind: "TypeDiscriminant";
3106
+ ownValues: string[];
3107
+ };
3108
+ };
3109
+ readonly comments: {
3110
+ readonly kind: "Shacl";
3111
+ readonly type: () => {
3112
+ kind: "Set";
3113
+ item: () => {
3114
+ kind: "String";
3115
+ };
3116
+ };
3117
+ readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#comment">;
3118
+ };
3119
+ readonly labels: {
3120
+ readonly kind: "Shacl";
3121
+ readonly type: () => {
3122
+ kind: "Set";
3123
+ item: () => {
3124
+ kind: "String";
3125
+ };
3126
+ };
3127
+ readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
3128
+ };
3129
+ };
3130
+ };
3131
+ };
3132
+ readonly PropertyShape: {
3133
+ readonly discriminantValues: readonly ["PropertyShape"];
3134
+ readonly type: {
3135
+ readonly properties: {
3136
+ readonly $identifier: {
3137
+ readonly kind: "Identifier";
3138
+ readonly type: () => {
3139
+ kind: "Identifier";
3140
+ };
3141
+ };
3142
+ readonly $type: {
3143
+ readonly kind: "Discriminant";
3144
+ readonly type: () => {
3145
+ kind: "TypeDiscriminant";
3146
+ ownValues: string[];
3147
+ };
3148
+ };
3149
+ readonly and: {
3150
+ readonly kind: "Shacl";
3151
+ readonly type: () => {
3152
+ kind: "Set";
3153
+ item: () => {
3154
+ kind: "List";
3155
+ item: () => {
3156
+ kind: "Identifier";
3157
+ };
3158
+ };
3159
+ };
3160
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#and">;
3161
+ };
3162
+ readonly classes: {
3163
+ readonly kind: "Shacl";
3164
+ readonly type: () => {
3165
+ kind: "Set";
3166
+ item: () => {
3167
+ kind: "Iri";
3168
+ };
3169
+ };
3170
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#class">;
3171
+ };
3172
+ readonly comments: {
3173
+ readonly kind: "Shacl";
3174
+ readonly type: () => {
3175
+ kind: "Set";
3176
+ item: () => {
3177
+ kind: "String";
3178
+ };
3179
+ };
3180
+ readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#comment">;
3181
+ };
3182
+ readonly datatype: {
3183
+ readonly kind: "Shacl";
3184
+ readonly type: () => {
3185
+ kind: "Maybe";
3186
+ item: () => {
3187
+ kind: "Iri";
3188
+ };
3189
+ };
3190
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#datatype">;
3191
+ };
3192
+ readonly deactivated: {
3193
+ readonly kind: "Shacl";
3194
+ readonly type: () => {
3195
+ kind: "Maybe";
3196
+ item: () => {
3197
+ kind: "Boolean";
3198
+ };
3199
+ };
3200
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#deactivated">;
3201
+ };
3202
+ readonly defaultValue: {
3203
+ readonly kind: "Shacl";
3204
+ readonly type: () => {
3205
+ kind: "Maybe";
3206
+ item: () => {
3207
+ kind: "Term";
3208
+ };
3209
+ };
3210
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#defaultValue">;
3211
+ };
3212
+ readonly descriptions: {
3213
+ readonly kind: "Shacl";
3214
+ readonly type: () => {
3215
+ kind: "Set";
3216
+ item: () => {
3217
+ kind: "String";
3218
+ };
3219
+ };
3220
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#description">;
3221
+ };
3222
+ readonly flags: {
3223
+ readonly kind: "Shacl";
3224
+ readonly type: () => {
3225
+ kind: "Set";
3226
+ item: () => {
3227
+ kind: "String";
3228
+ };
3229
+ };
3230
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#flags">;
3231
+ };
3232
+ readonly groups: {
3233
+ readonly kind: "Shacl";
3234
+ readonly type: () => {
3235
+ kind: "Set";
3236
+ item: () => {
3237
+ kind: "Identifier";
3238
+ };
3239
+ };
3240
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#group">;
3241
+ };
3242
+ readonly hasValues: {
3243
+ readonly kind: "Shacl";
3244
+ readonly type: () => {
3245
+ kind: "Set";
3246
+ item: () => {
3247
+ kind: "Term";
3248
+ };
3249
+ };
3250
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#hasValue">;
3251
+ };
3252
+ readonly in_: {
3253
+ readonly kind: "Shacl";
3254
+ readonly type: () => {
3255
+ kind: "Maybe";
3256
+ item: () => {
3257
+ kind: "List";
3258
+ item: () => {
3259
+ kind: "Term";
3260
+ };
3261
+ };
3262
+ };
3263
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#in">;
3264
+ };
3265
+ readonly isDefinedBy: {
3266
+ readonly kind: "Shacl";
3267
+ readonly type: () => {
3268
+ kind: "Maybe";
3269
+ item: () => {
3270
+ kind: "Identifier";
3271
+ };
3272
+ };
3273
+ readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#isDefinedBy">;
3274
+ };
3275
+ readonly labels: {
3276
+ readonly kind: "Shacl";
3277
+ readonly type: () => {
3278
+ kind: "Set";
3279
+ item: () => {
3280
+ kind: "String";
3281
+ };
3282
+ };
3283
+ readonly path: NamedNode<"http://www.w3.org/2000/01/rdf-schema#label">;
3284
+ };
3285
+ readonly languageIn: {
3286
+ readonly kind: "Shacl";
3287
+ readonly type: () => {
3288
+ kind: "Maybe";
3289
+ item: () => {
3290
+ kind: "List";
3291
+ item: () => {
3292
+ kind: "String";
3293
+ };
3294
+ };
3295
+ };
3296
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#languageIn">;
3297
+ };
3298
+ readonly maxCount: {
3299
+ readonly kind: "Shacl";
3300
+ readonly type: () => {
3301
+ kind: "Maybe";
3302
+ item: () => {
3303
+ kind: "Int";
3304
+ };
3305
+ };
3306
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxCount">;
3307
+ };
3308
+ readonly maxExclusive: {
3309
+ readonly kind: "Shacl";
3310
+ readonly type: () => {
3311
+ kind: "Maybe";
3312
+ item: () => {
3313
+ kind: "Literal";
3314
+ };
3315
+ };
3316
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxExclusive">;
3317
+ };
3318
+ readonly maxInclusive: {
3319
+ readonly kind: "Shacl";
3320
+ readonly type: () => {
3321
+ kind: "Maybe";
3322
+ item: () => {
3323
+ kind: "Literal";
3324
+ };
3325
+ };
3326
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxInclusive">;
3327
+ };
3328
+ readonly maxLength: {
3329
+ readonly kind: "Shacl";
3330
+ readonly type: () => {
3331
+ kind: "Maybe";
3332
+ item: () => {
3333
+ kind: "Int";
3334
+ };
3335
+ };
3336
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#maxLength">;
3337
+ };
3338
+ readonly minCount: {
3339
+ readonly kind: "Shacl";
3340
+ readonly type: () => {
3341
+ kind: "Maybe";
3342
+ item: () => {
3343
+ kind: "Int";
3344
+ };
3345
+ };
3346
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#minCount">;
3347
+ };
3348
+ readonly minExclusive: {
3349
+ readonly kind: "Shacl";
3350
+ readonly type: () => {
3351
+ kind: "Maybe";
3352
+ item: () => {
3353
+ kind: "Literal";
3354
+ };
3355
+ };
3356
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#minExclusive">;
3357
+ };
3358
+ readonly minInclusive: {
3359
+ readonly kind: "Shacl";
3360
+ readonly type: () => {
3361
+ kind: "Maybe";
3362
+ item: () => {
3363
+ kind: "Literal";
3364
+ };
3365
+ };
3366
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#minInclusive">;
3367
+ };
3368
+ readonly minLength: {
3369
+ readonly kind: "Shacl";
3370
+ readonly type: () => {
3371
+ kind: "Maybe";
3372
+ item: () => {
3373
+ kind: "Int";
3374
+ };
3375
+ };
3376
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#minLength">;
3377
+ };
3378
+ readonly mutable: {
3379
+ readonly kind: "Shacl";
3380
+ readonly type: () => {
3381
+ kind: "Maybe";
3382
+ item: () => {
3383
+ kind: "Boolean";
3384
+ };
3385
+ };
3386
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#mutable">;
3387
+ };
3388
+ readonly name: {
3389
+ readonly kind: "Shacl";
3390
+ readonly type: () => {
3391
+ kind: "Maybe";
3392
+ item: () => {
3393
+ kind: "String";
3394
+ };
3395
+ };
3396
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#name">;
3397
+ };
3398
+ readonly names: {
3399
+ readonly kind: "Shacl";
3400
+ readonly type: () => {
3401
+ kind: "Set";
3402
+ item: () => {
3403
+ kind: "String";
3404
+ };
3405
+ };
3406
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#name">;
3407
+ };
3408
+ readonly nodeKind: {
3409
+ readonly kind: "Shacl";
3410
+ readonly type: () => {
3411
+ kind: "Maybe";
3412
+ item: () => {
3413
+ kind: "Iri";
3414
+ in: (NamedNode<"http://www.w3.org/ns/shacl#BlankNode"> | NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrIRI"> | NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrLiteral"> | NamedNode<"http://www.w3.org/ns/shacl#IRI"> | NamedNode<"http://www.w3.org/ns/shacl#IRIOrLiteral"> | NamedNode<"http://www.w3.org/ns/shacl#Literal">)[];
3415
+ };
3416
+ };
3417
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#nodeKind">;
3418
+ };
3419
+ readonly nodes: {
3420
+ readonly kind: "Shacl";
3421
+ readonly type: () => {
3422
+ kind: "Set";
3423
+ item: () => {
3424
+ kind: "Identifier";
3425
+ };
3426
+ };
3427
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#node">;
3428
+ };
3429
+ readonly not: {
3430
+ readonly kind: "Shacl";
3431
+ readonly type: () => {
3432
+ kind: "Set";
3433
+ item: () => {
3434
+ kind: "Identifier";
3435
+ };
3436
+ };
3437
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#not">;
3438
+ };
3439
+ readonly or: {
3440
+ readonly kind: "Shacl";
3441
+ readonly type: () => {
3442
+ kind: "Set";
3443
+ item: () => {
3444
+ kind: "List";
3445
+ item: () => {
3446
+ kind: "Identifier";
3447
+ };
3448
+ };
3449
+ };
3450
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#or">;
3451
+ };
3452
+ readonly order: {
3453
+ readonly kind: "Shacl";
3454
+ readonly type: () => {
3455
+ kind: "Maybe";
3456
+ item: () => {
3457
+ kind: "Float";
3458
+ };
3459
+ };
3460
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#order">;
3461
+ };
3462
+ readonly path: {
3463
+ readonly kind: "Shacl";
3464
+ readonly type: () => object;
3465
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#path">;
3466
+ };
3467
+ readonly patterns: {
3468
+ readonly kind: "Shacl";
3469
+ readonly type: () => {
3470
+ kind: "Set";
3471
+ item: () => {
3472
+ kind: "String";
3473
+ };
3474
+ };
3475
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#pattern">;
3476
+ };
3477
+ readonly resolve: {
3478
+ readonly kind: "Shacl";
3479
+ readonly type: () => {
3480
+ kind: "Maybe";
3481
+ item: () => {
3482
+ kind: "Identifier";
3483
+ };
3484
+ };
3485
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#resolve">;
3486
+ };
3487
+ readonly uniqueLang: {
3488
+ readonly kind: "Shacl";
3489
+ readonly type: () => {
3490
+ kind: "Maybe";
3491
+ item: () => {
3492
+ kind: "Boolean";
3493
+ };
3494
+ };
3495
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#uniqueLang">;
3496
+ };
3497
+ readonly visibility: {
3498
+ readonly kind: "Shacl";
3499
+ readonly type: () => {
3500
+ kind: "Maybe";
3501
+ item: () => {
3502
+ kind: "Iri";
3503
+ in: (NamedNode<"http://purl.org/shaclmate/ontology#_Visibility_Private"> | NamedNode<"http://purl.org/shaclmate/ontology#_Visibility_Protected"> | NamedNode<"http://purl.org/shaclmate/ontology#_Visibility_Public">)[];
3504
+ };
3505
+ };
3506
+ readonly path: NamedNode<"http://purl.org/shaclmate/ontology#visibility">;
3507
+ };
3508
+ readonly xone: {
3509
+ readonly kind: "Shacl";
3510
+ readonly type: () => {
3511
+ kind: "Set";
3512
+ item: () => {
3513
+ kind: "List";
3514
+ item: () => {
3515
+ kind: "Identifier";
3516
+ };
3517
+ };
3518
+ };
3519
+ readonly path: NamedNode<"http://www.w3.org/ns/shacl#xone">;
3520
+ };
3521
+ };
3522
+ };
3523
+ };
3524
+ };
1711
3525
  readonly properties: {
1712
3526
  readonly labels: {
1713
3527
  readonly kind: "Shacl";
@@ -1721,10 +3535,7 @@ export declare namespace $Object {
1721
3535
  };
1722
3536
  };
1723
3537
  };
1724
- function $toRdf(_object: $Object, _parameters?: {
1725
- graph?: Exclude<Quad_Graph, Variable>;
1726
- resourceSet?: ResourceSet;
1727
- }): Resource;
3538
+ const $toRdfResourceValues: $ToRdfResourceValuesFunction<$Object>;
1728
3539
  }
1729
3540
  export interface $ObjectSet {
1730
3541
  nodeShape(identifier: NodeShape.$Identifier, options?: {
@@ -1858,14 +3669,14 @@ export declare class $RdfjsDatasetObjectSet implements $ObjectSet {
1858
3669
  readonly $identifier: ObjectIdentifierT;
1859
3670
  }, ObjectFilterT, ObjectIdentifierT extends BlankNode | NamedNode>(objectType: {
1860
3671
  $filter: (filter: ObjectFilterT, value: ObjectT) => boolean;
1861
- $fromRdf: (resource: Resource, options?: $FromRdfOptions) => Either<Error, ObjectT>;
3672
+ $fromRdfResource: $FromRdfResourceFunction<ObjectT>;
1862
3673
  $fromRdfTypes: readonly NamedNode[];
1863
3674
  }, query?: $ObjectSet.Query<ObjectFilterT, ObjectIdentifierT>): Either<Error, readonly ObjectT[]>;
1864
3675
  protected $objectUnionsSync<ObjectT extends {
1865
3676
  readonly $identifier: ObjectIdentifierT;
1866
3677
  }, ObjectFilterT, ObjectIdentifierT extends BlankNode | NamedNode>(objectTypes: readonly {
1867
3678
  $filter: (filter: ObjectFilterT, value: ObjectT) => boolean;
1868
- $fromRdf: (resource: Resource, options?: $FromRdfOptions) => Either<Error, ObjectT>;
3679
+ $fromRdfResource: $FromRdfResourceFunction<ObjectT>;
1869
3680
  $fromRdfTypes: readonly NamedNode[];
1870
3681
  }[], query?: $ObjectSet.Query<ObjectFilterT, ObjectIdentifierT>): Either<Error, readonly ObjectT[]>;
1871
3682
  }