@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,292 +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 { code, joinCode, literalOf } from "../ts-poet-wrapper.js";
|
|
10
|
-
import { tsComment } from "../tsComment.js";
|
|
11
|
-
import { AbstractProperty } from "./AbstractProperty.js";
|
|
12
|
-
export class ShaclProperty extends AbstractProperty {
|
|
13
|
-
comment;
|
|
14
|
-
description;
|
|
15
|
-
display;
|
|
16
|
-
label;
|
|
17
|
-
kind = "Shacl";
|
|
18
|
-
mutable;
|
|
19
|
-
path;
|
|
20
|
-
recursive;
|
|
21
|
-
constructor({ comment, description, display, label, mutable, path, recursive, ...superParameters }) {
|
|
22
|
-
super(superParameters);
|
|
23
|
-
this.comment = comment;
|
|
24
|
-
this.description = description;
|
|
25
|
-
this.display = display;
|
|
26
|
-
this.label = label;
|
|
27
|
-
this.mutable = mutable;
|
|
28
|
-
this.path = path;
|
|
29
|
-
this.recursive = recursive;
|
|
30
|
-
}
|
|
31
|
-
get constructorParameter() {
|
|
32
|
-
const conversionFunction = this.type.conversionFunction.extract();
|
|
33
|
-
if (!conversionFunction) {
|
|
34
|
-
return Maybe.of({
|
|
35
|
-
hasQuestionToken: false,
|
|
36
|
-
signature: code `readonly ${this.name}: ${this.type.expression};`,
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
let hasQuestionToken = false;
|
|
40
|
-
const typeExpressions = [];
|
|
41
|
-
for (const type of conversionFunction.sourceTypes) {
|
|
42
|
-
if (type.jsType.typeof === "undefined") {
|
|
43
|
-
hasQuestionToken = true;
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
typeExpressions.push(code `${type.expression}`);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return Maybe.of({
|
|
50
|
-
hasQuestionToken,
|
|
51
|
-
signature: code `readonly ${this.name}${hasQuestionToken ? "?" : ""}: ${joinCode(typeExpressions, { on: "|" })};`,
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
get declaration() {
|
|
55
|
-
let declaration = code `${!this.mutable ? "readonly " : ""}${this.name}: ${this.type.expression};`;
|
|
56
|
-
this.comment
|
|
57
|
-
.alt(this.description)
|
|
58
|
-
.alt(this.label)
|
|
59
|
-
.map(tsComment)
|
|
60
|
-
.ifJust((comment) => {
|
|
61
|
-
declaration = code `${comment}${declaration}`;
|
|
62
|
-
});
|
|
63
|
-
return declaration;
|
|
64
|
-
}
|
|
65
|
-
get filterProperty() {
|
|
66
|
-
return Maybe.of({
|
|
67
|
-
name: this.name,
|
|
68
|
-
type: this.type.filterType,
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
get graphqlField() {
|
|
72
|
-
const args = this.type.graphqlArgs;
|
|
73
|
-
const argsVariable = args.isJust() ? code `args` : code `_args`;
|
|
74
|
-
return Maybe.of({
|
|
75
|
-
args,
|
|
76
|
-
description: this.comment.map(JSON.stringify),
|
|
77
|
-
name: this.name,
|
|
78
|
-
resolve: code `(source, ${argsVariable}) => ${this.type.graphqlResolveExpression({ variables: { args: argsVariable, value: code `source.${this.name}` } })}`,
|
|
79
|
-
type: this.type.graphqlType.expression,
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
get hashFunctionParameter() {
|
|
83
|
-
return this.declaration;
|
|
84
|
-
}
|
|
85
|
-
get jsonSchema() {
|
|
86
|
-
let schema = this.type.jsonSchema({
|
|
87
|
-
context: "property",
|
|
88
|
-
});
|
|
89
|
-
const meta = {
|
|
90
|
-
// id: `${this.namedObjectType.name}-${this.name}`, // id's must be unique
|
|
91
|
-
};
|
|
92
|
-
this.comment.alt(this.description).ifJust((description) => {
|
|
93
|
-
meta["description"] = description;
|
|
94
|
-
});
|
|
95
|
-
this.label.ifJust((label) => {
|
|
96
|
-
meta["title"] = label;
|
|
97
|
-
});
|
|
98
|
-
if (Object.keys(meta).length > 0) {
|
|
99
|
-
schema = code `${schema}.meta(${meta})`;
|
|
100
|
-
}
|
|
101
|
-
return Maybe.of({
|
|
102
|
-
key: this.name,
|
|
103
|
-
schema,
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
get jsonSignature() {
|
|
107
|
-
const typeJsonType = this.type.jsonType();
|
|
108
|
-
return Maybe.of(code `${!this.mutable ? "readonly " : ""}${this.name}${typeJsonType.optional ? "?" : ""}: ${typeJsonType.requiredExpression}`);
|
|
109
|
-
}
|
|
110
|
-
get schema() {
|
|
111
|
-
const initializers = [code `kind: ${literalOf(this.kind)}`];
|
|
112
|
-
if (this.configuration.features.has("Object.fromRdf") ||
|
|
113
|
-
this.configuration.features.has("Object.toRdf")) {
|
|
114
|
-
initializers.push(code `path: ${this.propertyPathToCode(this.path)}`);
|
|
115
|
-
}
|
|
116
|
-
// Use a getter if the type is recursive or the type is an object type, which may have forward references in the file
|
|
117
|
-
if (this.recursive || this.type.referencesNamedType) {
|
|
118
|
-
initializers.push(code `get type() { return ${this.type.schema}; }`);
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
initializers.push(code `type: ${this.type.schema}`);
|
|
122
|
-
}
|
|
123
|
-
return Maybe.of(code `{ ${joinCode(initializers, { on: ", " })} }`);
|
|
124
|
-
}
|
|
125
|
-
get schemaType() {
|
|
126
|
-
const initializers = [code `readonly kind: ${literalOf(this.kind)}`];
|
|
127
|
-
if (this.configuration.features.has("Object.fromRdf") ||
|
|
128
|
-
this.configuration.features.has("Object.toRdf")) {
|
|
129
|
-
initializers.push(code `readonly path: ${this.reusables.snippets.PropertyPath}`);
|
|
130
|
-
}
|
|
131
|
-
initializers.push(code `readonly type: ${this.type.schemaType}`);
|
|
132
|
-
return Maybe.of(code `{ ${joinCode(initializers, { on: ", " })} }`);
|
|
133
|
-
}
|
|
134
|
-
get schemaVariable() {
|
|
135
|
-
return this.objectType.name
|
|
136
|
-
.map((name) => code `${name}.schema.properties.${this.name}`)
|
|
137
|
-
.orDefaultLazy(() => this.schema.unsafeCoerce());
|
|
138
|
-
}
|
|
139
|
-
get typeSchemaVariable() {
|
|
140
|
-
return this.objectType.name
|
|
141
|
-
.map((name) => code `${name}.schema.properties.${this.name}.type`)
|
|
142
|
-
.orDefaultLazy(() => this.type.schema);
|
|
143
|
-
}
|
|
144
|
-
constructorInitializer({ variables, }) {
|
|
145
|
-
const parameterVariable = code `${variables.parameters}.${this.name}`;
|
|
146
|
-
const conversionFunction = this.type.conversionFunction.extract()?.code;
|
|
147
|
-
const validationFunction = this.type.validationFunction.extract();
|
|
148
|
-
let rhs;
|
|
149
|
-
if (conversionFunction && validationFunction) {
|
|
150
|
-
rhs = code `${conversionFunction}(${parameterVariable}).chain(value => ${validationFunction}(${this.typeSchemaVariable}, value))`;
|
|
151
|
-
}
|
|
152
|
-
else if (conversionFunction) {
|
|
153
|
-
rhs = code `${conversionFunction}(${parameterVariable})`;
|
|
154
|
-
}
|
|
155
|
-
else if (validationFunction) {
|
|
156
|
-
rhs = code `${validationFunction}(${this.typeSchemaVariable}, ${parameterVariable})`;
|
|
157
|
-
}
|
|
158
|
-
else {
|
|
159
|
-
rhs = code `${this.reusables.imports.Either}.of(${parameterVariable})`;
|
|
160
|
-
}
|
|
161
|
-
return Maybe.of(code `${this.name}: ${rhs}`);
|
|
162
|
-
}
|
|
163
|
-
fromJsonInitializer({ variables, }) {
|
|
164
|
-
return Maybe.of(code `${this.name}: ${this.type.fromJsonExpression({
|
|
165
|
-
variables: { value: code `${variables.jsonObject}["${this.name}"]` },
|
|
166
|
-
})}`);
|
|
167
|
-
}
|
|
168
|
-
fromRdfResourceValuesInitializer({ variables, }) {
|
|
169
|
-
const parameters = {
|
|
170
|
-
context: variables.context,
|
|
171
|
-
graph: variables.graph,
|
|
172
|
-
focusResource: variables.focusResource,
|
|
173
|
-
// Assume the property has the correct range and ignore the object's RDF type.
|
|
174
|
-
// This also accommodates the case where the object of a property is a dangling identifier that's not the
|
|
175
|
-
// subject of any statements.
|
|
176
|
-
ignoreRdfType: true,
|
|
177
|
-
preferredLanguages: variables.preferredLanguages,
|
|
178
|
-
propertySchema: this.schemaVariable,
|
|
179
|
-
typeFromRdfResourceValues: this.type.fromRdfResourceValuesFunction,
|
|
180
|
-
};
|
|
181
|
-
if (this.configuration.features.has("ObjectSet")) {
|
|
182
|
-
parameters["objectSet"] = variables.objectSet;
|
|
183
|
-
}
|
|
184
|
-
return Maybe.of(code `${this.name}: ${this.reusables.snippets.shaclPropertyFromRdf}<${this.type.expression}, ${this.type.schemaType}>(${parameters})`);
|
|
185
|
-
}
|
|
186
|
-
hashStatements({ variables, }) {
|
|
187
|
-
return [
|
|
188
|
-
code `${this.type.hashFunction}(${variables.hasher}, ${variables.value});`,
|
|
189
|
-
];
|
|
190
|
-
}
|
|
191
|
-
jsonUiSchemaElement({ variables, }) {
|
|
192
|
-
const scope = code `\`\${${variables.scopePrefix}}/properties/${this.name}\``;
|
|
193
|
-
return this.type
|
|
194
|
-
.jsonUiSchemaElement({ variables: { scopePrefix: scope } })
|
|
195
|
-
.altLazy(() => Maybe.of(code `{ ${this.label.isJust() ? `label: "${this.label.unsafeCoerce()}", ` : ""}scope: ${scope}, type: "Control" }`));
|
|
196
|
-
}
|
|
197
|
-
sparqlConstructTriplesExpression({ variables, }) {
|
|
198
|
-
return Maybe.of(code `${this.reusables.snippets.shaclPropertySparqlConstructTriples}(${{
|
|
199
|
-
filter: this.filterProperty
|
|
200
|
-
.map(({ name }) => code `${variables.filter}?.${name}`)
|
|
201
|
-
.extract(),
|
|
202
|
-
focusIdentifier: variables.focusIdentifier,
|
|
203
|
-
ignoreRdfType: true,
|
|
204
|
-
propertyName: this.name,
|
|
205
|
-
propertySchema: this.schemaVariable,
|
|
206
|
-
typeSparqlConstructTriples: this.type.valueSparqlConstructTriplesFunction,
|
|
207
|
-
variablePrefix: variables.variablePrefix,
|
|
208
|
-
}})`);
|
|
209
|
-
}
|
|
210
|
-
sparqlWherePatternsExpression({ variables, }) {
|
|
211
|
-
return Maybe.of({
|
|
212
|
-
patterns: code `${this.reusables.snippets.shaclPropertySparqlWherePatterns}(${{
|
|
213
|
-
filter: this.filterProperty
|
|
214
|
-
.map(({ name }) => code `${variables.filter}?.${name}`)
|
|
215
|
-
.extract(),
|
|
216
|
-
focusIdentifier: variables.focusIdentifier,
|
|
217
|
-
ignoreRdfType: true,
|
|
218
|
-
preferredLanguages: variables.preferredLanguages,
|
|
219
|
-
propertyName: this.name,
|
|
220
|
-
propertySchema: this.schemaVariable,
|
|
221
|
-
typeSparqlWherePatterns: this.type.valueSparqlWherePatternsFunction,
|
|
222
|
-
variablePrefix: variables.variablePrefix,
|
|
223
|
-
}})`,
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
toJsonInitializer(parameters) {
|
|
227
|
-
return Maybe.of(code `${this.name}: ${this.type.toJsonExpression(parameters)}`);
|
|
228
|
-
}
|
|
229
|
-
toRdfRdfResourceValuesStatements({ variables, }) {
|
|
230
|
-
switch (this.path.termType) {
|
|
231
|
-
case "NamedNode":
|
|
232
|
-
break;
|
|
233
|
-
case "InversePath":
|
|
234
|
-
if (this.path.path.termType === "NamedNode") {
|
|
235
|
-
break;
|
|
236
|
-
}
|
|
237
|
-
return [];
|
|
238
|
-
default:
|
|
239
|
-
return [];
|
|
240
|
-
}
|
|
241
|
-
const propertyPath = this.objectType.name
|
|
242
|
-
.map(() => code `${this.schemaVariable}.path`)
|
|
243
|
-
.orDefault(this.propertyPathToCode(this.path));
|
|
244
|
-
return [
|
|
245
|
-
code `${variables.resource}.add(${propertyPath}, ${this.type.toRdfResourceValuesExpression({
|
|
246
|
-
variables: { ...variables, propertyPath },
|
|
247
|
-
})}, ${variables.graph});`,
|
|
248
|
-
];
|
|
249
|
-
}
|
|
250
|
-
toStringInitializer(parameters) {
|
|
251
|
-
if (!this.display) {
|
|
252
|
-
return Maybe.empty();
|
|
253
|
-
}
|
|
254
|
-
return Maybe.of(code `${literalOf(this.name)}: ${this.type.toStringExpression(parameters)}`);
|
|
255
|
-
}
|
|
256
|
-
propertyPathToCode(propertyPath) {
|
|
257
|
-
switch (propertyPath.termType) {
|
|
258
|
-
case "AlternativePath":
|
|
259
|
-
case "SequencePath":
|
|
260
|
-
return code `{ members: [${joinCode(propertyPath.members.map((member) => this.propertyPathToCode(member)), { on: "," })}], termType: ${literalOf(propertyPath.termType)} }`;
|
|
261
|
-
case "InversePath":
|
|
262
|
-
case "OneOrMorePath":
|
|
263
|
-
case "ZeroOrMorePath":
|
|
264
|
-
case "ZeroOrOnePath":
|
|
265
|
-
return code `{ path: ${this.propertyPathToCode(propertyPath.path)}, termType: ${literalOf(propertyPath.termType)} }`;
|
|
266
|
-
case "NamedNode":
|
|
267
|
-
return this.rdfjsTermExpression(propertyPath);
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
__decorate([
|
|
272
|
-
Memoize()
|
|
273
|
-
], ShaclProperty.prototype, "constructorParameter", null);
|
|
274
|
-
__decorate([
|
|
275
|
-
Memoize()
|
|
276
|
-
], ShaclProperty.prototype, "declaration", null);
|
|
277
|
-
__decorate([
|
|
278
|
-
Memoize()
|
|
279
|
-
], ShaclProperty.prototype, "filterProperty", null);
|
|
280
|
-
__decorate([
|
|
281
|
-
Memoize()
|
|
282
|
-
], ShaclProperty.prototype, "graphqlField", null);
|
|
283
|
-
__decorate([
|
|
284
|
-
Memoize()
|
|
285
|
-
], ShaclProperty.prototype, "jsonSchema", null);
|
|
286
|
-
__decorate([
|
|
287
|
-
Memoize()
|
|
288
|
-
], ShaclProperty.prototype, "jsonSignature", null);
|
|
289
|
-
__decorate([
|
|
290
|
-
Memoize()
|
|
291
|
-
], ShaclProperty.prototype, "schemaVariable", null);
|
|
292
|
-
//# sourceMappingURL=ShaclProperty.js.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_BlankNodeFilter = ({ syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}BlankNodeFilter`, code `\
|
|
3
|
-
interface ${syntheticNamePrefix}BlankNodeFilter {
|
|
4
|
-
}`);
|
|
5
|
-
//# sourceMappingURL=snippets_BlankNodeFilter.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_BlankNodeSchema = ({ syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}BlankNodeSchema`, code `\
|
|
3
|
-
interface ${syntheticNamePrefix}BlankNodeSchema {
|
|
4
|
-
readonly kind: "BlankNode";
|
|
5
|
-
}`);
|
|
6
|
-
//# sourceMappingURL=snippets_BlankNodeSchema.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_BooleanFilter = ({ syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}BooleanFilter`, code `\
|
|
3
|
-
interface ${syntheticNamePrefix}BooleanFilter {
|
|
4
|
-
readonly value?: boolean;
|
|
5
|
-
}`);
|
|
6
|
-
//# sourceMappingURL=snippets_BooleanFilter.js.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_BooleanSchema = ({ imports, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}BooleanSchema`, code `\
|
|
3
|
-
interface ${syntheticNamePrefix}BooleanSchema<BooleanT extends boolean> {
|
|
4
|
-
readonly hasValues?: readonly ${imports.Literal}[];
|
|
5
|
-
readonly in?: readonly BooleanT[];
|
|
6
|
-
readonly kind: "Boolean";
|
|
7
|
-
}`);
|
|
8
|
-
//# sourceMappingURL=snippets_BooleanSchema.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_CollectionFilter = ({ syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}CollectionFilter`, code `\
|
|
3
|
-
type ${syntheticNamePrefix}CollectionFilter<ItemFilterT> = ItemFilterT & {
|
|
4
|
-
readonly ${syntheticNamePrefix}maxCount?: number;
|
|
5
|
-
readonly ${syntheticNamePrefix}minCount?: number;
|
|
6
|
-
};`);
|
|
7
|
-
//# sourceMappingURL=snippets_CollectionFilter.js.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_CollectionSchema = ({ syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}CollectionSchema`, code `\
|
|
3
|
-
interface ${syntheticNamePrefix}CollectionSchema<ItemSchemaT> {
|
|
4
|
-
readonly itemType: ItemSchemaT;
|
|
5
|
-
readonly kind: "List" | "Set";
|
|
6
|
-
readonly minCount?: number;
|
|
7
|
-
}`);
|
|
8
|
-
//# sourceMappingURL=snippets_CollectionSchema.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_ConversionFunction = ({ imports, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}ConversionFunction`, code `\
|
|
3
|
-
type ${syntheticNamePrefix}ConversionFunction<SourceT, TargetT> = (source: SourceT) => ${imports.Either}<Error, TargetT>;`);
|
|
4
|
-
//# sourceMappingURL=snippets_ConversionFunction.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_DateFilter = ({ syntheticNamePrefix }) => conditionalOutput(`${syntheticNamePrefix}DateFilter`, code `\
|
|
3
|
-
interface ${syntheticNamePrefix}DateFilter {
|
|
4
|
-
readonly in?: readonly Date[];
|
|
5
|
-
readonly maxExclusive?: Date;
|
|
6
|
-
readonly maxInclusive?: Date;
|
|
7
|
-
readonly minExclusive?: Date;
|
|
8
|
-
readonly minInclusive?: Date;
|
|
9
|
-
}`);
|
|
10
|
-
//# sourceMappingURL=snippets_DateFilter.js.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_DateSchema = ({ imports, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}DateSchema`, code `\
|
|
3
|
-
interface ${syntheticNamePrefix}DateSchema {
|
|
4
|
-
readonly hasValues?: readonly ${imports.Literal}[];
|
|
5
|
-
readonly in?: readonly Date[];
|
|
6
|
-
readonly kind: "Date" | "DateTime",
|
|
7
|
-
}`);
|
|
8
|
-
//# sourceMappingURL=snippets_DateSchema.js.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_DefaultValueSchema = ({ imports, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}DefaultValueSchema`, code `\
|
|
3
|
-
interface ${syntheticNamePrefix}DefaultValueSchema<ItemSchemaT> {
|
|
4
|
-
readonly defaultValue: ${imports.Literal} | ${imports.NamedNode};
|
|
5
|
-
readonly itemType: ItemSchemaT;
|
|
6
|
-
readonly kind: "DefaultValue";
|
|
7
|
-
}`);
|
|
8
|
-
//# sourceMappingURL=snippets_DefaultValueSchema.js.map
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_EqualsResult = ({ imports, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}EqualsResult`, code `\
|
|
3
|
-
export type ${syntheticNamePrefix}EqualsResult = ${imports.Either}<${syntheticNamePrefix}EqualsResult.Unequal, true>;
|
|
4
|
-
|
|
5
|
-
export namespace ${syntheticNamePrefix}EqualsResult {
|
|
6
|
-
export const Equal: ${syntheticNamePrefix}EqualsResult = ${imports.Right}(true);
|
|
7
|
-
|
|
8
|
-
export function fromBooleanEqualsResult(
|
|
9
|
-
left: any,
|
|
10
|
-
right: any,
|
|
11
|
-
equalsResult: boolean | ${syntheticNamePrefix}EqualsResult,
|
|
12
|
-
): ${syntheticNamePrefix}EqualsResult {
|
|
13
|
-
if (typeof equalsResult !== "boolean") {
|
|
14
|
-
return equalsResult;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
if (equalsResult) {
|
|
18
|
-
return Equal;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
return ${imports.Left}({ left, right, type: "boolean" });
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export type Unequal =
|
|
25
|
-
| {
|
|
26
|
-
readonly left: {
|
|
27
|
-
readonly array: readonly any[];
|
|
28
|
-
readonly element: any;
|
|
29
|
-
readonly elementIndex: number;
|
|
30
|
-
};
|
|
31
|
-
readonly right: {
|
|
32
|
-
readonly array: readonly any[];
|
|
33
|
-
readonly unequals: readonly Unequal[];
|
|
34
|
-
};
|
|
35
|
-
readonly type: "array-element";
|
|
36
|
-
}
|
|
37
|
-
| {
|
|
38
|
-
readonly left: readonly any[];
|
|
39
|
-
readonly right: readonly any[];
|
|
40
|
-
readonly type: "array-length";
|
|
41
|
-
}
|
|
42
|
-
| {
|
|
43
|
-
readonly left: any;
|
|
44
|
-
readonly right: any;
|
|
45
|
-
readonly type: "boolean";
|
|
46
|
-
}
|
|
47
|
-
| {
|
|
48
|
-
readonly right: any;
|
|
49
|
-
readonly type: "left-null";
|
|
50
|
-
}
|
|
51
|
-
| {
|
|
52
|
-
readonly left: any;
|
|
53
|
-
readonly right: any;
|
|
54
|
-
readonly propertyName: string;
|
|
55
|
-
readonly propertyValuesUnequal: Unequal;
|
|
56
|
-
readonly type: "property";
|
|
57
|
-
}
|
|
58
|
-
| {
|
|
59
|
-
readonly left: any;
|
|
60
|
-
readonly type: "right-null";
|
|
61
|
-
};
|
|
62
|
-
}`);
|
|
63
|
-
//# sourceMappingURL=snippets_EqualsResult.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_FocusSparqlConstructTriplesFunction = ({ imports, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}FocusSparqlConstructTriplesFunction`, code `\
|
|
3
|
-
type ${syntheticNamePrefix}FocusSparqlConstructTriplesFunction<FilterT> =
|
|
4
|
-
(parameters: {
|
|
5
|
-
filter: FilterT | undefined;
|
|
6
|
-
focusIdentifier: ${imports.NamedNode} | ${imports.Variable};
|
|
7
|
-
ignoreRdfType: boolean;
|
|
8
|
-
variablePrefix: string;
|
|
9
|
-
}) => readonly ${imports.sparqljs}.Triple[];`);
|
|
10
|
-
//# sourceMappingURL=snippets_FocusSparqlConstructTriplesFunction.js.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_FocusSparqlWherePatternsFunction = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}FocusSparqlWherePatternsFunction`, code `\
|
|
3
|
-
type ${syntheticNamePrefix}FocusSparqlWherePatternsFunction<FilterT> =
|
|
4
|
-
(parameters: {
|
|
5
|
-
filter: FilterT | undefined;
|
|
6
|
-
focusIdentifier: ${imports.NamedNode} | ${imports.Variable};
|
|
7
|
-
ignoreRdfType: boolean;
|
|
8
|
-
preferredLanguages: readonly string[] | undefined;
|
|
9
|
-
variablePrefix: string;
|
|
10
|
-
}) => readonly ${snippets.SparqlPattern}[];`);
|
|
11
|
-
//# sourceMappingURL=snippets_FocusSparqlWherePatternsFunction.js.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_FromRdfResourceFunction = ({ configuration, imports, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}FromRdfResourceFunction`, code `\
|
|
3
|
-
export type ${syntheticNamePrefix}FromRdfResourceFunction<T> = (
|
|
4
|
-
resource: ${imports.Resource},
|
|
5
|
-
options?: {
|
|
6
|
-
context?: unknown;
|
|
7
|
-
graph?: Exclude<${imports.Quad_Graph}, ${imports.Variable}>;
|
|
8
|
-
ignoreRdfType?: boolean;
|
|
9
|
-
${configuration.features.has("ObjectSet") ? code `objectSet?: ${syntheticNamePrefix}ObjectSet;` : ""}
|
|
10
|
-
preferredLanguages?: readonly string[];
|
|
11
|
-
}
|
|
12
|
-
) => ${imports.Either}<Error, T>`);
|
|
13
|
-
//# sourceMappingURL=snippets_FromRdfResourceFunction.js.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_FromRdfResourceValuesFunction = ({ configuration, imports, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}FromRdfResourceValuesFunction`, code `\
|
|
3
|
-
export type ${syntheticNamePrefix}FromRdfResourceValuesFunction<ValueT, ValueSchemaT> = (
|
|
4
|
-
resourceValues: ${imports.Resource}.Values,
|
|
5
|
-
options: {
|
|
6
|
-
context?: unknown;
|
|
7
|
-
graph?: Exclude<${imports.Quad_Graph}, ${imports.Variable}>;
|
|
8
|
-
focusResource: ${imports.Resource};
|
|
9
|
-
ignoreRdfType?: boolean;
|
|
10
|
-
${configuration.features.has("ObjectSet") ? code `objectSet: ${syntheticNamePrefix}ObjectSet;` : ""}
|
|
11
|
-
preferredLanguages?: readonly string[];
|
|
12
|
-
propertyPath: ${syntheticNamePrefix}PropertyPath;
|
|
13
|
-
schema: ValueSchemaT;
|
|
14
|
-
}
|
|
15
|
-
) => ${imports.Either}<Error, ${imports.Resource}.Values<ValueT>>;`);
|
|
16
|
-
//# sourceMappingURL=snippets_FromRdfResourceValuesFunction.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_HashFunction = ({ snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}HashFunction`, code `\
|
|
3
|
-
export type ${syntheticNamePrefix}HashFunction<HasherT extends ${snippets.Hasher}, ValueT> = (hasher: HasherT, value: ValueT) => HasherT;`);
|
|
4
|
-
//# sourceMappingURL=snippets_HashFunction.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_Hasher = ({ syntheticNamePrefix }) => conditionalOutput(`${syntheticNamePrefix}Hasher`, code `type ${syntheticNamePrefix}Hasher = { update: (message: string | number[] | ArrayBuffer | Uint8Array) => void; };`);
|
|
3
|
-
//# sourceMappingURL=snippets_Hasher.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_IdentifierFilter = ({ imports, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}IdentifierFilter`, code `\
|
|
3
|
-
interface ${syntheticNamePrefix}IdentifierFilter {
|
|
4
|
-
readonly in?: readonly (${imports.BlankNode} | ${imports.NamedNode})[];
|
|
5
|
-
readonly type?: "BlankNode" | "NamedNode";
|
|
6
|
-
}`);
|
|
7
|
-
//# sourceMappingURL=snippets_IdentifierFilter.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_IdentifierSchema = ({ imports, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}IdentifierSchema`, code `\
|
|
3
|
-
interface ${syntheticNamePrefix}IdentifierSchema {
|
|
4
|
-
readonly hasValues?: readonly ${imports.NamedNode}[];
|
|
5
|
-
readonly kind: "Identifier";
|
|
6
|
-
}`);
|
|
7
|
-
//# sourceMappingURL=snippets_IdentifierSchema.js.map
|