@shaclmate/compiler 4.0.48 → 4.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/input/input.shaclmate.ttl +85 -0
- package/package.json +606 -23
- package/dist/Compiler.d.ts +0 -14
- package/dist/Compiler.js +0 -18
- package/dist/Eithers.d.ts +0 -14
- package/dist/Eithers.js +0 -67
- package/dist/ShapesGraphToAstTransformer.d.ts +0 -18
- package/dist/ShapesGraphToAstTransformer.js +0 -50
- package/dist/_ShapesGraphToAstTransformer/ShapeStack.d.ts +0 -15
- package/dist/_ShapesGraphToAstTransformer/ShapeStack.js +0 -51
- package/dist/_ShapesGraphToAstTransformer/defaultNodeShapeNodeKinds.d.ts +0 -3
- package/dist/_ShapesGraphToAstTransformer/defaultNodeShapeNodeKinds.js +0 -5
- package/dist/_ShapesGraphToAstTransformer/shapeAstTypeName.d.ts +0 -4
- package/dist/_ShapesGraphToAstTransformer/shapeAstTypeName.js +0 -24
- package/dist/_ShapesGraphToAstTransformer/shapeNodeKinds.d.ts +0 -9
- package/dist/_ShapesGraphToAstTransformer/shapeNodeKinds.js +0 -150
- package/dist/_ShapesGraphToAstTransformer/shapeOntology.d.ts +0 -5
- package/dist/_ShapesGraphToAstTransformer/shapeOntology.js +0 -26
- package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstStructTypeField.d.ts +0 -17
- package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstStructTypeField.js +0 -285
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.d.ts +0 -10
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.js +0 -92
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.d.ts +0 -11
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.js +0 -149
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstStructType.d.ts +0 -7
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstStructType.js +0 -166
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstTermType.d.ts +0 -12
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstTermType.js +0 -110
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.d.ts +0 -11
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.js +0 -46
- package/dist/ast/AbstractCollectionType.d.ts +0 -30
- package/dist/ast/AbstractCollectionType.js +0 -33
- package/dist/ast/AbstractCompoundType.d.ts +0 -45
- package/dist/ast/AbstractCompoundType.js +0 -81
- package/dist/ast/AbstractContainerType.d.ts +0 -44
- package/dist/ast/AbstractContainerType.js +0 -63
- package/dist/ast/AbstractLazyType.d.ts +0 -117
- package/dist/ast/AbstractLazyType.js +0 -40
- package/dist/ast/AbstractTermType.d.ts +0 -33
- package/dist/ast/AbstractTermType.js +0 -47
- package/dist/ast/AbstractType.d.ts +0 -55
- package/dist/ast/AbstractType.js +0 -55
- package/dist/ast/Ast.d.ts +0 -6
- package/dist/ast/Ast.js +0 -2
- package/dist/ast/BlankNodeType.d.ts +0 -11
- package/dist/ast/BlankNodeType.js +0 -17
- package/dist/ast/DefaultValueType.d.ts +0 -35
- package/dist/ast/DefaultValueType.js +0 -50
- package/dist/ast/IdentifierType.d.ts +0 -12
- package/dist/ast/IdentifierType.js +0 -20
- package/dist/ast/IntersectionType.d.ts +0 -14
- package/dist/ast/IntersectionType.js +0 -17
- package/dist/ast/IriType.d.ts +0 -10
- package/dist/ast/IriType.js +0 -10
- package/dist/ast/LazyOptionType.d.ts +0 -6
- package/dist/ast/LazyOptionType.js +0 -5
- package/dist/ast/LazySetType.d.ts +0 -6
- package/dist/ast/LazySetType.js +0 -5
- package/dist/ast/LazyType.d.ts +0 -5
- package/dist/ast/LazyType.js +0 -5
- package/dist/ast/ListType.d.ts +0 -44
- package/dist/ast/ListType.js +0 -56
- package/dist/ast/LiteralType.d.ts +0 -40
- package/dist/ast/LiteralType.js +0 -59
- package/dist/ast/OptionType.d.ts +0 -13
- package/dist/ast/OptionType.js +0 -21
- package/dist/ast/SetType.d.ts +0 -31
- package/dist/ast/SetType.js +0 -42
- package/dist/ast/StructCompoundType.d.ts +0 -12
- package/dist/ast/StructCompoundType.js +0 -87
- package/dist/ast/StructIntersectionType.d.ts +0 -4
- package/dist/ast/StructIntersectionType.js +0 -2
- package/dist/ast/StructType.d.ts +0 -178
- package/dist/ast/StructType.js +0 -314
- package/dist/ast/StructUnionType.d.ts +0 -4
- package/dist/ast/StructUnionType.js +0 -2
- package/dist/ast/TermType.d.ts +0 -14
- package/dist/ast/TermType.js +0 -16
- package/dist/ast/Type.d.ts +0 -20
- package/dist/ast/Type.js +0 -42
- package/dist/ast/UnionType.d.ts +0 -30
- package/dist/ast/UnionType.js +0 -27
- package/dist/ast/equals.d.ts +0 -12
- package/dist/ast/equals.js +0 -65
- package/dist/ast/index.d.ts +0 -21
- package/dist/ast/index.js +0 -21
- package/dist/generators/AstJsonGenerator.d.ts +0 -6
- package/dist/generators/AstJsonGenerator.js +0 -15
- package/dist/generators/Cx2Generator.d.ts +0 -10
- package/dist/generators/Cx2Generator.js +0 -140
- package/dist/generators/Generator.d.ts +0 -5
- package/dist/generators/Generator.js +0 -2
- package/dist/generators/LabeledPropertyGraph.d.ts +0 -42
- package/dist/generators/LabeledPropertyGraph.js +0 -2
- package/dist/generators/index.d.ts +0 -6
- package/dist/generators/index.js +0 -6
- package/dist/generators/transformAstToLabeledPropertyGraph.d.ts +0 -4
- package/dist/generators/transformAstToLabeledPropertyGraph.js +0 -78
- package/dist/generators/ts/AbstractCollectionType.d.ts +0 -37
- package/dist/generators/ts/AbstractCollectionType.js +0 -88
- package/dist/generators/ts/AbstractContainerType.d.ts +0 -53
- package/dist/generators/ts/AbstractContainerType.js +0 -97
- package/dist/generators/ts/AbstractDateType.d.ts +0 -23
- package/dist/generators/ts/AbstractDateType.js +0 -37
- package/dist/generators/ts/AbstractIdentifierType.d.ts +0 -21
- package/dist/generators/ts/AbstractIdentifierType.js +0 -25
- package/dist/generators/ts/AbstractLazyType.d.ts +0 -67
- package/dist/generators/ts/AbstractLazyType.js +0 -154
- package/dist/generators/ts/AbstractLiteralType.d.ts +0 -26
- package/dist/generators/ts/AbstractLiteralType.js +0 -15
- package/dist/generators/ts/AbstractNumericType.d.ts +0 -21
- package/dist/generators/ts/AbstractNumericType.js +0 -65
- package/dist/generators/ts/AbstractObjectSetType.d.ts +0 -36
- package/dist/generators/ts/AbstractObjectSetType.js +0 -44
- package/dist/generators/ts/AbstractPrimitiveType.d.ts +0 -32
- package/dist/generators/ts/AbstractPrimitiveType.js +0 -51
- package/dist/generators/ts/AbstractTermType.d.ts +0 -50
- package/dist/generators/ts/AbstractTermType.js +0 -102
- package/dist/generators/ts/AbstractType.d.ts +0 -345
- package/dist/generators/ts/AbstractType.js +0 -135
- package/dist/generators/ts/BigDecimalType.d.ts +0 -28
- package/dist/generators/ts/BigDecimalType.js +0 -58
- package/dist/generators/ts/BigIntType.d.ts +0 -17
- package/dist/generators/ts/BigIntType.js +0 -56
- package/dist/generators/ts/BlankNodeType.d.ts +0 -22
- package/dist/generators/ts/BlankNodeType.js +0 -67
- package/dist/generators/ts/BooleanType.d.ts +0 -21
- package/dist/generators/ts/BooleanType.js +0 -53
- package/dist/generators/ts/DateTimeType.d.ts +0 -13
- package/dist/generators/ts/DateTimeType.js +0 -31
- package/dist/generators/ts/DateType.d.ts +0 -14
- package/dist/generators/ts/DateType.js +0 -32
- package/dist/generators/ts/DefaultValueType.d.ts +0 -83
- package/dist/generators/ts/DefaultValueType.js +0 -143
- package/dist/generators/ts/FloatType.d.ts +0 -13
- package/dist/generators/ts/FloatType.js +0 -30
- package/dist/generators/ts/GraphqlSchema.d.ts +0 -22
- package/dist/generators/ts/GraphqlSchema.js +0 -87
- package/dist/generators/ts/IdentifierType.d.ts +0 -23
- package/dist/generators/ts/IdentifierType.js +0 -83
- package/dist/generators/ts/Imports.d.ts +0 -40
- package/dist/generators/ts/Imports.js +0 -41
- package/dist/generators/ts/IntType.d.ts +0 -13
- package/dist/generators/ts/IntType.js +0 -30
- package/dist/generators/ts/IriType.d.ts +0 -23
- package/dist/generators/ts/IriType.js +0 -112
- package/dist/generators/ts/LazyOptionType.d.ts +0 -36
- package/dist/generators/ts/LazyOptionType.js +0 -75
- package/dist/generators/ts/LazySetType.d.ts +0 -20
- package/dist/generators/ts/LazySetType.js +0 -76
- package/dist/generators/ts/LazyType.d.ts +0 -19
- package/dist/generators/ts/LazyType.js +0 -65
- package/dist/generators/ts/ListType.d.ts +0 -49
- package/dist/generators/ts/ListType.js +0 -161
- package/dist/generators/ts/LiteralType.d.ts +0 -27
- package/dist/generators/ts/LiteralType.js +0 -71
- package/dist/generators/ts/ObjectSetType.d.ts +0 -6
- package/dist/generators/ts/ObjectSetType.js +0 -36
- package/dist/generators/ts/ObjectType.d.ts +0 -104
- package/dist/generators/ts/ObjectType.js +0 -492
- package/dist/generators/ts/ObjectUnionType.d.ts +0 -20
- package/dist/generators/ts/ObjectUnionType.js +0 -223
- package/dist/generators/ts/OptionType.d.ts +0 -39
- package/dist/generators/ts/OptionType.js +0 -157
- package/dist/generators/ts/RdfjsDatasetObjectSetType.d.ts +0 -6
- package/dist/generators/ts/RdfjsDatasetObjectSetType.js +0 -323
- package/dist/generators/ts/Reusables.d.ts +0 -13
- package/dist/generators/ts/Reusables.js +0 -15
- package/dist/generators/ts/SetType.d.ts +0 -32
- package/dist/generators/ts/SetType.js +0 -132
- package/dist/generators/ts/Snippet.d.ts +0 -3
- package/dist/generators/ts/Snippet.js +0 -2
- package/dist/generators/ts/SnippetFactory.d.ts +0 -16
- package/dist/generators/ts/SnippetFactory.js +0 -2
- package/dist/generators/ts/Snippets.d.ts +0 -177
- package/dist/generators/ts/Snippets.js +0 -1163
- package/dist/generators/ts/SparqlObjectSetType.d.ts +0 -6
- package/dist/generators/ts/SparqlObjectSetType.js +0 -241
- package/dist/generators/ts/StringType.d.ts +0 -22
- package/dist/generators/ts/StringType.js +0 -68
- package/dist/generators/ts/TermType.d.ts +0 -31
- package/dist/generators/ts/TermType.js +0 -143
- package/dist/generators/ts/TsFeature.d.ts +0 -3
- package/dist/generators/ts/TsFeature.js +0 -28
- package/dist/generators/ts/TsGenerator.d.ts +0 -30
- package/dist/generators/ts/TsGenerator.js +0 -292
- package/dist/generators/ts/Type.d.ts +0 -25
- package/dist/generators/ts/Type.js +0 -2
- package/dist/generators/ts/TypeFactory.d.ts +0 -43
- package/dist/generators/ts/TypeFactory.js +0 -540
- package/dist/generators/ts/Typeof.d.ts +0 -2
- package/dist/generators/ts/Typeof.js +0 -2
- package/dist/generators/ts/UnionType.d.ts +0 -126
- package/dist/generators/ts/UnionType.js +0 -850
- package/dist/generators/ts/ZodGenerator.d.ts +0 -11
- package/dist/generators/ts/ZodGenerator.js +0 -60
- package/dist/generators/ts/_ObjectType/AbstractProperty.d.ts +0 -220
- package/dist/generators/ts/_ObjectType/AbstractProperty.js +0 -37
- package/dist/generators/ts/_ObjectType/DiscriminantProperty.d.ts +0 -45
- package/dist/generators/ts/_ObjectType/DiscriminantProperty.js +0 -104
- package/dist/generators/ts/_ObjectType/IdentifierProperty.d.ts +0 -43
- package/dist/generators/ts/_ObjectType/IdentifierProperty.js +0 -216
- package/dist/generators/ts/_ObjectType/ObjectType_createFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_createFunctionExpression.js +0 -28
- package/dist/generators/ts/_ObjectType/ObjectType_equalsFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_equalsFunctionExpression.js +0 -15
- package/dist/generators/ts/_ObjectType/ObjectType_filterFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_filterFunctionExpression.js +0 -12
- package/dist/generators/ts/_ObjectType/ObjectType_filterTypeExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_filterTypeExpression.js +0 -20
- package/dist/generators/ts/_ObjectType/ObjectType_focusSparqlConstructTriplesFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_focusSparqlConstructTriplesFunctionExpression.js +0 -46
- package/dist/generators/ts/_ObjectType/ObjectType_focusSparqlWherePatternsFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_focusSparqlWherePatternsFunctionExpression.js +0 -79
- package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionExpression.js +0 -12
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunctionExpression.js +0 -43
- package/dist/generators/ts/_ObjectType/ObjectType_graphqlTypeExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_graphqlTypeExpression.js +0 -26
- package/dist/generators/ts/_ObjectType/ObjectType_hashFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_hashFunctionExpression.js +0 -30
- package/dist/generators/ts/_ObjectType/ObjectType_identifierTypeDeclarations.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_identifierTypeDeclarations.js +0 -13
- package/dist/generators/ts/_ObjectType/ObjectType_isTypeFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_isTypeFunctionDeclaration.js +0 -20
- package/dist/generators/ts/_ObjectType/ObjectType_jsonParseFunctionDeclaration.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_jsonParseFunctionDeclaration.js +0 -10
- package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaExpression.js +0 -22
- package/dist/generators/ts/_ObjectType/ObjectType_jsonTypeExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_jsonTypeExpression.js +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_jsonUiSchemaFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_jsonUiSchemaFunctionExpression.js +0 -17
- package/dist/generators/ts/_ObjectType/ObjectType_objectSetMethodNames.d.ts +0 -11
- package/dist/generators/ts/_ObjectType/ObjectType_objectSetMethodNames.js +0 -23
- package/dist/generators/ts/_ObjectType/ObjectType_schemaExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_schemaExpression.js +0 -18
- package/dist/generators/ts/_ObjectType/ObjectType_schemaTypeExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_schemaTypeExpression.js +0 -18
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunctionDeclaration.d.ts +0 -10
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunctionDeclaration.js +0 -35
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryStringFunctionDeclaration.d.ts +0 -10
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryStringFunctionDeclaration.js +0 -8
- package/dist/generators/ts/_ObjectType/ObjectType_toJsonFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_toJsonFunctionExpression.js +0 -14
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunctionExpression.js +0 -33
- package/dist/generators/ts/_ObjectType/ObjectType_toStringFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_toStringFunctionExpression.js +0 -7
- package/dist/generators/ts/_ObjectType/ObjectType_toStringRecordFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_toStringRecordFunctionExpression.js +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlConstructTriplesFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlConstructTriplesFunctionExpression.js +0 -8
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunctionExpression.js +0 -10
- package/dist/generators/ts/_ObjectType/Property.d.ts +0 -6
- package/dist/generators/ts/_ObjectType/Property.js +0 -2
- package/dist/generators/ts/_ObjectType/ShaclProperty.d.ts +0 -53
- package/dist/generators/ts/_ObjectType/ShaclProperty.js +0 -292
- package/dist/generators/ts/_snippets/snippets_BlankNodeFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_BlankNodeFilter.js +0 -5
- package/dist/generators/ts/_snippets/snippets_BlankNodeSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_BlankNodeSchema.js +0 -6
- package/dist/generators/ts/_snippets/snippets_BooleanFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_BooleanFilter.js +0 -6
- package/dist/generators/ts/_snippets/snippets_BooleanSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_BooleanSchema.js +0 -8
- package/dist/generators/ts/_snippets/snippets_CollectionFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_CollectionFilter.js +0 -7
- package/dist/generators/ts/_snippets/snippets_CollectionSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_CollectionSchema.js +0 -8
- package/dist/generators/ts/_snippets/snippets_ConversionFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ConversionFunction.js +0 -4
- package/dist/generators/ts/_snippets/snippets_DateFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_DateFilter.js +0 -10
- package/dist/generators/ts/_snippets/snippets_DateSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_DateSchema.js +0 -8
- package/dist/generators/ts/_snippets/snippets_DefaultValueSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_DefaultValueSchema.js +0 -8
- package/dist/generators/ts/_snippets/snippets_EqualsResult.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_EqualsResult.js +0 -63
- package/dist/generators/ts/_snippets/snippets_FocusSparqlConstructTriplesFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_FocusSparqlConstructTriplesFunction.js +0 -10
- package/dist/generators/ts/_snippets/snippets_FocusSparqlWherePatternsFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_FocusSparqlWherePatternsFunction.js +0 -11
- package/dist/generators/ts/_snippets/snippets_FromRdfResourceFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_FromRdfResourceFunction.js +0 -13
- package/dist/generators/ts/_snippets/snippets_FromRdfResourceValuesFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_FromRdfResourceValuesFunction.js +0 -16
- package/dist/generators/ts/_snippets/snippets_HashFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_HashFunction.js +0 -4
- package/dist/generators/ts/_snippets/snippets_Hasher.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_Hasher.js +0 -3
- package/dist/generators/ts/_snippets/snippets_IdentifierFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_IdentifierFilter.js +0 -7
- package/dist/generators/ts/_snippets/snippets_IdentifierSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_IdentifierSchema.js +0 -7
- package/dist/generators/ts/_snippets/snippets_IdentifierSet.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_IdentifierSet.js +0 -27
- package/dist/generators/ts/_snippets/snippets_IriFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_IriFilter.js +0 -6
- package/dist/generators/ts/_snippets/snippets_IriSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_IriSchema.js +0 -8
- package/dist/generators/ts/_snippets/snippets_Lazy.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_Lazy.js +0 -22
- package/dist/generators/ts/_snippets/snippets_LazyOption.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_LazyOption.js +0 -25
- package/dist/generators/ts/_snippets/snippets_LazySet.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_LazySet.js +0 -40
- package/dist/generators/ts/_snippets/snippets_LiteralFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_LiteralFilter.js +0 -4
- package/dist/generators/ts/_snippets/snippets_LiteralSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_LiteralSchema.js +0 -9
- package/dist/generators/ts/_snippets/snippets_MaybeFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_MaybeFilter.js +0 -4
- package/dist/generators/ts/_snippets/snippets_MaybeSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_MaybeSchema.js +0 -7
- package/dist/generators/ts/_snippets/snippets_NumericFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_NumericFilter.js +0 -10
- package/dist/generators/ts/_snippets/snippets_NumericSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_NumericSchema.js +0 -8
- package/dist/generators/ts/_snippets/snippets_PropertyPath.d.ts +0 -6
- package/dist/generators/ts/_snippets/snippets_PropertyPath.js +0 -46
- package/dist/generators/ts/_snippets/snippets_RdfVocabularies.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_RdfVocabularies.js +0 -40
- package/dist/generators/ts/_snippets/snippets_ShaclPropertySchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ShaclPropertySchema.js +0 -8
- package/dist/generators/ts/_snippets/snippets_SparqlFilterPattern.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_SparqlFilterPattern.js +0 -3
- package/dist/generators/ts/_snippets/snippets_SparqlPattern.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_SparqlPattern.js +0 -3
- package/dist/generators/ts/_snippets/snippets_SparqlPattern_isSolutionGenerating.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_SparqlPattern_isSolutionGenerating.js +0 -30
- package/dist/generators/ts/_snippets/snippets_StringFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_StringFilter.js +0 -8
- package/dist/generators/ts/_snippets/snippets_StringSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_StringSchema.js +0 -9
- package/dist/generators/ts/_snippets/snippets_TermFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_TermFilter.js +0 -9
- package/dist/generators/ts/_snippets/snippets_TermSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_TermSchema.js +0 -9
- package/dist/generators/ts/_snippets/snippets_ToRdfResourceFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ToRdfResourceFunction.js +0 -11
- package/dist/generators/ts/_snippets/snippets_ToRdfResourceValuesFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ToRdfResourceValuesFunction.js +0 -16
- package/dist/generators/ts/_snippets/snippets_UnwrapR.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_UnwrapR.js +0 -4
- package/dist/generators/ts/_snippets/snippets_ValidationFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ValidationFunction.js +0 -4
- package/dist/generators/ts/_snippets/snippets_ValueSparqlConstructTriplesFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ValueSparqlConstructTriplesFunction.js +0 -11
- package/dist/generators/ts/_snippets/snippets_ValueSparqlWherePatternsFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ValueSparqlWherePatternsFunction.js +0 -13
- package/dist/generators/ts/_snippets/snippets__FromRdfResourceFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets__FromRdfResourceFunction.js +0 -13
- package/dist/generators/ts/_snippets/snippets__ToRdfResourceFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets__ToRdfResourceFunction.js +0 -12
- package/dist/generators/ts/_snippets/snippets_arrayEquals.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_arrayEquals.js +0 -68
- package/dist/generators/ts/_snippets/snippets_arrayIntersection.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_arrayIntersection.js +0 -29
- package/dist/generators/ts/_snippets/snippets_bigDecimalFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_bigDecimalFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_bigDecimalLiteral.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_bigDecimalLiteral.js +0 -9
- package/dist/generators/ts/_snippets/snippets_bigDecimalSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_bigDecimalSparqlWherePatterns.js +0 -83
- package/dist/generators/ts/_snippets/snippets_bigIntFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_bigIntFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_blankNodeFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_blankNodeFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_blankNodeSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_blankNodeSparqlWherePatterns.js +0 -5
- package/dist/generators/ts/_snippets/snippets_booleanEquals.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_booleanEquals.js +0 -16
- package/dist/generators/ts/_snippets/snippets_booleanFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_booleanFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_booleanSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_booleanSparqlWherePatterns.js +0 -15
- package/dist/generators/ts/_snippets/snippets_compactRecord.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_compactRecord.js +0 -15
- package/dist/generators/ts/_snippets/snippets_convertToArraySet.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToArraySet.js +0 -8
- package/dist/generators/ts/_snippets/snippets_convertToBlankNode.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToBlankNode.js +0 -11
- package/dist/generators/ts/_snippets/snippets_convertToBlankNodeIdentifierProperty.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToBlankNodeIdentifierProperty.js +0 -17
- package/dist/generators/ts/_snippets/snippets_convertToIdentifier.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToIdentifier.js +0 -13
- package/dist/generators/ts/_snippets/snippets_convertToIdentifierProperty.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToIdentifierProperty.js +0 -21
- package/dist/generators/ts/_snippets/snippets_convertToIri.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToIri.js +0 -11
- package/dist/generators/ts/_snippets/snippets_convertToIriIdentifierProperty.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToIriIdentifierProperty.js +0 -17
- package/dist/generators/ts/_snippets/snippets_convertToLazy.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToLazy.js +0 -15
- package/dist/generators/ts/_snippets/snippets_convertToLazyOption.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToLazyOption.js +0 -33
- package/dist/generators/ts/_snippets/snippets_convertToLazySet.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToLazySet.js +0 -27
- package/dist/generators/ts/_snippets/snippets_convertToList.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToList.js +0 -7
- package/dist/generators/ts/_snippets/snippets_convertToLiteral.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToLiteral.js +0 -13
- package/dist/generators/ts/_snippets/snippets_convertToMaybe.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToMaybe.js +0 -19
- package/dist/generators/ts/_snippets/snippets_convertToScalarSet.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToScalarSet.js +0 -15
- package/dist/generators/ts/_snippets/snippets_convertWithDefaultValue.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertWithDefaultValue.js +0 -11
- package/dist/generators/ts/_snippets/snippets_dateEquals.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_dateEquals.js +0 -13
- package/dist/generators/ts/_snippets/snippets_dateFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_dateFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_dateSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_dateSparqlWherePatterns.js +0 -71
- package/dist/generators/ts/_snippets/snippets_dateTimeFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_dateTimeFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_decodeBigDecimalLiteral.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_decodeBigDecimalLiteral.js +0 -9
- package/dist/generators/ts/_snippets/snippets_deduplicateSparqlPatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_deduplicateSparqlPatterns.js +0 -19
- package/dist/generators/ts/_snippets/snippets_defaultValueFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_defaultValueFromRdfResourceValues.js +0 -10
- package/dist/generators/ts/_snippets/snippets_defaultValueSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_defaultValueSparqlWherePatterns.js +0 -9
- package/dist/generators/ts/_snippets/snippets_ensureRdfResourceType.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ensureRdfResourceType.js +0 -16
- package/dist/generators/ts/_snippets/snippets_filterArray.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterArray.js +0 -22
- package/dist/generators/ts/_snippets/snippets_filterBigDecimal.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterBigDecimal.js +0 -26
- package/dist/generators/ts/_snippets/snippets_filterBlankNode.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterBlankNode.js +0 -6
- package/dist/generators/ts/_snippets/snippets_filterBoolean.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterBoolean.js +0 -10
- package/dist/generators/ts/_snippets/snippets_filterDate.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterDate.js +0 -26
- package/dist/generators/ts/_snippets/snippets_filterIdentifier.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterIdentifier.js +0 -14
- package/dist/generators/ts/_snippets/snippets_filterIri.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterIri.js +0 -10
- package/dist/generators/ts/_snippets/snippets_filterLiteral.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterLiteral.js +0 -6
- package/dist/generators/ts/_snippets/snippets_filterMaybe.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterMaybe.js +0 -22
- package/dist/generators/ts/_snippets/snippets_filterNumeric.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterNumeric.js +0 -26
- package/dist/generators/ts/_snippets/snippets_filterString.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterString.js +0 -18
- package/dist/generators/ts/_snippets/snippets_filterTerm.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterTerm.js +0 -22
- package/dist/generators/ts/_snippets/snippets_floatFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_floatFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_hashArray.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashArray.js +0 -11
- package/dist/generators/ts/_snippets/snippets_hashBigDecimal.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashBigDecimal.js +0 -7
- package/dist/generators/ts/_snippets/snippets_hashBoolean.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashBoolean.js +0 -7
- package/dist/generators/ts/_snippets/snippets_hashDate.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashDate.js +0 -7
- package/dist/generators/ts/_snippets/snippets_hashDateTime.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashDateTime.js +0 -7
- package/dist/generators/ts/_snippets/snippets_hashMaybe.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashMaybe.js +0 -11
- package/dist/generators/ts/_snippets/snippets_hashNumeric.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashNumeric.js +0 -7
- package/dist/generators/ts/_snippets/snippets_hashString.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashString.js +0 -7
- package/dist/generators/ts/_snippets/snippets_hashTerm.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashTerm.js +0 -12
- package/dist/generators/ts/_snippets/snippets_identifierFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_identifierFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_identifierSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_identifierSparqlWherePatterns.js +0 -30
- package/dist/generators/ts/_snippets/snippets_identityConversionFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_identityConversionFunction.js +0 -6
- package/dist/generators/ts/_snippets/snippets_identityValidationFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_identityValidationFunction.js +0 -6
- package/dist/generators/ts/_snippets/snippets_intFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_intFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_iriFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_iriFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_iriSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_iriSparqlWherePatterns.js +0 -13
- package/dist/generators/ts/_snippets/snippets_liftSparqlPatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_liftSparqlPatterns.js +0 -15
- package/dist/generators/ts/_snippets/snippets_listFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_listFromRdfResourceValues.js +0 -15
- package/dist/generators/ts/_snippets/snippets_listSparqlConstructTriples.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_listSparqlConstructTriples.js +0 -37
- package/dist/generators/ts/_snippets/snippets_listSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_listSparqlWherePatterns.js +0 -116
- package/dist/generators/ts/_snippets/snippets_literalFactory.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_literalFactory.js +0 -3
- package/dist/generators/ts/_snippets/snippets_literalFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_literalFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_literalSchemaSparqlPatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_literalSchemaSparqlPatterns.js +0 -39
- package/dist/generators/ts/_snippets/snippets_literalSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_literalSparqlWherePatterns.js +0 -5
- package/dist/generators/ts/_snippets/snippets_maybeEquals.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_maybeEquals.js +0 -31
- package/dist/generators/ts/_snippets/snippets_maybeFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_maybeFromRdfResourceValues.js +0 -11
- package/dist/generators/ts/_snippets/snippets_maybeSparqlConstructTriples.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_maybeSparqlConstructTriples.js +0 -6
- package/dist/generators/ts/_snippets/snippets_maybeSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_maybeSparqlWherePatterns.js +0 -21
- package/dist/generators/ts/_snippets/snippets_monkeyPatchObject.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_monkeyPatchObject.js +0 -16
- package/dist/generators/ts/_snippets/snippets_mutableListFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_mutableListFromRdfResourceValues.js +0 -8
- package/dist/generators/ts/_snippets/snippets_mutableSetFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_mutableSetFromRdfResourceValues.js +0 -8
- package/dist/generators/ts/_snippets/snippets_normalizeSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_normalizeSparqlWherePatterns.js +0 -92
- package/dist/generators/ts/_snippets/snippets_numericSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_numericSparqlWherePatterns.js +0 -62
- package/dist/generators/ts/_snippets/snippets_parseBlankNode.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_parseBlankNode.js +0 -9
- package/dist/generators/ts/_snippets/snippets_parseIdentifier.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_parseIdentifier.js +0 -4
- package/dist/generators/ts/_snippets/snippets_parseIri.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_parseIri.js +0 -9
- package/dist/generators/ts/_snippets/snippets_sequenceRecord.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_sequenceRecord.js +0 -18
- package/dist/generators/ts/_snippets/snippets_setFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_setFromRdfResourceValues.js +0 -9
- package/dist/generators/ts/_snippets/snippets_setSparqlConstructTriples.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_setSparqlConstructTriples.js +0 -6
- package/dist/generators/ts/_snippets/snippets_setSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_setSparqlWherePatterns.js +0 -17
- package/dist/generators/ts/_snippets/snippets_shaclPropertyFromRdf.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_shaclPropertyFromRdf.js +0 -17
- package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlConstructTriples.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlConstructTriples.js +0 -90
- package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlWherePatterns.js +0 -86
- package/dist/generators/ts/_snippets/snippets_sortSparqlPatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_sortSparqlPatterns.js +0 -24
- package/dist/generators/ts/_snippets/snippets_sparqlInstancesOfPattern.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_sparqlInstancesOfPattern.js +0 -29
- package/dist/generators/ts/_snippets/snippets_sparqlPropertyPath.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_sparqlPropertyPath.js +0 -59
- package/dist/generators/ts/_snippets/snippets_sparqlValueInPattern.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_sparqlValueInPattern.js +0 -23
- package/dist/generators/ts/_snippets/snippets_strictEquals.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_strictEquals.js +0 -12
- package/dist/generators/ts/_snippets/snippets_stringFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_stringFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_stringSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_stringSparqlWherePatterns.js +0 -39
- package/dist/generators/ts/_snippets/snippets_termFilterSparqlPatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_termFilterSparqlPatterns.js +0 -93
- package/dist/generators/ts/_snippets/snippets_termFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_termFromRdfResourceValues.js +0 -17
- package/dist/generators/ts/_snippets/snippets_termLikeFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_termLikeFromRdfResourceValues.js +0 -60
- package/dist/generators/ts/_snippets/snippets_termSchemaSparqlPatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_termSchemaSparqlPatterns.js +0 -24
- package/dist/generators/ts/_snippets/snippets_termSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_termSparqlWherePatterns.js +0 -5
- package/dist/generators/ts/_snippets/snippets_toIsoDateString.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_toIsoDateString.js +0 -6
- package/dist/generators/ts/_snippets/snippets_validateArray.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_validateArray.js +0 -13
- package/dist/generators/ts/_snippets/snippets_validateMaybe.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_validateMaybe.js +0 -7
- package/dist/generators/ts/_snippets/snippets_wrap_FromRdfResourceFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_wrap_FromRdfResourceFunction.js +0 -9
- package/dist/generators/ts/_snippets/snippets_wrap_ToRdfResourceFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_wrap_ToRdfResourceFunction.js +0 -14
- package/dist/generators/ts/codeEquals.d.ts +0 -3
- package/dist/generators/ts/codeEquals.js +0 -7
- package/dist/generators/ts/rdfjsTermExpression.d.ts +0 -11
- package/dist/generators/ts/rdfjsTermExpression.js +0 -72
- package/dist/generators/ts/singleEntryRecord.d.ts +0 -2
- package/dist/generators/ts/singleEntryRecord.js +0 -6
- package/dist/generators/ts/ts-poet-wrapper.d.ts +0 -5
- package/dist/generators/ts/ts-poet-wrapper.js +0 -13
- package/dist/generators/ts/tsComment.d.ts +0 -5
- package/dist/generators/ts/tsComment.js +0 -11
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -6
- package/dist/input/ShapesGraph.d.ts +0 -44
- package/dist/input/ShapesGraph.js +0 -66
- package/dist/input/generated.d.ts +0 -4074
- package/dist/input/generated.js +0 -3417
- package/dist/input/index.d.ts +0 -3
- package/dist/input/index.js +0 -3
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { NodeKind } from "@shaclmate/shacl-ast";
|
|
8
|
-
import { Maybe } from "purify-ts";
|
|
9
|
-
import { Memoize } from "typescript-memoize";
|
|
10
|
-
import { AbstractType } from "./AbstractType.js";
|
|
11
|
-
import { arrayOf, code } from "./ts-poet-wrapper.js";
|
|
12
|
-
/**
|
|
13
|
-
* Abstract base class for all types that are terms in RDF (i.e., identifiers, literals).
|
|
14
|
-
*
|
|
15
|
-
* ConstantTermT is the type of sh:hasValue and sh:in.
|
|
16
|
-
* RuntimeTermT is the type of values at runtime.
|
|
17
|
-
*
|
|
18
|
-
* The two are differentiated because identifiers can have BlankNode or NamedNode values at runtime but only NamedNode values for sh:hasValue and sh:in.
|
|
19
|
-
*/
|
|
20
|
-
export class AbstractTermType extends AbstractType {
|
|
21
|
-
equalsFunction = code `${this.reusables.snippets.booleanEquals}`;
|
|
22
|
-
graphqlArgs = Maybe.empty();
|
|
23
|
-
hasValues;
|
|
24
|
-
hashFunction = code `${this.reusables.snippets.hashTerm}`;
|
|
25
|
-
in_;
|
|
26
|
-
mutable = false;
|
|
27
|
-
recursive = false;
|
|
28
|
-
validationFunction = Maybe.empty();
|
|
29
|
-
constructor({ hasValues, in_, ...superParameters }) {
|
|
30
|
-
super(superParameters);
|
|
31
|
-
this.hasValues = hasValues;
|
|
32
|
-
this.in_ = in_;
|
|
33
|
-
}
|
|
34
|
-
get declaration() {
|
|
35
|
-
return this.name.map((name) => code `export type ${name} = ${this.inlineExpression};`);
|
|
36
|
-
}
|
|
37
|
-
get discriminantProperty() {
|
|
38
|
-
return Maybe.of({
|
|
39
|
-
jsonName: "termType",
|
|
40
|
-
name: "termType",
|
|
41
|
-
values: [...this.nodeKinds].map(NodeKind.toTermType),
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
get expression() {
|
|
45
|
-
const name = this.name.extract();
|
|
46
|
-
if (name) {
|
|
47
|
-
return code `${name}`;
|
|
48
|
-
}
|
|
49
|
-
return this.inlineExpression;
|
|
50
|
-
}
|
|
51
|
-
get referencesNamedType() {
|
|
52
|
-
return this.name.isJust();
|
|
53
|
-
}
|
|
54
|
-
get termTypes() {
|
|
55
|
-
return new Set([...this.nodeKinds].map(NodeKind.toTermType));
|
|
56
|
-
}
|
|
57
|
-
get toRdfResourceValueTypes() {
|
|
58
|
-
return new Set([...this.nodeKinds].map(NodeKind.toTermType));
|
|
59
|
-
}
|
|
60
|
-
get valueSparqlConstructTriplesFunction() {
|
|
61
|
-
return code `((_: object) => [])`;
|
|
62
|
-
}
|
|
63
|
-
get schemaInitializers() {
|
|
64
|
-
let initializers = super.schemaInitializers;
|
|
65
|
-
if (this.hasValues.length > 0) {
|
|
66
|
-
initializers = initializers.concat(code `hasValues: ${arrayOf(...this.hasValues.map((hasValue) => this.rdfjsTermExpression(hasValue)))}`);
|
|
67
|
-
}
|
|
68
|
-
return initializers;
|
|
69
|
-
}
|
|
70
|
-
jsonUiSchemaElement() {
|
|
71
|
-
return Maybe.empty();
|
|
72
|
-
}
|
|
73
|
-
toRdfResourceValuesExpression({ variables, }) {
|
|
74
|
-
return code `[${variables.value}]`;
|
|
75
|
-
}
|
|
76
|
-
toStringExpression({ variables, }) {
|
|
77
|
-
return code `${variables.value}.toString()`;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
__decorate([
|
|
81
|
-
Memoize()
|
|
82
|
-
], AbstractTermType.prototype, "declaration", null);
|
|
83
|
-
__decorate([
|
|
84
|
-
Memoize()
|
|
85
|
-
], AbstractTermType.prototype, "discriminantProperty", null);
|
|
86
|
-
__decorate([
|
|
87
|
-
Memoize()
|
|
88
|
-
], AbstractTermType.prototype, "expression", null);
|
|
89
|
-
__decorate([
|
|
90
|
-
Memoize()
|
|
91
|
-
], AbstractTermType.prototype, "termTypes", null);
|
|
92
|
-
__decorate([
|
|
93
|
-
Memoize()
|
|
94
|
-
], AbstractTermType.prototype, "toRdfResourceValueTypes", null);
|
|
95
|
-
__decorate([
|
|
96
|
-
Memoize()
|
|
97
|
-
], AbstractTermType.prototype, "valueSparqlConstructTriplesFunction", null);
|
|
98
|
-
(function (AbstractTermType) {
|
|
99
|
-
AbstractTermType.GraphqlType = AbstractType.GraphqlType;
|
|
100
|
-
AbstractTermType.JsonType = AbstractType.JsonType;
|
|
101
|
-
})(AbstractTermType || (AbstractTermType = {}));
|
|
102
|
-
//# sourceMappingURL=AbstractTermType.js.map
|
|
@@ -1,345 +0,0 @@
|
|
|
1
|
-
import type { BlankNode, NamedNode } from "@rdfjs/types";
|
|
2
|
-
import type { Maybe } from "purify-ts";
|
|
3
|
-
import type { Logger } from "ts-log";
|
|
4
|
-
import type { Reusables } from "./Reusables.js";
|
|
5
|
-
import { rdfjsTermExpression } from "./rdfjsTermExpression.js";
|
|
6
|
-
import type { TsGenerator } from "./TsGenerator.js";
|
|
7
|
-
import { type Code } from "./ts-poet-wrapper.js";
|
|
8
|
-
/**
|
|
9
|
-
* Abstract base class all types.
|
|
10
|
-
*/
|
|
11
|
-
export declare abstract class AbstractType {
|
|
12
|
-
protected readonly configuration: TsGenerator.Configuration;
|
|
13
|
-
protected readonly logger: Logger;
|
|
14
|
-
protected readonly reusables: Reusables;
|
|
15
|
-
/**
|
|
16
|
-
* Comment from rdfs:comment.
|
|
17
|
-
*/
|
|
18
|
-
readonly comment: Maybe<string>;
|
|
19
|
-
/**
|
|
20
|
-
* Function that takes a value of one or more source types to this type and returns Either<Error, ThisType>.
|
|
21
|
-
*
|
|
22
|
-
* The source types should include this type.
|
|
23
|
-
*
|
|
24
|
-
* The function should not perform validation (e.g., checking array lengths). That will be done by validationFunction in conjunction with this function.
|
|
25
|
-
*
|
|
26
|
-
* If unspecified, uses an identity function (i.e., function identity(value: ThisType): Either<Error, ThisType>).
|
|
27
|
-
*/
|
|
28
|
-
abstract readonly conversionFunction: Maybe<AbstractType.ConversionFunction>;
|
|
29
|
-
/**
|
|
30
|
-
* The declaration of named types.
|
|
31
|
-
*/
|
|
32
|
-
abstract readonly declaration: Maybe<Code>;
|
|
33
|
-
/**
|
|
34
|
-
* A property that discriminates sub-types of this type e.g., termType on RDF/JS terms.
|
|
35
|
-
*/
|
|
36
|
-
abstract readonly discriminantProperty: Maybe<AbstractType.DiscriminantProperty>;
|
|
37
|
-
/**
|
|
38
|
-
* A function (reference or literal) that compares two property values of this type, returning a
|
|
39
|
-
* $EqualsResult.
|
|
40
|
-
*/
|
|
41
|
-
abstract readonly equalsFunction: Code;
|
|
42
|
-
/**
|
|
43
|
-
* TypeScript type expression.
|
|
44
|
-
*/
|
|
45
|
-
abstract readonly expression: Code;
|
|
46
|
-
/**
|
|
47
|
-
* A function (reference or literal) that takes a filter of filterType (below) and a value of this type
|
|
48
|
-
* and returns true if the value passes the filter.
|
|
49
|
-
*/
|
|
50
|
-
abstract readonly filterFunction: Code;
|
|
51
|
-
/**
|
|
52
|
-
* Composite type for filtering instances of this type e.g., SomeObject.Filter with filters for each property.
|
|
53
|
-
*/
|
|
54
|
-
abstract readonly filterType: Code;
|
|
55
|
-
/**
|
|
56
|
-
* A FromRdfResourceValuesFunction (reference or literal) that converts a Either<Error, rdfjsResource.Resource.Values> to a
|
|
57
|
-
* Either<Error, rdfjsResource.Resource.Values<this type>>.
|
|
58
|
-
*
|
|
59
|
-
* These functions are used to deserialize property values in an ObjectType, either directly (a property with this type) or indirectly (a property with a type like OptionType
|
|
60
|
-
* that has a type parameter of this type).
|
|
61
|
-
*
|
|
62
|
-
* Some types need to filter on the set of all objects/values of a (subject, predicate). For example, all sh:hasValue values must be present in the set for any values
|
|
63
|
-
* to be considered valid. Similarly, values may also need to be sorted. For example, specifying preferredLanguages should sort the values in the order of the specified languages so that the first value
|
|
64
|
-
* (if it exists) is always of the first preferred language.
|
|
65
|
-
*
|
|
66
|
-
* The function takes two parameters, a rdfjsResource.Resource.Values and a parameters object with the following parameters:
|
|
67
|
-
* context: unanticipated properties (...) passed to Object.fromRdf
|
|
68
|
-
* focusResource: the Resource passed to Object.fromRdf
|
|
69
|
-
* graph: DefaultGraph | NamedNode | undefined to match (subject, predicate, object) triples in; if undefined, match triples in all graphs
|
|
70
|
-
* ignoreRdfType: whether the RDF type of objects/object unions should be ignored
|
|
71
|
-
* objectSet: the ObjectSet passed to Object.fromRdf
|
|
72
|
-
* preferredLanguages: the preferred languages array (e.g., ["en"]) passed to Object.fromRdf
|
|
73
|
-
* propertyPath: the PropertyPath of the object's property
|
|
74
|
-
*/
|
|
75
|
-
abstract readonly fromRdfResourceValuesFunction: Code;
|
|
76
|
-
/**
|
|
77
|
-
* Declarations for GraphQL arguments to pass to this the graphqlResolveExpression.
|
|
78
|
-
*/
|
|
79
|
-
abstract readonly graphqlArgs: Maybe<Record<string, {
|
|
80
|
-
type: Code;
|
|
81
|
-
}>>;
|
|
82
|
-
/**
|
|
83
|
-
* GraphQL-compatible version of the type.
|
|
84
|
-
*/
|
|
85
|
-
abstract readonly graphqlType: AbstractType.GraphqlType;
|
|
86
|
-
/**
|
|
87
|
-
* A function (reference or literal) that takes a Hasher and a value of this type, calls hasher.update on the value, and returns the Hasher.
|
|
88
|
-
*/
|
|
89
|
-
abstract readonly hashFunction: Code;
|
|
90
|
-
/**
|
|
91
|
-
* JavaScript type(s) the type.
|
|
92
|
-
*/
|
|
93
|
-
abstract readonly jsTypes: readonly AbstractType.JsType[];
|
|
94
|
-
/**
|
|
95
|
-
* Type discriminant.
|
|
96
|
-
*/
|
|
97
|
-
abstract readonly kind: string;
|
|
98
|
-
/**
|
|
99
|
-
* Label from rdfs:label.
|
|
100
|
-
*/
|
|
101
|
-
readonly label: Maybe<string>;
|
|
102
|
-
/**
|
|
103
|
-
* Is a value of this type mutable?
|
|
104
|
-
*/
|
|
105
|
-
abstract readonly mutable: boolean;
|
|
106
|
-
/**
|
|
107
|
-
* Name for this type.
|
|
108
|
-
*/
|
|
109
|
-
readonly name: Maybe<string>;
|
|
110
|
-
/**
|
|
111
|
-
* Does this type directly or indirectly reference itself?
|
|
112
|
-
*/
|
|
113
|
-
abstract readonly recursive: boolean;
|
|
114
|
-
/**
|
|
115
|
-
* Is this type an ObjectType or does it reference an object type?
|
|
116
|
-
*/
|
|
117
|
-
abstract readonly referencesNamedType: boolean;
|
|
118
|
-
/**
|
|
119
|
-
* TypeScript type describing .schema.
|
|
120
|
-
*/
|
|
121
|
-
abstract readonly schemaType: Code;
|
|
122
|
-
/**
|
|
123
|
-
* Identifier of the shape this type was derived from.
|
|
124
|
-
*/
|
|
125
|
-
readonly shapeIdentifier: BlankNode | NamedNode;
|
|
126
|
-
/**
|
|
127
|
-
* The type(s) of the array elements produced by the toRdfResourceValuesExpression.
|
|
128
|
-
*/
|
|
129
|
-
abstract readonly toRdfResourceValueTypes: ReadonlySet<"BlankNode" | "NamedNode" | "Literal">;
|
|
130
|
-
/**
|
|
131
|
-
* Function that takes
|
|
132
|
-
* - a schema of this.schemaType
|
|
133
|
-
* - a value of this.type
|
|
134
|
-
*
|
|
135
|
-
* and validates the value against the schema, returning
|
|
136
|
-
* - Left(Error) if validation fails or
|
|
137
|
-
* - Right(the value) if validatios succeeds
|
|
138
|
-
*
|
|
139
|
-
* If unspecified, uses an identity function (i.e., function identity(schema: unknown, value: ThisType): Either<Error, ThisType>).
|
|
140
|
-
*/
|
|
141
|
-
abstract readonly validationFunction: Maybe<Code>;
|
|
142
|
-
/**
|
|
143
|
-
* A ValueSparqlConstructTriplesFunction (reference or literal) that returns an array of sparqljs.Triple's for a property value of this type.
|
|
144
|
-
*
|
|
145
|
-
* The function takes a parameters object with the following parameters:
|
|
146
|
-
* - filter: an instance of filterType | undefined
|
|
147
|
-
* - ignoreRdfType: boolean
|
|
148
|
-
* - schema: instance of this.schemaType
|
|
149
|
-
* - valueVariable: rdfjs.Variable of the value of this type
|
|
150
|
-
* - variablePrefix: string prefix to use for new variables
|
|
151
|
-
*/
|
|
152
|
-
abstract readonly valueSparqlConstructTriplesFunction: Code;
|
|
153
|
-
/**
|
|
154
|
-
* A ValueSparqlWherePatternsFunction (reference or literal) that returns an array of SparqlPattern's for a property value of this type.
|
|
155
|
-
*
|
|
156
|
-
* The function takes a parameters object with the following parameters:
|
|
157
|
-
* - filter: an instance of filterType | undefined
|
|
158
|
-
* - preferredLanguages: array of preferred language code (strings) | undefined
|
|
159
|
-
* - propertyPatterns: array of sparqljs.Pattern's for the property; may be empty
|
|
160
|
-
* - schema: instance of this.schemaType
|
|
161
|
-
* - valueVariable: rdfjs.Variable of the value of this type
|
|
162
|
-
* - variablePrefix: string prefix to use for new variables
|
|
163
|
-
*/
|
|
164
|
-
abstract readonly valueSparqlWherePatternsFunction: Code;
|
|
165
|
-
constructor({ comment, configuration, label, logger, name, reusables, shapeIdentifier, }: {
|
|
166
|
-
name: Maybe<string>;
|
|
167
|
-
comment: Maybe<string>;
|
|
168
|
-
configuration: TsGenerator.Configuration;
|
|
169
|
-
label: Maybe<string>;
|
|
170
|
-
logger: Logger;
|
|
171
|
-
reusables: Reusables;
|
|
172
|
-
shapeIdentifier: BlankNode | NamedNode;
|
|
173
|
-
});
|
|
174
|
-
/**
|
|
175
|
-
* TypeScript object describing this type, for runtime use.
|
|
176
|
-
*/
|
|
177
|
-
get schema(): Code;
|
|
178
|
-
protected get schemaExpression(): Code;
|
|
179
|
-
/**
|
|
180
|
-
* Helper to compose the result of schema along the type hierarchy.
|
|
181
|
-
*/
|
|
182
|
-
protected get schemaInitializers(): readonly Code[];
|
|
183
|
-
/**
|
|
184
|
-
* An expression that converts this type's JSON type to an Either<Error, ThisType>.
|
|
185
|
-
*/
|
|
186
|
-
abstract fromJsonExpression(parameters: {
|
|
187
|
-
variables: {
|
|
188
|
-
value: Code;
|
|
189
|
-
};
|
|
190
|
-
}): Code;
|
|
191
|
-
/**
|
|
192
|
-
* An expression that resolves a value of this type in the GraphQL server.
|
|
193
|
-
*/
|
|
194
|
-
abstract graphqlResolveExpression(parameters: {
|
|
195
|
-
variables: {
|
|
196
|
-
args: Code;
|
|
197
|
-
value: Code;
|
|
198
|
-
};
|
|
199
|
-
}): Code;
|
|
200
|
-
/**
|
|
201
|
-
* Zod schema for the JSON type of this type.
|
|
202
|
-
*
|
|
203
|
-
* This method is called in two contexts:
|
|
204
|
-
* "property": from a ShaclProperty, while generating the z.object properties of an ObjectType
|
|
205
|
-
* "type": from another Type e.g., an OptionType or UnionType
|
|
206
|
-
*
|
|
207
|
-
* z.lazy() should only be returned for "property".
|
|
208
|
-
*/
|
|
209
|
-
abstract jsonSchema(parameters: {
|
|
210
|
-
includeDiscriminantProperty?: boolean;
|
|
211
|
-
context: "property" | "type";
|
|
212
|
-
}): Code;
|
|
213
|
-
/**
|
|
214
|
-
* JSON-compatible version of the type.
|
|
215
|
-
*/
|
|
216
|
-
abstract jsonType(parameters?: {
|
|
217
|
-
includeDiscriminantProperty?: boolean;
|
|
218
|
-
}): AbstractType.JsonType;
|
|
219
|
-
/**
|
|
220
|
-
* Element object for a JSON Forms UI schema.
|
|
221
|
-
*/
|
|
222
|
-
abstract jsonUiSchemaElement(parameters: {
|
|
223
|
-
variables: {
|
|
224
|
-
scopePrefix: Code;
|
|
225
|
-
};
|
|
226
|
-
}): Maybe<Code>;
|
|
227
|
-
/**
|
|
228
|
-
* An expression that converts a value of this type to a JSON-LD compatible value. It can assume the presence
|
|
229
|
-
* of the correct JSON-LD context.
|
|
230
|
-
*/
|
|
231
|
-
abstract toJsonExpression(parameters: {
|
|
232
|
-
includeDiscriminantProperty?: boolean;
|
|
233
|
-
variables: {
|
|
234
|
-
value: Code;
|
|
235
|
-
};
|
|
236
|
-
}): Code;
|
|
237
|
-
/**
|
|
238
|
-
* An expression that converts a property value of this type to a value or an array of values that can be .add'd to a Resource with
|
|
239
|
-
* resource.add(predicate, convertedValue, graph)
|
|
240
|
-
*
|
|
241
|
-
* variables are runtime variables, most derived from the parameters of the ObjectType's fromRdf function:
|
|
242
|
-
* graph: DefaultGraph | NamedNode | undefined to .add to; if undefined, add to the default graph
|
|
243
|
-
* propertyPath: predicate path (NamedNode) or InversePath on a predicate path
|
|
244
|
-
* resource: the Resource to .add to
|
|
245
|
-
* resourceSet: ResourceSet for any new Resources needed while conversion (of e.g., nested objects)
|
|
246
|
-
* value: value of this type, to be converted to (BlankNode | Literal | NamedNode | bigint | boolean | number | string) or an array of the same
|
|
247
|
-
*/
|
|
248
|
-
abstract toRdfResourceValuesExpression(parameters: {
|
|
249
|
-
variables: {
|
|
250
|
-
graph: Code;
|
|
251
|
-
propertyPath: Code;
|
|
252
|
-
resource: Code;
|
|
253
|
-
resourceSet: Code;
|
|
254
|
-
value: Code;
|
|
255
|
-
};
|
|
256
|
-
}): Code;
|
|
257
|
-
/**
|
|
258
|
-
* An expression that converts a value of this type to a human-readable string (toString).
|
|
259
|
-
*/
|
|
260
|
-
abstract toStringExpression(parameters: {
|
|
261
|
-
variables: {
|
|
262
|
-
value: Code;
|
|
263
|
-
};
|
|
264
|
-
}): Code;
|
|
265
|
-
protected readonly rdfjsTermExpression: (parameters: Parameters<typeof rdfjsTermExpression>[0]) => Code;
|
|
266
|
-
}
|
|
267
|
-
export declare namespace AbstractType {
|
|
268
|
-
interface ConversionFunction {
|
|
269
|
-
readonly code: Code;
|
|
270
|
-
readonly sourceTypes: {
|
|
271
|
-
readonly expression: Code;
|
|
272
|
-
readonly jsType: JsType;
|
|
273
|
-
}[];
|
|
274
|
-
}
|
|
275
|
-
interface DiscriminantProperty {
|
|
276
|
-
readonly jsonName: string;
|
|
277
|
-
readonly name: string;
|
|
278
|
-
readonly values: readonly DiscriminantProperty.Value[];
|
|
279
|
-
}
|
|
280
|
-
namespace DiscriminantProperty {
|
|
281
|
-
type Value = number | string;
|
|
282
|
-
}
|
|
283
|
-
class GraphqlType {
|
|
284
|
-
/**
|
|
285
|
-
* Is the type nullable in GraphQL?
|
|
286
|
-
*/
|
|
287
|
-
readonly nullable: boolean;
|
|
288
|
-
/**
|
|
289
|
-
* The expression of the type when it's nullable -- so it should never include "new graphql.GraphQLNonNull(...)" around it.
|
|
290
|
-
*/
|
|
291
|
-
readonly nullableExpression: Code;
|
|
292
|
-
private readonly reusables;
|
|
293
|
-
constructor(nullableExpression: Code, reusables: Reusables, options?: {
|
|
294
|
-
nullable: boolean;
|
|
295
|
-
});
|
|
296
|
-
get expression(): Code;
|
|
297
|
-
}
|
|
298
|
-
type JsType = {
|
|
299
|
-
typeof: "bigint";
|
|
300
|
-
} | {
|
|
301
|
-
typeof: "boolean";
|
|
302
|
-
} | {
|
|
303
|
-
typeof: "function";
|
|
304
|
-
} | {
|
|
305
|
-
typeof: "number";
|
|
306
|
-
} | {
|
|
307
|
-
instanceof: "Array";
|
|
308
|
-
typeof: "object";
|
|
309
|
-
} | {
|
|
310
|
-
className: Code;
|
|
311
|
-
instanceof: "class";
|
|
312
|
-
typeof: "object";
|
|
313
|
-
} | {
|
|
314
|
-
instanceof: "Date";
|
|
315
|
-
typeof: "object";
|
|
316
|
-
} | {
|
|
317
|
-
instanceof: "Maybe";
|
|
318
|
-
typeof: "object";
|
|
319
|
-
} | {
|
|
320
|
-
instanceof: "Object";
|
|
321
|
-
typeof: "object";
|
|
322
|
-
} | {
|
|
323
|
-
typeof: "string";
|
|
324
|
-
} | {
|
|
325
|
-
typeof: "undefined";
|
|
326
|
-
};
|
|
327
|
-
namespace JsType {
|
|
328
|
-
function equals(left: JsType, right: JsType): boolean;
|
|
329
|
-
}
|
|
330
|
-
class JsonType {
|
|
331
|
-
/**
|
|
332
|
-
* Is the type optional in JSON? Equivalent to ? in TypeScript or | undefined.
|
|
333
|
-
*/
|
|
334
|
-
readonly optional: boolean;
|
|
335
|
-
/**
|
|
336
|
-
* The expression of the type when it's required i.e. -- so it should never include "| undefined".
|
|
337
|
-
*/
|
|
338
|
-
readonly requiredExpression: Code;
|
|
339
|
-
constructor(requiredExpression: Code, parameters?: {
|
|
340
|
-
optional: boolean;
|
|
341
|
-
});
|
|
342
|
-
get expression(): Code;
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
//# sourceMappingURL=AbstractType.d.ts.map
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { Memoize } from "typescript-memoize";
|
|
8
|
-
import { rdfjsTermExpression } from "./rdfjsTermExpression.js";
|
|
9
|
-
import { code, joinCode, literalOf } from "./ts-poet-wrapper.js";
|
|
10
|
-
/**
|
|
11
|
-
* Abstract base class all types.
|
|
12
|
-
*/
|
|
13
|
-
export class AbstractType {
|
|
14
|
-
configuration;
|
|
15
|
-
logger;
|
|
16
|
-
reusables;
|
|
17
|
-
/**
|
|
18
|
-
* Comment from rdfs:comment.
|
|
19
|
-
*/
|
|
20
|
-
comment;
|
|
21
|
-
/**
|
|
22
|
-
* Label from rdfs:label.
|
|
23
|
-
*/
|
|
24
|
-
label;
|
|
25
|
-
/**
|
|
26
|
-
* Name for this type.
|
|
27
|
-
*/
|
|
28
|
-
name;
|
|
29
|
-
/**
|
|
30
|
-
* Identifier of the shape this type was derived from.
|
|
31
|
-
*/
|
|
32
|
-
shapeIdentifier;
|
|
33
|
-
constructor({ comment, configuration, label, logger, name, reusables, shapeIdentifier, }) {
|
|
34
|
-
this.comment = comment;
|
|
35
|
-
this.configuration = configuration;
|
|
36
|
-
this.label = label;
|
|
37
|
-
this.logger = logger;
|
|
38
|
-
this.name = name;
|
|
39
|
-
this.reusables = reusables;
|
|
40
|
-
this.rdfjsTermExpression = rdfjsTermExpression.bind({
|
|
41
|
-
imports: this.reusables.imports,
|
|
42
|
-
logger: this.logger,
|
|
43
|
-
snippets: this.reusables.snippets,
|
|
44
|
-
});
|
|
45
|
-
this.shapeIdentifier = shapeIdentifier;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* TypeScript object describing this type, for runtime use.
|
|
49
|
-
*/
|
|
50
|
-
get schema() {
|
|
51
|
-
return this.schemaExpression;
|
|
52
|
-
}
|
|
53
|
-
get schemaExpression() {
|
|
54
|
-
return code `{ ${joinCode(this.schemaInitializers.concat(), { on: ", " })} }`;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Helper to compose the result of schema along the type hierarchy.
|
|
58
|
-
*/
|
|
59
|
-
get schemaInitializers() {
|
|
60
|
-
return [code `kind: ${literalOf(this.kind)} as const`];
|
|
61
|
-
}
|
|
62
|
-
rdfjsTermExpression;
|
|
63
|
-
}
|
|
64
|
-
__decorate([
|
|
65
|
-
Memoize()
|
|
66
|
-
], AbstractType.prototype, "schema", null);
|
|
67
|
-
__decorate([
|
|
68
|
-
Memoize()
|
|
69
|
-
], AbstractType.prototype, "schemaExpression", null);
|
|
70
|
-
(function (AbstractType) {
|
|
71
|
-
class GraphqlType {
|
|
72
|
-
/**
|
|
73
|
-
* Is the type nullable in GraphQL?
|
|
74
|
-
*/
|
|
75
|
-
nullable;
|
|
76
|
-
/**
|
|
77
|
-
* The expression of the type when it's nullable -- so it should never include "new graphql.GraphQLNonNull(...)" around it.
|
|
78
|
-
*/
|
|
79
|
-
nullableExpression;
|
|
80
|
-
reusables;
|
|
81
|
-
constructor(nullableExpression, reusables, options) {
|
|
82
|
-
this.nullable = !!options?.nullable;
|
|
83
|
-
this.nullableExpression = nullableExpression;
|
|
84
|
-
this.reusables = reusables;
|
|
85
|
-
}
|
|
86
|
-
get expression() {
|
|
87
|
-
return this.nullable
|
|
88
|
-
? this.nullableExpression
|
|
89
|
-
: code `new ${this.reusables.imports.GraphQLNonNull}(${this.nullableExpression})`;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
__decorate([
|
|
93
|
-
Memoize()
|
|
94
|
-
], GraphqlType.prototype, "expression", null);
|
|
95
|
-
AbstractType.GraphqlType = GraphqlType;
|
|
96
|
-
let JsType;
|
|
97
|
-
(function (JsType) {
|
|
98
|
-
function equals(left, right) {
|
|
99
|
-
if (left.typeof !== right.typeof) {
|
|
100
|
-
return false;
|
|
101
|
-
}
|
|
102
|
-
if (left.typeof === "object" &&
|
|
103
|
-
right.typeof === "object" &&
|
|
104
|
-
left.instanceof !== right.instanceof) {
|
|
105
|
-
return false;
|
|
106
|
-
}
|
|
107
|
-
return true;
|
|
108
|
-
}
|
|
109
|
-
JsType.equals = equals;
|
|
110
|
-
})(JsType = AbstractType.JsType || (AbstractType.JsType = {}));
|
|
111
|
-
class JsonType {
|
|
112
|
-
/**
|
|
113
|
-
* Is the type optional in JSON? Equivalent to ? in TypeScript or | undefined.
|
|
114
|
-
*/
|
|
115
|
-
optional;
|
|
116
|
-
/**
|
|
117
|
-
* The expression of the type when it's required i.e. -- so it should never include "| undefined".
|
|
118
|
-
*/
|
|
119
|
-
requiredExpression;
|
|
120
|
-
constructor(requiredExpression, parameters) {
|
|
121
|
-
this.optional = !!parameters?.optional;
|
|
122
|
-
this.requiredExpression = requiredExpression;
|
|
123
|
-
}
|
|
124
|
-
get expression() {
|
|
125
|
-
return this.optional
|
|
126
|
-
? code `(${this.requiredExpression}) | undefined`
|
|
127
|
-
: this.requiredExpression;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
__decorate([
|
|
131
|
-
Memoize()
|
|
132
|
-
], JsonType.prototype, "expression", null);
|
|
133
|
-
AbstractType.JsonType = JsonType;
|
|
134
|
-
})(AbstractType || (AbstractType = {}));
|
|
135
|
-
//# sourceMappingURL=AbstractType.js.map
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { Literal } from "@rdfjs/types";
|
|
2
|
-
import { Maybe } from "purify-ts";
|
|
3
|
-
import { AbstractLiteralType } from "./AbstractLiteralType.js";
|
|
4
|
-
import { type Code } from "./ts-poet-wrapper.js";
|
|
5
|
-
export declare class BigDecimalType extends AbstractLiteralType {
|
|
6
|
-
protected readonly inlineExpression: Code;
|
|
7
|
-
readonly conversionFunction: Maybe<AbstractLiteralType.ConversionFunction>;
|
|
8
|
-
readonly filterFunction: Code;
|
|
9
|
-
readonly filterType: Code;
|
|
10
|
-
readonly fromRdfResourceValuesFunction: Code;
|
|
11
|
-
readonly hashFunction: Code;
|
|
12
|
-
readonly jsTypes: readonly [{
|
|
13
|
-
readonly instanceof: "Object";
|
|
14
|
-
readonly typeof: "object";
|
|
15
|
-
}];
|
|
16
|
-
readonly kind = "BigDecimal";
|
|
17
|
-
readonly schemaType: Code;
|
|
18
|
-
readonly valueSparqlWherePatternsFunction: Code;
|
|
19
|
-
get graphqlType(): import("./AbstractType.js").AbstractType.GraphqlType;
|
|
20
|
-
fromJsonExpression({ variables, }: Parameters<AbstractLiteralType["fromJsonExpression"]>[0]): Code;
|
|
21
|
-
graphqlResolveExpression({ variables, }: Parameters<AbstractLiteralType["graphqlResolveExpression"]>[0]): Code;
|
|
22
|
-
jsonSchema(): Code;
|
|
23
|
-
jsonType(): AbstractLiteralType.JsonType;
|
|
24
|
-
literalValueExpression(literal: Literal): Code;
|
|
25
|
-
toJsonExpression({ variables, }: Parameters<AbstractLiteralType["toJsonExpression"]>[0]): Code;
|
|
26
|
-
toRdfResourceValuesExpression({ variables, }: Parameters<AbstractLiteralType["toRdfResourceValuesExpression"]>[0]): Code;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=BigDecimalType.d.ts.map
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { Maybe } from "purify-ts";
|
|
8
|
-
import { Memoize } from "typescript-memoize";
|
|
9
|
-
import { AbstractLiteralType } from "./AbstractLiteralType.js";
|
|
10
|
-
import { code, literalOf } from "./ts-poet-wrapper.js";
|
|
11
|
-
export class BigDecimalType extends AbstractLiteralType {
|
|
12
|
-
inlineExpression = code `${this.reusables.imports.BigDecimal}`;
|
|
13
|
-
conversionFunction = Maybe.empty();
|
|
14
|
-
filterFunction = code `${this.reusables.snippets.filterBigDecimal}`;
|
|
15
|
-
filterType = code `${this.reusables.snippets.NumericFilter}<${this.reusables.imports.BigDecimal}>`;
|
|
16
|
-
fromRdfResourceValuesFunction = code `${this.reusables.snippets.bigDecimalFromRdfResourceValues}`;
|
|
17
|
-
hashFunction = code `${this.reusables.snippets.hashBigDecimal}`;
|
|
18
|
-
jsTypes = [
|
|
19
|
-
{ instanceof: "Object", typeof: "object" },
|
|
20
|
-
];
|
|
21
|
-
kind = "BigDecimal";
|
|
22
|
-
schemaType = code `${this.reusables.snippets.NumericSchema}<${this.reusables.imports.BigDecimal}>`;
|
|
23
|
-
valueSparqlWherePatternsFunction = code `${this.reusables.snippets.bigDecimalSparqlWherePatterns}`;
|
|
24
|
-
get graphqlType() {
|
|
25
|
-
return new AbstractLiteralType.GraphqlType(code `${this.reusables.imports.GraphQLString}`, this.reusables);
|
|
26
|
-
}
|
|
27
|
-
fromJsonExpression({ variables, }) {
|
|
28
|
-
return code `${this.reusables.imports.Either}.encase<Error, ${this.expression}>(() => new ${this.expression}(${variables.value}))`;
|
|
29
|
-
}
|
|
30
|
-
graphqlResolveExpression({ variables, }) {
|
|
31
|
-
return code `${variables.value}.toFixed()`;
|
|
32
|
-
}
|
|
33
|
-
jsonSchema() {
|
|
34
|
-
return code `${this.reusables.imports.z}.string()`;
|
|
35
|
-
}
|
|
36
|
-
jsonType() {
|
|
37
|
-
return new AbstractLiteralType.JsonType(code `string`);
|
|
38
|
-
}
|
|
39
|
-
literalValueExpression(literal) {
|
|
40
|
-
return code `new ${this.reusables.imports.BigDecimal}(${literalOf(literal.value)})`;
|
|
41
|
-
}
|
|
42
|
-
toJsonExpression({ variables, }) {
|
|
43
|
-
return code `${variables.value}.toFixed()`;
|
|
44
|
-
}
|
|
45
|
-
toRdfResourceValuesExpression({ variables, }) {
|
|
46
|
-
return code `[${this.reusables.snippets.bigDecimalLiteral}(${variables.value})]`;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
__decorate([
|
|
50
|
-
Memoize()
|
|
51
|
-
], BigDecimalType.prototype, "graphqlType", null);
|
|
52
|
-
__decorate([
|
|
53
|
-
Memoize()
|
|
54
|
-
], BigDecimalType.prototype, "jsonSchema", null);
|
|
55
|
-
__decorate([
|
|
56
|
-
Memoize()
|
|
57
|
-
], BigDecimalType.prototype, "jsonType", null);
|
|
58
|
-
//# sourceMappingURL=BigDecimalType.js.map
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Literal } from "@rdfjs/types";
|
|
2
|
-
import { AbstractNumericType } from "./AbstractNumericType.js";
|
|
3
|
-
import { type Code } from "./ts-poet-wrapper.js";
|
|
4
|
-
export declare class BigIntType extends AbstractNumericType<bigint> {
|
|
5
|
-
readonly jsTypes: {
|
|
6
|
-
readonly typeof: "bigint";
|
|
7
|
-
}[];
|
|
8
|
-
readonly kind = "BigInt";
|
|
9
|
-
get fromRdfResourceValuesFunction(): Code;
|
|
10
|
-
get graphqlType(): import("./AbstractType.js").AbstractType.GraphqlType;
|
|
11
|
-
fromJsonExpression({ variables, }: Parameters<AbstractNumericType<bigint>["fromJsonExpression"]>[0]): Code;
|
|
12
|
-
jsonSchema(_parameters: Parameters<AbstractNumericType<bigint>["jsonSchema"]>[0]): Code;
|
|
13
|
-
jsonType(): AbstractNumericType.JsonType;
|
|
14
|
-
literalValueExpression(literal: bigint | Literal): Code;
|
|
15
|
-
toJsonExpression({ variables, }: Parameters<AbstractNumericType<bigint>["toJsonExpression"]>[0]): Code;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=BigIntType.d.ts.map
|