@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,540 +0,0 @@
|
|
|
1
|
-
import TermMap from "@rdfjs/term-map";
|
|
2
|
-
import TermSet from "@rdfjs/term-set";
|
|
3
|
-
import { LiteralDecoder, literalDatatypeDefinitions } from "@rdfx/literal";
|
|
4
|
-
import base62 from "@sindresorhus/base62";
|
|
5
|
-
import { rdf } from "@tpluscode/rdf-ns-builders";
|
|
6
|
-
import { Maybe } from "purify-ts";
|
|
7
|
-
import reservedTsIdentifiers_ from "reserved-identifiers";
|
|
8
|
-
import { invariant } from "ts-invariant";
|
|
9
|
-
import * as ast from "../../ast/index.js";
|
|
10
|
-
import { BigDecimalType } from "./BigDecimalType.js";
|
|
11
|
-
import { BigIntType } from "./BigIntType.js";
|
|
12
|
-
import { BlankNodeType } from "./BlankNodeType.js";
|
|
13
|
-
import { BooleanType } from "./BooleanType.js";
|
|
14
|
-
import { DateTimeType } from "./DateTimeType.js";
|
|
15
|
-
import { DateType } from "./DateType.js";
|
|
16
|
-
import { DefaultValueType } from "./DefaultValueType.js";
|
|
17
|
-
import { FloatType } from "./FloatType.js";
|
|
18
|
-
import { IdentifierType } from "./IdentifierType.js";
|
|
19
|
-
import { IntType } from "./IntType.js";
|
|
20
|
-
import { IriType } from "./IriType.js";
|
|
21
|
-
import { LazyOptionType } from "./LazyOptionType.js";
|
|
22
|
-
import { LazySetType } from "./LazySetType.js";
|
|
23
|
-
import { LazyType } from "./LazyType.js";
|
|
24
|
-
import { ListType } from "./ListType.js";
|
|
25
|
-
import { LiteralType } from "./LiteralType.js";
|
|
26
|
-
import { ObjectType } from "./ObjectType.js";
|
|
27
|
-
import { ObjectUnionType } from "./ObjectUnionType.js";
|
|
28
|
-
import { OptionType } from "./OptionType.js";
|
|
29
|
-
import { SetType } from "./SetType.js";
|
|
30
|
-
import { StringType } from "./StringType.js";
|
|
31
|
-
import { TermType } from "./TermType.js";
|
|
32
|
-
import { UnionType } from "./UnionType.js";
|
|
33
|
-
export class TypeFactory {
|
|
34
|
-
configuration;
|
|
35
|
-
logger;
|
|
36
|
-
reusables;
|
|
37
|
-
cachedObjectUnionTypesByShapeIdentifier = new TermMap();
|
|
38
|
-
cachedObjectTypePropertiesByShapeIdentifier = new TermMap();
|
|
39
|
-
cachedObjectTypesByShapeIdentifier = new TermMap();
|
|
40
|
-
constructor({ configuration, logger, reusables, }) {
|
|
41
|
-
this.configuration = configuration;
|
|
42
|
-
this.logger = logger;
|
|
43
|
-
this.reusables = reusables;
|
|
44
|
-
}
|
|
45
|
-
createObjectType(astType) {
|
|
46
|
-
{
|
|
47
|
-
const cachedObjectType = this.cachedObjectTypesByShapeIdentifier.get(astType.shapeIdentifier);
|
|
48
|
-
if (cachedObjectType) {
|
|
49
|
-
return cachedObjectType;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
const discriminantProperty = astType.name.map((name) => new ObjectType.DiscriminantProperty({
|
|
53
|
-
configuration: this.configuration,
|
|
54
|
-
logger: this.logger,
|
|
55
|
-
name: `${this.configuration.syntheticNamePrefix}type`,
|
|
56
|
-
objectType: { name: astType.name },
|
|
57
|
-
reusables: this.reusables,
|
|
58
|
-
value: name,
|
|
59
|
-
}));
|
|
60
|
-
const identifierType = this.createIdentifierType(astType.identifierType);
|
|
61
|
-
const objectType = new ObjectType({
|
|
62
|
-
discriminantProperty,
|
|
63
|
-
comment: astType.comment,
|
|
64
|
-
configuration: this.configuration,
|
|
65
|
-
extern: astType.extern,
|
|
66
|
-
fromRdfType: astType.fromRdfType,
|
|
67
|
-
identifierType,
|
|
68
|
-
label: astType.label,
|
|
69
|
-
lazyProperties: (objectType) => {
|
|
70
|
-
const properties = astType.fields
|
|
71
|
-
.toSorted((left, right) => {
|
|
72
|
-
if (left.order < right.order) {
|
|
73
|
-
return -1;
|
|
74
|
-
}
|
|
75
|
-
if (left.order > right.order) {
|
|
76
|
-
return 1;
|
|
77
|
-
}
|
|
78
|
-
return this.tsName(left.name).localeCompare(this.tsName(right.name));
|
|
79
|
-
})
|
|
80
|
-
.map((astField) => this.createObjectTypeProperty({
|
|
81
|
-
astStructField: astField,
|
|
82
|
-
objectType,
|
|
83
|
-
}));
|
|
84
|
-
discriminantProperty.ifJust((discriminantProperty) => {
|
|
85
|
-
properties.splice(0, 0, discriminantProperty);
|
|
86
|
-
});
|
|
87
|
-
properties.splice(0, 0, new ObjectType.IdentifierProperty({
|
|
88
|
-
configuration: this.configuration,
|
|
89
|
-
logger: this.logger,
|
|
90
|
-
name: `${this.configuration.syntheticNamePrefix}identifier`,
|
|
91
|
-
objectType,
|
|
92
|
-
reusables: this.reusables,
|
|
93
|
-
type: identifierType,
|
|
94
|
-
}));
|
|
95
|
-
return properties;
|
|
96
|
-
},
|
|
97
|
-
logger: this.logger,
|
|
98
|
-
name: astType.name.map((name) => this.tsName(name, { synthetic: astType.synthetic })),
|
|
99
|
-
recursive: astType.recursive,
|
|
100
|
-
reusables: this.reusables,
|
|
101
|
-
shapeIdentifier: astType.shapeIdentifier,
|
|
102
|
-
synthetic: astType.synthetic,
|
|
103
|
-
toRdfTypes: astType.toRdfTypes,
|
|
104
|
-
});
|
|
105
|
-
this.cachedObjectTypesByShapeIdentifier.set(astType.shapeIdentifier, objectType);
|
|
106
|
-
return objectType;
|
|
107
|
-
}
|
|
108
|
-
createObjectUnionType(astType) {
|
|
109
|
-
{
|
|
110
|
-
const cachedObjectUnionType = this.cachedObjectUnionTypesByShapeIdentifier.get(astType.shapeIdentifier);
|
|
111
|
-
if (cachedObjectUnionType) {
|
|
112
|
-
return cachedObjectUnionType;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
const objectUnionType = new ObjectUnionType({
|
|
116
|
-
comment: astType.comment,
|
|
117
|
-
configuration: this.configuration,
|
|
118
|
-
identifierType: Maybe.of(this.createIdentifierType(ast.StructCompoundType.identifierType(astType))),
|
|
119
|
-
label: astType.label,
|
|
120
|
-
logger: this.logger,
|
|
121
|
-
members: ast.StructCompoundType.memberStructTypes(astType).map((astStructType) => ({
|
|
122
|
-
discriminantValue: Maybe.empty(),
|
|
123
|
-
type: this.createObjectType(astStructType),
|
|
124
|
-
})),
|
|
125
|
-
name: astType.name.map((name) => this.tsName(name)),
|
|
126
|
-
recursive: astType.recursive,
|
|
127
|
-
reusables: this.reusables,
|
|
128
|
-
shapeIdentifier: astType.shapeIdentifier,
|
|
129
|
-
synthetic: astType.synthetic,
|
|
130
|
-
});
|
|
131
|
-
this.cachedObjectUnionTypesByShapeIdentifier.set(astType.shapeIdentifier, objectUnionType);
|
|
132
|
-
return objectUnionType;
|
|
133
|
-
}
|
|
134
|
-
createType(astType, parameters) {
|
|
135
|
-
switch (astType.kind) {
|
|
136
|
-
case "BlankNode":
|
|
137
|
-
return this.createBlankNodeType(astType);
|
|
138
|
-
case "DefaultValue":
|
|
139
|
-
return this.createDefaultValueType(astType);
|
|
140
|
-
case "Identifier":
|
|
141
|
-
return this.createIdentifierType(astType);
|
|
142
|
-
case "Intersection":
|
|
143
|
-
throw new Error("not implemented");
|
|
144
|
-
case "Iri":
|
|
145
|
-
return this.createIriType(astType);
|
|
146
|
-
case "Lazy":
|
|
147
|
-
return this.createLazyType(astType);
|
|
148
|
-
case "LazyOption":
|
|
149
|
-
return this.createLazyOptionType(astType);
|
|
150
|
-
case "LazySet":
|
|
151
|
-
return this.createLazySetType(astType);
|
|
152
|
-
case "List":
|
|
153
|
-
return this.createListType(astType);
|
|
154
|
-
case "Literal":
|
|
155
|
-
return this.createLiteralType(astType, parameters);
|
|
156
|
-
case "Option":
|
|
157
|
-
return this.createOptionType(astType);
|
|
158
|
-
case "Set":
|
|
159
|
-
return this.createSetType(astType);
|
|
160
|
-
case "Struct":
|
|
161
|
-
return this.createObjectType(astType);
|
|
162
|
-
case "Term":
|
|
163
|
-
return this.createTermType(astType);
|
|
164
|
-
case "Union":
|
|
165
|
-
return this.createUnionType(astType);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
createUnionType(astType) {
|
|
169
|
-
if (astType.isStructUnionType()) {
|
|
170
|
-
return this.createObjectUnionType(astType);
|
|
171
|
-
}
|
|
172
|
-
return new UnionType({
|
|
173
|
-
comment: astType.comment,
|
|
174
|
-
configuration: this.configuration,
|
|
175
|
-
identifierType: Maybe.empty(),
|
|
176
|
-
label: astType.label,
|
|
177
|
-
logger: this.logger,
|
|
178
|
-
members: astType.members.map((member) => ({
|
|
179
|
-
discriminantValue: member.discriminantValue,
|
|
180
|
-
type: this.createType(member.type),
|
|
181
|
-
})),
|
|
182
|
-
name: astType.name.map((name) => this.tsName(name)),
|
|
183
|
-
recursive: astType.recursive,
|
|
184
|
-
reusables: this.reusables,
|
|
185
|
-
shapeIdentifier: astType.shapeIdentifier,
|
|
186
|
-
synthetic: astType.synthetic,
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
createBlankNodeType(astType) {
|
|
190
|
-
return new BlankNodeType({
|
|
191
|
-
comment: astType.comment,
|
|
192
|
-
configuration: this.configuration,
|
|
193
|
-
label: astType.label,
|
|
194
|
-
logger: this.logger,
|
|
195
|
-
name: astType.name.map((name) => this.tsName(name)),
|
|
196
|
-
reusables: this.reusables,
|
|
197
|
-
shapeIdentifier: astType.shapeIdentifier,
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
createDefaultValueType(astType) {
|
|
201
|
-
const itemType = this.createType(astType.itemType, {
|
|
202
|
-
defaultValue: astType.defaultValue,
|
|
203
|
-
});
|
|
204
|
-
invariant(DefaultValueType.isItemType(itemType));
|
|
205
|
-
return new DefaultValueType({
|
|
206
|
-
comment: astType.comment,
|
|
207
|
-
configuration: this.configuration,
|
|
208
|
-
defaultValue: astType.defaultValue,
|
|
209
|
-
itemType,
|
|
210
|
-
label: astType.label,
|
|
211
|
-
logger: this.logger,
|
|
212
|
-
name: astType.name.map((name) => this.tsName(name)),
|
|
213
|
-
reusables: this.reusables,
|
|
214
|
-
shapeIdentifier: astType.shapeIdentifier,
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
createIdentifierType(astType) {
|
|
218
|
-
switch (astType.kind) {
|
|
219
|
-
case "BlankNode":
|
|
220
|
-
return this.createBlankNodeType(astType);
|
|
221
|
-
case "Identifier":
|
|
222
|
-
return new IdentifierType({
|
|
223
|
-
comment: astType.comment,
|
|
224
|
-
configuration: this.configuration,
|
|
225
|
-
label: astType.label,
|
|
226
|
-
logger: this.logger,
|
|
227
|
-
name: astType.name.map((name) => this.tsName(name)),
|
|
228
|
-
reusables: this.reusables,
|
|
229
|
-
shapeIdentifier: astType.shapeIdentifier,
|
|
230
|
-
});
|
|
231
|
-
case "Iri":
|
|
232
|
-
return this.createIriType(astType);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
createIriType(astType) {
|
|
236
|
-
return new IriType({
|
|
237
|
-
comment: astType.comment,
|
|
238
|
-
configuration: this.configuration,
|
|
239
|
-
hasValues: astType.hasValues,
|
|
240
|
-
in_: astType.in_,
|
|
241
|
-
label: astType.label,
|
|
242
|
-
logger: this.logger,
|
|
243
|
-
name: astType.name.map((name) => this.tsName(name)),
|
|
244
|
-
reusables: this.reusables,
|
|
245
|
-
shapeIdentifier: astType.shapeIdentifier,
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
createLazyOptionType(astType) {
|
|
249
|
-
return new LazyOptionType({
|
|
250
|
-
comment: astType.comment,
|
|
251
|
-
configuration: this.configuration,
|
|
252
|
-
label: astType.label,
|
|
253
|
-
logger: this.logger,
|
|
254
|
-
name: astType.name.map((name) => this.tsName(name)),
|
|
255
|
-
partialType: this.createOptionType(astType.partialType),
|
|
256
|
-
resolveType: this.createOptionType(astType.resolveType),
|
|
257
|
-
reusables: this.reusables,
|
|
258
|
-
shapeIdentifier: astType.shapeIdentifier,
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
createLazySetType(astType) {
|
|
262
|
-
return new LazySetType({
|
|
263
|
-
comment: astType.comment,
|
|
264
|
-
configuration: this.configuration,
|
|
265
|
-
label: astType.label,
|
|
266
|
-
logger: this.logger,
|
|
267
|
-
name: astType.name.map((name) => this.tsName(name)),
|
|
268
|
-
partialType: this.createSetType(astType.partialType),
|
|
269
|
-
resolveType: this.createSetType(astType.resolveType),
|
|
270
|
-
reusables: this.reusables,
|
|
271
|
-
shapeIdentifier: astType.shapeIdentifier,
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
createLazyType(astType) {
|
|
275
|
-
return new LazyType({
|
|
276
|
-
comment: astType.comment,
|
|
277
|
-
configuration: this.configuration,
|
|
278
|
-
label: astType.label,
|
|
279
|
-
logger: this.logger,
|
|
280
|
-
name: astType.name.map((name) => this.tsName(name)),
|
|
281
|
-
partialType: this.createType(astType.partialType),
|
|
282
|
-
resolveType: this.createType(astType.resolveType),
|
|
283
|
-
reusables: this.reusables,
|
|
284
|
-
shapeIdentifier: astType.shapeIdentifier,
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
|
-
createListType(astType) {
|
|
288
|
-
const itemType = this.createType(astType.itemType);
|
|
289
|
-
invariant(ListType.isItemType(itemType));
|
|
290
|
-
return new ListType({
|
|
291
|
-
comment: astType.comment,
|
|
292
|
-
configuration: this.configuration,
|
|
293
|
-
identifierNodeKind: astType.identifierNodeKind,
|
|
294
|
-
itemType,
|
|
295
|
-
label: astType.label,
|
|
296
|
-
logger: this.logger,
|
|
297
|
-
mutable: astType.mutable,
|
|
298
|
-
name: astType.name.map((name) => this.tsName(name)),
|
|
299
|
-
reusables: this.reusables,
|
|
300
|
-
shapeIdentifier: astType.shapeIdentifier,
|
|
301
|
-
toRdfTypes: astType.toRdfTypes,
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
createLiteralType(astType, parameters) {
|
|
305
|
-
// Look at sh:datatype as well as sh:defaultValue, sh:hasValue, and sh:in datatypes
|
|
306
|
-
// If there's one common datatype than we can refine the type
|
|
307
|
-
// Otherwise default to rdfjs.Literal
|
|
308
|
-
const datatypes = new TermSet();
|
|
309
|
-
astType.datatype.ifJust((datatype) => datatypes.add(datatype));
|
|
310
|
-
if (datatypes.size === 0) {
|
|
311
|
-
if (parameters?.defaultValue &&
|
|
312
|
-
parameters.defaultValue.termType === "Literal") {
|
|
313
|
-
datatypes.add(parameters.defaultValue.datatype);
|
|
314
|
-
}
|
|
315
|
-
for (const hasValue of astType.hasValues) {
|
|
316
|
-
datatypes.add(hasValue.datatype);
|
|
317
|
-
}
|
|
318
|
-
for (const value of astType.in_) {
|
|
319
|
-
datatypes.add(value.datatype);
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
if (datatypes.size === 1) {
|
|
323
|
-
const datatype = [...datatypes][0];
|
|
324
|
-
const datatypeDefinition = literalDatatypeDefinitions[datatype.value];
|
|
325
|
-
if (datatypeDefinition) {
|
|
326
|
-
switch (datatypeDefinition.kind) {
|
|
327
|
-
case "bigdecimal":
|
|
328
|
-
return new BigDecimalType({
|
|
329
|
-
comment: astType.comment,
|
|
330
|
-
configuration: this.configuration,
|
|
331
|
-
hasValues: astType.hasValues,
|
|
332
|
-
in_: astType.in_,
|
|
333
|
-
label: astType.label,
|
|
334
|
-
languageIn: [],
|
|
335
|
-
logger: this.logger,
|
|
336
|
-
name: astType.name.map((name) => this.tsName(name)),
|
|
337
|
-
reusables: this.reusables,
|
|
338
|
-
shapeIdentifier: astType.shapeIdentifier,
|
|
339
|
-
});
|
|
340
|
-
case "bigint":
|
|
341
|
-
return new BigIntType({
|
|
342
|
-
comment: astType.comment,
|
|
343
|
-
configuration: this.configuration,
|
|
344
|
-
datatype,
|
|
345
|
-
hasValues: astType.hasValues,
|
|
346
|
-
in_: astType.in_,
|
|
347
|
-
label: astType.label,
|
|
348
|
-
languageIn: [],
|
|
349
|
-
logger: this.logger,
|
|
350
|
-
name: astType.name.map((name) => this.tsName(name)),
|
|
351
|
-
primitiveIn: astType.in_.map((value) => LiteralDecoder.decodeBigIntLiteral(value).unsafeCoerce()),
|
|
352
|
-
reusables: this.reusables,
|
|
353
|
-
shapeIdentifier: astType.shapeIdentifier,
|
|
354
|
-
});
|
|
355
|
-
case "boolean":
|
|
356
|
-
return new BooleanType({
|
|
357
|
-
comment: astType.comment,
|
|
358
|
-
configuration: this.configuration,
|
|
359
|
-
datatype,
|
|
360
|
-
hasValues: astType.hasValues,
|
|
361
|
-
label: astType.label,
|
|
362
|
-
languageIn: [],
|
|
363
|
-
in_: astType.in_,
|
|
364
|
-
logger: this.logger,
|
|
365
|
-
name: astType.name.map((name) => this.tsName(name)),
|
|
366
|
-
primitiveIn: astType.in_.map((value) => LiteralDecoder.decodeBooleanLiteral(value).unsafeCoerce()),
|
|
367
|
-
reusables: this.reusables,
|
|
368
|
-
shapeIdentifier: astType.shapeIdentifier,
|
|
369
|
-
});
|
|
370
|
-
case "date":
|
|
371
|
-
case "datetime":
|
|
372
|
-
return new (datatypeDefinition.kind === "date" ? DateType : DateTimeType)({
|
|
373
|
-
comment: astType.comment,
|
|
374
|
-
configuration: this.configuration,
|
|
375
|
-
datatype,
|
|
376
|
-
hasValues: astType.hasValues,
|
|
377
|
-
in_: astType.in_,
|
|
378
|
-
label: astType.label,
|
|
379
|
-
languageIn: [],
|
|
380
|
-
logger: this.logger,
|
|
381
|
-
name: astType.name.map((name) => this.tsName(name)),
|
|
382
|
-
primitiveIn: astType.in_.map((value) => (datatypeDefinition.kind === "date"
|
|
383
|
-
? LiteralDecoder.decodeDateLiteral
|
|
384
|
-
: LiteralDecoder.decodeDateTimeLiteral)(value).unsafeCoerce()),
|
|
385
|
-
reusables: this.reusables,
|
|
386
|
-
shapeIdentifier: astType.shapeIdentifier,
|
|
387
|
-
});
|
|
388
|
-
case "float":
|
|
389
|
-
case "int":
|
|
390
|
-
return new (datatypeDefinition.kind === "float" ? FloatType : IntType)({
|
|
391
|
-
comment: astType.comment,
|
|
392
|
-
configuration: this.configuration,
|
|
393
|
-
datatype,
|
|
394
|
-
hasValues: astType.hasValues,
|
|
395
|
-
in_: astType.in_,
|
|
396
|
-
label: astType.label,
|
|
397
|
-
languageIn: [],
|
|
398
|
-
logger: this.logger,
|
|
399
|
-
name: astType.name.map((name) => this.tsName(name)),
|
|
400
|
-
primitiveIn: astType.in_.map((value) => (datatypeDefinition.kind === "float"
|
|
401
|
-
? LiteralDecoder.decodeFloatLiteral
|
|
402
|
-
: LiteralDecoder.decodeIntLiteral)(value).unsafeCoerce()),
|
|
403
|
-
reusables: this.reusables,
|
|
404
|
-
shapeIdentifier: astType.shapeIdentifier,
|
|
405
|
-
});
|
|
406
|
-
case "string":
|
|
407
|
-
if (!datatype.equals(rdf.langString)) {
|
|
408
|
-
return new StringType({
|
|
409
|
-
comment: astType.comment,
|
|
410
|
-
configuration: this.configuration,
|
|
411
|
-
datatype,
|
|
412
|
-
hasValues: astType.hasValues,
|
|
413
|
-
in_: astType.in_,
|
|
414
|
-
label: astType.label,
|
|
415
|
-
languageIn: astType.languageIn,
|
|
416
|
-
logger: this.logger,
|
|
417
|
-
name: astType.name.map((name) => this.tsName(name)),
|
|
418
|
-
primitiveIn: astType.in_.map((value) => value.value),
|
|
419
|
-
reusables: this.reusables,
|
|
420
|
-
shapeIdentifier: astType.shapeIdentifier,
|
|
421
|
-
});
|
|
422
|
-
}
|
|
423
|
-
break;
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
if (datatype.equals(rdf.langString)) {
|
|
427
|
-
// Drop down
|
|
428
|
-
}
|
|
429
|
-
else {
|
|
430
|
-
this.logger.warn("unrecognized literal datatype: %s", datatype.value);
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
else if (datatypes.size > 0) {
|
|
434
|
-
this.logger.warn("literal type has multiple datatypes: %s", JSON.stringify([...datatypes].map((datatype) => datatype.value)));
|
|
435
|
-
}
|
|
436
|
-
// } else {
|
|
437
|
-
// // this.logger.debug("literal type has no datatypes");
|
|
438
|
-
// }
|
|
439
|
-
return new LiteralType({
|
|
440
|
-
comment: astType.comment,
|
|
441
|
-
configuration: this.configuration,
|
|
442
|
-
hasValues: astType.hasValues,
|
|
443
|
-
in_: astType.in_,
|
|
444
|
-
label: astType.label,
|
|
445
|
-
languageIn: astType.languageIn,
|
|
446
|
-
logger: this.logger,
|
|
447
|
-
name: astType.name.map((name) => this.tsName(name)),
|
|
448
|
-
reusables: this.reusables,
|
|
449
|
-
shapeIdentifier: astType.shapeIdentifier,
|
|
450
|
-
});
|
|
451
|
-
}
|
|
452
|
-
createObjectTypeProperty({ astStructField, objectType, }) {
|
|
453
|
-
{
|
|
454
|
-
const cachedProperty = this.cachedObjectTypePropertiesByShapeIdentifier.get(astStructField.shapeIdentifier);
|
|
455
|
-
if (cachedProperty) {
|
|
456
|
-
return cachedProperty;
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
const property = new ObjectType.ShaclProperty({
|
|
460
|
-
comment: astStructField.comment,
|
|
461
|
-
configuration: this.configuration,
|
|
462
|
-
description: astStructField.description,
|
|
463
|
-
display: astStructField.display,
|
|
464
|
-
label: astStructField.label,
|
|
465
|
-
logger: this.logger,
|
|
466
|
-
mutable: astStructField.mutable,
|
|
467
|
-
name: this.tsName(astStructField.name),
|
|
468
|
-
objectType,
|
|
469
|
-
path: astStructField.path,
|
|
470
|
-
recursive: !!astStructField.recursive,
|
|
471
|
-
reusables: this.reusables,
|
|
472
|
-
type: this.createType(astStructField.type),
|
|
473
|
-
});
|
|
474
|
-
this.cachedObjectTypePropertiesByShapeIdentifier.set(astStructField.shapeIdentifier, property);
|
|
475
|
-
return property;
|
|
476
|
-
}
|
|
477
|
-
createOptionType(astType) {
|
|
478
|
-
const itemType = this.createType(astType.itemType);
|
|
479
|
-
invariant(OptionType.isItemType(itemType));
|
|
480
|
-
return new OptionType({
|
|
481
|
-
comment: astType.comment,
|
|
482
|
-
configuration: this.configuration,
|
|
483
|
-
itemType,
|
|
484
|
-
label: astType.label,
|
|
485
|
-
logger: this.logger,
|
|
486
|
-
name: astType.name.map((name) => this.tsName(name)),
|
|
487
|
-
reusables: this.reusables,
|
|
488
|
-
shapeIdentifier: astType.shapeIdentifier,
|
|
489
|
-
});
|
|
490
|
-
}
|
|
491
|
-
createSetType(astType) {
|
|
492
|
-
const itemType = this.createType(astType.itemType);
|
|
493
|
-
invariant(SetType.isItemType(itemType));
|
|
494
|
-
return new SetType({
|
|
495
|
-
comment: astType.comment,
|
|
496
|
-
configuration: this.configuration,
|
|
497
|
-
itemType,
|
|
498
|
-
label: astType.label,
|
|
499
|
-
logger: this.logger,
|
|
500
|
-
mutable: astType.mutable,
|
|
501
|
-
minCount: astType.minCount,
|
|
502
|
-
name: astType.name.map((name) => this.tsName(name)),
|
|
503
|
-
reusables: this.reusables,
|
|
504
|
-
shapeIdentifier: astType.shapeIdentifier,
|
|
505
|
-
});
|
|
506
|
-
}
|
|
507
|
-
createTermType(astType) {
|
|
508
|
-
return new TermType({
|
|
509
|
-
comment: astType.comment,
|
|
510
|
-
configuration: this.configuration,
|
|
511
|
-
hasValues: astType.hasValues,
|
|
512
|
-
in_: astType.in_,
|
|
513
|
-
label: astType.label,
|
|
514
|
-
logger: this.logger,
|
|
515
|
-
name: astType.name.map((name) => this.tsName(name)),
|
|
516
|
-
nodeKinds: astType.nodeKinds,
|
|
517
|
-
reusables: this.reusables,
|
|
518
|
-
shapeIdentifier: astType.shapeIdentifier,
|
|
519
|
-
});
|
|
520
|
-
}
|
|
521
|
-
tsName(name, options) {
|
|
522
|
-
if (name[0] === "$") {
|
|
523
|
-
return name;
|
|
524
|
-
}
|
|
525
|
-
// Adapted from https://github.com/sindresorhus/to-valid-identifier , MIT license
|
|
526
|
-
if (reservedTsIdentifiers.has(name)) {
|
|
527
|
-
// We prefix with underscore to avoid any potential conflicts with the Base62 encoded string.
|
|
528
|
-
return `$_${name}$`;
|
|
529
|
-
}
|
|
530
|
-
let tsName = name.replaceAll(/\P{ID_Continue}/gu, (x) => `$${base62.encodeInteger(x.codePointAt(0))}$`);
|
|
531
|
-
if (options?.synthetic) {
|
|
532
|
-
tsName = `${this.configuration.syntheticNamePrefix}${tsName}`;
|
|
533
|
-
}
|
|
534
|
-
return tsName;
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
const reservedTsIdentifiers = reservedTsIdentifiers_({
|
|
538
|
-
includeGlobalProperties: true,
|
|
539
|
-
});
|
|
540
|
-
//# sourceMappingURL=TypeFactory.js.map
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { Maybe } from "purify-ts";
|
|
2
|
-
import { AbstractType } from "./AbstractType.js";
|
|
3
|
-
import type { BlankNodeType } from "./BlankNodeType.js";
|
|
4
|
-
import type { IdentifierType } from "./IdentifierType.js";
|
|
5
|
-
import type { IriType } from "./IriType.js";
|
|
6
|
-
import type { Type } from "./Type.js";
|
|
7
|
-
import type { Typeof } from "./Typeof.js";
|
|
8
|
-
import { type Code } from "./ts-poet-wrapper.js";
|
|
9
|
-
export declare class UnionType<MemberTypeT extends Type> extends AbstractType {
|
|
10
|
-
private readonly discriminant;
|
|
11
|
-
readonly graphqlArgs: AbstractType["graphqlArgs"];
|
|
12
|
-
readonly identifierType: Maybe<BlankNodeType | IdentifierType | IriType>;
|
|
13
|
-
readonly kind: "ObjectUnion" | "Union";
|
|
14
|
-
readonly recursive: boolean;
|
|
15
|
-
readonly synthetic: boolean;
|
|
16
|
-
readonly validationFunction: Maybe<Code>;
|
|
17
|
-
constructor({ identifierType, members, recursive, synthetic, ...superParameters }: {
|
|
18
|
-
identifierType: Maybe<BlankNodeType | IdentifierType | IriType>;
|
|
19
|
-
members: readonly (Pick<AbstractUnionType.Member<MemberTypeT>, "type"> & {
|
|
20
|
-
readonly discriminantValue: Maybe<number | string>;
|
|
21
|
-
})[];
|
|
22
|
-
recursive: boolean;
|
|
23
|
-
synthetic: boolean;
|
|
24
|
-
} & ConstructorParameters<typeof AbstractType>[0]);
|
|
25
|
-
get conversionFunction(): Maybe<AbstractType.ConversionFunction>;
|
|
26
|
-
get declaration(): Maybe<Code>;
|
|
27
|
-
get discriminantProperty(): Maybe<AbstractType.DiscriminantProperty>;
|
|
28
|
-
get equalsFunction(): Code;
|
|
29
|
-
get expression(): Code;
|
|
30
|
-
get filterFunction(): Code;
|
|
31
|
-
get filterType(): Code;
|
|
32
|
-
get fromRdfResourceValuesFunction(): Code;
|
|
33
|
-
get graphqlType(): AbstractType.GraphqlType;
|
|
34
|
-
get hashFunction(): Code;
|
|
35
|
-
get jsTypes(): AbstractType["jsTypes"];
|
|
36
|
-
get jsonSchemaFunctionDeclaration(): Code;
|
|
37
|
-
get jsonTypeAliasDeclaration(): Code;
|
|
38
|
-
get members(): readonly AbstractUnionType.Member<MemberTypeT>[];
|
|
39
|
-
get mutable(): boolean;
|
|
40
|
-
get referencesNamedType(): boolean;
|
|
41
|
-
get schema(): Code;
|
|
42
|
-
get schemaType(): Code;
|
|
43
|
-
get toRdfResourceValueTypes(): AbstractType["toRdfResourceValueTypes"];
|
|
44
|
-
get valueSparqlConstructTriplesFunction(): Code;
|
|
45
|
-
get valueSparqlWherePatternsFunction(): Code;
|
|
46
|
-
protected get schemaInitializers(): readonly Code[];
|
|
47
|
-
protected get schemaTypeExpression(): Code;
|
|
48
|
-
protected get staticModuleDeclarations(): Record<string, Code>;
|
|
49
|
-
private get equalsFunctionExpression();
|
|
50
|
-
private get filterFunctionExpression();
|
|
51
|
-
private get filterTypeLiteral();
|
|
52
|
-
private get fromJsonFunctionExpression();
|
|
53
|
-
private get fromRdfResourceValuesFunctionExpression();
|
|
54
|
-
private get hashFunctionExpression();
|
|
55
|
-
/**
|
|
56
|
-
* An inline expression of this type rather than a type reference/name.
|
|
57
|
-
*/
|
|
58
|
-
private get inlineExpression();
|
|
59
|
-
private get jsonSchemaExpression();
|
|
60
|
-
private get jsonTypeLiteral();
|
|
61
|
-
private get toJsonFunctionExpression();
|
|
62
|
-
private get toRdfResourceValuesFunctionExpression();
|
|
63
|
-
private get toStringFunctionExpression();
|
|
64
|
-
private get valueSparqlConstructTriplesFunctionExpression();
|
|
65
|
-
private get valueSparqlWherePatternsFunctionExpression();
|
|
66
|
-
fromJsonExpression({ variables, }: Parameters<AbstractType["fromJsonExpression"]>[0]): Code;
|
|
67
|
-
graphqlResolveExpression({ variables, }: {
|
|
68
|
-
variables: {
|
|
69
|
-
value: Code;
|
|
70
|
-
};
|
|
71
|
-
}): Code;
|
|
72
|
-
jsonSchema({ context, }: Parameters<AbstractType["jsonSchema"]>[0]): Code;
|
|
73
|
-
jsonType(): AbstractType.JsonType;
|
|
74
|
-
jsonUiSchemaElement(): Maybe<Code>;
|
|
75
|
-
toJsonExpression({ variables, }: Parameters<AbstractType["toJsonExpression"]>[0]): Code;
|
|
76
|
-
toRdfResourceValuesExpression({ variables, }: Parameters<AbstractType["toRdfResourceValuesExpression"]>[0]): Code;
|
|
77
|
-
toStringExpression({ variables, }: Parameters<AbstractType["toStringExpression"]>[0]): Code;
|
|
78
|
-
private readonly lazyMembers;
|
|
79
|
-
}
|
|
80
|
-
type Discriminant = ExtrinsicDiscriminant | HybridDiscriminant | IntrinsicDiscriminant | TypeofDiscriminant;
|
|
81
|
-
type ExtrinsicDiscriminant = {
|
|
82
|
-
readonly jsonName: string;
|
|
83
|
-
readonly kind: "Extrinsic";
|
|
84
|
-
readonly memberValues: readonly AbstractType.DiscriminantProperty.Value[];
|
|
85
|
-
readonly name: string;
|
|
86
|
-
};
|
|
87
|
-
type HybridDiscriminant = {
|
|
88
|
-
readonly jsonName: string;
|
|
89
|
-
readonly kind: "Hybrid";
|
|
90
|
-
readonly memberValues: readonly {
|
|
91
|
-
readonly kind: "Extrinsic" | "Intrinsic";
|
|
92
|
-
readonly values: readonly AbstractType.DiscriminantProperty.Value[];
|
|
93
|
-
}[];
|
|
94
|
-
readonly name: string;
|
|
95
|
-
};
|
|
96
|
-
type IntrinsicDiscriminant = {
|
|
97
|
-
readonly jsonName: string;
|
|
98
|
-
readonly kind: "Intrinsic";
|
|
99
|
-
readonly memberValues: readonly AbstractType.DiscriminantProperty.Value[];
|
|
100
|
-
readonly name: string;
|
|
101
|
-
};
|
|
102
|
-
type TypeofDiscriminant = {
|
|
103
|
-
readonly kind: "Typeof";
|
|
104
|
-
readonly memberValues: readonly Typeof[];
|
|
105
|
-
};
|
|
106
|
-
export declare namespace Discriminant {
|
|
107
|
-
function infer(members: readonly {
|
|
108
|
-
readonly discriminantValue: Maybe<number | string>;
|
|
109
|
-
readonly type: Type;
|
|
110
|
-
}[]): Discriminant;
|
|
111
|
-
}
|
|
112
|
-
export declare namespace AbstractUnionType {
|
|
113
|
-
interface Member<TypeT extends Type> {
|
|
114
|
-
readonly discriminantValues: readonly AbstractType.DiscriminantProperty.Value[];
|
|
115
|
-
readonly jsonType: Code | string;
|
|
116
|
-
readonly jsonTypeCheck: (instance: Code) => Code;
|
|
117
|
-
readonly primaryDiscriminantValue: AbstractType.DiscriminantProperty.Value;
|
|
118
|
-
readonly type: TypeT;
|
|
119
|
-
readonly typeCheck: (instance: Code) => Code;
|
|
120
|
-
readonly typeToJsonExpression: (valueVariable: Code) => Code;
|
|
121
|
-
readonly unwrap: (instance: Code) => Code;
|
|
122
|
-
readonly wrap: (instance: Code) => Code;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
export {};
|
|
126
|
-
//# sourceMappingURL=UnionType.d.ts.map
|