@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,11 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_hashArray = ({ snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}hashArray`, code `\
|
|
3
|
-
function ${syntheticNamePrefix}hashArray<HasherT extends ${snippets.Hasher}, ItemT>(hashItem: ${snippets.HashFunction}<HasherT, ItemT>): ${snippets.HashFunction}<HasherT, readonly ItemT[]> {
|
|
4
|
-
return (hasher, value) => {
|
|
5
|
-
for (const item of value) {
|
|
6
|
-
hashItem(hasher, item);
|
|
7
|
-
}
|
|
8
|
-
return hasher;
|
|
9
|
-
}
|
|
10
|
-
}`);
|
|
11
|
-
//# sourceMappingURL=snippets_hashArray.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_hashBigDecimal = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}hashBigDecimal`, code `\
|
|
3
|
-
function ${syntheticNamePrefix}hashBigDecimal<HasherT extends ${snippets.Hasher}>(hasher: HasherT, value: ${imports.BigDecimal}): HasherT {
|
|
4
|
-
hasher.update(value.toFixed());
|
|
5
|
-
return hasher;
|
|
6
|
-
}`);
|
|
7
|
-
//# sourceMappingURL=snippets_hashBigDecimal.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_hashBoolean = ({ snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}hashBoolean`, code `\
|
|
3
|
-
function ${syntheticNamePrefix}hashBoolean<HasherT extends ${snippets.Hasher}>(hasher: HasherT, value: boolean): HasherT {
|
|
4
|
-
hasher.update(value.toString());
|
|
5
|
-
return hasher;
|
|
6
|
-
}`);
|
|
7
|
-
//# sourceMappingURL=snippets_hashBoolean.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_hashDate = ({ snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}hashDate`, code `\
|
|
3
|
-
function ${syntheticNamePrefix}hashDate<HasherT extends ${snippets.Hasher}>(hasher: HasherT, value: Date): HasherT {
|
|
4
|
-
hasher.update(${snippets.toIsoDateString}(value));
|
|
5
|
-
return hasher;
|
|
6
|
-
}`);
|
|
7
|
-
//# sourceMappingURL=snippets_hashDate.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_hashDateTime = ({ snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}hashDateTime`, code `\
|
|
3
|
-
function ${syntheticNamePrefix}hashDateTime<HasherT extends ${snippets.Hasher}>(hasher: HasherT, value: Date): HasherT {
|
|
4
|
-
hasher.update(value.toISOString());
|
|
5
|
-
return hasher;
|
|
6
|
-
}`);
|
|
7
|
-
//# sourceMappingURL=snippets_hashDateTime.js.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_hashMaybe = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}hashMaybe`, code `\
|
|
3
|
-
function ${syntheticNamePrefix}hashMaybe<HasherT extends ${snippets.Hasher}, ItemT>(hashItem: ${snippets.HashFunction}<HasherT, ItemT>): ${snippets.HashFunction}<HasherT, ${imports.Maybe}<ItemT>> {
|
|
4
|
-
return (hasher, value) => {
|
|
5
|
-
value.ifJust(value => {
|
|
6
|
-
hashItem(hasher, value);
|
|
7
|
-
});
|
|
8
|
-
return hasher;
|
|
9
|
-
}
|
|
10
|
-
}`);
|
|
11
|
-
//# sourceMappingURL=snippets_hashMaybe.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_hashNumeric = ({ snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}hashNumeric`, code `\
|
|
3
|
-
function ${syntheticNamePrefix}hashNumeric<HasherT extends ${snippets.Hasher}>(hasher: HasherT, value: bigint | number): HasherT {
|
|
4
|
-
hasher.update(value.toString());
|
|
5
|
-
return hasher;
|
|
6
|
-
}`);
|
|
7
|
-
//# sourceMappingURL=snippets_hashNumeric.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_hashString = ({ snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}hashString`, code `\
|
|
3
|
-
function ${syntheticNamePrefix}hashString<HasherT extends ${snippets.Hasher}>(hasher: HasherT, value: string): HasherT {
|
|
4
|
-
hasher.update(value);
|
|
5
|
-
return hasher;
|
|
6
|
-
}`);
|
|
7
|
-
//# sourceMappingURL=snippets_hashString.js.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_hashTerm = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}hashTerm`, code `\
|
|
3
|
-
function ${syntheticNamePrefix}hashTerm<HasherT extends ${snippets.Hasher}>(hasher: HasherT, value: ${imports.BlankNode} | ${imports.Literal} | ${imports.NamedNode}): HasherT {
|
|
4
|
-
hasher.update(value.termType);
|
|
5
|
-
hasher.update(value.value);
|
|
6
|
-
if (value.termType === "Literal") {
|
|
7
|
-
hasher.update(value.datatype.value);
|
|
8
|
-
hasher.update(value.language);
|
|
9
|
-
}
|
|
10
|
-
return hasher;
|
|
11
|
-
}`);
|
|
12
|
-
//# sourceMappingURL=snippets_hashTerm.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_identifierFromRdfResourceValues = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}identifierFromRdfResourceValues`, code `\
|
|
3
|
-
function ${syntheticNamePrefix}identifierFromRdfResourceValues(values: ${imports.Resource}.Values, options: Parameters<${snippets.FromRdfResourceValuesFunction}<${imports.BlankNode} | ${imports.NamedNode}, ${snippets.IdentifierSchema}>>[1]): ${imports.Either}<Error, ${imports.Resource}.Values<${imports.BlankNode} | ${imports.NamedNode}>> {
|
|
4
|
-
return ${snippets.termLikeFromRdfResourceValues}(values, options).chain(values => values.chainMap(value => value.toIdentifier()));
|
|
5
|
-
}`);
|
|
6
|
-
//# sourceMappingURL=snippets_identifierFromRdfResourceValues.js.map
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_identifierSparqlWherePatterns = ({ snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}identifierSparqlWherePatterns`, code `\
|
|
3
|
-
const ${syntheticNamePrefix}identifierSparqlWherePatterns: ${snippets.ValueSparqlWherePatternsFunction}<${snippets.IdentifierFilter}, ${snippets.IdentifierSchema}> =
|
|
4
|
-
({ filter, propertyPatterns, valueVariable }) => {
|
|
5
|
-
const patterns: ${snippets.SparqlPattern}[] = propertyPatterns.concat();
|
|
6
|
-
|
|
7
|
-
if (filter) {
|
|
8
|
-
if (filter.in !== undefined) {
|
|
9
|
-
const valueIn = filter.in.filter(identifier => identifier.termType === "NamedNode");
|
|
10
|
-
if (valueIn.length > 0) {
|
|
11
|
-
patterns.push(${snippets.sparqlValueInPattern}({ lift: true, valueVariable, valueIn }));
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
if (filter.type !== undefined) {
|
|
16
|
-
patterns.push({
|
|
17
|
-
expression: {
|
|
18
|
-
type: "operation",
|
|
19
|
-
operator: filter.type === "BlankNode" ? "isBlank" : "isIRI",
|
|
20
|
-
args: [valueVariable],
|
|
21
|
-
},
|
|
22
|
-
lift: true,
|
|
23
|
-
type: "filter",
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
return patterns;
|
|
29
|
-
}`);
|
|
30
|
-
//# sourceMappingURL=snippets_identifierSparqlWherePatterns.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_identityConversionFunction = ({ imports, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}identityConversionFunction`, code `\
|
|
3
|
-
function ${syntheticNamePrefix}identityConversionFunction<T>(value: T): ${imports.Either}<Error, T> {
|
|
4
|
-
return ${imports.Either}.of(value);
|
|
5
|
-
}`);
|
|
6
|
-
//# sourceMappingURL=snippets_identityConversionFunction.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_identityValidationFunction = ({ imports, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}identityValidationFunction`, code `\
|
|
3
|
-
function ${syntheticNamePrefix}identityValidationFunction<T>(_schema: unknown, value: T): ${imports.Either}<Error, T> {
|
|
4
|
-
return ${imports.Either}.of(value);
|
|
5
|
-
}`);
|
|
6
|
-
//# sourceMappingURL=snippets_identityValidationFunction.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_intFromRdfResourceValues = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}intFromRdfResourceValues`, code `\
|
|
3
|
-
function ${syntheticNamePrefix}intFromRdfResourceValues<IntT extends number>(values: ${imports.Resource}.Values, options: Parameters<${snippets.FromRdfResourceValuesFunction}<IntT, ${snippets.NumericSchema}<IntT>>>[1]): ${imports.Either}<Error, ${imports.Resource}.Values<IntT>> {
|
|
4
|
-
return ${snippets.termLikeFromRdfResourceValues}(values, options).chain(values => values.chainMap(value => options.schema.in ? value.toInt(options.schema.in) : value.toInt() as Either<Error, IntT>));
|
|
5
|
-
}`);
|
|
6
|
-
//# sourceMappingURL=snippets_intFromRdfResourceValues.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_iriFromRdfResourceValues = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}iriFromRdfResourceValues`, code `\
|
|
3
|
-
function ${syntheticNamePrefix}iriFromRdfResourceValues<IriT extends string = string>(values: ${imports.Resource}.Values, options: Parameters<${snippets.FromRdfResourceValuesFunction}<${imports.NamedNode}<IriT>, ${snippets.IriSchema}<IriT>>>[1]): ${imports.Either}<Error, ${imports.Resource}.Values<${imports.NamedNode}<IriT>>> {
|
|
4
|
-
return ${snippets.termLikeFromRdfResourceValues}(values, options).chain(values => values.chainMap(value => options.schema.in ? value.toIri(options.schema.in) : value.toIri() as ${imports.Either}<Error, ${imports.NamedNode}<IriT>>));
|
|
5
|
-
}`);
|
|
6
|
-
//# sourceMappingURL=snippets_iriFromRdfResourceValues.js.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_iriSparqlWherePatterns = ({ snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}iriSparqlWherePatterns`, code `\
|
|
3
|
-
const ${syntheticNamePrefix}iriSparqlWherePatterns: ${snippets.ValueSparqlWherePatternsFunction}<${snippets.IriFilter}, ${snippets.IriSchema}<string>> =
|
|
4
|
-
({ filter, valueVariable, ...otherParameters }) => {
|
|
5
|
-
const filterPatterns: ${snippets.SparqlFilterPattern}[] = [];
|
|
6
|
-
|
|
7
|
-
if (filter?.in !== undefined && filter.in.length > 0) {
|
|
8
|
-
filterPatterns.push(${snippets.sparqlValueInPattern}({ lift: true, valueVariable, valueIn: filter.in }));
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
return ${snippets.termSchemaSparqlPatterns}({ ...otherParameters, filterPatterns, valueVariable });
|
|
12
|
-
};`);
|
|
13
|
-
//# sourceMappingURL=snippets_iriSparqlWherePatterns.js.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_liftSparqlPatterns = ({ snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}liftSparqlPatterns`, code `\
|
|
3
|
-
function ${syntheticNamePrefix}liftSparqlPatterns(patterns: Iterable<${snippets.SparqlPattern}>): [readonly ${snippets.SparqlPattern}[], readonly ${snippets.SparqlFilterPattern}[]] {
|
|
4
|
-
const liftedPatterns: ${snippets.SparqlFilterPattern}[] = [];
|
|
5
|
-
const unliftedPatterns: ${snippets.SparqlPattern}[] = [];
|
|
6
|
-
for (const pattern of patterns) {
|
|
7
|
-
if (pattern.type === "filter" && pattern.lift) {
|
|
8
|
-
liftedPatterns.push(pattern);
|
|
9
|
-
} else {
|
|
10
|
-
unliftedPatterns.push(pattern);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
return [unliftedPatterns, liftedPatterns];
|
|
14
|
-
}`);
|
|
15
|
-
//# sourceMappingURL=snippets_liftSparqlPatterns.js.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_listFromRdfResourceValues = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}listFromRdfResourceValues`, code `\
|
|
3
|
-
function ${syntheticNamePrefix}listFromRdfResourceValues<ItemT, ItemSchemaT>(itemFromRdfResourceValues: ${snippets.FromRdfResourceValuesFunction}<ItemT, ItemSchemaT>): ${snippets.FromRdfResourceValuesFunction}<readonly ItemT[], ${snippets.CollectionSchema}<ItemSchemaT>> {
|
|
4
|
-
return (values, options) =>
|
|
5
|
-
values\
|
|
6
|
-
.chainMap(value => value.toList({ graph: options.graph }))\ // Resource.Values<Resource.Value> to Resource.Values<Resource.Values>;
|
|
7
|
-
.chain(valueLists => valueLists.chainMap(valueList =>
|
|
8
|
-
itemFromRdfResourceValues(
|
|
9
|
-
${imports.Resource}.Values.fromArray({ focusResource: options.focusResource, propertyPath: options.propertyPath, values: valueList.toArray() }),
|
|
10
|
-
{ ...options, schema: options.schema.itemType }
|
|
11
|
-
)
|
|
12
|
-
))\ // Resource.Values<Resource.Values> to Resource.Values<item type arrays>
|
|
13
|
-
.map(valueLists => valueLists.map(valueList => valueList.toArray())); // Convert inner Resource.Values to arrays
|
|
14
|
-
}`);
|
|
15
|
-
//# sourceMappingURL=snippets_listFromRdfResourceValues.js.map
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_listSparqlConstructTriples = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}listSparqlConstructTriples`, code `\
|
|
3
|
-
function ${syntheticNamePrefix}listSparqlConstructTriples<ItemFilterT, ItemSchemaT>(itemSparqlConstructTriplesFunction: ${snippets.ValueSparqlConstructTriplesFunction}<ItemFilterT, ItemSchemaT>): ${snippets.ValueSparqlConstructTriplesFunction}<${snippets.CollectionFilter}<ItemFilterT>, ${snippets.CollectionSchema}<ItemSchemaT>> {
|
|
4
|
-
return ({ filter, schema, valueVariable: listVariable, variablePrefix: variablePrefixPrefix }) => {
|
|
5
|
-
let triples: ${imports.sparqljs}.Triple[] = [];
|
|
6
|
-
const variable = (suffix: string) => ${imports.dataFactory}.variable!(\`\${variablePrefixPrefix}\${suffix}\`);
|
|
7
|
-
const variablePrefix = (suffix: string) => \`\${variablePrefixPrefix}\${suffix}\`;
|
|
8
|
-
|
|
9
|
-
{
|
|
10
|
-
// ?list rdf:first ?item0
|
|
11
|
-
const item0Variable = variable("Item0");
|
|
12
|
-
triples.push({ subject: listVariable, predicate: ${snippets.RdfVocabularies}.rdf.first, object: item0Variable });
|
|
13
|
-
triples = triples.concat(itemSparqlConstructTriplesFunction({ filter, ignoreRdfType: false, schema: schema.itemType, valueVariable: item0Variable, variablePrefix: variablePrefix("Item0") }));
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
{
|
|
17
|
-
// ?list rdf:rest ?rest0
|
|
18
|
-
triples.push({ subject: listVariable, predicate: ${snippets.RdfVocabularies}.rdf.rest, object: variable("Rest0") });
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// Don't do ?list rdf:rest+ ?restN in CONSTRUCT
|
|
22
|
-
const restNVariable = variable("RestN");
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
// ?rest rdf:first ?itemN
|
|
26
|
-
const itemNVariable = variable("ItemN");
|
|
27
|
-
triples.push({ subject: restNVariable, predicate: ${snippets.RdfVocabularies}.rdf.first, object: itemNVariable });
|
|
28
|
-
triples = triples.concat(itemSparqlConstructTriplesFunction({ filter, ignoreRdfType: false, schema: schema.itemType, valueVariable: itemNVariable, variablePrefix: variablePrefix("ItemN") }));
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// ?restN rdf:rest ?restNBasic to get the rdf:rest statement in the CONSTRUCT
|
|
32
|
-
triples.push({ subject: restNVariable, predicate: ${snippets.RdfVocabularies}.rdf.rest, object: variable("RestNBasic") });
|
|
33
|
-
|
|
34
|
-
return triples;
|
|
35
|
-
}
|
|
36
|
-
}`);
|
|
37
|
-
//# sourceMappingURL=snippets_listSparqlConstructTriples.js.map
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { rdf } from "@tpluscode/rdf-ns-builders";
|
|
2
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
3
|
-
export const snippets_listSparqlWherePatterns = ({ imports, rdfjsTermExpression, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}listSparqlWherePatterns`, code `\
|
|
4
|
-
function ${syntheticNamePrefix}listSparqlWherePatterns<ItemFilterT, ItemSchemaT>(itemSparqlWherePatternsFunction: ${snippets.ValueSparqlWherePatternsFunction}<ItemFilterT, ItemSchemaT>): ${snippets.ValueSparqlWherePatternsFunction}<${snippets.CollectionFilter}<ItemFilterT>, ${snippets.CollectionSchema}<ItemSchemaT>> {
|
|
5
|
-
return (parameters) => {
|
|
6
|
-
// Need to handle two cases:
|
|
7
|
-
// (1) (?s, ?p, ?list) where ?list binds to rdf:nil
|
|
8
|
-
// (2) (?s, ?p, ?list) (?list, rdf:first, "element") (?list, rdf:rest, rdf:nil) etc. where list binds to the head of a list
|
|
9
|
-
// Case (2) is case (1) with OPTIONAL graph patterns to handle actual list elements.
|
|
10
|
-
|
|
11
|
-
const listVariable = parameters.valueVariable;
|
|
12
|
-
const patterns: ${snippets.SparqlPattern}[] = [];
|
|
13
|
-
const variable = (suffix: string) => ${imports.dataFactory}.variable!(\`\${parameters.variablePrefix}\${suffix}\`);
|
|
14
|
-
const variablePrefix = (suffix: string) => \`\${parameters.variablePrefix}\${suffix}\`;
|
|
15
|
-
|
|
16
|
-
{
|
|
17
|
-
// ?list rdf:first ?item0
|
|
18
|
-
const item0Variable = variable("Item0");
|
|
19
|
-
patterns.push(
|
|
20
|
-
{
|
|
21
|
-
triples: [
|
|
22
|
-
{
|
|
23
|
-
subject: listVariable,
|
|
24
|
-
predicate: ${rdfjsTermExpression(rdf.first)},
|
|
25
|
-
object: item0Variable,
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
type: "bgp",
|
|
29
|
-
},
|
|
30
|
-
...itemSparqlWherePatternsFunction({
|
|
31
|
-
filter: parameters.filter,
|
|
32
|
-
ignoreRdfType: parameters.ignoreRdfType,
|
|
33
|
-
preferredLanguages: parameters.preferredLanguages,
|
|
34
|
-
propertyPatterns: [],
|
|
35
|
-
schema: parameters.schema.itemType,
|
|
36
|
-
valueVariable: item0Variable,
|
|
37
|
-
variablePrefix: variablePrefix("Item0"),
|
|
38
|
-
}),
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
{
|
|
43
|
-
// ?list rdf:rest ?rest0
|
|
44
|
-
const rest0Variable = variable("Rest0");
|
|
45
|
-
patterns.push({
|
|
46
|
-
triples: [
|
|
47
|
-
{
|
|
48
|
-
subject: listVariable,
|
|
49
|
-
predicate: ${rdfjsTermExpression(rdf.rest)},
|
|
50
|
-
object: rest0Variable,
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
type: "bgp",
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
const optionalPatterns: ${snippets.SparqlPattern}[] = [];
|
|
58
|
-
|
|
59
|
-
const restNVariable = variable("RestN");
|
|
60
|
-
// ?list rdf:rest+ ?restN
|
|
61
|
-
optionalPatterns.push({
|
|
62
|
-
type: "bgp",
|
|
63
|
-
triples: [
|
|
64
|
-
{
|
|
65
|
-
subject: listVariable,
|
|
66
|
-
predicate: { type: "path", pathType: "*", items: [${rdfjsTermExpression(rdf.rest)}] },
|
|
67
|
-
object: restNVariable,
|
|
68
|
-
},
|
|
69
|
-
],
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
{
|
|
73
|
-
// ?rest rdf:first ?itemN
|
|
74
|
-
const itemNVariable = variable("ItemN");
|
|
75
|
-
optionalPatterns.push(
|
|
76
|
-
{
|
|
77
|
-
triples: [
|
|
78
|
-
{
|
|
79
|
-
subject: restNVariable,
|
|
80
|
-
predicate: ${rdfjsTermExpression(rdf.first)},
|
|
81
|
-
object: itemNVariable,
|
|
82
|
-
},
|
|
83
|
-
],
|
|
84
|
-
type: "bgp"
|
|
85
|
-
},
|
|
86
|
-
...itemSparqlWherePatternsFunction({
|
|
87
|
-
filter: parameters.filter,
|
|
88
|
-
ignoreRdfType: parameters.ignoreRdfType,
|
|
89
|
-
preferredLanguages: parameters.preferredLanguages,
|
|
90
|
-
propertyPatterns: [],
|
|
91
|
-
schema: parameters.schema.itemType,
|
|
92
|
-
valueVariable: itemNVariable,
|
|
93
|
-
variablePrefix: variablePrefix("ItemN"),
|
|
94
|
-
}),
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// ?restN rdf:rest ?restNBasic to get the rdf:rest statement in the CONSTRUCT
|
|
99
|
-
optionalPatterns.push({
|
|
100
|
-
triples: [
|
|
101
|
-
{
|
|
102
|
-
subject: restNVariable,
|
|
103
|
-
predicate: ${rdfjsTermExpression(rdf.rest)},
|
|
104
|
-
object: variable("RestNBasic"),
|
|
105
|
-
},
|
|
106
|
-
],
|
|
107
|
-
type: "bgp"
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
patterns.push({ type: "optional", patterns: optionalPatterns });
|
|
111
|
-
|
|
112
|
-
// Having an optional around everything handles the rdf:nil case
|
|
113
|
-
return [...parameters.propertyPatterns, { patterns, type: "optional" }];
|
|
114
|
-
}
|
|
115
|
-
}`);
|
|
116
|
-
//# sourceMappingURL=snippets_listSparqlWherePatterns.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_literalFactory = ({ imports, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}literalFactory`, code `const ${syntheticNamePrefix}literalFactory = new ${imports.LiteralFactory}({ dataFactory: ${imports.dataFactory} });`);
|
|
3
|
-
//# sourceMappingURL=snippets_literalFactory.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_literalFromRdfResourceValues = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}literalFromRdfResourceValues`, code `\
|
|
3
|
-
function ${syntheticNamePrefix}literalFromRdfResourceValues(values: ${imports.Resource}.Values, options: Parameters<${snippets.FromRdfResourceValuesFunction}<${imports.Literal}, ${snippets.LiteralSchema}>>[1]): ${imports.Either}<Error, ${imports.Resource}.Values<${imports.Literal}>> {
|
|
4
|
-
return ${snippets.termLikeFromRdfResourceValues}(values, options).chain(values => values.chainMap(value => value.toLiteral()));
|
|
5
|
-
}`);
|
|
6
|
-
//# sourceMappingURL=snippets_literalFromRdfResourceValues.js.map
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_literalSchemaSparqlPatterns = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}literalSchemaSparqlPatterns`, code `\
|
|
3
|
-
function ${syntheticNamePrefix}literalSchemaSparqlPatterns({
|
|
4
|
-
filterPatterns,
|
|
5
|
-
preferredLanguages,
|
|
6
|
-
propertyPatterns,
|
|
7
|
-
schema,
|
|
8
|
-
valueVariable
|
|
9
|
-
}: {
|
|
10
|
-
filterPatterns: readonly ${snippets.SparqlFilterPattern}[],
|
|
11
|
-
preferredLanguages?: readonly string[];
|
|
12
|
-
propertyPatterns: readonly ${snippets.SparqlPattern}[];
|
|
13
|
-
schema: Readonly<{
|
|
14
|
-
languageIn?: readonly string[];
|
|
15
|
-
in?: readonly (bigint | boolean | Date | string | number | ${imports.Literal} | ${imports.NamedNode})[];
|
|
16
|
-
}>,
|
|
17
|
-
valueVariable: ${imports.Variable};
|
|
18
|
-
}): readonly ${snippets.SparqlPattern}[] {
|
|
19
|
-
let patterns: ${snippets.SparqlPattern}[] = propertyPatterns.concat();
|
|
20
|
-
|
|
21
|
-
if (schema.in && schema.in.length > 0) {
|
|
22
|
-
patterns.push(${snippets.sparqlValueInPattern}({ valueVariable, valueIn: schema.in }));
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const languageIn = ${snippets.arrayIntersection}(schema.languageIn ?? [], preferredLanguages ?? []);
|
|
26
|
-
if (languageIn.length > 0) {
|
|
27
|
-
patterns.push({
|
|
28
|
-
expression: {
|
|
29
|
-
args: [{ args: [valueVariable], operator: "lang", type: "operation" }, languageIn.map(_ => ${imports.dataFactory}.literal(_))],
|
|
30
|
-
operator: "in",
|
|
31
|
-
type: "operation"
|
|
32
|
-
},
|
|
33
|
-
type: "filter",
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
return patterns.concat(filterPatterns);
|
|
38
|
-
}`);
|
|
39
|
-
//# sourceMappingURL=snippets_literalSchemaSparqlPatterns.js.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_literalSparqlWherePatterns = ({ snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}literalSparqlWherePatterns`, code `\
|
|
3
|
-
const ${syntheticNamePrefix}literalSparqlWherePatterns: ${snippets.ValueSparqlWherePatternsFunction}<${snippets.LiteralFilter}, ${snippets.LiteralSchema}> =
|
|
4
|
-
(parameters) => ${syntheticNamePrefix}literalSchemaSparqlPatterns({ filterPatterns: ${snippets.termFilterSparqlPatterns}(parameters), ...parameters });`);
|
|
5
|
-
//# sourceMappingURL=snippets_literalSparqlWherePatterns.js.map
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_maybeEquals = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}maybeEquals`, code `\
|
|
3
|
-
function ${syntheticNamePrefix}maybeEquals<T>(
|
|
4
|
-
leftMaybe: ${imports.Maybe}<T>,
|
|
5
|
-
rightMaybe: ${imports.Maybe}<T>,
|
|
6
|
-
valueEquals: (left: T, right: T) => boolean | ${snippets.EqualsResult},
|
|
7
|
-
): ${snippets.EqualsResult} {
|
|
8
|
-
if (leftMaybe.isJust()) {
|
|
9
|
-
if (rightMaybe.isJust()) {
|
|
10
|
-
return ${snippets.EqualsResult}.fromBooleanEqualsResult(
|
|
11
|
-
leftMaybe,
|
|
12
|
-
rightMaybe,
|
|
13
|
-
valueEquals(leftMaybe.unsafeCoerce(), rightMaybe.unsafeCoerce()),
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
return ${imports.Left}({
|
|
17
|
-
left: leftMaybe.unsafeCoerce(),
|
|
18
|
-
type: "right-null",
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
if (rightMaybe.isJust()) {
|
|
23
|
-
return ${imports.Left}({
|
|
24
|
-
right: rightMaybe.unsafeCoerce(),
|
|
25
|
-
type: "left-null",
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
return ${snippets.EqualsResult}.Equal;
|
|
30
|
-
}`);
|
|
31
|
-
//# sourceMappingURL=snippets_maybeEquals.js.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_maybeFromRdfResourceValues = ({ imports, snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}maybeFromRdfResourceValues`, code `\
|
|
3
|
-
function ${syntheticNamePrefix}maybeFromRdfResourceValues<ItemT, ItemSchemaT>(itemFromRdfResourceValues: ${snippets.FromRdfResourceValuesFunction}<ItemT, ItemSchemaT>): ${snippets.FromRdfResourceValuesFunction}<${imports.Maybe}<ItemT>, ${snippets.MaybeSchema}<ItemSchemaT>> {
|
|
4
|
-
return (values, options) =>
|
|
5
|
-
itemFromRdfResourceValues(values, { ...options, schema: options.schema.itemType })\
|
|
6
|
-
.map(values => values.length > 0
|
|
7
|
-
? values.map(value => ${imports.Maybe}.of(value))
|
|
8
|
-
: ${imports.Resource}.Values.fromValue<${imports.Maybe}<ItemT>>({ focusResource: options.focusResource, propertyPath: options.propertyPath, value: ${imports.Maybe}.empty() })
|
|
9
|
-
);
|
|
10
|
-
}`);
|
|
11
|
-
//# sourceMappingURL=snippets_maybeFromRdfResourceValues.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { code, conditionalOutput } from "../ts-poet-wrapper.js";
|
|
2
|
-
export const snippets_maybeSparqlConstructTriples = ({ snippets, syntheticNamePrefix, }) => conditionalOutput(`${syntheticNamePrefix}maybeSparqlConstructTriples`, code `\
|
|
3
|
-
function ${syntheticNamePrefix}maybeSparqlConstructTriples<ItemFilterT, ItemSchemaT>(itemSparqlConstructTriplesFunction: ${snippets.ValueSparqlConstructTriplesFunction}<ItemFilterT, ItemSchemaT>): ${snippets.ValueSparqlConstructTriplesFunction}<${snippets.MaybeFilter}<ItemFilterT>, ${snippets.MaybeSchema}<ItemSchemaT>> {
|
|
4
|
-
return ({ filter, schema, ...otherParameters }) => itemSparqlConstructTriplesFunction({ ...otherParameters, filter: filter ?? undefined, schema: schema.itemType });
|
|
5
|
-
}`);
|
|
6
|
-
//# sourceMappingURL=snippets_maybeSparqlConstructTriples.js.map
|