@shaclmate/compiler 4.0.40 → 4.0.42
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/ShapesGraphToAstTransformer.d.ts +1 -8
- package/dist/ShapesGraphToAstTransformer.js +11 -126
- package/dist/_ShapesGraphToAstTransformer/shapeNodeKinds.js +128 -160
- package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstStructTypeField.d.ts +17 -0
- package/dist/_ShapesGraphToAstTransformer/{transformPropertyShapeToAstObjectTypeProperty.js → transformPropertyShapeToAstStructTypeField.js} +71 -48
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.d.ts +1 -1
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.js +29 -20
- package/dist/_ShapesGraphToAstTransformer/{transformShapeToAstObjectType.d.ts → transformShapeToAstStructType.d.ts} +3 -3
- package/dist/_ShapesGraphToAstTransformer/{transformShapeToAstObjectType.js → transformShapeToAstStructType.js} +35 -45
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstTermType.js +2 -1
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.d.ts +1 -1
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.js +3 -3
- package/dist/ast/AbstractCompoundType.d.ts +3 -2
- package/dist/ast/AbstractCompoundType.js +5 -5
- package/dist/ast/AbstractContainerType.d.ts +2 -2
- package/dist/ast/AbstractContainerType.js +4 -4
- package/dist/ast/{AbstractLazyObjectType.d.ts → AbstractLazyType.d.ts} +10 -12
- package/dist/ast/{AbstractLazyObjectType.js → AbstractLazyType.js} +3 -3
- package/dist/ast/AbstractType.d.ts +1 -1
- package/dist/ast/AbstractType.js +3 -0
- package/dist/ast/Ast.d.ts +2 -6
- package/dist/ast/DefaultValueType.js +2 -1
- package/dist/ast/IntersectionType.d.ts +2 -2
- package/dist/ast/IntersectionType.js +3 -3
- package/dist/ast/LazyOptionType.d.ts +6 -0
- package/dist/ast/LazyOptionType.js +5 -0
- package/dist/ast/LazySetType.d.ts +6 -0
- package/dist/ast/LazySetType.js +5 -0
- package/dist/ast/LazyType.d.ts +5 -0
- package/dist/ast/LazyType.js +5 -0
- package/dist/ast/ListType.d.ts +2 -2
- package/dist/ast/ListType.js +5 -5
- package/dist/ast/OptionType.js +2 -1
- package/dist/ast/SetType.js +2 -1
- package/dist/ast/StructCompoundType.d.ts +12 -0
- package/dist/ast/{ObjectCompoundType.js → StructCompoundType.js} +18 -18
- package/dist/ast/StructIntersectionType.d.ts +4 -0
- package/dist/ast/StructIntersectionType.js +2 -0
- package/dist/ast/{ObjectType.d.ts → StructType.d.ts} +28 -39
- package/dist/ast/{ObjectType.js → StructType.js} +81 -156
- package/dist/ast/StructUnionType.d.ts +4 -0
- package/dist/ast/StructUnionType.js +2 -0
- package/dist/ast/Type.d.ts +5 -5
- package/dist/ast/Type.js +4 -4
- package/dist/ast/UnionType.d.ts +2 -2
- package/dist/ast/UnionType.js +3 -3
- package/dist/ast/index.d.ts +7 -7
- package/dist/ast/index.js +7 -7
- package/dist/generators/AstJsonGenerator.js +7 -3
- package/dist/generators/transformAstToLabeledPropertyGraph.js +59 -56
- package/dist/generators/ts/AbstractCollectionType.d.ts +4 -11
- package/dist/generators/ts/AbstractCollectionType.js +3 -62
- package/dist/generators/ts/AbstractContainerType.d.ts +1 -2
- package/dist/generators/ts/AbstractContainerType.js +7 -10
- package/dist/generators/ts/AbstractDateType.d.ts +5 -8
- package/dist/generators/ts/AbstractDateType.js +7 -12
- package/dist/generators/ts/AbstractIdentifierType.d.ts +4 -0
- package/dist/generators/ts/AbstractIdentifierType.js +3 -0
- package/dist/generators/ts/{AbstractLazyObjectType.d.ts → AbstractLazyType.d.ts} +8 -8
- package/dist/generators/ts/{AbstractLazyObjectType.js → AbstractLazyType.js} +30 -17
- package/dist/generators/ts/AbstractLiteralType.d.ts +3 -5
- package/dist/generators/ts/AbstractLiteralType.js +0 -21
- package/dist/generators/ts/AbstractNumericType.d.ts +1 -7
- package/dist/generators/ts/AbstractNumericType.js +17 -27
- package/dist/generators/ts/AbstractObjectSetType.d.ts +1 -1
- package/dist/generators/ts/AbstractObjectSetType.js +2 -2
- package/dist/generators/ts/AbstractPrimitiveType.d.ts +2 -1
- package/dist/generators/ts/AbstractPrimitiveType.js +1 -1
- package/dist/generators/ts/AbstractTermType.d.ts +7 -23
- package/dist/generators/ts/AbstractTermType.js +27 -58
- package/dist/generators/ts/AbstractType.d.ts +86 -63
- package/dist/generators/ts/AbstractType.js +48 -22
- package/dist/generators/ts/BigDecimalType.d.ts +7 -3
- package/dist/generators/ts/BigDecimalType.js +7 -9
- package/dist/generators/ts/BigIntType.d.ts +5 -3
- package/dist/generators/ts/BigIntType.js +8 -5
- package/dist/generators/ts/BlankNodeType.d.ts +2 -7
- package/dist/generators/ts/BlankNodeType.js +4 -9
- package/dist/generators/ts/BooleanType.d.ts +6 -4
- package/dist/generators/ts/BooleanType.js +13 -15
- package/dist/generators/ts/DateTimeType.d.ts +2 -2
- package/dist/generators/ts/DateTimeType.js +14 -4
- package/dist/generators/ts/DateType.d.ts +2 -2
- package/dist/generators/ts/DateType.js +14 -4
- package/dist/generators/ts/DefaultValueType.d.ts +40 -2
- package/dist/generators/ts/DefaultValueType.js +15 -14
- package/dist/generators/ts/FloatType.d.ts +5 -3
- package/dist/generators/ts/FloatType.js +8 -5
- package/dist/generators/ts/GraphqlSchema.js +2 -2
- package/dist/generators/ts/IdentifierType.d.ts +2 -2
- package/dist/generators/ts/IdentifierType.js +8 -11
- package/dist/generators/ts/IntType.d.ts +5 -3
- package/dist/generators/ts/IntType.js +8 -5
- package/dist/generators/ts/IriType.d.ts +2 -2
- package/dist/generators/ts/IriType.js +16 -16
- package/dist/generators/ts/{LazyObjectOptionType.d.ts → LazyOptionType.d.ts} +13 -11
- package/dist/generators/ts/LazyOptionType.js +75 -0
- package/dist/generators/ts/LazySetType.d.ts +20 -0
- package/dist/generators/ts/LazySetType.js +76 -0
- package/dist/generators/ts/LazyType.d.ts +19 -0
- package/dist/generators/ts/LazyType.js +65 -0
- package/dist/generators/ts/ListType.d.ts +11 -2
- package/dist/generators/ts/ListType.js +53 -26
- package/dist/generators/ts/LiteralType.d.ts +7 -2
- package/dist/generators/ts/LiteralType.js +12 -5
- package/dist/generators/ts/ObjectType.d.ts +24 -25
- package/dist/generators/ts/ObjectType.js +303 -161
- package/dist/generators/ts/ObjectUnionType.js +42 -42
- package/dist/generators/ts/OptionType.d.ts +6 -2
- package/dist/generators/ts/OptionType.js +16 -9
- package/dist/generators/ts/RdfjsDatasetObjectSetType.js +1 -4
- package/dist/generators/ts/SetType.d.ts +17 -2
- package/dist/generators/ts/SetType.js +85 -9
- package/dist/generators/ts/Snippets.d.ts +29 -9
- package/dist/generators/ts/Snippets.js +179 -39
- package/dist/generators/ts/StringType.d.ts +7 -4
- package/dist/generators/ts/StringType.js +23 -12
- package/dist/generators/ts/TermType.d.ts +9 -3
- package/dist/generators/ts/TermType.js +29 -7
- package/dist/generators/ts/TsGenerator.d.ts +1 -1
- package/dist/generators/ts/TsGenerator.js +62 -32
- package/dist/generators/ts/Type.d.ts +4 -4
- package/dist/generators/ts/TypeFactory.d.ts +5 -5
- package/dist/generators/ts/TypeFactory.js +90 -82
- package/dist/generators/ts/UnionType.d.ts +25 -23
- package/dist/generators/ts/UnionType.js +254 -261
- package/dist/generators/ts/ZodGenerator.d.ts +1 -1
- package/dist/generators/ts/ZodGenerator.js +29 -14
- package/dist/generators/ts/_ObjectType/AbstractProperty.d.ts +28 -16
- package/dist/generators/ts/_ObjectType/AbstractProperty.js +1 -24
- package/dist/generators/ts/_ObjectType/DiscriminantProperty.d.ts +15 -17
- package/dist/generators/ts/_ObjectType/DiscriminantProperty.js +24 -54
- package/dist/generators/ts/_ObjectType/IdentifierProperty.d.ts +8 -2
- package/dist/generators/ts/_ObjectType/IdentifierProperty.js +48 -20
- package/dist/generators/ts/_ObjectType/ObjectType_createFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_createFunctionExpression.js +28 -0
- package/dist/generators/ts/_ObjectType/ObjectType_equalsFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_equalsFunctionExpression.js +15 -0
- package/dist/generators/ts/_ObjectType/ObjectType_filterFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_filterFunctionExpression.js +12 -0
- package/dist/generators/ts/_ObjectType/ObjectType_filterTypeExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_filterTypeDeclaration.js → ObjectType_filterTypeExpression.js} +5 -10
- package/dist/generators/ts/_ObjectType/{ObjectType_focusSparqlConstructTriplesFunctionDeclaration.d.ts → ObjectType_focusSparqlConstructTriplesFunctionExpression.d.ts} +2 -3
- package/dist/generators/ts/_ObjectType/{ObjectType_focusSparqlConstructTriplesFunctionDeclaration.js → ObjectType_focusSparqlConstructTriplesFunctionExpression.js} +5 -13
- package/dist/generators/ts/_ObjectType/{ObjectType_focusSparqlWherePatternsFunctionDeclaration.d.ts → ObjectType_focusSparqlWherePatternsFunctionExpression.d.ts} +2 -3
- package/dist/generators/ts/_ObjectType/{ObjectType_focusSparqlWherePatternsFunctionDeclaration.js → ObjectType_focusSparqlWherePatternsFunctionExpression.js} +8 -31
- package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionExpression.js +12 -0
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunctionExpression.js +43 -0
- package/dist/generators/ts/_ObjectType/ObjectType_graphqlTypeExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_graphqlTypeVariableStatement.js → ObjectType_graphqlTypeExpression.js} +6 -13
- package/dist/generators/ts/_ObjectType/ObjectType_hashFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_hashFunctionExpression.js +30 -0
- package/dist/generators/ts/_ObjectType/ObjectType_identifierTypeDeclarations.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_identifierTypeDeclarations.js +13 -0
- package/dist/generators/ts/_ObjectType/ObjectType_isTypeFunctionDeclaration.js +11 -8
- package/dist/generators/ts/_ObjectType/ObjectType_jsonParseFunctionDeclaration.d.ts +1 -2
- package/dist/generators/ts/_ObjectType/ObjectType_jsonParseFunctionDeclaration.js +2 -6
- package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaExpression.js +18 -0
- package/dist/generators/ts/_ObjectType/ObjectType_jsonTypeExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_jsonTypeExpression.js +5 -0
- package/dist/generators/ts/_ObjectType/ObjectType_jsonUiSchemaFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_jsonUiSchemaFunctionExpression.js +17 -0
- package/dist/generators/ts/_ObjectType/ObjectType_objectSetMethodNames.d.ts +1 -1
- package/dist/generators/ts/_ObjectType/ObjectType_objectSetMethodNames.js +2 -2
- package/dist/generators/ts/_ObjectType/ObjectType_schemaExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_schemaExpression.js +18 -0
- package/dist/generators/ts/_ObjectType/ObjectType_schemaTypeExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_schemaTypeExpression.js +18 -0
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunctionDeclaration.d.ts +2 -3
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunctionDeclaration.js +5 -9
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryStringFunctionDeclaration.d.ts +2 -3
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryStringFunctionDeclaration.js +4 -8
- package/dist/generators/ts/_ObjectType/ObjectType_toJsonFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toJsonFunctionExpression.js +14 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_toRdfResourceFunctionDeclaration.js → ObjectType_toRdfResourceFunctionExpression.js} +7 -13
- package/dist/generators/ts/_ObjectType/ObjectType_toStringFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toStringFunctionExpression.js +7 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toStringRecordFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toStringRecordFunctionExpression.js +5 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_valueSparqlConstructTriplesFunctionDeclaration.d.ts → ObjectType_valueSparqlConstructTriplesFunctionExpression.d.ts} +2 -3
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlConstructTriplesFunctionExpression.js +8 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_valueSparqlWherePatternsFunctionDeclaration.d.ts → ObjectType_valueSparqlWherePatternsFunctionExpression.d.ts} +2 -3
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunctionExpression.js +10 -0
- package/dist/generators/ts/_ObjectType/ShaclProperty.d.ts +9 -2
- package/dist/generators/ts/_ObjectType/ShaclProperty.js +70 -38
- package/dist/generators/ts/_snippets/snippets_BooleanSchema.js +4 -3
- package/dist/generators/ts/_snippets/snippets_DateSchema.js +4 -3
- package/dist/generators/ts/_snippets/snippets_DefaultValueSchema.js +3 -3
- package/dist/generators/ts/_snippets/snippets_FromRdfResourceValuesFunction.js +6 -5
- package/dist/generators/ts/_snippets/snippets_IdentifierSchema.js +2 -1
- package/dist/generators/ts/_snippets/snippets_IriSchema.js +1 -0
- package/dist/generators/ts/_snippets/snippets_Lazy.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_Lazy.js +22 -0
- package/dist/generators/ts/_snippets/snippets_LazyOption.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_LazyOption.js +25 -0
- package/dist/generators/ts/_snippets/snippets_LazySet.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_LazySet.js +40 -0
- package/dist/generators/ts/_snippets/snippets_LiteralFilter.js +1 -3
- package/dist/generators/ts/_snippets/snippets_LiteralSchema.js +1 -0
- package/dist/generators/ts/_snippets/snippets_NumericSchema.js +2 -1
- package/dist/generators/ts/_snippets/snippets_PropertyPath.js +6 -8
- package/dist/generators/ts/_snippets/snippets_RdfVocabularies.js +32 -32
- package/dist/generators/ts/_snippets/snippets_ShaclPropertySchema.js +1 -1
- package/dist/generators/ts/_snippets/snippets_StringSchema.js +5 -3
- package/dist/generators/ts/_snippets/snippets_TermFilter.js +3 -3
- package/dist/generators/ts/_snippets/snippets_TermSchema.js +4 -2
- package/dist/generators/ts/_snippets/snippets_bigDecimalFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_bigDecimalFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_bigIntFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_bigIntFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_blankNodeFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_blankNodeFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_booleanFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_booleanFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_convertToArraySet.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_convertToArraySet.js +8 -0
- package/dist/generators/ts/_snippets/snippets_convertToLazy.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_convertToLazy.js +15 -0
- package/dist/generators/ts/_snippets/snippets_convertToLazyOption.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_convertToLazyOption.js +33 -0
- package/dist/generators/ts/_snippets/snippets_convertToLazySet.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_convertToLazySet.js +27 -0
- package/dist/generators/ts/_snippets/snippets_convertToList.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_convertToList.js +7 -0
- package/dist/generators/ts/_snippets/snippets_convertToScalarSet.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_convertToScalarSet.js +15 -0
- package/dist/generators/ts/_snippets/snippets_dateFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_dateFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_dateTimeFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_dateTimeFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_defaultValueFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_defaultValueFromRdfResourceValues.js +10 -0
- package/dist/generators/ts/_snippets/snippets_defaultValueSparqlWherePatterns.js +1 -1
- package/dist/generators/ts/_snippets/snippets_filterNumeric.js +1 -1
- package/dist/generators/ts/_snippets/snippets_filterTerm.js +1 -2
- package/dist/generators/ts/_snippets/snippets_floatFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_floatFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_identifierFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_identifierFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_intFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_intFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_iriFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_iriFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_listFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_listFromRdfResourceValues.js +15 -0
- package/dist/generators/ts/_snippets/snippets_literalFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_literalFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_maybeFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_maybeFromRdfResourceValues.js +11 -0
- package/dist/generators/ts/_snippets/snippets_mutableListFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_mutableListFromRdfResourceValues.js +8 -0
- package/dist/generators/ts/_snippets/snippets_mutableSetFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_mutableSetFromRdfResourceValues.js +8 -0
- package/dist/generators/ts/_snippets/snippets_numericSparqlWherePatterns.js +1 -1
- package/dist/generators/ts/_snippets/snippets_setFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_setFromRdfResourceValues.js +9 -0
- package/dist/generators/ts/_snippets/snippets_shaclPropertyFromRdf.js +13 -7
- package/dist/generators/ts/_snippets/snippets_stringFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_stringFromRdfResourceValues.js +6 -0
- package/dist/generators/ts/_snippets/snippets_termFilterSparqlPatterns.js +1 -1
- package/dist/generators/ts/_snippets/snippets_termFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_termFromRdfResourceValues.js +17 -0
- package/dist/generators/ts/_snippets/snippets_termLikeFromRdfResourceValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_termLikeFromRdfResourceValues.js +60 -0
- package/dist/generators/ts/_snippets/snippets_termSparqlWherePatterns.js +2 -2
- package/dist/input/generated.d.ts +1116 -400
- package/dist/input/generated.js +1879 -1917
- package/package.json +2 -4
- package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstObjectTypeProperty.d.ts +0 -9
- package/dist/ast/LazyObjectOptionType.d.ts +0 -6
- package/dist/ast/LazyObjectOptionType.js +0 -5
- package/dist/ast/LazyObjectSetType.d.ts +0 -6
- package/dist/ast/LazyObjectSetType.js +0 -5
- package/dist/ast/LazyObjectType.d.ts +0 -5
- package/dist/ast/LazyObjectType.js +0 -5
- package/dist/ast/ObjectCompoundType.d.ts +0 -12
- package/dist/ast/ObjectIntersectionType.d.ts +0 -4
- package/dist/ast/ObjectIntersectionType.js +0 -2
- package/dist/ast/ObjectUnionType.d.ts +0 -4
- package/dist/ast/ObjectUnionType.js +0 -2
- package/dist/generators/ts/LazyObjectOptionType.js +0 -62
- package/dist/generators/ts/LazyObjectSetType.d.ts +0 -20
- package/dist/generators/ts/LazyObjectSetType.js +0 -61
- package/dist/generators/ts/LazyObjectType.d.ts +0 -19
- package/dist/generators/ts/LazyObjectType.js +0 -53
- package/dist/generators/ts/_ObjectType/ObjectType_createFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_createFunctionDeclaration.js +0 -65
- package/dist/generators/ts/_ObjectType/ObjectType_equalsFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_equalsFunctionDeclaration.js +0 -23
- package/dist/generators/ts/_ObjectType/ObjectType_filterFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_filterFunctionDeclaration.js +0 -24
- package/dist/generators/ts/_ObjectType/ObjectType_filterTypeDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionDeclaration.js +0 -43
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunctionDeclaration.js +0 -80
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceValuesFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceValuesFunctionDeclaration.js +0 -15
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfTypeVariableStatement.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfTypeVariableStatement.js +0 -10
- package/dist/generators/ts/_ObjectType/ObjectType_graphqlTypeVariableStatement.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_hashFunctionDeclarations.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_hashFunctionDeclarations.js +0 -45
- package/dist/generators/ts/_ObjectType/ObjectType_interfaceDeclaration.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_interfaceDeclaration.js +0 -16
- package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaFunctionDeclaration.js +0 -31
- package/dist/generators/ts/_ObjectType/ObjectType_jsonTypeAliasDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_jsonTypeAliasDeclaration.js +0 -16
- package/dist/generators/ts/_ObjectType/ObjectType_jsonUiSchemaFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_jsonUiSchemaFunctionDeclaration.js +0 -17
- package/dist/generators/ts/_ObjectType/ObjectType_schemaVariableStatement.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_schemaVariableStatement.js +0 -14
- package/dist/generators/ts/_ObjectType/ObjectType_toJsonFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_toJsonFunctionDeclaration.js +0 -41
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_toStringFunctionDeclarations.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_toStringFunctionDeclarations.js +0 -36
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlConstructTriplesFunctionDeclaration.js +0 -11
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunctionDeclaration.js +0 -13
- package/dist/generators/ts/_ObjectType/identifierTypeDeclarations.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/identifierTypeDeclarations.js +0 -27
- package/dist/generators/ts/_snippets/snippets_LazyObject.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_LazyObject.js +0 -22
- package/dist/generators/ts/_snippets/snippets_LazyObjectOption.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_LazyObjectOption.js +0 -25
- package/dist/generators/ts/_snippets/snippets_LazyObjectSet.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_LazyObjectSet.js +0 -40
- package/dist/generators/ts/_snippets/snippets_convertToArray.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToArray.js +0 -8
- package/dist/generators/ts/_snippets/snippets_convertToLazyObject.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToLazyObject.js +0 -15
- package/dist/generators/ts/_snippets/snippets_convertToLazyObjectOption.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToLazyObjectOption.js +0 -31
- package/dist/generators/ts/_snippets/snippets_convertToLazyObjectSet.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToLazyObjectSet.js +0 -25
- package/dist/generators/ts/_snippets/snippets_fromRdfLanguageIn.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_fromRdfLanguageIn.js +0 -15
- package/dist/generators/ts/_snippets/snippets_fromRdfPreferredLanguages.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_fromRdfPreferredLanguages.js +0 -23
|
@@ -14,35 +14,44 @@ import { snippets_BlankNodeFilter } from "./_snippets/snippets_BlankNodeFilter.j
|
|
|
14
14
|
import { snippets_BlankNodeSchema } from "./_snippets/snippets_BlankNodeSchema.js";
|
|
15
15
|
import { snippets_BooleanFilter } from "./_snippets/snippets_BooleanFilter.js";
|
|
16
16
|
import { snippets_BooleanSchema } from "./_snippets/snippets_BooleanSchema.js";
|
|
17
|
+
import { snippets_bigDecimalFromRdfResourceValues } from "./_snippets/snippets_bigDecimalFromRdfResourceValues.js";
|
|
17
18
|
import { snippets_bigDecimalLiteral } from "./_snippets/snippets_bigDecimalLiteral.js";
|
|
18
19
|
import { snippets_bigDecimalSparqlWherePatterns } from "./_snippets/snippets_bigDecimalSparqlWherePatterns.js";
|
|
20
|
+
import { snippets_bigIntFromRdfResourceValues } from "./_snippets/snippets_bigIntFromRdfResourceValues.js";
|
|
21
|
+
import { snippets_blankNodeFromRdfResourceValues } from "./_snippets/snippets_blankNodeFromRdfResourceValues.js";
|
|
19
22
|
import { snippets_blankNodeSparqlWherePatterns } from "./_snippets/snippets_blankNodeSparqlWherePatterns.js";
|
|
20
23
|
import { snippets_booleanEquals } from "./_snippets/snippets_booleanEquals.js";
|
|
24
|
+
import { snippets_booleanFromRdfResourceValues } from "./_snippets/snippets_booleanFromRdfResourceValues.js";
|
|
21
25
|
import { snippets_booleanSparqlWherePatterns } from "./_snippets/snippets_booleanSparqlWherePatterns.js";
|
|
22
26
|
import { snippets_CollectionFilter } from "./_snippets/snippets_CollectionFilter.js";
|
|
23
27
|
import { snippets_CollectionSchema } from "./_snippets/snippets_CollectionSchema.js";
|
|
24
28
|
import { snippets_ConversionFunction } from "./_snippets/snippets_ConversionFunction.js";
|
|
25
29
|
import { snippets_compactRecord } from "./_snippets/snippets_compactRecord.js";
|
|
26
|
-
import {
|
|
30
|
+
import { snippets_convertToArraySet } from "./_snippets/snippets_convertToArraySet.js";
|
|
27
31
|
import { snippets_convertToBlankNode } from "./_snippets/snippets_convertToBlankNode.js";
|
|
28
32
|
import { snippets_convertToBlankNodeIdentifierProperty } from "./_snippets/snippets_convertToBlankNodeIdentifierProperty.js";
|
|
29
33
|
import { snippets_convertToIdentifier } from "./_snippets/snippets_convertToIdentifier.js";
|
|
30
34
|
import { snippets_convertToIdentifierProperty } from "./_snippets/snippets_convertToIdentifierProperty.js";
|
|
31
35
|
import { snippets_convertToIri } from "./_snippets/snippets_convertToIri.js";
|
|
32
36
|
import { snippets_convertToIriIdentifierProperty } from "./_snippets/snippets_convertToIriIdentifierProperty.js";
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
37
|
+
import { snippets_convertToLazy } from "./_snippets/snippets_convertToLazy.js";
|
|
38
|
+
import { snippets_convertToLazyOption } from "./_snippets/snippets_convertToLazyOption.js";
|
|
39
|
+
import { snippets_convertToLazySet } from "./_snippets/snippets_convertToLazySet.js";
|
|
40
|
+
import { snippets_convertToList } from "./_snippets/snippets_convertToList.js";
|
|
36
41
|
import { snippets_convertToLiteral } from "./_snippets/snippets_convertToLiteral.js";
|
|
37
42
|
import { snippets_convertToMaybe } from "./_snippets/snippets_convertToMaybe.js";
|
|
43
|
+
import { snippets_convertToScalarSet } from "./_snippets/snippets_convertToScalarSet.js";
|
|
38
44
|
import { snippets_convertWithDefaultValue } from "./_snippets/snippets_convertWithDefaultValue.js";
|
|
39
45
|
import { snippets_DateFilter } from "./_snippets/snippets_DateFilter.js";
|
|
40
46
|
import { snippets_DateSchema } from "./_snippets/snippets_DateSchema.js";
|
|
41
47
|
import { snippets_DefaultValueSchema } from "./_snippets/snippets_DefaultValueSchema.js";
|
|
42
48
|
import { snippets_dateEquals } from "./_snippets/snippets_dateEquals.js";
|
|
49
|
+
import { snippets_dateFromRdfResourceValues } from "./_snippets/snippets_dateFromRdfResourceValues.js";
|
|
43
50
|
import { snippets_dateSparqlWherePatterns } from "./_snippets/snippets_dateSparqlWherePatterns.js";
|
|
51
|
+
import { snippets_dateTimeFromRdfResourceValues } from "./_snippets/snippets_dateTimeFromRdfResourceValues.js";
|
|
44
52
|
import { snippets_decodeBigDecimalLiteral } from "./_snippets/snippets_decodeBigDecimalLiteral.js";
|
|
45
53
|
import { snippets_deduplicateSparqlPatterns } from "./_snippets/snippets_deduplicateSparqlPatterns.js";
|
|
54
|
+
import { snippets_defaultValueFromRdfResourceValues } from "./_snippets/snippets_defaultValueFromRdfResourceValues.js";
|
|
46
55
|
import { snippets_defaultValueSparqlWherePatterns } from "./_snippets/snippets_defaultValueSparqlWherePatterns.js";
|
|
47
56
|
import { snippets_EqualsResult } from "./_snippets/snippets_EqualsResult.js";
|
|
48
57
|
import { snippets_ensureRdfResourceType } from "./_snippets/snippets_ensureRdfResourceType.js";
|
|
@@ -62,8 +71,7 @@ import { snippets_filterMaybe } from "./_snippets/snippets_filterMaybe.js";
|
|
|
62
71
|
import { snippets_filterNumeric } from "./_snippets/snippets_filterNumeric.js";
|
|
63
72
|
import { snippets_filterString } from "./_snippets/snippets_filterString.js";
|
|
64
73
|
import { snippets_filterTerm } from "./_snippets/snippets_filterTerm.js";
|
|
65
|
-
import {
|
|
66
|
-
import { snippets_fromRdfPreferredLanguages } from "./_snippets/snippets_fromRdfPreferredLanguages.js";
|
|
74
|
+
import { snippets_floatFromRdfResourceValues } from "./_snippets/snippets_floatFromRdfResourceValues.js";
|
|
67
75
|
import { snippets_Hasher } from "./_snippets/snippets_Hasher.js";
|
|
68
76
|
import { snippets_HashFunction } from "./_snippets/snippets_HashFunction.js";
|
|
69
77
|
import { snippets_hashArray } from "./_snippets/snippets_hashArray.js";
|
|
@@ -80,27 +88,35 @@ import { snippets_IdentifierSchema } from "./_snippets/snippets_IdentifierSchema
|
|
|
80
88
|
import { snippets_IdentifierSet } from "./_snippets/snippets_IdentifierSet.js";
|
|
81
89
|
import { snippets_IriFilter } from "./_snippets/snippets_IriFilter.js";
|
|
82
90
|
import { snippets_IriSchema } from "./_snippets/snippets_IriSchema.js";
|
|
91
|
+
import { snippets_identifierFromRdfResourceValues } from "./_snippets/snippets_identifierFromRdfResourceValues.js";
|
|
83
92
|
import { snippets_identifierSparqlWherePatterns } from "./_snippets/snippets_identifierSparqlWherePatterns.js";
|
|
84
93
|
import { snippets_identityConversionFunction } from "./_snippets/snippets_identityConversionFunction.js";
|
|
85
94
|
import { snippets_identityValidationFunction } from "./_snippets/snippets_identityValidationFunction.js";
|
|
95
|
+
import { snippets_intFromRdfResourceValues } from "./_snippets/snippets_intFromRdfResourceValues.js";
|
|
96
|
+
import { snippets_iriFromRdfResourceValues } from "./_snippets/snippets_iriFromRdfResourceValues.js";
|
|
86
97
|
import { snippets_iriSparqlWherePatterns } from "./_snippets/snippets_iriSparqlWherePatterns.js";
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
98
|
+
import { snippets_Lazy } from "./_snippets/snippets_Lazy.js";
|
|
99
|
+
import { snippets_LazyOption } from "./_snippets/snippets_LazyOption.js";
|
|
100
|
+
import { snippets_LazySet } from "./_snippets/snippets_LazySet.js";
|
|
90
101
|
import { snippets_LiteralFilter } from "./_snippets/snippets_LiteralFilter.js";
|
|
91
102
|
import { snippets_LiteralSchema } from "./_snippets/snippets_LiteralSchema.js";
|
|
92
103
|
import { snippets_liftSparqlPatterns } from "./_snippets/snippets_liftSparqlPatterns.js";
|
|
104
|
+
import { snippets_listFromRdfResourceValues } from "./_snippets/snippets_listFromRdfResourceValues.js";
|
|
93
105
|
import { snippets_listSparqlConstructTriples } from "./_snippets/snippets_listSparqlConstructTriples.js";
|
|
94
106
|
import { snippets_listSparqlWherePatterns } from "./_snippets/snippets_listSparqlWherePatterns.js";
|
|
95
107
|
import { snippets_literalFactory } from "./_snippets/snippets_literalFactory.js";
|
|
108
|
+
import { snippets_literalFromRdfResourceValues } from "./_snippets/snippets_literalFromRdfResourceValues.js";
|
|
96
109
|
import { snippets_literalSchemaSparqlPatterns } from "./_snippets/snippets_literalSchemaSparqlPatterns.js";
|
|
97
110
|
import { snippets_literalSparqlWherePatterns } from "./_snippets/snippets_literalSparqlWherePatterns.js";
|
|
98
111
|
import { snippets_MaybeFilter } from "./_snippets/snippets_MaybeFilter.js";
|
|
99
112
|
import { snippets_MaybeSchema } from "./_snippets/snippets_MaybeSchema.js";
|
|
100
113
|
import { snippets_maybeEquals } from "./_snippets/snippets_maybeEquals.js";
|
|
114
|
+
import { snippets_maybeFromRdfResourceValues } from "./_snippets/snippets_maybeFromRdfResourceValues.js";
|
|
101
115
|
import { snippets_maybeSparqlConstructTriples } from "./_snippets/snippets_maybeSparqlConstructTriples.js";
|
|
102
116
|
import { snippets_maybeSparqlWherePatterns } from "./_snippets/snippets_maybeSparqlWherePatterns.js";
|
|
103
117
|
import { snippets_monkeyPatchObject } from "./_snippets/snippets_monkeyPatchObject.js";
|
|
118
|
+
import { snippets_mutableListFromRdfResourceValues } from "./_snippets/snippets_mutableListFromRdfResourceValues.js";
|
|
119
|
+
import { snippets_mutableSetFromRdfResourceValues } from "./_snippets/snippets_mutableSetFromRdfResourceValues.js";
|
|
104
120
|
import { snippets_NumericFilter } from "./_snippets/snippets_NumericFilter.js";
|
|
105
121
|
import { snippets_NumericSchema } from "./_snippets/snippets_NumericSchema.js";
|
|
106
122
|
import { snippets_normalizeSparqlWherePatterns } from "./_snippets/snippets_normalizeSparqlWherePatterns.js";
|
|
@@ -117,6 +133,7 @@ import { snippets_SparqlPattern_isSolutionGenerating } from "./_snippets/snippet
|
|
|
117
133
|
import { snippets_StringFilter } from "./_snippets/snippets_StringFilter.js";
|
|
118
134
|
import { snippets_StringSchema } from "./_snippets/snippets_StringSchema.js";
|
|
119
135
|
import { snippets_sequenceRecord } from "./_snippets/snippets_sequenceRecord.js";
|
|
136
|
+
import { snippets_setFromRdfResourceValues } from "./_snippets/snippets_setFromRdfResourceValues.js";
|
|
120
137
|
import { snippets_setSparqlConstructTriples } from "./_snippets/snippets_setSparqlConstructTriples.js";
|
|
121
138
|
import { snippets_setSparqlWherePatterns } from "./_snippets/snippets_setSparqlWherePatterns.js";
|
|
122
139
|
import { snippets_shaclPropertyFromRdf } from "./_snippets/snippets_shaclPropertyFromRdf.js";
|
|
@@ -127,12 +144,15 @@ import { snippets_sparqlInstancesOfPattern } from "./_snippets/snippets_sparqlIn
|
|
|
127
144
|
import { snippets_sparqlPropertyPath } from "./_snippets/snippets_sparqlPropertyPath.js";
|
|
128
145
|
import { snippets_sparqlValueInPattern } from "./_snippets/snippets_sparqlValueInPattern.js";
|
|
129
146
|
import { snippets_strictEquals } from "./_snippets/snippets_strictEquals.js";
|
|
147
|
+
import { snippets_stringFromRdfResourceValues } from "./_snippets/snippets_stringFromRdfResourceValues.js";
|
|
130
148
|
import { snippets_stringSparqlWherePatterns } from "./_snippets/snippets_stringSparqlWherePatterns.js";
|
|
131
149
|
import { snippets_TermFilter } from "./_snippets/snippets_TermFilter.js";
|
|
132
150
|
import { snippets_TermSchema } from "./_snippets/snippets_TermSchema.js";
|
|
133
151
|
import { snippets_ToRdfResourceFunction } from "./_snippets/snippets_ToRdfResourceFunction.js";
|
|
134
152
|
import { snippets_ToRdfResourceValuesFunction } from "./_snippets/snippets_ToRdfResourceValuesFunction.js";
|
|
135
153
|
import { snippets_termFilterSparqlPatterns } from "./_snippets/snippets_termFilterSparqlPatterns.js";
|
|
154
|
+
import { snippets_termFromRdfResourceValues } from "./_snippets/snippets_termFromRdfResourceValues.js";
|
|
155
|
+
import { snippets_termLikeFromRdfResourceValues } from "./_snippets/snippets_termLikeFromRdfResourceValues.js";
|
|
136
156
|
import { snippets_termSchemaSparqlPatterns } from "./_snippets/snippets_termSchemaSparqlPatterns.js";
|
|
137
157
|
import { snippets_termSparqlWherePatterns } from "./_snippets/snippets_termSparqlWherePatterns.js";
|
|
138
158
|
import { snippets_toIsoDateString } from "./_snippets/snippets_toIsoDateString.js";
|
|
@@ -221,14 +241,14 @@ export class Snippets {
|
|
|
221
241
|
get IriSchema() {
|
|
222
242
|
return this.snippet(snippets_IriSchema);
|
|
223
243
|
}
|
|
224
|
-
get
|
|
225
|
-
return this.snippet(
|
|
244
|
+
get Lazy() {
|
|
245
|
+
return this.snippet(snippets_Lazy);
|
|
226
246
|
}
|
|
227
|
-
get
|
|
228
|
-
return this.snippet(
|
|
247
|
+
get LazyOption() {
|
|
248
|
+
return this.snippet(snippets_LazyOption);
|
|
229
249
|
}
|
|
230
|
-
get
|
|
231
|
-
return this.snippet(
|
|
250
|
+
get LazySet() {
|
|
251
|
+
return this.snippet(snippets_LazySet);
|
|
232
252
|
}
|
|
233
253
|
get LiteralFilter() {
|
|
234
254
|
return this.snippet(snippets_LiteralFilter);
|
|
@@ -308,26 +328,38 @@ export class Snippets {
|
|
|
308
328
|
get arrayIntersection() {
|
|
309
329
|
return this.snippet(snippets_arrayIntersection);
|
|
310
330
|
}
|
|
331
|
+
get bigDecimalFromRdfResourceValues() {
|
|
332
|
+
return this.snippet(snippets_bigDecimalFromRdfResourceValues);
|
|
333
|
+
}
|
|
311
334
|
get bigDecimalLiteral() {
|
|
312
335
|
return this.snippet(snippets_bigDecimalLiteral);
|
|
313
336
|
}
|
|
314
337
|
get bigDecimalSparqlWherePatterns() {
|
|
315
338
|
return this.snippet(snippets_bigDecimalSparqlWherePatterns);
|
|
316
339
|
}
|
|
340
|
+
get bigIntFromRdfResourceValues() {
|
|
341
|
+
return this.snippet(snippets_bigIntFromRdfResourceValues);
|
|
342
|
+
}
|
|
343
|
+
get blankNodeFromRdfResourceValues() {
|
|
344
|
+
return this.snippet(snippets_blankNodeFromRdfResourceValues);
|
|
345
|
+
}
|
|
317
346
|
get blankNodeSparqlWherePatterns() {
|
|
318
347
|
return this.snippet(snippets_blankNodeSparqlWherePatterns);
|
|
319
348
|
}
|
|
320
349
|
get booleanEquals() {
|
|
321
350
|
return this.snippet(snippets_booleanEquals);
|
|
322
351
|
}
|
|
352
|
+
get booleanFromRdfResourceValues() {
|
|
353
|
+
return this.snippet(snippets_booleanFromRdfResourceValues);
|
|
354
|
+
}
|
|
323
355
|
get booleanSparqlWherePatterns() {
|
|
324
356
|
return this.snippet(snippets_booleanSparqlWherePatterns);
|
|
325
357
|
}
|
|
326
358
|
get compactRecord() {
|
|
327
359
|
return this.snippet(snippets_compactRecord);
|
|
328
360
|
}
|
|
329
|
-
get
|
|
330
|
-
return this.snippet(
|
|
361
|
+
get convertToArraySet() {
|
|
362
|
+
return this.snippet(snippets_convertToArraySet);
|
|
331
363
|
}
|
|
332
364
|
get convertToBlankNode() {
|
|
333
365
|
return this.snippet(snippets_convertToBlankNode);
|
|
@@ -347,14 +379,17 @@ export class Snippets {
|
|
|
347
379
|
get convertToIriIdentifierProperty() {
|
|
348
380
|
return this.snippet(snippets_convertToIriIdentifierProperty);
|
|
349
381
|
}
|
|
350
|
-
get
|
|
351
|
-
return this.snippet(
|
|
382
|
+
get convertToLazy() {
|
|
383
|
+
return this.snippet(snippets_convertToLazy);
|
|
384
|
+
}
|
|
385
|
+
get convertToLazyOption() {
|
|
386
|
+
return this.snippet(snippets_convertToLazyOption);
|
|
352
387
|
}
|
|
353
|
-
get
|
|
354
|
-
return this.snippet(
|
|
388
|
+
get convertToLazySet() {
|
|
389
|
+
return this.snippet(snippets_convertToLazySet);
|
|
355
390
|
}
|
|
356
|
-
get
|
|
357
|
-
return this.snippet(
|
|
391
|
+
get convertToList() {
|
|
392
|
+
return this.snippet(snippets_convertToList);
|
|
358
393
|
}
|
|
359
394
|
get convertToLiteral() {
|
|
360
395
|
return this.snippet(snippets_convertToLiteral);
|
|
@@ -362,21 +397,33 @@ export class Snippets {
|
|
|
362
397
|
get convertToMaybe() {
|
|
363
398
|
return this.snippet(snippets_convertToMaybe);
|
|
364
399
|
}
|
|
400
|
+
get convertToScalarSet() {
|
|
401
|
+
return this.snippet(snippets_convertToScalarSet);
|
|
402
|
+
}
|
|
365
403
|
get convertWithDefaultValue() {
|
|
366
404
|
return this.snippet(snippets_convertWithDefaultValue);
|
|
367
405
|
}
|
|
368
406
|
get dateEquals() {
|
|
369
407
|
return this.snippet(snippets_dateEquals);
|
|
370
408
|
}
|
|
409
|
+
get dateFromRdfResourceValues() {
|
|
410
|
+
return this.snippet(snippets_dateFromRdfResourceValues);
|
|
411
|
+
}
|
|
371
412
|
get dateSparqlWherePatterns() {
|
|
372
413
|
return this.snippet(snippets_dateSparqlWherePatterns);
|
|
373
414
|
}
|
|
415
|
+
get dateTimeFromRdfResourceValues() {
|
|
416
|
+
return this.snippet(snippets_dateTimeFromRdfResourceValues);
|
|
417
|
+
}
|
|
374
418
|
get decodeBigDecimalLiteral() {
|
|
375
419
|
return this.snippet(snippets_decodeBigDecimalLiteral);
|
|
376
420
|
}
|
|
377
421
|
get deduplicateSparqlPatterns() {
|
|
378
422
|
return this.snippet(snippets_deduplicateSparqlPatterns);
|
|
379
423
|
}
|
|
424
|
+
get defaultValueFromRdfResourceValues() {
|
|
425
|
+
return this.snippet(snippets_defaultValueFromRdfResourceValues);
|
|
426
|
+
}
|
|
380
427
|
get defaultValueSparqlWherePatterns() {
|
|
381
428
|
return this.snippet(snippets_defaultValueSparqlWherePatterns);
|
|
382
429
|
}
|
|
@@ -419,11 +466,8 @@ export class Snippets {
|
|
|
419
466
|
get filterTerm() {
|
|
420
467
|
return this.snippet(snippets_filterTerm);
|
|
421
468
|
}
|
|
422
|
-
get
|
|
423
|
-
return this.snippet(
|
|
424
|
-
}
|
|
425
|
-
get fromRdfPreferredLanguages() {
|
|
426
|
-
return this.snippet(snippets_fromRdfPreferredLanguages);
|
|
469
|
+
get floatFromRdfResourceValues() {
|
|
470
|
+
return this.snippet(snippets_floatFromRdfResourceValues);
|
|
427
471
|
}
|
|
428
472
|
get hashArray() {
|
|
429
473
|
return this.snippet(snippets_hashArray);
|
|
@@ -452,6 +496,9 @@ export class Snippets {
|
|
|
452
496
|
get hashTerm() {
|
|
453
497
|
return this.snippet(snippets_hashTerm);
|
|
454
498
|
}
|
|
499
|
+
get identifierFromRdfResourceValues() {
|
|
500
|
+
return this.snippet(snippets_identifierFromRdfResourceValues);
|
|
501
|
+
}
|
|
455
502
|
get identifierSparqlWherePatterns() {
|
|
456
503
|
return this.snippet(snippets_identifierSparqlWherePatterns);
|
|
457
504
|
}
|
|
@@ -480,12 +527,21 @@ export class Snippets {
|
|
|
480
527
|
.sort((left, right) => left.usageSiteName.localeCompare(right.usageSiteName))
|
|
481
528
|
.map((snippet) => code `${snippet.ifUsed}`);
|
|
482
529
|
}
|
|
530
|
+
get intFromRdfResourceValues() {
|
|
531
|
+
return this.snippet(snippets_intFromRdfResourceValues);
|
|
532
|
+
}
|
|
533
|
+
get iriFromRdfResourceValues() {
|
|
534
|
+
return this.snippet(snippets_iriFromRdfResourceValues);
|
|
535
|
+
}
|
|
483
536
|
get iriSparqlWherePatterns() {
|
|
484
537
|
return this.snippet(snippets_iriSparqlWherePatterns);
|
|
485
538
|
}
|
|
486
539
|
get liftSparqlPatterns() {
|
|
487
540
|
return this.snippet(snippets_liftSparqlPatterns);
|
|
488
541
|
}
|
|
542
|
+
get listFromRdfResourceValues() {
|
|
543
|
+
return this.snippet(snippets_listFromRdfResourceValues);
|
|
544
|
+
}
|
|
489
545
|
get listSparqlConstructTriples() {
|
|
490
546
|
return this.snippet(snippets_listSparqlConstructTriples);
|
|
491
547
|
}
|
|
@@ -495,6 +551,9 @@ export class Snippets {
|
|
|
495
551
|
get literalFactory() {
|
|
496
552
|
return this.snippet(snippets_literalFactory);
|
|
497
553
|
}
|
|
554
|
+
get literalFromRdfResourceValues() {
|
|
555
|
+
return this.snippet(snippets_literalFromRdfResourceValues);
|
|
556
|
+
}
|
|
498
557
|
get literalSchemaSparqlPatterns() {
|
|
499
558
|
return this.snippet(snippets_literalSchemaSparqlPatterns);
|
|
500
559
|
}
|
|
@@ -504,6 +563,9 @@ export class Snippets {
|
|
|
504
563
|
get maybeEquals() {
|
|
505
564
|
return this.snippet(snippets_maybeEquals);
|
|
506
565
|
}
|
|
566
|
+
get maybeFromRdfResourceValues() {
|
|
567
|
+
return this.snippet(snippets_maybeFromRdfResourceValues);
|
|
568
|
+
}
|
|
507
569
|
get maybeSparqlConstructTriples() {
|
|
508
570
|
return this.snippet(snippets_maybeSparqlConstructTriples);
|
|
509
571
|
}
|
|
@@ -513,6 +575,12 @@ export class Snippets {
|
|
|
513
575
|
get monkeyPatchObject() {
|
|
514
576
|
return this.snippet(snippets_monkeyPatchObject);
|
|
515
577
|
}
|
|
578
|
+
get mutableListFromRdfResourceValues() {
|
|
579
|
+
return this.snippet(snippets_mutableListFromRdfResourceValues);
|
|
580
|
+
}
|
|
581
|
+
get mutableSetFromRdfResourceValues() {
|
|
582
|
+
return this.snippet(snippets_mutableSetFromRdfResourceValues);
|
|
583
|
+
}
|
|
516
584
|
get normalizeSparqlWherePatterns() {
|
|
517
585
|
return this.snippet(snippets_normalizeSparqlWherePatterns);
|
|
518
586
|
}
|
|
@@ -531,6 +599,9 @@ export class Snippets {
|
|
|
531
599
|
get sequenceRecord() {
|
|
532
600
|
return this.snippet(snippets_sequenceRecord);
|
|
533
601
|
}
|
|
602
|
+
get setFromRdfResourceValues() {
|
|
603
|
+
return this.snippet(snippets_setFromRdfResourceValues);
|
|
604
|
+
}
|
|
534
605
|
get setSparqlConstructTriples() {
|
|
535
606
|
return this.snippet(snippets_setSparqlConstructTriples);
|
|
536
607
|
}
|
|
@@ -561,12 +632,21 @@ export class Snippets {
|
|
|
561
632
|
get strictEquals() {
|
|
562
633
|
return this.snippet(snippets_strictEquals);
|
|
563
634
|
}
|
|
635
|
+
get stringFromRdfResourceValues() {
|
|
636
|
+
return this.snippet(snippets_stringFromRdfResourceValues);
|
|
637
|
+
}
|
|
564
638
|
get stringSparqlWherePatterns() {
|
|
565
639
|
return this.snippet(snippets_stringSparqlWherePatterns);
|
|
566
640
|
}
|
|
567
641
|
get termFilterSparqlPatterns() {
|
|
568
642
|
return this.snippet(snippets_termFilterSparqlPatterns);
|
|
569
643
|
}
|
|
644
|
+
get termFromRdfResourceValues() {
|
|
645
|
+
return this.snippet(snippets_termFromRdfResourceValues);
|
|
646
|
+
}
|
|
647
|
+
get termLikeFromRdfResourceValues() {
|
|
648
|
+
return this.snippet(snippets_termLikeFromRdfResourceValues);
|
|
649
|
+
}
|
|
570
650
|
get termSchemaSparqlPatterns() {
|
|
571
651
|
return this.snippet(snippets_termSchemaSparqlPatterns);
|
|
572
652
|
}
|
|
@@ -674,13 +754,13 @@ __decorate([
|
|
|
674
754
|
], Snippets.prototype, "IriSchema", null);
|
|
675
755
|
__decorate([
|
|
676
756
|
Memoize()
|
|
677
|
-
], Snippets.prototype, "
|
|
757
|
+
], Snippets.prototype, "Lazy", null);
|
|
678
758
|
__decorate([
|
|
679
759
|
Memoize()
|
|
680
|
-
], Snippets.prototype, "
|
|
760
|
+
], Snippets.prototype, "LazyOption", null);
|
|
681
761
|
__decorate([
|
|
682
762
|
Memoize()
|
|
683
|
-
], Snippets.prototype, "
|
|
763
|
+
], Snippets.prototype, "LazySet", null);
|
|
684
764
|
__decorate([
|
|
685
765
|
Memoize()
|
|
686
766
|
], Snippets.prototype, "LiteralFilter", null);
|
|
@@ -759,18 +839,30 @@ __decorate([
|
|
|
759
839
|
__decorate([
|
|
760
840
|
Memoize()
|
|
761
841
|
], Snippets.prototype, "arrayIntersection", null);
|
|
842
|
+
__decorate([
|
|
843
|
+
Memoize()
|
|
844
|
+
], Snippets.prototype, "bigDecimalFromRdfResourceValues", null);
|
|
762
845
|
__decorate([
|
|
763
846
|
Memoize()
|
|
764
847
|
], Snippets.prototype, "bigDecimalLiteral", null);
|
|
765
848
|
__decorate([
|
|
766
849
|
Memoize()
|
|
767
850
|
], Snippets.prototype, "bigDecimalSparqlWherePatterns", null);
|
|
851
|
+
__decorate([
|
|
852
|
+
Memoize()
|
|
853
|
+
], Snippets.prototype, "bigIntFromRdfResourceValues", null);
|
|
854
|
+
__decorate([
|
|
855
|
+
Memoize()
|
|
856
|
+
], Snippets.prototype, "blankNodeFromRdfResourceValues", null);
|
|
768
857
|
__decorate([
|
|
769
858
|
Memoize()
|
|
770
859
|
], Snippets.prototype, "blankNodeSparqlWherePatterns", null);
|
|
771
860
|
__decorate([
|
|
772
861
|
Memoize()
|
|
773
862
|
], Snippets.prototype, "booleanEquals", null);
|
|
863
|
+
__decorate([
|
|
864
|
+
Memoize()
|
|
865
|
+
], Snippets.prototype, "booleanFromRdfResourceValues", null);
|
|
774
866
|
__decorate([
|
|
775
867
|
Memoize()
|
|
776
868
|
], Snippets.prototype, "booleanSparqlWherePatterns", null);
|
|
@@ -779,7 +871,7 @@ __decorate([
|
|
|
779
871
|
], Snippets.prototype, "compactRecord", null);
|
|
780
872
|
__decorate([
|
|
781
873
|
Memoize()
|
|
782
|
-
], Snippets.prototype, "
|
|
874
|
+
], Snippets.prototype, "convertToArraySet", null);
|
|
783
875
|
__decorate([
|
|
784
876
|
Memoize()
|
|
785
877
|
], Snippets.prototype, "convertToBlankNode", null);
|
|
@@ -800,34 +892,49 @@ __decorate([
|
|
|
800
892
|
], Snippets.prototype, "convertToIriIdentifierProperty", null);
|
|
801
893
|
__decorate([
|
|
802
894
|
Memoize()
|
|
803
|
-
], Snippets.prototype, "
|
|
895
|
+
], Snippets.prototype, "convertToLazy", null);
|
|
896
|
+
__decorate([
|
|
897
|
+
Memoize()
|
|
898
|
+
], Snippets.prototype, "convertToLazyOption", null);
|
|
804
899
|
__decorate([
|
|
805
900
|
Memoize()
|
|
806
|
-
], Snippets.prototype, "
|
|
901
|
+
], Snippets.prototype, "convertToLazySet", null);
|
|
807
902
|
__decorate([
|
|
808
903
|
Memoize()
|
|
809
|
-
], Snippets.prototype, "
|
|
904
|
+
], Snippets.prototype, "convertToList", null);
|
|
810
905
|
__decorate([
|
|
811
906
|
Memoize()
|
|
812
907
|
], Snippets.prototype, "convertToLiteral", null);
|
|
813
908
|
__decorate([
|
|
814
909
|
Memoize()
|
|
815
910
|
], Snippets.prototype, "convertToMaybe", null);
|
|
911
|
+
__decorate([
|
|
912
|
+
Memoize()
|
|
913
|
+
], Snippets.prototype, "convertToScalarSet", null);
|
|
816
914
|
__decorate([
|
|
817
915
|
Memoize()
|
|
818
916
|
], Snippets.prototype, "convertWithDefaultValue", null);
|
|
819
917
|
__decorate([
|
|
820
918
|
Memoize()
|
|
821
919
|
], Snippets.prototype, "dateEquals", null);
|
|
920
|
+
__decorate([
|
|
921
|
+
Memoize()
|
|
922
|
+
], Snippets.prototype, "dateFromRdfResourceValues", null);
|
|
822
923
|
__decorate([
|
|
823
924
|
Memoize()
|
|
824
925
|
], Snippets.prototype, "dateSparqlWherePatterns", null);
|
|
926
|
+
__decorate([
|
|
927
|
+
Memoize()
|
|
928
|
+
], Snippets.prototype, "dateTimeFromRdfResourceValues", null);
|
|
825
929
|
__decorate([
|
|
826
930
|
Memoize()
|
|
827
931
|
], Snippets.prototype, "decodeBigDecimalLiteral", null);
|
|
828
932
|
__decorate([
|
|
829
933
|
Memoize()
|
|
830
934
|
], Snippets.prototype, "deduplicateSparqlPatterns", null);
|
|
935
|
+
__decorate([
|
|
936
|
+
Memoize()
|
|
937
|
+
], Snippets.prototype, "defaultValueFromRdfResourceValues", null);
|
|
831
938
|
__decorate([
|
|
832
939
|
Memoize()
|
|
833
940
|
], Snippets.prototype, "defaultValueSparqlWherePatterns", null);
|
|
@@ -872,10 +979,7 @@ __decorate([
|
|
|
872
979
|
], Snippets.prototype, "filterTerm", null);
|
|
873
980
|
__decorate([
|
|
874
981
|
Memoize()
|
|
875
|
-
], Snippets.prototype, "
|
|
876
|
-
__decorate([
|
|
877
|
-
Memoize()
|
|
878
|
-
], Snippets.prototype, "fromRdfPreferredLanguages", null);
|
|
982
|
+
], Snippets.prototype, "floatFromRdfResourceValues", null);
|
|
879
983
|
__decorate([
|
|
880
984
|
Memoize()
|
|
881
985
|
], Snippets.prototype, "hashArray", null);
|
|
@@ -903,6 +1007,9 @@ __decorate([
|
|
|
903
1007
|
__decorate([
|
|
904
1008
|
Memoize()
|
|
905
1009
|
], Snippets.prototype, "hashTerm", null);
|
|
1010
|
+
__decorate([
|
|
1011
|
+
Memoize()
|
|
1012
|
+
], Snippets.prototype, "identifierFromRdfResourceValues", null);
|
|
906
1013
|
__decorate([
|
|
907
1014
|
Memoize()
|
|
908
1015
|
], Snippets.prototype, "identifierSparqlWherePatterns", null);
|
|
@@ -912,12 +1019,21 @@ __decorate([
|
|
|
912
1019
|
__decorate([
|
|
913
1020
|
Memoize()
|
|
914
1021
|
], Snippets.prototype, "identityValidationFunction", null);
|
|
1022
|
+
__decorate([
|
|
1023
|
+
Memoize()
|
|
1024
|
+
], Snippets.prototype, "intFromRdfResourceValues", null);
|
|
1025
|
+
__decorate([
|
|
1026
|
+
Memoize()
|
|
1027
|
+
], Snippets.prototype, "iriFromRdfResourceValues", null);
|
|
915
1028
|
__decorate([
|
|
916
1029
|
Memoize()
|
|
917
1030
|
], Snippets.prototype, "iriSparqlWherePatterns", null);
|
|
918
1031
|
__decorate([
|
|
919
1032
|
Memoize()
|
|
920
1033
|
], Snippets.prototype, "liftSparqlPatterns", null);
|
|
1034
|
+
__decorate([
|
|
1035
|
+
Memoize()
|
|
1036
|
+
], Snippets.prototype, "listFromRdfResourceValues", null);
|
|
921
1037
|
__decorate([
|
|
922
1038
|
Memoize()
|
|
923
1039
|
], Snippets.prototype, "listSparqlConstructTriples", null);
|
|
@@ -927,6 +1043,9 @@ __decorate([
|
|
|
927
1043
|
__decorate([
|
|
928
1044
|
Memoize()
|
|
929
1045
|
], Snippets.prototype, "literalFactory", null);
|
|
1046
|
+
__decorate([
|
|
1047
|
+
Memoize()
|
|
1048
|
+
], Snippets.prototype, "literalFromRdfResourceValues", null);
|
|
930
1049
|
__decorate([
|
|
931
1050
|
Memoize()
|
|
932
1051
|
], Snippets.prototype, "literalSchemaSparqlPatterns", null);
|
|
@@ -936,6 +1055,9 @@ __decorate([
|
|
|
936
1055
|
__decorate([
|
|
937
1056
|
Memoize()
|
|
938
1057
|
], Snippets.prototype, "maybeEquals", null);
|
|
1058
|
+
__decorate([
|
|
1059
|
+
Memoize()
|
|
1060
|
+
], Snippets.prototype, "maybeFromRdfResourceValues", null);
|
|
939
1061
|
__decorate([
|
|
940
1062
|
Memoize()
|
|
941
1063
|
], Snippets.prototype, "maybeSparqlConstructTriples", null);
|
|
@@ -945,6 +1067,12 @@ __decorate([
|
|
|
945
1067
|
__decorate([
|
|
946
1068
|
Memoize()
|
|
947
1069
|
], Snippets.prototype, "monkeyPatchObject", null);
|
|
1070
|
+
__decorate([
|
|
1071
|
+
Memoize()
|
|
1072
|
+
], Snippets.prototype, "mutableListFromRdfResourceValues", null);
|
|
1073
|
+
__decorate([
|
|
1074
|
+
Memoize()
|
|
1075
|
+
], Snippets.prototype, "mutableSetFromRdfResourceValues", null);
|
|
948
1076
|
__decorate([
|
|
949
1077
|
Memoize()
|
|
950
1078
|
], Snippets.prototype, "normalizeSparqlWherePatterns", null);
|
|
@@ -963,6 +1091,9 @@ __decorate([
|
|
|
963
1091
|
__decorate([
|
|
964
1092
|
Memoize()
|
|
965
1093
|
], Snippets.prototype, "sequenceRecord", null);
|
|
1094
|
+
__decorate([
|
|
1095
|
+
Memoize()
|
|
1096
|
+
], Snippets.prototype, "setFromRdfResourceValues", null);
|
|
966
1097
|
__decorate([
|
|
967
1098
|
Memoize()
|
|
968
1099
|
], Snippets.prototype, "setSparqlConstructTriples", null);
|
|
@@ -993,12 +1124,21 @@ __decorate([
|
|
|
993
1124
|
__decorate([
|
|
994
1125
|
Memoize()
|
|
995
1126
|
], Snippets.prototype, "strictEquals", null);
|
|
1127
|
+
__decorate([
|
|
1128
|
+
Memoize()
|
|
1129
|
+
], Snippets.prototype, "stringFromRdfResourceValues", null);
|
|
996
1130
|
__decorate([
|
|
997
1131
|
Memoize()
|
|
998
1132
|
], Snippets.prototype, "stringSparqlWherePatterns", null);
|
|
999
1133
|
__decorate([
|
|
1000
1134
|
Memoize()
|
|
1001
1135
|
], Snippets.prototype, "termFilterSparqlPatterns", null);
|
|
1136
|
+
__decorate([
|
|
1137
|
+
Memoize()
|
|
1138
|
+
], Snippets.prototype, "termFromRdfResourceValues", null);
|
|
1139
|
+
__decorate([
|
|
1140
|
+
Memoize()
|
|
1141
|
+
], Snippets.prototype, "termLikeFromRdfResourceValues", null);
|
|
1002
1142
|
__decorate([
|
|
1003
1143
|
Memoize()
|
|
1004
1144
|
], Snippets.prototype, "termSchemaSparqlPatterns", null);
|
|
@@ -6,14 +6,17 @@ export declare class StringType extends AbstractPrimitiveType<string> {
|
|
|
6
6
|
readonly filterType: Code;
|
|
7
7
|
readonly graphqlType: import("./AbstractType.js").AbstractType.GraphqlType;
|
|
8
8
|
readonly hashFunction: Code;
|
|
9
|
+
readonly jsTypes: readonly [{
|
|
10
|
+
readonly typeof: "string";
|
|
11
|
+
}];
|
|
9
12
|
readonly kind = "String";
|
|
10
|
-
readonly typeofs: "string"[];
|
|
11
13
|
readonly valueSparqlWherePatternsFunction: Code;
|
|
12
|
-
get
|
|
14
|
+
get fromRdfResourceValuesFunction(): Code;
|
|
13
15
|
get schemaType(): Code;
|
|
16
|
+
protected get inlineExpression(): Code;
|
|
17
|
+
protected get schemaInitializers(): readonly Code[];
|
|
14
18
|
jsonSchema(_parameters: Parameters<AbstractPrimitiveType<string>["jsonSchema"]>[0]): Code;
|
|
15
|
-
|
|
19
|
+
literalValueExpression(literal: Literal | string): Code;
|
|
16
20
|
toRdfResourceValuesExpression({ variables, }: Parameters<AbstractPrimitiveType<string>["toRdfResourceValuesExpression"]>[0]): Code;
|
|
17
|
-
protected fromRdfResourceValuesExpressionChain({ variables, }: Parameters<AbstractPrimitiveType<string>["fromRdfResourceValuesExpressionChain"]>[0]): ReturnType<AbstractPrimitiveType<string>["fromRdfResourceValuesExpressionChain"]>;
|
|
18
21
|
}
|
|
19
22
|
//# sourceMappingURL=StringType.d.ts.map
|
|
@@ -13,17 +13,31 @@ export class StringType extends AbstractPrimitiveType {
|
|
|
13
13
|
filterType = code `${this.reusables.snippets.StringFilter}`;
|
|
14
14
|
graphqlType = new AbstractPrimitiveType.GraphqlType(code `${this.reusables.imports.GraphQLString}`, this.reusables);
|
|
15
15
|
hashFunction = code `${this.reusables.snippets.hashString}`;
|
|
16
|
+
jsTypes = [
|
|
17
|
+
{
|
|
18
|
+
typeof: "string",
|
|
19
|
+
},
|
|
20
|
+
];
|
|
16
21
|
kind = "String";
|
|
17
|
-
typeofs = ["string"];
|
|
18
22
|
valueSparqlWherePatternsFunction = code `${this.reusables.snippets.stringSparqlWherePatterns}`;
|
|
19
|
-
get
|
|
23
|
+
get fromRdfResourceValuesFunction() {
|
|
24
|
+
return code `${this.reusables.snippets.stringFromRdfResourceValues}<${this.expression}>`;
|
|
25
|
+
}
|
|
26
|
+
get schemaType() {
|
|
27
|
+
return code `${this.reusables.snippets.StringSchema}<${this.expression}>`;
|
|
28
|
+
}
|
|
29
|
+
get inlineExpression() {
|
|
20
30
|
if (this.primitiveIn.length > 0) {
|
|
21
31
|
return code `${this.primitiveIn.map((value) => `"${value}"`).join(" | ")}`;
|
|
22
32
|
}
|
|
23
33
|
return code `string`;
|
|
24
34
|
}
|
|
25
|
-
get
|
|
26
|
-
|
|
35
|
+
get schemaInitializers() {
|
|
36
|
+
let initializers = super.schemaInitializers;
|
|
37
|
+
if (this.languageIn.length > 0) {
|
|
38
|
+
initializers = initializers.concat(code `languageIn: ${arrayOf(...this.languageIn)}`);
|
|
39
|
+
}
|
|
40
|
+
return initializers;
|
|
27
41
|
}
|
|
28
42
|
jsonSchema(_parameters) {
|
|
29
43
|
switch (this.primitiveIn.length) {
|
|
@@ -35,23 +49,20 @@ export class StringType extends AbstractPrimitiveType {
|
|
|
35
49
|
return code `${this.reusables.imports.z}.enum(${arrayOf(...this.primitiveIn)})`;
|
|
36
50
|
}
|
|
37
51
|
}
|
|
38
|
-
|
|
52
|
+
literalValueExpression(literal) {
|
|
39
53
|
return code `${literalOf(typeof literal === "string" ? literal : literal.value)}`;
|
|
40
54
|
}
|
|
41
55
|
toRdfResourceValuesExpression({ variables, }) {
|
|
42
56
|
return code `[${this.reusables.snippets.literalFactory}.string(${variables.value}${!this.datatype.equals(xsd.string) ? `, ${this.rdfjsTermExpression(this.datatype)}` : ""})]`;
|
|
43
57
|
}
|
|
44
|
-
fromRdfResourceValuesExpressionChain({ variables, }) {
|
|
45
|
-
return {
|
|
46
|
-
...super.fromRdfResourceValuesExpressionChain({ variables }),
|
|
47
|
-
valueTo: code `chain(values => values.chainMap(value => value.toString(${this.primitiveIn.length > 0 ? `${JSON.stringify(this.primitiveIn)} as const` : ""})))`,
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
58
|
}
|
|
51
59
|
__decorate([
|
|
52
60
|
Memoize()
|
|
53
|
-
], StringType.prototype, "
|
|
61
|
+
], StringType.prototype, "fromRdfResourceValuesFunction", null);
|
|
54
62
|
__decorate([
|
|
55
63
|
Memoize()
|
|
56
64
|
], StringType.prototype, "schemaType", null);
|
|
65
|
+
__decorate([
|
|
66
|
+
Memoize()
|
|
67
|
+
], StringType.prototype, "inlineExpression", null);
|
|
57
68
|
//# sourceMappingURL=StringType.js.map
|