@shaclmate/compiler 4.0.50 → 4.0.52
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/Compiler.d.ts +14 -0
- package/dist/Compiler.js +18 -0
- package/dist/Eithers.d.ts +14 -0
- package/dist/Eithers.js +67 -0
- package/dist/ShapesGraphToAstTransformer.d.ts +18 -0
- package/dist/ShapesGraphToAstTransformer.js +50 -0
- package/dist/_ShapesGraphToAstTransformer/ShapeStack.d.ts +15 -0
- package/dist/_ShapesGraphToAstTransformer/ShapeStack.js +51 -0
- package/dist/_ShapesGraphToAstTransformer/defaultNodeShapeNodeKinds.d.ts +3 -0
- package/dist/_ShapesGraphToAstTransformer/defaultNodeShapeNodeKinds.js +5 -0
- package/dist/_ShapesGraphToAstTransformer/shapeAstTypeName.d.ts +4 -0
- package/dist/_ShapesGraphToAstTransformer/shapeAstTypeName.js +24 -0
- package/dist/_ShapesGraphToAstTransformer/shapeNodeKinds.d.ts +9 -0
- package/dist/_ShapesGraphToAstTransformer/shapeNodeKinds.js +150 -0
- package/dist/_ShapesGraphToAstTransformer/shapeOntology.d.ts +5 -0
- package/dist/_ShapesGraphToAstTransformer/shapeOntology.js +26 -0
- package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstStructTypeField.d.ts +17 -0
- package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstStructTypeField.js +285 -0
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.d.ts +10 -0
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.js +92 -0
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.d.ts +11 -0
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.js +149 -0
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstStructType.d.ts +7 -0
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstStructType.js +171 -0
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstTermType.d.ts +12 -0
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstTermType.js +110 -0
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.d.ts +11 -0
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.js +46 -0
- package/dist/ast/AbstractCollectionType.d.ts +30 -0
- package/dist/ast/AbstractCollectionType.js +33 -0
- package/dist/ast/AbstractCompoundType.d.ts +45 -0
- package/dist/ast/AbstractCompoundType.js +81 -0
- package/dist/ast/AbstractContainerType.d.ts +44 -0
- package/dist/ast/AbstractContainerType.js +63 -0
- package/dist/ast/AbstractLazyType.d.ts +117 -0
- package/dist/ast/AbstractLazyType.js +40 -0
- package/dist/ast/AbstractTermType.d.ts +33 -0
- package/dist/ast/AbstractTermType.js +47 -0
- package/dist/ast/AbstractType.d.ts +55 -0
- package/dist/ast/AbstractType.js +55 -0
- package/dist/ast/Ast.d.ts +6 -0
- package/dist/ast/Ast.js +2 -0
- package/dist/ast/BlankNodeType.d.ts +11 -0
- package/dist/ast/BlankNodeType.js +17 -0
- package/dist/ast/DefaultValueType.d.ts +35 -0
- package/dist/ast/DefaultValueType.js +50 -0
- package/dist/ast/IdentifierType.d.ts +12 -0
- package/dist/ast/IdentifierType.js +20 -0
- package/dist/ast/IntersectionType.d.ts +14 -0
- package/dist/ast/IntersectionType.js +17 -0
- package/dist/ast/IriType.d.ts +10 -0
- package/dist/ast/IriType.js +10 -0
- 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 +44 -0
- package/dist/ast/ListType.js +56 -0
- package/dist/ast/LiteralType.d.ts +40 -0
- package/dist/ast/LiteralType.js +59 -0
- package/dist/ast/OptionType.d.ts +13 -0
- package/dist/ast/OptionType.js +21 -0
- package/dist/ast/SetType.d.ts +31 -0
- package/dist/ast/SetType.js +42 -0
- package/dist/ast/StructCompoundType.d.ts +12 -0
- package/dist/ast/StructCompoundType.js +87 -0
- package/dist/ast/StructIntersectionType.d.ts +4 -0
- package/dist/ast/StructIntersectionType.js +2 -0
- package/dist/ast/StructType.d.ts +178 -0
- package/dist/ast/StructType.js +314 -0
- package/dist/ast/StructUnionType.d.ts +4 -0
- package/dist/ast/StructUnionType.js +2 -0
- package/dist/ast/TermType.d.ts +14 -0
- package/dist/ast/TermType.js +16 -0
- package/dist/ast/Type.d.ts +20 -0
- package/dist/ast/Type.js +42 -0
- package/dist/ast/UnionType.d.ts +30 -0
- package/dist/ast/UnionType.js +27 -0
- package/dist/ast/equals.d.ts +12 -0
- package/dist/ast/equals.js +65 -0
- package/dist/ast/index.d.ts +21 -0
- package/dist/ast/index.js +21 -0
- package/dist/generators/AstJsonGenerator.d.ts +6 -0
- package/dist/generators/AstJsonGenerator.js +15 -0
- package/dist/generators/Cx2Generator.d.ts +10 -0
- package/dist/generators/Cx2Generator.js +140 -0
- package/dist/generators/Generator.d.ts +5 -0
- package/dist/generators/Generator.js +2 -0
- package/dist/generators/LabeledPropertyGraph.d.ts +42 -0
- package/dist/generators/LabeledPropertyGraph.js +2 -0
- package/dist/generators/index.d.ts +6 -0
- package/dist/generators/index.js +6 -0
- package/dist/generators/transformAstToLabeledPropertyGraph.d.ts +4 -0
- package/dist/generators/transformAstToLabeledPropertyGraph.js +78 -0
- package/dist/generators/ts/AbstractCollectionType.d.ts +37 -0
- package/dist/generators/ts/AbstractCollectionType.js +88 -0
- package/dist/generators/ts/AbstractContainerType.d.ts +53 -0
- package/dist/generators/ts/AbstractContainerType.js +97 -0
- package/dist/generators/ts/AbstractDateType.d.ts +23 -0
- package/dist/generators/ts/AbstractDateType.js +37 -0
- package/dist/generators/ts/AbstractIdentifierType.d.ts +21 -0
- package/dist/generators/ts/AbstractIdentifierType.js +25 -0
- package/dist/generators/ts/AbstractLazyType.d.ts +67 -0
- package/dist/generators/ts/AbstractLazyType.js +154 -0
- package/dist/generators/ts/AbstractLiteralType.d.ts +26 -0
- package/dist/generators/ts/AbstractLiteralType.js +15 -0
- package/dist/generators/ts/AbstractNumericType.d.ts +21 -0
- package/dist/generators/ts/AbstractNumericType.js +65 -0
- package/dist/generators/ts/AbstractObjectSetType.d.ts +36 -0
- package/dist/generators/ts/AbstractObjectSetType.js +44 -0
- package/dist/generators/ts/AbstractPrimitiveType.d.ts +32 -0
- package/dist/generators/ts/AbstractPrimitiveType.js +51 -0
- package/dist/generators/ts/AbstractTermType.d.ts +50 -0
- package/dist/generators/ts/AbstractTermType.js +102 -0
- package/dist/generators/ts/AbstractType.d.ts +345 -0
- package/dist/generators/ts/AbstractType.js +135 -0
- package/dist/generators/ts/BigDecimalType.d.ts +28 -0
- package/dist/generators/ts/BigDecimalType.js +58 -0
- package/dist/generators/ts/BigIntType.d.ts +17 -0
- package/dist/generators/ts/BigIntType.js +56 -0
- package/dist/generators/ts/BlankNodeType.d.ts +22 -0
- package/dist/generators/ts/BlankNodeType.js +67 -0
- package/dist/generators/ts/BooleanType.d.ts +21 -0
- package/dist/generators/ts/BooleanType.js +53 -0
- package/dist/generators/ts/DateTimeType.d.ts +13 -0
- package/dist/generators/ts/DateTimeType.js +31 -0
- package/dist/generators/ts/DateType.d.ts +14 -0
- package/dist/generators/ts/DateType.js +32 -0
- package/dist/generators/ts/DefaultValueType.d.ts +83 -0
- package/dist/generators/ts/DefaultValueType.js +143 -0
- package/dist/generators/ts/FloatType.d.ts +13 -0
- package/dist/generators/ts/FloatType.js +30 -0
- package/dist/generators/ts/GraphqlSchema.d.ts +22 -0
- package/dist/generators/ts/GraphqlSchema.js +87 -0
- package/dist/generators/ts/IdentifierType.d.ts +23 -0
- package/dist/generators/ts/IdentifierType.js +83 -0
- package/dist/generators/ts/Imports.d.ts +40 -0
- package/dist/generators/ts/Imports.js +41 -0
- package/dist/generators/ts/IntType.d.ts +13 -0
- package/dist/generators/ts/IntType.js +30 -0
- package/dist/generators/ts/IriType.d.ts +23 -0
- package/dist/generators/ts/IriType.js +112 -0
- package/dist/generators/ts/LazyOptionType.d.ts +36 -0
- 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 +49 -0
- package/dist/generators/ts/ListType.js +161 -0
- package/dist/generators/ts/LiteralType.d.ts +27 -0
- package/dist/generators/ts/LiteralType.js +71 -0
- package/dist/generators/ts/ObjectSetType.d.ts +6 -0
- package/dist/generators/ts/ObjectSetType.js +36 -0
- package/dist/generators/ts/ObjectType.d.ts +105 -0
- package/dist/generators/ts/ObjectType.js +503 -0
- package/dist/generators/ts/ObjectUnionType.d.ts +20 -0
- package/dist/generators/ts/ObjectUnionType.js +223 -0
- package/dist/generators/ts/OptionType.d.ts +39 -0
- package/dist/generators/ts/OptionType.js +157 -0
- package/dist/generators/ts/RdfjsDatasetObjectSetType.d.ts +6 -0
- package/dist/generators/ts/RdfjsDatasetObjectSetType.js +323 -0
- package/dist/generators/ts/Reusables.d.ts +13 -0
- package/dist/generators/ts/Reusables.js +15 -0
- package/dist/generators/ts/SetType.d.ts +32 -0
- package/dist/generators/ts/SetType.js +132 -0
- package/dist/generators/ts/Snippet.d.ts +3 -0
- package/dist/generators/ts/Snippet.js +2 -0
- package/dist/generators/ts/SnippetFactory.d.ts +16 -0
- package/dist/generators/ts/SnippetFactory.js +2 -0
- package/dist/generators/ts/Snippets.d.ts +180 -0
- package/dist/generators/ts/Snippets.js +1184 -0
- package/dist/generators/ts/SparqlObjectSetType.d.ts +6 -0
- package/dist/generators/ts/SparqlObjectSetType.js +241 -0
- package/dist/generators/ts/StringType.d.ts +22 -0
- package/dist/generators/ts/StringType.js +68 -0
- package/dist/generators/ts/TermType.d.ts +31 -0
- package/dist/generators/ts/TermType.js +143 -0
- package/dist/generators/ts/TsFeature.d.ts +3 -0
- package/dist/generators/ts/TsFeature.js +28 -0
- package/dist/generators/ts/TsGenerator.d.ts +30 -0
- package/dist/generators/ts/TsGenerator.js +292 -0
- package/dist/generators/ts/Type.d.ts +25 -0
- package/dist/generators/ts/Type.js +2 -0
- package/dist/generators/ts/TypeFactory.d.ts +43 -0
- package/dist/generators/ts/TypeFactory.js +540 -0
- package/dist/generators/ts/Typeof.d.ts +2 -0
- package/dist/generators/ts/Typeof.js +2 -0
- package/dist/generators/ts/UnionType.d.ts +126 -0
- package/dist/generators/ts/UnionType.js +850 -0
- package/dist/generators/ts/ZodGenerator.d.ts +11 -0
- package/dist/generators/ts/ZodGenerator.js +60 -0
- package/dist/generators/ts/_ObjectType/AbstractProperty.d.ts +217 -0
- package/dist/generators/ts/_ObjectType/AbstractProperty.js +37 -0
- package/dist/generators/ts/_ObjectType/DiscriminantProperty.d.ts +45 -0
- package/dist/generators/ts/_ObjectType/DiscriminantProperty.js +104 -0
- package/dist/generators/ts/_ObjectType/IdentifierProperty.d.ts +43 -0
- package/dist/generators/ts/_ObjectType/IdentifierProperty.js +205 -0
- 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 +19 -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_filterTypeExpression.js +20 -0
- package/dist/generators/ts/_ObjectType/ObjectType_focusSparqlConstructTriplesFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_focusSparqlConstructTriplesFunctionExpression.js +46 -0
- package/dist/generators/ts/_ObjectType/ObjectType_focusSparqlWherePatternsFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_focusSparqlWherePatternsFunctionExpression.js +79 -0
- 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 +38 -0
- package/dist/generators/ts/_ObjectType/ObjectType_graphqlTypeExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_graphqlTypeExpression.js +26 -0
- 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.d.ts +5 -0
- package/dist/generators/ts/_ObjectType/ObjectType_isTypeFunctionDeclaration.js +20 -0
- package/dist/generators/ts/_ObjectType/ObjectType_jsonParseFunctionDeclaration.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_jsonParseFunctionDeclaration.js +10 -0
- package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaExpression.js +22 -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 +11 -0
- package/dist/generators/ts/_ObjectType/ObjectType_objectSetMethodNames.js +23 -0
- package/dist/generators/ts/_ObjectType/ObjectType_schemaExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_schemaExpression.js +21 -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 +10 -0
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunctionDeclaration.js +35 -0
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryStringFunctionDeclaration.d.ts +10 -0
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryStringFunctionDeclaration.js +8 -0
- 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_toRdfResourceFunctionExpression.js +33 -0
- 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_valueSparqlConstructTriplesFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlConstructTriplesFunctionExpression.js +8 -0
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunctionExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunctionExpression.js +10 -0
- package/dist/generators/ts/_ObjectType/Property.d.ts +6 -0
- package/dist/generators/ts/_ObjectType/Property.js +2 -0
- package/dist/generators/ts/_ObjectType/ShaclProperty.d.ts +53 -0
- package/dist/generators/ts/_ObjectType/ShaclProperty.js +284 -0
- package/dist/generators/ts/_snippets/snippets_BlankNodeFilter.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_BlankNodeFilter.js +5 -0
- package/dist/generators/ts/_snippets/snippets_BlankNodeSchema.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_BlankNodeSchema.js +6 -0
- package/dist/generators/ts/_snippets/snippets_BooleanFilter.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_BooleanFilter.js +6 -0
- package/dist/generators/ts/_snippets/snippets_BooleanSchema.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_BooleanSchema.js +8 -0
- package/dist/generators/ts/_snippets/snippets_CollectionFilter.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_CollectionFilter.js +7 -0
- package/dist/generators/ts/_snippets/snippets_CollectionSchema.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_CollectionSchema.js +8 -0
- package/dist/generators/ts/_snippets/snippets_ConversionFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_ConversionFunction.js +4 -0
- package/dist/generators/ts/_snippets/snippets_DateFilter.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_DateFilter.js +10 -0
- package/dist/generators/ts/_snippets/snippets_DateSchema.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_DateSchema.js +8 -0
- package/dist/generators/ts/_snippets/snippets_DefaultValueSchema.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_DefaultValueSchema.js +8 -0
- package/dist/generators/ts/_snippets/snippets_EqualsFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_EqualsFunction.js +4 -0
- package/dist/generators/ts/_snippets/snippets_EqualsResult.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_EqualsResult.js +63 -0
- package/dist/generators/ts/_snippets/snippets_FocusSparqlConstructTriplesFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_FocusSparqlConstructTriplesFunction.js +10 -0
- package/dist/generators/ts/_snippets/snippets_FocusSparqlWherePatternsFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_FocusSparqlWherePatternsFunction.js +11 -0
- package/dist/generators/ts/_snippets/snippets_FromRdfResourceFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_FromRdfResourceFunction.js +13 -0
- package/dist/generators/ts/_snippets/snippets_FromRdfResourceValuesFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_FromRdfResourceValuesFunction.js +16 -0
- package/dist/generators/ts/_snippets/snippets_HashFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_HashFunction.js +4 -0
- package/dist/generators/ts/_snippets/snippets_Hasher.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_Hasher.js +3 -0
- package/dist/generators/ts/_snippets/snippets_IdentifierFilter.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_IdentifierFilter.js +7 -0
- package/dist/generators/ts/_snippets/snippets_IdentifierSchema.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_IdentifierSchema.js +7 -0
- package/dist/generators/ts/_snippets/snippets_IdentifierSet.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_IdentifierSet.js +27 -0
- package/dist/generators/ts/_snippets/snippets_IriFilter.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_IriFilter.js +6 -0
- package/dist/generators/ts/_snippets/snippets_IriSchema.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_IriSchema.js +8 -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.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_LiteralFilter.js +4 -0
- package/dist/generators/ts/_snippets/snippets_LiteralSchema.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_LiteralSchema.js +9 -0
- package/dist/generators/ts/_snippets/snippets_MaybeFilter.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_MaybeFilter.js +4 -0
- package/dist/generators/ts/_snippets/snippets_MaybeSchema.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_MaybeSchema.js +7 -0
- package/dist/generators/ts/_snippets/snippets_NumericFilter.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_NumericFilter.js +10 -0
- package/dist/generators/ts/_snippets/snippets_NumericSchema.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_NumericSchema.js +8 -0
- package/dist/generators/ts/_snippets/snippets_PropertyPath.d.ts +6 -0
- package/dist/generators/ts/_snippets/snippets_PropertyPath.js +46 -0
- package/dist/generators/ts/_snippets/snippets_RdfVocabularies.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_RdfVocabularies.js +40 -0
- package/dist/generators/ts/_snippets/snippets_ShaclPropertySchema.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_ShaclPropertySchema.js +8 -0
- package/dist/generators/ts/_snippets/snippets_SparqlFilterPattern.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_SparqlFilterPattern.js +3 -0
- package/dist/generators/ts/_snippets/snippets_SparqlPattern.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_SparqlPattern.js +3 -0
- package/dist/generators/ts/_snippets/snippets_SparqlPattern_isSolutionGenerating.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_SparqlPattern_isSolutionGenerating.js +30 -0
- package/dist/generators/ts/_snippets/snippets_StringFilter.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_StringFilter.js +8 -0
- package/dist/generators/ts/_snippets/snippets_StringSchema.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_StringSchema.js +9 -0
- package/dist/generators/ts/_snippets/snippets_TermFilter.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_TermFilter.js +9 -0
- package/dist/generators/ts/_snippets/snippets_TermSchema.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_TermSchema.js +9 -0
- package/dist/generators/ts/_snippets/snippets_ToRdfResourceFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_ToRdfResourceFunction.js +11 -0
- package/dist/generators/ts/_snippets/snippets_ToRdfResourceValuesFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_ToRdfResourceValuesFunction.js +16 -0
- package/dist/generators/ts/_snippets/snippets_UnwrapR.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_UnwrapR.js +4 -0
- package/dist/generators/ts/_snippets/snippets_ValidationFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_ValidationFunction.js +4 -0
- package/dist/generators/ts/_snippets/snippets_ValueSparqlConstructTriplesFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_ValueSparqlConstructTriplesFunction.js +11 -0
- package/dist/generators/ts/_snippets/snippets_ValueSparqlWherePatternsFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_ValueSparqlWherePatternsFunction.js +13 -0
- package/dist/generators/ts/_snippets/snippets__FromRdfResourceFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets__FromRdfResourceFunction.js +13 -0
- package/dist/generators/ts/_snippets/snippets__ToRdfResourceFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets__ToRdfResourceFunction.js +12 -0
- package/dist/generators/ts/_snippets/snippets_arrayEquals.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_arrayEquals.js +68 -0
- package/dist/generators/ts/_snippets/snippets_arrayIntersection.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_arrayIntersection.js +29 -0
- 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_bigDecimalLiteral.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_bigDecimalLiteral.js +9 -0
- package/dist/generators/ts/_snippets/snippets_bigDecimalSparqlWherePatterns.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_bigDecimalSparqlWherePatterns.js +83 -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_blankNodeSparqlWherePatterns.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_blankNodeSparqlWherePatterns.js +5 -0
- package/dist/generators/ts/_snippets/snippets_booleanEquals.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_booleanEquals.js +16 -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_booleanSparqlWherePatterns.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_booleanSparqlWherePatterns.js +15 -0
- package/dist/generators/ts/_snippets/snippets_compactRecord.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_compactRecord.js +15 -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_convertToBlankNode.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_convertToBlankNode.js +11 -0
- package/dist/generators/ts/_snippets/snippets_convertToBlankNodeIdentifierProperty.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_convertToBlankNodeIdentifierProperty.js +17 -0
- package/dist/generators/ts/_snippets/snippets_convertToIdentifier.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_convertToIdentifier.js +13 -0
- package/dist/generators/ts/_snippets/snippets_convertToIdentifierProperty.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_convertToIdentifierProperty.js +21 -0
- package/dist/generators/ts/_snippets/snippets_convertToIri.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_convertToIri.js +11 -0
- package/dist/generators/ts/_snippets/snippets_convertToIriIdentifierProperty.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_convertToIriIdentifierProperty.js +17 -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_convertToLiteral.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_convertToLiteral.js +13 -0
- package/dist/generators/ts/_snippets/snippets_convertToMaybe.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_convertToMaybe.js +19 -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_convertWithDefaultValue.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_convertWithDefaultValue.js +11 -0
- package/dist/generators/ts/_snippets/snippets_dateEquals.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_dateEquals.js +13 -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_dateSparqlWherePatterns.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_dateSparqlWherePatterns.js +71 -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_decodeBigDecimalLiteral.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_decodeBigDecimalLiteral.js +9 -0
- package/dist/generators/ts/_snippets/snippets_deduplicateSparqlPatterns.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_deduplicateSparqlPatterns.js +19 -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.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_defaultValueSparqlWherePatterns.js +9 -0
- package/dist/generators/ts/_snippets/snippets_ensureRdfResourceType.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_ensureRdfResourceType.js +16 -0
- package/dist/generators/ts/_snippets/snippets_filterArray.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_filterArray.js +22 -0
- package/dist/generators/ts/_snippets/snippets_filterBigDecimal.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_filterBigDecimal.js +26 -0
- package/dist/generators/ts/_snippets/snippets_filterBlankNode.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_filterBlankNode.js +6 -0
- package/dist/generators/ts/_snippets/snippets_filterBoolean.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_filterBoolean.js +10 -0
- package/dist/generators/ts/_snippets/snippets_filterDate.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_filterDate.js +26 -0
- package/dist/generators/ts/_snippets/snippets_filterIdentifier.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_filterIdentifier.js +14 -0
- package/dist/generators/ts/_snippets/snippets_filterIri.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_filterIri.js +10 -0
- package/dist/generators/ts/_snippets/snippets_filterLiteral.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_filterLiteral.js +6 -0
- package/dist/generators/ts/_snippets/snippets_filterMaybe.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_filterMaybe.js +22 -0
- package/dist/generators/ts/_snippets/snippets_filterNumeric.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_filterNumeric.js +26 -0
- package/dist/generators/ts/_snippets/snippets_filterString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_filterString.js +18 -0
- package/dist/generators/ts/_snippets/snippets_filterTerm.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_filterTerm.js +22 -0
- 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_hashArray.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_hashArray.js +11 -0
- package/dist/generators/ts/_snippets/snippets_hashBigDecimal.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_hashBigDecimal.js +7 -0
- package/dist/generators/ts/_snippets/snippets_hashBoolean.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_hashBoolean.js +7 -0
- package/dist/generators/ts/_snippets/snippets_hashDate.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_hashDate.js +7 -0
- package/dist/generators/ts/_snippets/snippets_hashDateTime.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_hashDateTime.js +7 -0
- package/dist/generators/ts/_snippets/snippets_hashMaybe.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_hashMaybe.js +11 -0
- package/dist/generators/ts/_snippets/snippets_hashNumeric.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_hashNumeric.js +7 -0
- package/dist/generators/ts/_snippets/snippets_hashString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_hashString.js +7 -0
- package/dist/generators/ts/_snippets/snippets_hashTerm.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_hashTerm.js +12 -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_identifierSparqlWherePatterns.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_identifierSparqlWherePatterns.js +30 -0
- package/dist/generators/ts/_snippets/snippets_identityConversionFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_identityConversionFunction.js +6 -0
- package/dist/generators/ts/_snippets/snippets_identityValidationFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_identityValidationFunction.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_iriSparqlWherePatterns.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_iriSparqlWherePatterns.js +13 -0
- package/dist/generators/ts/_snippets/snippets_liftSparqlPatterns.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_liftSparqlPatterns.js +15 -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_listSparqlConstructTriples.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_listSparqlConstructTriples.js +37 -0
- package/dist/generators/ts/_snippets/snippets_listSparqlWherePatterns.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_listSparqlWherePatterns.js +116 -0
- package/dist/generators/ts/_snippets/snippets_literalFactory.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_literalFactory.js +3 -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_literalSchemaSparqlPatterns.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_literalSchemaSparqlPatterns.js +39 -0
- package/dist/generators/ts/_snippets/snippets_literalSparqlWherePatterns.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_literalSparqlWherePatterns.js +5 -0
- package/dist/generators/ts/_snippets/snippets_maybeEquals.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_maybeEquals.js +31 -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_maybeSparqlConstructTriples.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_maybeSparqlConstructTriples.js +6 -0
- package/dist/generators/ts/_snippets/snippets_maybeSparqlWherePatterns.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_maybeSparqlWherePatterns.js +21 -0
- package/dist/generators/ts/_snippets/snippets_monkeyPatchObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_monkeyPatchObject.js +16 -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_normalizeSparqlWherePatterns.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_normalizeSparqlWherePatterns.js +92 -0
- package/dist/generators/ts/_snippets/snippets_numericSparqlWherePatterns.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_numericSparqlWherePatterns.js +62 -0
- package/dist/generators/ts/_snippets/snippets_parseBlankNode.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_parseBlankNode.js +9 -0
- package/dist/generators/ts/_snippets/snippets_parseIdentifier.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_parseIdentifier.js +4 -0
- package/dist/generators/ts/_snippets/snippets_parseIri.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_parseIri.js +9 -0
- package/dist/generators/ts/_snippets/snippets_propertyEquals.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_propertyEquals.js +11 -0
- package/dist/generators/ts/_snippets/snippets_rdfResourceIdentifierValues.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_rdfResourceIdentifierValues.js +12 -0
- package/dist/generators/ts/_snippets/snippets_sequenceRecord.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_sequenceRecord.js +18 -0
- 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_setSparqlConstructTriples.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_setSparqlConstructTriples.js +6 -0
- package/dist/generators/ts/_snippets/snippets_setSparqlWherePatterns.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_setSparqlWherePatterns.js +17 -0
- package/dist/generators/ts/_snippets/snippets_shaclPropertyFromRdf.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_shaclPropertyFromRdf.js +17 -0
- package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlConstructTriples.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlConstructTriples.js +90 -0
- package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlWherePatterns.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlWherePatterns.js +86 -0
- package/dist/generators/ts/_snippets/snippets_sortSparqlPatterns.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_sortSparqlPatterns.js +24 -0
- package/dist/generators/ts/_snippets/snippets_sparqlInstancesOfPattern.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_sparqlInstancesOfPattern.js +29 -0
- package/dist/generators/ts/_snippets/snippets_sparqlPropertyPath.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_sparqlPropertyPath.js +59 -0
- package/dist/generators/ts/_snippets/snippets_sparqlValueInPattern.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_sparqlValueInPattern.js +23 -0
- package/dist/generators/ts/_snippets/snippets_strictEquals.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_strictEquals.js +12 -0
- 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_stringSparqlWherePatterns.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_stringSparqlWherePatterns.js +39 -0
- package/dist/generators/ts/_snippets/snippets_termFilterSparqlPatterns.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_termFilterSparqlPatterns.js +93 -0
- 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_termSchemaSparqlPatterns.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_termSchemaSparqlPatterns.js +24 -0
- package/dist/generators/ts/_snippets/snippets_termSparqlWherePatterns.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_termSparqlWherePatterns.js +5 -0
- package/dist/generators/ts/_snippets/snippets_toIsoDateString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_toIsoDateString.js +6 -0
- package/dist/generators/ts/_snippets/snippets_validateArray.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_validateArray.js +13 -0
- package/dist/generators/ts/_snippets/snippets_validateMaybe.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_validateMaybe.js +7 -0
- package/dist/generators/ts/_snippets/snippets_wrap_FromRdfResourceFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_wrap_FromRdfResourceFunction.js +9 -0
- package/dist/generators/ts/_snippets/snippets_wrap_ToRdfResourceFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_wrap_ToRdfResourceFunction.js +14 -0
- package/dist/generators/ts/codeEquals.d.ts +3 -0
- package/dist/generators/ts/codeEquals.js +7 -0
- package/dist/generators/ts/rdfjsTermExpression.d.ts +11 -0
- package/dist/generators/ts/rdfjsTermExpression.js +72 -0
- package/dist/generators/ts/singleEntryRecord.d.ts +2 -0
- package/dist/generators/ts/singleEntryRecord.js +6 -0
- package/dist/generators/ts/ts-poet-wrapper.d.ts +5 -0
- package/dist/generators/ts/ts-poet-wrapper.js +13 -0
- package/dist/generators/ts/tsComment.d.ts +5 -0
- package/dist/generators/ts/tsComment.js +11 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/input/ShapesGraph.d.ts +44 -0
- package/dist/input/ShapesGraph.js +66 -0
- package/dist/input/index.d.ts +3 -0
- package/dist/input/index.js +3 -0
- package/dist/input/input.shaclmate.d.ts +4567 -0
- package/dist/input/input.shaclmate.js +3595 -0
- package/package.json +600 -600
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { code } from "./ts-poet-wrapper.js";
|
|
2
|
+
export class GraphqlSchema {
|
|
3
|
+
configuration;
|
|
4
|
+
reusables;
|
|
5
|
+
namedObjectTypes;
|
|
6
|
+
namedObjectUnionTypes;
|
|
7
|
+
constructor({ configuration, namedObjectTypes, namedObjectUnionTypes, reusables, }) {
|
|
8
|
+
this.configuration = configuration;
|
|
9
|
+
this.namedObjectTypes = namedObjectTypes;
|
|
10
|
+
this.namedObjectUnionTypes = namedObjectUnionTypes;
|
|
11
|
+
this.reusables = reusables;
|
|
12
|
+
}
|
|
13
|
+
get declaration() {
|
|
14
|
+
return code `\
|
|
15
|
+
export const graphqlSchema = new ${this.reusables.imports.GraphQLSchema}({ query: ${this.graphqlQueryObjectType} });
|
|
16
|
+
`;
|
|
17
|
+
}
|
|
18
|
+
get graphqlQueryObjectType() {
|
|
19
|
+
const syntheticNamePrefix = this.configuration.syntheticNamePrefix;
|
|
20
|
+
return code `new ${this.reusables.imports.GraphQLObjectType}<null, { objectSet: ${syntheticNamePrefix}ObjectSet }>({ name: "Query", fields: ${[
|
|
21
|
+
...this.namedObjectTypes,
|
|
22
|
+
...this.namedObjectUnionTypes,
|
|
23
|
+
].reduce((fields, namedObjectType) => {
|
|
24
|
+
fields[namedObjectType.objectSetMethodNames.object] = {
|
|
25
|
+
args: {
|
|
26
|
+
identifier: {
|
|
27
|
+
type: code `new ${this.reusables.imports.GraphQLNonNull}(${this.reusables.imports.GraphQLID})`,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
resolve: code `\
|
|
31
|
+
async (_source, args: { identifier: string }, { objectSet }): Promise<${namedObjectType.expression}> =>
|
|
32
|
+
(await ${this.reusables.imports.EitherAsync}<Error, ${namedObjectType.expression}>(async ({ liftEither }) =>
|
|
33
|
+
liftEither(await objectSet.${namedObjectType.objectSetMethodNames.object}(await liftEither(${namedObjectType.identifierTypeAlias}.parse(args.identifier))))
|
|
34
|
+
)).unsafeCoerce()`,
|
|
35
|
+
type: namedObjectType.graphqlType.expression,
|
|
36
|
+
};
|
|
37
|
+
fields[namedObjectType.objectSetMethodNames.objectIdentifiers] = {
|
|
38
|
+
args: {
|
|
39
|
+
limit: {
|
|
40
|
+
type: code `${this.reusables.imports.GraphQLInt}`,
|
|
41
|
+
},
|
|
42
|
+
offset: {
|
|
43
|
+
type: code `${this.reusables.imports.GraphQLInt}`,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
resolve: code `\
|
|
47
|
+
async (_source, args: { limit: number | null; offset: number | null; }, { objectSet }): Promise<readonly string[]> =>
|
|
48
|
+
(await objectSet.${namedObjectType.objectSetMethodNames.objectIdentifiers}({ limit: args.limit !== null ? args.limit : undefined, offset: args.offset !== null ? args.offset : undefined })).unsafeCoerce().map(${namedObjectType.identifierTypeAlias}.stringify)`,
|
|
49
|
+
type: code `new ${this.reusables.imports.GraphQLNonNull}(new ${this.reusables.imports.GraphQLList}(${this.reusables.imports.GraphQLString}))`,
|
|
50
|
+
};
|
|
51
|
+
fields[namedObjectType.objectSetMethodNames.objects] = {
|
|
52
|
+
args: {
|
|
53
|
+
identifiers: {
|
|
54
|
+
type: code `new ${this.reusables.imports.GraphQLList}(new ${this.reusables.imports.GraphQLNonNull}(${this.reusables.imports.GraphQLID}))`,
|
|
55
|
+
},
|
|
56
|
+
limit: {
|
|
57
|
+
type: code `${this.reusables.imports.GraphQLInt}`,
|
|
58
|
+
},
|
|
59
|
+
offset: {
|
|
60
|
+
type: code `${this.reusables.imports.GraphQLInt}`,
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
resolve: code `\
|
|
64
|
+
async (_source, args: { identifiers: readonly string[] | null; limit: number | null; offset: number | null; }, { objectSet }): Promise<readonly ${namedObjectType.expression}[]> =>
|
|
65
|
+
(await ${this.reusables.imports.EitherAsync}<Error, readonly ${namedObjectType.expression}[]>(async ({ liftEither }) => {
|
|
66
|
+
let filter: ${namedObjectType.filterType} | undefined;
|
|
67
|
+
if (args.identifiers) {
|
|
68
|
+
const identifiers: ${namedObjectType.identifierTypeAlias}[] = [];
|
|
69
|
+
for (const identifierArg of args.identifiers) {
|
|
70
|
+
identifiers.push(await liftEither(${namedObjectType.identifierTypeAlias}.parse(identifierArg)));
|
|
71
|
+
}
|
|
72
|
+
filter = { ${syntheticNamePrefix}identifier: { in: identifiers } };
|
|
73
|
+
}
|
|
74
|
+
return await liftEither(await objectSet.${namedObjectType.objectSetMethodNames.objects}({ filter, limit: args.limit !== null ? args.limit : undefined, offset: args.offset !== null ? args.offset : undefined }));
|
|
75
|
+
})).unsafeCoerce()`,
|
|
76
|
+
type: code `new ${this.reusables.imports.GraphQLNonNull}(new ${this.reusables.imports.GraphQLList}(${namedObjectType.graphqlType.expression}))`,
|
|
77
|
+
};
|
|
78
|
+
fields[namedObjectType.objectSetMethodNames.objectCount] = {
|
|
79
|
+
resolve: code `\
|
|
80
|
+
async (_source, _args, { objectSet }): Promise<number> => (await objectSet.${namedObjectType.objectSetMethodNames.objectCount}()).unsafeCoerce()`,
|
|
81
|
+
type: code `new ${this.reusables.imports.GraphQLNonNull}(${this.reusables.imports.GraphQLInt})`,
|
|
82
|
+
};
|
|
83
|
+
return fields;
|
|
84
|
+
}, {})} })`;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=GraphqlSchema.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { BlankNode, NamedNode } from "@rdfjs/types";
|
|
2
|
+
import { type IdentifierNodeKind } from "@shaclmate/shacl-ast";
|
|
3
|
+
import { Maybe } from "purify-ts";
|
|
4
|
+
import { AbstractIdentifierType } from "./AbstractIdentifierType.js";
|
|
5
|
+
import { type Code } from "./ts-poet-wrapper.js";
|
|
6
|
+
export declare class IdentifierType extends AbstractIdentifierType<BlankNode | NamedNode> {
|
|
7
|
+
protected readonly inlineExpression: Code;
|
|
8
|
+
readonly conversionFunction: Maybe<AbstractIdentifierType.ConversionFunction>;
|
|
9
|
+
readonly filterFunction: Code;
|
|
10
|
+
readonly filterType: Code;
|
|
11
|
+
readonly fromRdfResourceValuesFunction: Code;
|
|
12
|
+
readonly kind = "Identifier";
|
|
13
|
+
readonly nodeKinds: ReadonlySet<IdentifierNodeKind>;
|
|
14
|
+
readonly parseFunction: Code;
|
|
15
|
+
readonly schemaType: Code;
|
|
16
|
+
readonly valueSparqlWherePatternsFunction: Code;
|
|
17
|
+
constructor(parameters: Omit<ConstructorParameters<typeof AbstractIdentifierType<BlankNode | NamedNode>>[0], "hasValues" | "in_">);
|
|
18
|
+
fromJsonExpression({ variables, }: Parameters<AbstractIdentifierType<BlankNode | NamedNode>["fromJsonExpression"]>[0]): Code;
|
|
19
|
+
jsonSchema({ includeDiscriminantProperty, }: Parameters<AbstractIdentifierType<BlankNode | NamedNode>["jsonSchema"]>[0]): Code;
|
|
20
|
+
jsonType(parameters?: Parameters<AbstractIdentifierType<BlankNode | NamedNode>["jsonType"]>[0]): AbstractIdentifierType.JsonType;
|
|
21
|
+
toJsonExpression({ includeDiscriminantProperty, variables, }: Parameters<AbstractIdentifierType<BlankNode | NamedNode>["toJsonExpression"]>[0]): Code;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=IdentifierType.d.ts.map
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { NodeKind } from "@shaclmate/shacl-ast";
|
|
8
|
+
import { Maybe } from "purify-ts";
|
|
9
|
+
import { Memoize } from "typescript-memoize";
|
|
10
|
+
import { AbstractIdentifierType } from "./AbstractIdentifierType.js";
|
|
11
|
+
import { arrayOf, code } from "./ts-poet-wrapper.js";
|
|
12
|
+
export class IdentifierType extends AbstractIdentifierType {
|
|
13
|
+
inlineExpression = code `(${this.reusables.imports.BlankNode} | ${this.reusables.imports.NamedNode})`;
|
|
14
|
+
conversionFunction = Maybe.of({
|
|
15
|
+
code: code `${this.reusables.snippets.convertToIdentifier}`,
|
|
16
|
+
sourceTypes: [
|
|
17
|
+
{
|
|
18
|
+
expression: code `${this.reusables.imports.BlankNode}`,
|
|
19
|
+
jsType: this.jsTypes[0],
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
expression: code `${this.reusables.imports.NamedNode}`,
|
|
23
|
+
jsType: this.jsTypes[0],
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
// To NamedNode
|
|
27
|
+
expression: code `string`,
|
|
28
|
+
jsType: { typeof: "string" },
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
// To BlankNode
|
|
32
|
+
expression: code `undefined`,
|
|
33
|
+
jsType: { typeof: "undefined" },
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
});
|
|
37
|
+
filterFunction = code `${this.reusables.snippets.filterIdentifier}`;
|
|
38
|
+
filterType = code `${this.reusables.snippets.IdentifierFilter}`;
|
|
39
|
+
fromRdfResourceValuesFunction = code `${this.reusables.snippets.identifierFromRdfResourceValues}`;
|
|
40
|
+
kind = "Identifier";
|
|
41
|
+
nodeKinds = nodeKinds;
|
|
42
|
+
parseFunction = code `${this.reusables.snippets.parseIdentifier};`;
|
|
43
|
+
schemaType = code `${this.reusables.snippets.IdentifierSchema}`;
|
|
44
|
+
valueSparqlWherePatternsFunction = code `${this.reusables.snippets.identifierSparqlWherePatterns}`;
|
|
45
|
+
constructor(parameters) {
|
|
46
|
+
super({
|
|
47
|
+
...parameters,
|
|
48
|
+
hasValues: [],
|
|
49
|
+
in_: [],
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
fromJsonExpression({ variables, }) {
|
|
53
|
+
return code `${this.reusables.imports.Either}.of<Error, ${this.expression}>((${variables.value}["@id"].startsWith("_:") ? ${this.reusables.imports.dataFactory}.blankNode(${variables.value}["@id"].substring(2)) : ${this.reusables.imports.dataFactory}.namedNode(${variables.value}["@id"])))`;
|
|
54
|
+
}
|
|
55
|
+
jsonSchema({ includeDiscriminantProperty, }) {
|
|
56
|
+
const discriminantProperty = includeDiscriminantProperty
|
|
57
|
+
? code `, termType: ${this.reusables.imports.z}.enum(${arrayOf(...this.nodeKinds)})`
|
|
58
|
+
: "";
|
|
59
|
+
return code `${this.reusables.imports.z}.object({ "@id": ${this.reusables.imports.z}.string().min(1)${discriminantProperty} })`;
|
|
60
|
+
}
|
|
61
|
+
jsonType(parameters) {
|
|
62
|
+
const discriminantProperty = parameters?.includeDiscriminantProperty
|
|
63
|
+
? `, readonly termType: "BlankNode" | "NamedNode"`
|
|
64
|
+
: "";
|
|
65
|
+
return new AbstractIdentifierType.JsonType(code `{ readonly "@id": string${discriminantProperty} }`);
|
|
66
|
+
}
|
|
67
|
+
toJsonExpression({ includeDiscriminantProperty, variables, }) {
|
|
68
|
+
const discriminantProperty = includeDiscriminantProperty
|
|
69
|
+
? code `, termType: ${variables.value}.termType as ${[...this.nodeKinds].map((nodeKind) => `"${NodeKind.toTermType(nodeKind)}"`).join(" | ")}`
|
|
70
|
+
: "";
|
|
71
|
+
const valueToBlankNode = code `{ "@id": \`_:\${${variables.value}.value}\`${discriminantProperty} }`;
|
|
72
|
+
const valueToNamedNode = code `{ "@id": ${variables.value}.value${discriminantProperty} }`;
|
|
73
|
+
return code `(${variables.value}.termType === "BlankNode" ? ${valueToBlankNode} : ${valueToNamedNode})`;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
__decorate([
|
|
77
|
+
Memoize()
|
|
78
|
+
], IdentifierType.prototype, "jsonType", null);
|
|
79
|
+
const nodeKinds = new Set([
|
|
80
|
+
"BlankNode",
|
|
81
|
+
"IRI",
|
|
82
|
+
]);
|
|
83
|
+
//# sourceMappingURL=IdentifierType.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare class Imports {
|
|
2
|
+
readonly BigDecimal: import("ts-poet/build/Import.js").Import;
|
|
3
|
+
readonly BlankNode: import("ts-poet/build/Import.js").Import;
|
|
4
|
+
readonly dataFactory: import("ts-poet/build/Import.js").Import;
|
|
5
|
+
readonly DatasetCore: import("ts-poet/build/Import.js").Import;
|
|
6
|
+
readonly datasetFactory: import("ts-poet/build/Import.js").Import;
|
|
7
|
+
readonly Either: import("ts-poet/build/Import.js").Import;
|
|
8
|
+
readonly EitherAsync: import("ts-poet/build/Import.js").Import;
|
|
9
|
+
readonly GraphQLBigInt: import("ts-poet/build/Import.js").Import;
|
|
10
|
+
readonly GraphQLBoolean: import("ts-poet/build/Import.js").Import;
|
|
11
|
+
readonly GraphQLDate: import("ts-poet/build/Import.js").Import;
|
|
12
|
+
readonly GraphQLDateTime: import("ts-poet/build/Import.js").Import;
|
|
13
|
+
readonly GraphQLFloat: import("ts-poet/build/Import.js").Import;
|
|
14
|
+
readonly GraphQLID: import("ts-poet/build/Import.js").Import;
|
|
15
|
+
readonly GraphQLInt: import("ts-poet/build/Import.js").Import;
|
|
16
|
+
readonly GraphQLList: import("ts-poet/build/Import.js").Import;
|
|
17
|
+
readonly GraphQLNonNull: import("ts-poet/build/Import.js").Import;
|
|
18
|
+
readonly GraphQLObjectType: import("ts-poet/build/Import.js").Import;
|
|
19
|
+
readonly GraphQLSchema: import("ts-poet/build/Import.js").Import;
|
|
20
|
+
readonly GraphQLString: import("ts-poet/build/Import.js").Import;
|
|
21
|
+
readonly GraphQLUnionType: import("ts-poet/build/Import.js").Import;
|
|
22
|
+
readonly Left: import("ts-poet/build/Import.js").Import;
|
|
23
|
+
readonly Literal: import("ts-poet/build/Import.js").Import;
|
|
24
|
+
readonly LiteralFactory: import("ts-poet/build/Import.js").Import;
|
|
25
|
+
readonly Maybe: import("ts-poet/build/Import.js").Import;
|
|
26
|
+
readonly NamedNode: import("ts-poet/build/Import.js").Import;
|
|
27
|
+
readonly NonEmptyList: import("ts-poet/build/Import.js").Import;
|
|
28
|
+
readonly NTriplesIdentifier: import("ts-poet/build/Import.js").Import;
|
|
29
|
+
readonly NTriplesTerm: import("ts-poet/build/Import.js").Import;
|
|
30
|
+
readonly Quad: import("ts-poet/build/Import.js").Import;
|
|
31
|
+
readonly Quad_Graph: import("ts-poet/build/Import.js").Import;
|
|
32
|
+
readonly RdfxResourcePropertyPath: import("ts-poet/build/Import.js").Import;
|
|
33
|
+
readonly Resource: import("ts-poet/build/Import.js").Import;
|
|
34
|
+
readonly ResourceSet: import("ts-poet/build/Import.js").Import;
|
|
35
|
+
readonly Right: import("ts-poet/build/Import.js").Import;
|
|
36
|
+
readonly sparqljs: import("ts-poet/build/Import.js").Import;
|
|
37
|
+
readonly Variable: import("ts-poet/build/Import.js").Import;
|
|
38
|
+
readonly z: import("ts-poet/build/Import.js").Import;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=Imports.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { imp } from "./ts-poet-wrapper.js";
|
|
2
|
+
export class Imports {
|
|
3
|
+
BigDecimal = imp("Decimal:BigDecimal@decimal.js");
|
|
4
|
+
BlankNode = imp("BlankNode@@rdfjs/types");
|
|
5
|
+
dataFactory = imp("dataFactory=@rdfx/data-factory");
|
|
6
|
+
DatasetCore = imp("DatasetCore@@rdfjs/types");
|
|
7
|
+
datasetFactory = imp("datasetFactory=@rdfjs/dataset");
|
|
8
|
+
Either = imp("Either@purify-ts");
|
|
9
|
+
EitherAsync = imp("EitherAsync@purify-ts");
|
|
10
|
+
GraphQLBigInt = imp("BigInt:GraphQLBigInt@graphql-scalars");
|
|
11
|
+
GraphQLBoolean = imp("GraphQLBoolean@graphql");
|
|
12
|
+
GraphQLDate = imp("Date:GraphQLDate@graphql-scalars");
|
|
13
|
+
GraphQLDateTime = imp("DateTime:GraphQLDateTime@graphql-scalars");
|
|
14
|
+
GraphQLFloat = imp("GraphQLFloat@graphql");
|
|
15
|
+
GraphQLID = imp("GraphQLID@graphql");
|
|
16
|
+
GraphQLInt = imp("GraphQLInt@graphql");
|
|
17
|
+
GraphQLList = imp("GraphQLList@graphql");
|
|
18
|
+
GraphQLNonNull = imp("GraphQLNonNull@graphql");
|
|
19
|
+
GraphQLObjectType = imp("GraphQLObjectType@graphql");
|
|
20
|
+
GraphQLSchema = imp("GraphQLSchema@graphql");
|
|
21
|
+
GraphQLString = imp("GraphQLString@graphql");
|
|
22
|
+
GraphQLUnionType = imp("GraphQLUnionType@graphql");
|
|
23
|
+
Left = imp("Left@purify-ts");
|
|
24
|
+
Literal = imp("Literal@@rdfjs/types");
|
|
25
|
+
LiteralFactory = imp("LiteralFactory@@rdfx/literal");
|
|
26
|
+
Maybe = imp("Maybe@purify-ts");
|
|
27
|
+
NamedNode = imp("NamedNode@@rdfjs/types");
|
|
28
|
+
NonEmptyList = imp("NonEmptyList@purify-ts");
|
|
29
|
+
NTriplesIdentifier = imp("NTriplesIdentifier@@rdfx/string");
|
|
30
|
+
NTriplesTerm = imp("NTriplesTerm@@rdfx/string");
|
|
31
|
+
Quad = imp("Quad@@rdfjs/types");
|
|
32
|
+
Quad_Graph = imp("Quad_Graph@@rdfjs/types");
|
|
33
|
+
RdfxResourcePropertyPath = imp("PropertyPath:RdfxResourcePropertyPath@@rdfx/resource");
|
|
34
|
+
Resource = imp("Resource@@rdfx/resource");
|
|
35
|
+
ResourceSet = imp("ResourceSet@@rdfx/resource");
|
|
36
|
+
Right = imp("Right@purify-ts");
|
|
37
|
+
sparqljs = imp("sparqljs*sparqljs");
|
|
38
|
+
Variable = imp("Variable@@rdfjs/types");
|
|
39
|
+
z = imp("z@zod");
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=Imports.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Literal } from "@rdfjs/types";
|
|
2
|
+
import { AbstractNumericType } from "./AbstractNumericType.js";
|
|
3
|
+
import { type Code } from "./ts-poet-wrapper.js";
|
|
4
|
+
export declare class IntType extends AbstractNumericType<number> {
|
|
5
|
+
readonly jsTypes: readonly [{
|
|
6
|
+
readonly typeof: "number";
|
|
7
|
+
}];
|
|
8
|
+
readonly kind = "Int";
|
|
9
|
+
get fromRdfResourceValuesFunction(): Code;
|
|
10
|
+
get graphqlType(): import("./AbstractType.js").AbstractType.GraphqlType;
|
|
11
|
+
literalValueExpression(literal: Literal | number): Code;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=IntType.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LiteralDecoder } from "@rdfx/literal";
|
|
8
|
+
import { Memoize } from "typescript-memoize";
|
|
9
|
+
import { AbstractNumericType } from "./AbstractNumericType.js";
|
|
10
|
+
import { code } from "./ts-poet-wrapper.js";
|
|
11
|
+
export class IntType extends AbstractNumericType {
|
|
12
|
+
jsTypes = [{ typeof: "number" }];
|
|
13
|
+
kind = "Int";
|
|
14
|
+
get fromRdfResourceValuesFunction() {
|
|
15
|
+
return code `${this.reusables.snippets.intFromRdfResourceValues}<${this.expression}>`;
|
|
16
|
+
}
|
|
17
|
+
get graphqlType() {
|
|
18
|
+
return new AbstractNumericType.GraphqlType(code `${this.reusables.imports.GraphQLInt}`, this.reusables);
|
|
19
|
+
}
|
|
20
|
+
literalValueExpression(literal) {
|
|
21
|
+
return code `${typeof literal === "number" ? literal : LiteralDecoder.decodeIntLiteral(literal).unsafeCoerce()}`;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
__decorate([
|
|
25
|
+
Memoize()
|
|
26
|
+
], IntType.prototype, "fromRdfResourceValuesFunction", null);
|
|
27
|
+
__decorate([
|
|
28
|
+
Memoize()
|
|
29
|
+
], IntType.prototype, "graphqlType", null);
|
|
30
|
+
//# sourceMappingURL=IntType.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { NamedNode } from "@rdfjs/types";
|
|
2
|
+
import { Maybe } from "purify-ts";
|
|
3
|
+
import { AbstractIdentifierType } from "./AbstractIdentifierType.js";
|
|
4
|
+
import { type Code } from "./ts-poet-wrapper.js";
|
|
5
|
+
export declare class IriType extends AbstractIdentifierType<NamedNode> {
|
|
6
|
+
readonly filterFunction: Code;
|
|
7
|
+
readonly filterType: Code;
|
|
8
|
+
readonly kind = "Iri";
|
|
9
|
+
readonly nodeKinds: ReadonlySet<"IRI">;
|
|
10
|
+
readonly schemaType: Code;
|
|
11
|
+
readonly valueSparqlWherePatternsFunction: Code;
|
|
12
|
+
get conversionFunction(): Maybe<AbstractIdentifierType.ConversionFunction>;
|
|
13
|
+
get fromRdfResourceValuesFunction(): Code;
|
|
14
|
+
get parseFunction(): Code;
|
|
15
|
+
protected get inlineExpression(): Code;
|
|
16
|
+
protected get schemaInitializers(): readonly Code[];
|
|
17
|
+
private get valueTypeExpression();
|
|
18
|
+
fromJsonExpression({ variables, }: Parameters<AbstractIdentifierType<NamedNode>["fromJsonExpression"]>[0]): Code;
|
|
19
|
+
jsonSchema({ includeDiscriminantProperty, }: Parameters<AbstractIdentifierType<NamedNode>["jsonSchema"]>[0]): Code;
|
|
20
|
+
jsonType(parameters?: Parameters<AbstractIdentifierType<NamedNode>["jsonType"]>[0]): AbstractIdentifierType.JsonType;
|
|
21
|
+
toJsonExpression({ includeDiscriminantProperty, variables, }: Parameters<AbstractIdentifierType<NamedNode>["toJsonExpression"]>[0]): Code;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=IriType.d.ts.map
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Maybe } from "purify-ts";
|
|
8
|
+
import { invariant } from "ts-invariant";
|
|
9
|
+
import { Memoize } from "typescript-memoize";
|
|
10
|
+
import { AbstractIdentifierType } from "./AbstractIdentifierType.js";
|
|
11
|
+
import { arrayOf, code, joinCode } from "./ts-poet-wrapper.js";
|
|
12
|
+
export class IriType extends AbstractIdentifierType {
|
|
13
|
+
filterFunction = code `${this.reusables.snippets.filterIri}`;
|
|
14
|
+
filterType = code `${this.reusables.snippets.IriFilter}`;
|
|
15
|
+
kind = "Iri";
|
|
16
|
+
nodeKinds = nodeKinds;
|
|
17
|
+
schemaType = code `${this.reusables.snippets.IriSchema}<${this.valueTypeExpression}>`;
|
|
18
|
+
valueSparqlWherePatternsFunction = code `${this.reusables.snippets.iriSparqlWherePatterns}`;
|
|
19
|
+
get conversionFunction() {
|
|
20
|
+
invariant(this.jsTypes.length === 1);
|
|
21
|
+
return Maybe.of({
|
|
22
|
+
code: code `${this.reusables.snippets.convertToIri}<${this.valueTypeExpression}>`,
|
|
23
|
+
sourceTypes: [
|
|
24
|
+
{
|
|
25
|
+
expression: this.valueTypeExpression,
|
|
26
|
+
jsType: { typeof: "string" },
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
expression: this.expression,
|
|
30
|
+
jsType: this.jsTypes[0],
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
get fromRdfResourceValuesFunction() {
|
|
36
|
+
return code `${this.reusables.snippets.iriFromRdfResourceValues}<${this.valueTypeExpression}>`;
|
|
37
|
+
}
|
|
38
|
+
get parseFunction() {
|
|
39
|
+
if (this.in_.length > 0) {
|
|
40
|
+
return code `(identifier: string) => ${this.reusables.snippets.parseIri}(identifier).chain((identifier) => { switch (identifier.value) { ${joinCode(this.in_.map((iri) => code `case "${iri.value}": return ${this.reusables.imports.Right}(identifier as ${this.expression});`))} default: return ${this.reusables.imports.Left}(new Error("expected NamedNode identifier to be one of ${this.in_.map((iri) => iri.value).join(" ")}")); } })`;
|
|
41
|
+
}
|
|
42
|
+
return code `${this.reusables.snippets.parseIri}`;
|
|
43
|
+
}
|
|
44
|
+
get inlineExpression() {
|
|
45
|
+
if (this.in_.length > 0) {
|
|
46
|
+
return code `${this.reusables.imports.NamedNode}<${this.valueTypeExpression}>`;
|
|
47
|
+
}
|
|
48
|
+
return code `${this.reusables.imports.NamedNode}`;
|
|
49
|
+
}
|
|
50
|
+
get schemaInitializers() {
|
|
51
|
+
let initializers = super.schemaInitializers;
|
|
52
|
+
if (this.in_.length > 0) {
|
|
53
|
+
initializers = initializers.concat(code `in: ${arrayOf(...this.in_.map((in_) => this.rdfjsTermExpression(in_)))}`);
|
|
54
|
+
}
|
|
55
|
+
return initializers;
|
|
56
|
+
}
|
|
57
|
+
get valueTypeExpression() {
|
|
58
|
+
return this.in_.length > 0
|
|
59
|
+
? code `(${this.in_.map((in_) => `"${in_.value}"`).join(" | ")})`
|
|
60
|
+
: code `string`;
|
|
61
|
+
}
|
|
62
|
+
fromJsonExpression({ variables, }) {
|
|
63
|
+
return code `${this.reusables.imports.Either}.of<Error, ${this.expression}>(${this.reusables.imports.dataFactory}.namedNode(${variables.value}["@id"]))`;
|
|
64
|
+
}
|
|
65
|
+
jsonSchema({ includeDiscriminantProperty, }) {
|
|
66
|
+
let idSchema;
|
|
67
|
+
if (this.in_.length > 0) {
|
|
68
|
+
// Treat sh:in as a union of the IRIs
|
|
69
|
+
// rdfjs.NamedNode<"http://example.com/1" | "http://example.com/2">
|
|
70
|
+
idSchema = code `${this.reusables.imports.z}.enum(${arrayOf(...this.in_.map((iri) => iri.value))})`;
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
idSchema = code `${this.reusables.imports.z}.string().min(1)`;
|
|
74
|
+
}
|
|
75
|
+
const discriminantProperty = includeDiscriminantProperty
|
|
76
|
+
? code `, termType: ${this.reusables.imports.z}.literal("NamedNode")`
|
|
77
|
+
: "";
|
|
78
|
+
return code `${this.reusables.imports.z}.object({ "@id": ${idSchema}${discriminantProperty} })`;
|
|
79
|
+
}
|
|
80
|
+
jsonType(parameters) {
|
|
81
|
+
const discriminantProperty = parameters?.includeDiscriminantProperty
|
|
82
|
+
? `, readonly termType: "NamedNode"`
|
|
83
|
+
: "";
|
|
84
|
+
return new AbstractIdentifierType.JsonType(code `{ readonly "@id": ${this.valueTypeExpression}${discriminantProperty} }`);
|
|
85
|
+
}
|
|
86
|
+
toJsonExpression({ includeDiscriminantProperty, variables, }) {
|
|
87
|
+
const discriminantProperty = includeDiscriminantProperty
|
|
88
|
+
? code `, termType: ${variables.value}.termType`
|
|
89
|
+
: "";
|
|
90
|
+
return code `{ "@id": ${variables.value}.value${discriminantProperty} }`;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
__decorate([
|
|
94
|
+
Memoize()
|
|
95
|
+
], IriType.prototype, "conversionFunction", null);
|
|
96
|
+
__decorate([
|
|
97
|
+
Memoize()
|
|
98
|
+
], IriType.prototype, "fromRdfResourceValuesFunction", null);
|
|
99
|
+
__decorate([
|
|
100
|
+
Memoize()
|
|
101
|
+
], IriType.prototype, "parseFunction", null);
|
|
102
|
+
__decorate([
|
|
103
|
+
Memoize()
|
|
104
|
+
], IriType.prototype, "inlineExpression", null);
|
|
105
|
+
__decorate([
|
|
106
|
+
Memoize()
|
|
107
|
+
], IriType.prototype, "valueTypeExpression", null);
|
|
108
|
+
__decorate([
|
|
109
|
+
Memoize()
|
|
110
|
+
], IriType.prototype, "jsonType", null);
|
|
111
|
+
const nodeKinds = new Set(["IRI"]);
|
|
112
|
+
//# sourceMappingURL=IriType.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Maybe } from "purify-ts";
|
|
2
|
+
import { AbstractLazyType } from "./AbstractLazyType.js";
|
|
3
|
+
import type { OptionType } from "./OptionType.js";
|
|
4
|
+
import { type Code } from "./ts-poet-wrapper.js";
|
|
5
|
+
type Super = AbstractLazyType<OptionType<AbstractLazyType.ItemTypeConstraint>, OptionType<AbstractLazyType.ItemTypeConstraint>>;
|
|
6
|
+
declare const Super: (abstract new ({ partialType, resolveType, ...superParameters }: {
|
|
7
|
+
partialType: OptionType<AbstractLazyType.ItemTypeConstraint>;
|
|
8
|
+
resolveType: OptionType<AbstractLazyType.ItemTypeConstraint>;
|
|
9
|
+
} & {
|
|
10
|
+
name: Maybe<string>;
|
|
11
|
+
comment: Maybe<string>;
|
|
12
|
+
configuration: import("./TsGenerator.js").TsGenerator.Configuration;
|
|
13
|
+
label: Maybe<string>;
|
|
14
|
+
logger: import("ts-log").Logger;
|
|
15
|
+
reusables: import("./Reusables.js").Reusables;
|
|
16
|
+
shapeIdentifier: import("@rdfjs/types").BlankNode | import("@rdfjs/types").NamedNode;
|
|
17
|
+
}) => AbstractLazyType<OptionType<AbstractLazyType.ItemTypeConstraint>, OptionType<AbstractLazyType.ItemTypeConstraint>>) & {
|
|
18
|
+
readonly GraphqlType: typeof import("./AbstractType.js").AbstractType.GraphqlType;
|
|
19
|
+
readonly JsonType: typeof import("./AbstractType.js").AbstractType.JsonType;
|
|
20
|
+
JsType: typeof import("./AbstractType.js").AbstractType.JsType;
|
|
21
|
+
};
|
|
22
|
+
export declare class LazyOptionType extends Super {
|
|
23
|
+
readonly graphqlArgs: Super["graphqlArgs"];
|
|
24
|
+
readonly kind = "LazyOption";
|
|
25
|
+
get conversionFunction(): Maybe<AbstractLazyType.ConversionFunction>;
|
|
26
|
+
protected get runtimeClass(): {
|
|
27
|
+
name: Code;
|
|
28
|
+
partialPropertyName: string;
|
|
29
|
+
rawName: Code;
|
|
30
|
+
};
|
|
31
|
+
fromJsonExpression(parameters: Parameters<Super["fromJsonExpression"]>[0]): Code;
|
|
32
|
+
get fromRdfResourceValuesFunction(): Code;
|
|
33
|
+
graphqlResolveExpression({ variables, }: Parameters<Super["graphqlResolveExpression"]>[0]): Code;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=LazyOptionType.d.ts.map
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Maybe } from "purify-ts";
|
|
8
|
+
import { invariant } from "ts-invariant";
|
|
9
|
+
import { Memoize } from "typescript-memoize";
|
|
10
|
+
import { AbstractLazyType } from "./AbstractLazyType.js";
|
|
11
|
+
import { code } from "./ts-poet-wrapper.js";
|
|
12
|
+
const Super = (AbstractLazyType);
|
|
13
|
+
export class LazyOptionType extends Super {
|
|
14
|
+
graphqlArgs = Maybe.empty();
|
|
15
|
+
kind = "LazyOption";
|
|
16
|
+
get conversionFunction() {
|
|
17
|
+
invariant(this.jsTypes.length === 1);
|
|
18
|
+
invariant(this.resolveType.jsTypes.length === 1);
|
|
19
|
+
invariant(this.resolveType.itemType.jsTypes.length === 1);
|
|
20
|
+
return Maybe.of({
|
|
21
|
+
code: code `${this.reusables.snippets.convertToLazyOption}<${this.partialType.itemType.expression}, ${this.resolveType.itemType.expression}>(${this.resolveToPartialFunction({ partialType: this.partialType.itemType, resolveType: this.resolveType.itemType })})`,
|
|
22
|
+
sourceTypes: [
|
|
23
|
+
{
|
|
24
|
+
expression: this.expression,
|
|
25
|
+
jsType: this.jsTypes[0],
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
expression: this.resolveType.expression,
|
|
29
|
+
jsType: this.resolveType.jsTypes[0],
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
expression: this.resolveType.itemType.expression,
|
|
33
|
+
jsType: this.resolveType.itemType.jsTypes[0],
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
expression: code `undefined`,
|
|
37
|
+
jsType: { typeof: "undefined" },
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
get runtimeClass() {
|
|
43
|
+
return {
|
|
44
|
+
name: code `${this.reusables.snippets.LazyOption}<${this.partialType.itemType.expression}, ${this.resolveType.itemType.expression}>`,
|
|
45
|
+
partialPropertyName: "partial",
|
|
46
|
+
rawName: code `${this.reusables.snippets.LazyOption}`,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
fromJsonExpression(parameters) {
|
|
50
|
+
return code `${this.partialType.fromJsonExpression(parameters)}.map(partial => new ${this.runtimeClass.name}({ ${this.runtimeClass.partialPropertyName}: partial, resolver: (partial) => Promise.resolve(${this.reusables.imports.Left}(new Error(\`unable to resolve \${partial} deserialized from JSON\`))) }))`;
|
|
51
|
+
}
|
|
52
|
+
get fromRdfResourceValuesFunction() {
|
|
53
|
+
return code `\
|
|
54
|
+
(
|
|
55
|
+
(
|
|
56
|
+
(values, { objectSet, schema, ...otherOptions }) =>
|
|
57
|
+
${this.partialType.fromRdfResourceValuesFunction}(values, { ...otherOptions, objectSet, schema: schema.partialType })
|
|
58
|
+
.map(values => values.map(${this.runtimeClass.partialPropertyName} => new ${this.runtimeClass.name}({ ${this.runtimeClass.partialPropertyName}, resolver: (partial, options) => objectSet.${this.resolveType.itemType.objectSetMethodNames.object}(partial.${this.configuration.syntheticNamePrefix}identifier(), options) })))
|
|
59
|
+
) satisfies ${this.reusables.snippets.FromRdfResourceValuesFunction}<${this.expression}, ${this.schemaType}>
|
|
60
|
+
)`;
|
|
61
|
+
}
|
|
62
|
+
graphqlResolveExpression({ variables, }) {
|
|
63
|
+
return code `${variables.value}.resolve().then(either => either.unsafeCoerce().extractNullable())`;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
__decorate([
|
|
67
|
+
Memoize()
|
|
68
|
+
], LazyOptionType.prototype, "conversionFunction", null);
|
|
69
|
+
__decorate([
|
|
70
|
+
Memoize()
|
|
71
|
+
], LazyOptionType.prototype, "runtimeClass", null);
|
|
72
|
+
__decorate([
|
|
73
|
+
Memoize()
|
|
74
|
+
], LazyOptionType.prototype, "fromRdfResourceValuesFunction", null);
|
|
75
|
+
//# sourceMappingURL=LazyOptionType.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Maybe } from "purify-ts";
|
|
2
|
+
import { AbstractLazyType } from "./AbstractLazyType.js";
|
|
3
|
+
import type { SetType } from "./SetType.js";
|
|
4
|
+
import { type Code } from "./ts-poet-wrapper.js";
|
|
5
|
+
export declare class LazySetType extends AbstractLazyType<SetType<AbstractLazyType.ItemTypeConstraint>, SetType<AbstractLazyType.ItemTypeConstraint>> {
|
|
6
|
+
readonly graphqlArgs: Super["graphqlArgs"];
|
|
7
|
+
readonly kind = "LazySet";
|
|
8
|
+
get conversionFunction(): Maybe<AbstractLazyType.ConversionFunction>;
|
|
9
|
+
protected get runtimeClass(): {
|
|
10
|
+
name: Code;
|
|
11
|
+
partialPropertyName: string;
|
|
12
|
+
rawName: Code;
|
|
13
|
+
};
|
|
14
|
+
fromJsonExpression(parameters: Parameters<Super["fromJsonExpression"]>[0]): Code;
|
|
15
|
+
get fromRdfResourceValuesFunction(): Code;
|
|
16
|
+
graphqlResolveExpression({ variables, }: Parameters<Super["graphqlResolveExpression"]>[0]): Code;
|
|
17
|
+
}
|
|
18
|
+
type Super = AbstractLazyType<SetType<AbstractLazyType.ItemTypeConstraint>, SetType<AbstractLazyType.ItemTypeConstraint>>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=LazySetType.d.ts.map
|