@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,140 +0,0 @@
|
|
|
1
|
-
import { transformAstToLabeledPropertyGraph } from "./transformAstToLabeledPropertyGraph.js";
|
|
2
|
-
export class Cx2Generator {
|
|
3
|
-
visualProperties;
|
|
4
|
-
constructor(options) {
|
|
5
|
-
this.visualProperties = options?.visualProperties;
|
|
6
|
-
}
|
|
7
|
-
generate(ast) {
|
|
8
|
-
const labeledPropertyGraph = transformAstToLabeledPropertyGraph(ast);
|
|
9
|
-
const edgeAttributeDeclarations = {
|
|
10
|
-
interaction: { d: "string" },
|
|
11
|
-
};
|
|
12
|
-
const edgeIdMap = {};
|
|
13
|
-
const edges = [];
|
|
14
|
-
const nodeAttributeDeclarations = {
|
|
15
|
-
name: { d: "string" },
|
|
16
|
-
};
|
|
17
|
-
const nodeIdMap = {};
|
|
18
|
-
const nodes = [];
|
|
19
|
-
function attributeDeclaration(lpgPropertyValue) {
|
|
20
|
-
switch (lpgPropertyValue.type) {
|
|
21
|
-
case "boolean":
|
|
22
|
-
case "double":
|
|
23
|
-
case "integer":
|
|
24
|
-
case "long":
|
|
25
|
-
case "string":
|
|
26
|
-
return { d: lpgPropertyValue.type };
|
|
27
|
-
case "boolean[]":
|
|
28
|
-
case "double[]":
|
|
29
|
-
case "integer[]":
|
|
30
|
-
case "long[]":
|
|
31
|
-
case "string[]":
|
|
32
|
-
return {
|
|
33
|
-
d: `list_of_${lpgPropertyValue.type.substring(0, lpgPropertyValue.type.length - 2)}`,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
for (const lpgNode of labeledPropertyGraph.nodes) {
|
|
38
|
-
let id = nodeIdMap[lpgNode.id];
|
|
39
|
-
if (id === undefined) {
|
|
40
|
-
id = Object.keys(nodeIdMap).length + 1;
|
|
41
|
-
nodeIdMap[lpgNode.id] = id;
|
|
42
|
-
}
|
|
43
|
-
const v = {
|
|
44
|
-
name: lpgNode.label,
|
|
45
|
-
};
|
|
46
|
-
for (const [lpgNodePropertyName, lpgNodePropertyValue] of Object.entries(lpgNode.properties)) {
|
|
47
|
-
if (lpgNodePropertyName === "name") {
|
|
48
|
-
continue;
|
|
49
|
-
}
|
|
50
|
-
if (!nodeAttributeDeclarations[lpgNodePropertyName]) {
|
|
51
|
-
nodeAttributeDeclarations[lpgNodePropertyName] =
|
|
52
|
-
attributeDeclaration(lpgNodePropertyValue);
|
|
53
|
-
}
|
|
54
|
-
v[lpgNodePropertyName] = lpgNodePropertyValue.value;
|
|
55
|
-
}
|
|
56
|
-
nodes.push({
|
|
57
|
-
id,
|
|
58
|
-
v,
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
for (const lpgRelationship of labeledPropertyGraph.relationships) {
|
|
62
|
-
let id = edgeIdMap[lpgRelationship.id];
|
|
63
|
-
if (id === undefined) {
|
|
64
|
-
id = Object.keys(edgeIdMap).length + 1;
|
|
65
|
-
edgeIdMap[lpgRelationship.id] = id;
|
|
66
|
-
}
|
|
67
|
-
edges.push({
|
|
68
|
-
id,
|
|
69
|
-
s: nodeIdMap[lpgRelationship.sourceNodeId],
|
|
70
|
-
t: nodeIdMap[lpgRelationship.targetNodeId],
|
|
71
|
-
v: lpgRelationship.label
|
|
72
|
-
.map((label) => ({ interaction: label }))
|
|
73
|
-
.orDefault({}),
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
let visualProperties = this.visualProperties ?? {};
|
|
77
|
-
visualProperties = {
|
|
78
|
-
...visualProperties,
|
|
79
|
-
default: {
|
|
80
|
-
edge: {
|
|
81
|
-
...visualProperties?.default?.edge,
|
|
82
|
-
EDGE_LABEL: "interaction",
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
edgeMapping: {
|
|
86
|
-
...visualProperties?.edgeMapping,
|
|
87
|
-
EDGE_LABEL: {
|
|
88
|
-
type: "PASSTHROUGH",
|
|
89
|
-
definition: {
|
|
90
|
-
attribute: "interaction",
|
|
91
|
-
type: "string",
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
};
|
|
96
|
-
return JSON.stringify([
|
|
97
|
-
{
|
|
98
|
-
CXVersion: "2.0",
|
|
99
|
-
hasFragments: false,
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
metaData: [
|
|
103
|
-
{
|
|
104
|
-
elementCount: edges.length,
|
|
105
|
-
name: "edges",
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
elementCount: nodes.length,
|
|
109
|
-
name: "nodes",
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
attributeDeclarations: [
|
|
115
|
-
{
|
|
116
|
-
edges: edgeAttributeDeclarations,
|
|
117
|
-
nodes: nodeAttributeDeclarations,
|
|
118
|
-
},
|
|
119
|
-
],
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
nodes,
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
edges,
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
visualProperties: [visualProperties],
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
status: [
|
|
132
|
-
{
|
|
133
|
-
success: true,
|
|
134
|
-
},
|
|
135
|
-
],
|
|
136
|
-
},
|
|
137
|
-
], undefined, 2);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
//# sourceMappingURL=Cx2Generator.js.map
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { Maybe } from "purify-ts";
|
|
2
|
-
export interface LabeledPropertyGraph {
|
|
3
|
-
readonly nodes: readonly LabeledPropertyGraph.Node[];
|
|
4
|
-
readonly relationships: readonly LabeledPropertyGraph.Relationship[];
|
|
5
|
-
}
|
|
6
|
-
export declare namespace LabeledPropertyGraph {
|
|
7
|
-
export type Id = string;
|
|
8
|
-
export interface Node {
|
|
9
|
-
readonly id: Id;
|
|
10
|
-
readonly label: string;
|
|
11
|
-
readonly properties: Record<PropertyName, PropertyValue>;
|
|
12
|
-
}
|
|
13
|
-
export type PropertyName = string;
|
|
14
|
-
type PropertyTypeValueMap = {
|
|
15
|
-
boolean: boolean;
|
|
16
|
-
"boolean[]": readonly boolean[];
|
|
17
|
-
double: number;
|
|
18
|
-
"double[]": readonly number[];
|
|
19
|
-
integer: bigint;
|
|
20
|
-
"integer[]": readonly bigint[];
|
|
21
|
-
long: bigint;
|
|
22
|
-
"long[]": readonly bigint[];
|
|
23
|
-
string: string;
|
|
24
|
-
"string[]": readonly string[];
|
|
25
|
-
};
|
|
26
|
-
export type PropertyType = keyof PropertyTypeValueMap;
|
|
27
|
-
export type PropertyValue = {
|
|
28
|
-
[K in PropertyType]: {
|
|
29
|
-
type: K;
|
|
30
|
-
value: PropertyTypeValueMap[K];
|
|
31
|
-
};
|
|
32
|
-
}[PropertyType];
|
|
33
|
-
export interface Relationship {
|
|
34
|
-
readonly id: Id;
|
|
35
|
-
readonly label: Maybe<string>;
|
|
36
|
-
readonly properties: Record<PropertyName, PropertyValue>;
|
|
37
|
-
readonly sourceNodeId: Id;
|
|
38
|
-
readonly targetNodeId: Id;
|
|
39
|
-
}
|
|
40
|
-
export {};
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=LabeledPropertyGraph.d.ts.map
|
package/dist/generators/index.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type * as ast from "../ast/index.js";
|
|
2
|
-
import type { LabeledPropertyGraph } from "./LabeledPropertyGraph.js";
|
|
3
|
-
export declare function transformAstToLabeledPropertyGraph(ast: ast.Ast): LabeledPropertyGraph;
|
|
4
|
-
//# sourceMappingURL=transformAstToLabeledPropertyGraph.d.ts.map
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { Maybe } from "purify-ts";
|
|
2
|
-
export function transformAstToLabeledPropertyGraph(ast) {
|
|
3
|
-
const nodes = [];
|
|
4
|
-
const relationships = [];
|
|
5
|
-
for (const namedType of ast.namedTypes) {
|
|
6
|
-
if (namedType.kind === "Struct") {
|
|
7
|
-
const namedStructType = namedType;
|
|
8
|
-
const id = typeId(namedType);
|
|
9
|
-
const properties = {
|
|
10
|
-
name: { type: "string", value: typeName(namedType) },
|
|
11
|
-
};
|
|
12
|
-
for (const namedObjectTypeProperty of namedStructType.fields) {
|
|
13
|
-
let itemType;
|
|
14
|
-
switch (namedObjectTypeProperty.type.kind) {
|
|
15
|
-
case "DefaultValue":
|
|
16
|
-
case "List":
|
|
17
|
-
case "Option":
|
|
18
|
-
case "Set":
|
|
19
|
-
itemType = namedObjectTypeProperty.type.itemType;
|
|
20
|
-
break;
|
|
21
|
-
case "Lazy":
|
|
22
|
-
itemType = namedObjectTypeProperty.type.resolveType;
|
|
23
|
-
break;
|
|
24
|
-
case "LazyOption":
|
|
25
|
-
case "LazySet":
|
|
26
|
-
itemType = namedObjectTypeProperty.type.resolveType.itemType;
|
|
27
|
-
break;
|
|
28
|
-
default:
|
|
29
|
-
itemType = namedObjectTypeProperty.type;
|
|
30
|
-
break;
|
|
31
|
-
}
|
|
32
|
-
switch (itemType.kind) {
|
|
33
|
-
case "Intersection":
|
|
34
|
-
case "Struct":
|
|
35
|
-
case "Union":
|
|
36
|
-
if (itemType.name.isJust()) {
|
|
37
|
-
relationships.push({
|
|
38
|
-
id: namedObjectTypeProperty.shapeIdentifier.toString(),
|
|
39
|
-
label: Maybe.of(namedObjectTypeProperty.name),
|
|
40
|
-
properties: {},
|
|
41
|
-
sourceNodeId: id,
|
|
42
|
-
targetNodeId: typeId(itemType),
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
break;
|
|
46
|
-
default:
|
|
47
|
-
properties[namedObjectTypeProperty.name] = {
|
|
48
|
-
type: "string",
|
|
49
|
-
value: namedObjectTypeProperty.toString(),
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
nodes.push({
|
|
54
|
-
id,
|
|
55
|
-
label: typeName(namedStructType),
|
|
56
|
-
properties: properties,
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
else if (namedType.kind === "Union") {
|
|
60
|
-
nodes.push({
|
|
61
|
-
id: typeId(namedType),
|
|
62
|
-
label: typeName(namedType),
|
|
63
|
-
properties: {},
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
nodes,
|
|
69
|
-
relationships,
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
function typeId(type) {
|
|
73
|
-
return type.name.orDefault(type.shapeIdentifier.toString());
|
|
74
|
-
}
|
|
75
|
-
function typeName(type) {
|
|
76
|
-
return type.name.orDefault(type.shapeIdentifier.toString());
|
|
77
|
-
}
|
|
78
|
-
//# sourceMappingURL=transformAstToLabeledPropertyGraph.js.map
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Maybe } from "purify-ts";
|
|
2
|
-
import { AbstractContainerType } from "./AbstractContainerType.js";
|
|
3
|
-
import { type Code } from "./ts-poet-wrapper.js";
|
|
4
|
-
/**
|
|
5
|
-
* Abstract base class for ListType and SetType.
|
|
6
|
-
*/
|
|
7
|
-
export declare abstract class AbstractCollectionType<ItemTypeT extends AbstractCollectionType.ItemType> extends AbstractContainerType<ItemTypeT> {
|
|
8
|
-
protected readonly _mutable: boolean;
|
|
9
|
-
readonly discriminantProperty: Maybe<AbstractContainerType.DiscriminantProperty>;
|
|
10
|
-
readonly graphqlArgs: AbstractContainerType<ItemTypeT>["graphqlArgs"];
|
|
11
|
-
constructor({ mutable, ...superParameters }: {
|
|
12
|
-
mutable: boolean;
|
|
13
|
-
} & ConstructorParameters<typeof AbstractContainerType<ItemTypeT>>[0]);
|
|
14
|
-
get equalsFunction(): Code;
|
|
15
|
-
get expression(): Code;
|
|
16
|
-
get filterFunction(): Code;
|
|
17
|
-
get filterType(): Code;
|
|
18
|
-
get graphqlType(): AbstractContainerType.GraphqlType;
|
|
19
|
-
get hashFunction(): Code;
|
|
20
|
-
get mutable(): boolean;
|
|
21
|
-
get schemaType(): Code;
|
|
22
|
-
get validationFunction(): Maybe<Code>;
|
|
23
|
-
graphqlResolveExpression({ variables, }: Parameters<AbstractContainerType<ItemTypeT>["graphqlResolveExpression"]>[0]): Code;
|
|
24
|
-
jsonUiSchemaElement(parameters: Parameters<AbstractContainerType<ItemTypeT>["jsonUiSchemaElement"]>[0]): Maybe<Code>;
|
|
25
|
-
toJsonExpression({ variables, }: Parameters<AbstractContainerType<ItemTypeT>["toJsonExpression"]>[0]): Code;
|
|
26
|
-
}
|
|
27
|
-
export declare namespace AbstractCollectionType {
|
|
28
|
-
type ConversionFunction = AbstractContainerType.ConversionFunction;
|
|
29
|
-
type DiscriminantProperty = AbstractContainerType.DiscriminantProperty;
|
|
30
|
-
const GraphqlType: typeof import("./AbstractType.js").AbstractType.GraphqlType;
|
|
31
|
-
type GraphqlType = AbstractContainerType.GraphqlType;
|
|
32
|
-
const isItemType: typeof AbstractContainerType.isItemType;
|
|
33
|
-
type ItemType = AbstractContainerType.ItemType;
|
|
34
|
-
const JsonType: typeof import("./AbstractType.js").AbstractType.JsonType;
|
|
35
|
-
type JsonType = AbstractContainerType.JsonType;
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=AbstractCollectionType.d.ts.map
|
|
@@ -1,88 +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 { AbstractContainerType } from "./AbstractContainerType.js";
|
|
10
|
-
import { code, literalOf } from "./ts-poet-wrapper.js";
|
|
11
|
-
/**
|
|
12
|
-
* Abstract base class for ListType and SetType.
|
|
13
|
-
*/
|
|
14
|
-
export class AbstractCollectionType extends AbstractContainerType {
|
|
15
|
-
_mutable;
|
|
16
|
-
discriminantProperty = Maybe.empty();
|
|
17
|
-
graphqlArgs = Maybe.empty();
|
|
18
|
-
constructor({ mutable, ...superParameters }) {
|
|
19
|
-
super(superParameters);
|
|
20
|
-
this._mutable = mutable;
|
|
21
|
-
}
|
|
22
|
-
get equalsFunction() {
|
|
23
|
-
return code `((left, right) => ${this.reusables.snippets.arrayEquals}(left, right, ${this.itemType.equalsFunction}))`;
|
|
24
|
-
}
|
|
25
|
-
get expression() {
|
|
26
|
-
return code `${!this._mutable ? "readonly " : ""}(${this.itemType.expression})[]`;
|
|
27
|
-
}
|
|
28
|
-
get filterFunction() {
|
|
29
|
-
return code `${this.reusables.snippets.filterArray}<${this.itemType.expression}, ${this.itemType.filterType}>(${this.itemType.filterFunction})`;
|
|
30
|
-
}
|
|
31
|
-
get filterType() {
|
|
32
|
-
return code `${this.reusables.snippets.CollectionFilter}<${this.itemType.filterType}>`;
|
|
33
|
-
}
|
|
34
|
-
get graphqlType() {
|
|
35
|
-
return new AbstractContainerType.GraphqlType(code `new ${this.reusables.imports.GraphQLList}(${this.itemType.graphqlType.expression})`, this.reusables);
|
|
36
|
-
}
|
|
37
|
-
get hashFunction() {
|
|
38
|
-
return code `${this.reusables.snippets.hashArray}(${this.itemType.hashFunction})`;
|
|
39
|
-
}
|
|
40
|
-
get mutable() {
|
|
41
|
-
return this._mutable || this.itemType.mutable;
|
|
42
|
-
}
|
|
43
|
-
get schemaType() {
|
|
44
|
-
return code `${this.reusables.snippets.CollectionSchema}<${this.itemType.schemaType}>`;
|
|
45
|
-
}
|
|
46
|
-
get validationFunction() {
|
|
47
|
-
return Maybe.of(code `${this.reusables.snippets.validateArray}(${this.itemType.validationFunction.orDefault(this.itemValidationFunctionDefault)}, ${literalOf(!this._mutable)})`);
|
|
48
|
-
}
|
|
49
|
-
graphqlResolveExpression({ variables, }) {
|
|
50
|
-
return variables.value;
|
|
51
|
-
}
|
|
52
|
-
jsonUiSchemaElement(parameters) {
|
|
53
|
-
return this.itemType.jsonUiSchemaElement(parameters);
|
|
54
|
-
}
|
|
55
|
-
toJsonExpression({ variables, }) {
|
|
56
|
-
return code `${variables.value}.map(item => (${this.itemType.toJsonExpression({ variables: { value: code `item` } })}))`;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
__decorate([
|
|
60
|
-
Memoize()
|
|
61
|
-
], AbstractCollectionType.prototype, "equalsFunction", null);
|
|
62
|
-
__decorate([
|
|
63
|
-
Memoize()
|
|
64
|
-
], AbstractCollectionType.prototype, "expression", null);
|
|
65
|
-
__decorate([
|
|
66
|
-
Memoize()
|
|
67
|
-
], AbstractCollectionType.prototype, "filterFunction", null);
|
|
68
|
-
__decorate([
|
|
69
|
-
Memoize()
|
|
70
|
-
], AbstractCollectionType.prototype, "filterType", null);
|
|
71
|
-
__decorate([
|
|
72
|
-
Memoize()
|
|
73
|
-
], AbstractCollectionType.prototype, "graphqlType", null);
|
|
74
|
-
__decorate([
|
|
75
|
-
Memoize()
|
|
76
|
-
], AbstractCollectionType.prototype, "hashFunction", null);
|
|
77
|
-
__decorate([
|
|
78
|
-
Memoize()
|
|
79
|
-
], AbstractCollectionType.prototype, "schemaType", null);
|
|
80
|
-
__decorate([
|
|
81
|
-
Memoize()
|
|
82
|
-
], AbstractCollectionType.prototype, "validationFunction", null);
|
|
83
|
-
(function (AbstractCollectionType) {
|
|
84
|
-
AbstractCollectionType.GraphqlType = AbstractContainerType.GraphqlType;
|
|
85
|
-
AbstractCollectionType.isItemType = AbstractContainerType.isItemType;
|
|
86
|
-
AbstractCollectionType.JsonType = AbstractContainerType.JsonType;
|
|
87
|
-
})(AbstractCollectionType || (AbstractCollectionType = {}));
|
|
88
|
-
//# sourceMappingURL=AbstractCollectionType.js.map
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { Maybe } from "purify-ts";
|
|
2
|
-
import { AbstractType } from "./AbstractType.js";
|
|
3
|
-
import type { BigDecimalType } from "./BigDecimalType.js";
|
|
4
|
-
import type { BigIntType } from "./BigIntType.js";
|
|
5
|
-
import type { BlankNodeType } from "./BlankNodeType.js";
|
|
6
|
-
import type { BooleanType } from "./BooleanType.js";
|
|
7
|
-
import type { DateTimeType } from "./DateTimeType.js";
|
|
8
|
-
import type { DateType } from "./DateType.js";
|
|
9
|
-
import type { FloatType } from "./FloatType.js";
|
|
10
|
-
import type { IdentifierType } from "./IdentifierType.js";
|
|
11
|
-
import type { IntType } from "./IntType.js";
|
|
12
|
-
import type { IriType } from "./IriType.js";
|
|
13
|
-
import type { ListType } from "./ListType.js";
|
|
14
|
-
import type { LiteralType } from "./LiteralType.js";
|
|
15
|
-
import type { ObjectType } from "./ObjectType.js";
|
|
16
|
-
import type { ObjectUnionType } from "./ObjectUnionType.js";
|
|
17
|
-
import type { StringType } from "./StringType.js";
|
|
18
|
-
import type { TermType } from "./TermType.js";
|
|
19
|
-
import type { Type } from "./Type.js";
|
|
20
|
-
import { type Code } from "./ts-poet-wrapper.js";
|
|
21
|
-
import type { UnionType } from "./UnionType.js";
|
|
22
|
-
/**
|
|
23
|
-
* Abstract base class for types that contain other types e.g., ListType, OptionType, SetType.
|
|
24
|
-
*/
|
|
25
|
-
export declare abstract class AbstractContainerType<ItemTypeT extends AbstractContainerType.ItemType> extends AbstractType {
|
|
26
|
-
readonly declaration: Maybe<Code>;
|
|
27
|
-
abstract readonly kind: "DefaultValue" | "List" | "Option" | "Set";
|
|
28
|
-
/**
|
|
29
|
-
* Container item type.
|
|
30
|
-
*
|
|
31
|
-
* Mutable to support cycle-handling logic in the compiler.
|
|
32
|
-
*/
|
|
33
|
-
itemType: ItemTypeT;
|
|
34
|
-
constructor({ itemType, ...superParameters }: {
|
|
35
|
-
itemType: ItemTypeT;
|
|
36
|
-
} & ConstructorParameters<typeof AbstractType>[0]);
|
|
37
|
-
get recursive(): boolean;
|
|
38
|
-
get referencesNamedType(): boolean;
|
|
39
|
-
protected get itemConversionFunctionDefault(): AbstractType.ConversionFunction;
|
|
40
|
-
protected get itemValidationFunctionDefault(): Code;
|
|
41
|
-
protected get schemaInitializers(): readonly Code[];
|
|
42
|
-
}
|
|
43
|
-
export declare namespace AbstractContainerType {
|
|
44
|
-
type ConversionFunction = AbstractType.ConversionFunction;
|
|
45
|
-
type DiscriminantProperty = AbstractType.DiscriminantProperty;
|
|
46
|
-
const GraphqlType: typeof AbstractType.GraphqlType;
|
|
47
|
-
type GraphqlType = AbstractType.GraphqlType;
|
|
48
|
-
type ItemType = BigDecimalType | BigIntType | BlankNodeType | BooleanType | DateTimeType | DateType | FloatType | IdentifierType | IntType | IriType | ListType<ListType.ItemType> | LiteralType | ObjectUnionType | ObjectType | StringType | TermType | UnionType<Type>;
|
|
49
|
-
function isItemType(type: Type): type is ItemType;
|
|
50
|
-
const JsonType: typeof AbstractType.JsonType;
|
|
51
|
-
type JsonType = AbstractType.JsonType;
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=AbstractContainerType.d.ts.map
|
|
@@ -1,97 +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 { AbstractType } from "./AbstractType.js";
|
|
10
|
-
import { code } from "./ts-poet-wrapper.js";
|
|
11
|
-
/**
|
|
12
|
-
* Abstract base class for types that contain other types e.g., ListType, OptionType, SetType.
|
|
13
|
-
*/
|
|
14
|
-
export class AbstractContainerType extends AbstractType {
|
|
15
|
-
declaration = Maybe.empty();
|
|
16
|
-
/**
|
|
17
|
-
* Container item type.
|
|
18
|
-
*
|
|
19
|
-
* Mutable to support cycle-handling logic in the compiler.
|
|
20
|
-
*/
|
|
21
|
-
itemType;
|
|
22
|
-
constructor({ itemType, ...superParameters }) {
|
|
23
|
-
super(superParameters);
|
|
24
|
-
this.itemType = itemType;
|
|
25
|
-
}
|
|
26
|
-
get recursive() {
|
|
27
|
-
return this.itemType.recursive;
|
|
28
|
-
}
|
|
29
|
-
get referencesNamedType() {
|
|
30
|
-
return this.name.isJust() || this.itemType.referencesNamedType;
|
|
31
|
-
}
|
|
32
|
-
get itemConversionFunctionDefault() {
|
|
33
|
-
return {
|
|
34
|
-
code: code `${this.reusables.snippets.identityConversionFunction}`,
|
|
35
|
-
sourceTypes: [
|
|
36
|
-
{
|
|
37
|
-
expression: this.itemType.expression,
|
|
38
|
-
jsType: this.itemType.jsTypes[0],
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
get itemValidationFunctionDefault() {
|
|
44
|
-
return code `${this.reusables.snippets.identityValidationFunction}`;
|
|
45
|
-
}
|
|
46
|
-
get schemaInitializers() {
|
|
47
|
-
const initializers = super.schemaInitializers.concat();
|
|
48
|
-
if (this.recursive || this.referencesNamedType) {
|
|
49
|
-
initializers.push(code `get itemType() { return ${this.itemType.schema}; }`);
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
initializers.push(code `itemType: ${this.itemType.schema}`);
|
|
53
|
-
}
|
|
54
|
-
return initializers;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
__decorate([
|
|
58
|
-
Memoize()
|
|
59
|
-
], AbstractContainerType.prototype, "itemConversionFunctionDefault", null);
|
|
60
|
-
__decorate([
|
|
61
|
-
Memoize()
|
|
62
|
-
], AbstractContainerType.prototype, "itemValidationFunctionDefault", null);
|
|
63
|
-
(function (AbstractContainerType) {
|
|
64
|
-
AbstractContainerType.GraphqlType = AbstractType.GraphqlType;
|
|
65
|
-
function isItemType(type) {
|
|
66
|
-
switch (type.kind) {
|
|
67
|
-
case "BigDecimal":
|
|
68
|
-
case "BigInt":
|
|
69
|
-
case "BlankNode":
|
|
70
|
-
case "Boolean":
|
|
71
|
-
case "DateTime":
|
|
72
|
-
case "Date":
|
|
73
|
-
case "Float":
|
|
74
|
-
case "Identifier":
|
|
75
|
-
case "Int":
|
|
76
|
-
case "Iri":
|
|
77
|
-
case "List":
|
|
78
|
-
case "Literal":
|
|
79
|
-
case "Object":
|
|
80
|
-
case "ObjectUnion":
|
|
81
|
-
case "String":
|
|
82
|
-
case "Term":
|
|
83
|
-
case "Union":
|
|
84
|
-
return true;
|
|
85
|
-
case "DefaultValue":
|
|
86
|
-
case "LazyOption":
|
|
87
|
-
case "LazySet":
|
|
88
|
-
case "Lazy":
|
|
89
|
-
case "Option":
|
|
90
|
-
case "Set":
|
|
91
|
-
return false;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
AbstractContainerType.isItemType = isItemType;
|
|
95
|
-
AbstractContainerType.JsonType = AbstractType.JsonType;
|
|
96
|
-
})(AbstractContainerType || (AbstractContainerType = {}));
|
|
97
|
-
//# sourceMappingURL=AbstractContainerType.js.map
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { AbstractPrimitiveType } from "./AbstractPrimitiveType.js";
|
|
2
|
-
import { type Code } from "./ts-poet-wrapper.js";
|
|
3
|
-
export declare abstract class AbstractDateType extends AbstractPrimitiveType<Date> {
|
|
4
|
-
protected readonly inlineExpression: Code;
|
|
5
|
-
readonly equalsFunction: Code;
|
|
6
|
-
readonly filterFunction: Code;
|
|
7
|
-
readonly filterType: Code;
|
|
8
|
-
readonly jsTypes: readonly [{
|
|
9
|
-
readonly instanceof: "Date";
|
|
10
|
-
readonly typeof: "object";
|
|
11
|
-
}];
|
|
12
|
-
abstract readonly kind: "DateTime" | "Date";
|
|
13
|
-
readonly mutable = false;
|
|
14
|
-
readonly schemaType: Code;
|
|
15
|
-
readonly valueSparqlWherePatternsFunction: Code;
|
|
16
|
-
fromJsonExpression({ variables, }: Parameters<AbstractPrimitiveType<Date>["fromJsonExpression"]>[0]): Code;
|
|
17
|
-
jsonType(): AbstractPrimitiveType.JsonType;
|
|
18
|
-
toRdfResourceValuesExpression({ variables, }: Parameters<AbstractPrimitiveType<Date>["toRdfResourceValuesExpression"]>[0]): Code;
|
|
19
|
-
}
|
|
20
|
-
export declare namespace AbstractDateType {
|
|
21
|
-
type ConversionFunction = AbstractPrimitiveType.ConversionFunction;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=AbstractDateType.d.ts.map
|
|
@@ -1,37 +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 { AbstractPrimitiveType } from "./AbstractPrimitiveType.js";
|
|
9
|
-
import { code } from "./ts-poet-wrapper.js";
|
|
10
|
-
export class AbstractDateType extends AbstractPrimitiveType {
|
|
11
|
-
inlineExpression = code `Date`;
|
|
12
|
-
equalsFunction = code `${this.reusables.snippets.dateEquals}`;
|
|
13
|
-
filterFunction = code `${this.reusables.snippets.filterDate}`;
|
|
14
|
-
filterType = code `${this.reusables.snippets.DateFilter}`;
|
|
15
|
-
jsTypes = [
|
|
16
|
-
{
|
|
17
|
-
instanceof: "Date",
|
|
18
|
-
typeof: "object",
|
|
19
|
-
},
|
|
20
|
-
];
|
|
21
|
-
mutable = false;
|
|
22
|
-
schemaType = code `${this.reusables.snippets.DateSchema}`;
|
|
23
|
-
valueSparqlWherePatternsFunction = code `${this.reusables.snippets.dateSparqlWherePatterns}`;
|
|
24
|
-
fromJsonExpression({ variables, }) {
|
|
25
|
-
return code `${this.reusables.imports.Either}.of<Error, Date>(new Date(${variables.value}))`;
|
|
26
|
-
}
|
|
27
|
-
jsonType() {
|
|
28
|
-
return new AbstractPrimitiveType.JsonType(code `string`);
|
|
29
|
-
}
|
|
30
|
-
toRdfResourceValuesExpression({ variables, }) {
|
|
31
|
-
return code `[${this.reusables.snippets.literalFactory}.date(${variables.value}, ${this.rdfjsTermExpression(this.datatype)})]`;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
__decorate([
|
|
35
|
-
Memoize()
|
|
36
|
-
], AbstractDateType.prototype, "jsonType", null);
|
|
37
|
-
//# sourceMappingURL=AbstractDateType.js.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { BlankNode, NamedNode } from "@rdfjs/types";
|
|
2
|
-
import type { IdentifierNodeKind } from "@shaclmate/shacl-ast";
|
|
3
|
-
import { AbstractTermType } from "./AbstractTermType.js";
|
|
4
|
-
import { type Code } from "./ts-poet-wrapper.js";
|
|
5
|
-
export declare abstract class AbstractIdentifierType<IdentifierT extends BlankNode | NamedNode> extends AbstractTermType<NamedNode, IdentifierT> {
|
|
6
|
-
readonly jsTypes: readonly [{
|
|
7
|
-
readonly instanceof: "Object";
|
|
8
|
-
readonly typeof: "object";
|
|
9
|
-
}];
|
|
10
|
-
abstract readonly kind: "BlankNode" | "Identifier" | "Iri";
|
|
11
|
-
abstract readonly nodeKinds: ReadonlySet<IdentifierNodeKind>;
|
|
12
|
-
abstract readonly parseFunction: Code;
|
|
13
|
-
readonly stringifyFunction: Code;
|
|
14
|
-
get graphqlType(): import("./AbstractType.js").AbstractType.GraphqlType;
|
|
15
|
-
graphqlResolveExpression({ variables: { value }, }: Parameters<AbstractTermType["graphqlResolveExpression"]>[0]): Code;
|
|
16
|
-
}
|
|
17
|
-
export declare namespace AbstractIdentifierType {
|
|
18
|
-
type ConversionFunction = AbstractTermType.ConversionFunction;
|
|
19
|
-
type JsonType = AbstractTermType.JsonType;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=AbstractIdentifierType.d.ts.map
|