@shaclmate/compiler 4.0.48 → 4.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/input/input.shaclmate.ttl +85 -0
- package/package.json +606 -23
- package/dist/Compiler.d.ts +0 -14
- package/dist/Compiler.js +0 -18
- package/dist/Eithers.d.ts +0 -14
- package/dist/Eithers.js +0 -67
- package/dist/ShapesGraphToAstTransformer.d.ts +0 -18
- package/dist/ShapesGraphToAstTransformer.js +0 -50
- package/dist/_ShapesGraphToAstTransformer/ShapeStack.d.ts +0 -15
- package/dist/_ShapesGraphToAstTransformer/ShapeStack.js +0 -51
- package/dist/_ShapesGraphToAstTransformer/defaultNodeShapeNodeKinds.d.ts +0 -3
- package/dist/_ShapesGraphToAstTransformer/defaultNodeShapeNodeKinds.js +0 -5
- package/dist/_ShapesGraphToAstTransformer/shapeAstTypeName.d.ts +0 -4
- package/dist/_ShapesGraphToAstTransformer/shapeAstTypeName.js +0 -24
- package/dist/_ShapesGraphToAstTransformer/shapeNodeKinds.d.ts +0 -9
- package/dist/_ShapesGraphToAstTransformer/shapeNodeKinds.js +0 -150
- package/dist/_ShapesGraphToAstTransformer/shapeOntology.d.ts +0 -5
- package/dist/_ShapesGraphToAstTransformer/shapeOntology.js +0 -26
- package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstStructTypeField.d.ts +0 -17
- package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstStructTypeField.js +0 -285
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.d.ts +0 -10
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.js +0 -92
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.d.ts +0 -11
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.js +0 -149
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstStructType.d.ts +0 -7
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstStructType.js +0 -166
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstTermType.d.ts +0 -12
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstTermType.js +0 -110
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.d.ts +0 -11
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.js +0 -46
- package/dist/ast/AbstractCollectionType.d.ts +0 -30
- package/dist/ast/AbstractCollectionType.js +0 -33
- package/dist/ast/AbstractCompoundType.d.ts +0 -45
- package/dist/ast/AbstractCompoundType.js +0 -81
- package/dist/ast/AbstractContainerType.d.ts +0 -44
- package/dist/ast/AbstractContainerType.js +0 -63
- package/dist/ast/AbstractLazyType.d.ts +0 -117
- package/dist/ast/AbstractLazyType.js +0 -40
- package/dist/ast/AbstractTermType.d.ts +0 -33
- package/dist/ast/AbstractTermType.js +0 -47
- package/dist/ast/AbstractType.d.ts +0 -55
- package/dist/ast/AbstractType.js +0 -55
- package/dist/ast/Ast.d.ts +0 -6
- package/dist/ast/Ast.js +0 -2
- package/dist/ast/BlankNodeType.d.ts +0 -11
- package/dist/ast/BlankNodeType.js +0 -17
- package/dist/ast/DefaultValueType.d.ts +0 -35
- package/dist/ast/DefaultValueType.js +0 -50
- package/dist/ast/IdentifierType.d.ts +0 -12
- package/dist/ast/IdentifierType.js +0 -20
- package/dist/ast/IntersectionType.d.ts +0 -14
- package/dist/ast/IntersectionType.js +0 -17
- package/dist/ast/IriType.d.ts +0 -10
- package/dist/ast/IriType.js +0 -10
- package/dist/ast/LazyOptionType.d.ts +0 -6
- package/dist/ast/LazyOptionType.js +0 -5
- package/dist/ast/LazySetType.d.ts +0 -6
- package/dist/ast/LazySetType.js +0 -5
- package/dist/ast/LazyType.d.ts +0 -5
- package/dist/ast/LazyType.js +0 -5
- package/dist/ast/ListType.d.ts +0 -44
- package/dist/ast/ListType.js +0 -56
- package/dist/ast/LiteralType.d.ts +0 -40
- package/dist/ast/LiteralType.js +0 -59
- package/dist/ast/OptionType.d.ts +0 -13
- package/dist/ast/OptionType.js +0 -21
- package/dist/ast/SetType.d.ts +0 -31
- package/dist/ast/SetType.js +0 -42
- package/dist/ast/StructCompoundType.d.ts +0 -12
- package/dist/ast/StructCompoundType.js +0 -87
- package/dist/ast/StructIntersectionType.d.ts +0 -4
- package/dist/ast/StructIntersectionType.js +0 -2
- package/dist/ast/StructType.d.ts +0 -178
- package/dist/ast/StructType.js +0 -314
- package/dist/ast/StructUnionType.d.ts +0 -4
- package/dist/ast/StructUnionType.js +0 -2
- package/dist/ast/TermType.d.ts +0 -14
- package/dist/ast/TermType.js +0 -16
- package/dist/ast/Type.d.ts +0 -20
- package/dist/ast/Type.js +0 -42
- package/dist/ast/UnionType.d.ts +0 -30
- package/dist/ast/UnionType.js +0 -27
- package/dist/ast/equals.d.ts +0 -12
- package/dist/ast/equals.js +0 -65
- package/dist/ast/index.d.ts +0 -21
- package/dist/ast/index.js +0 -21
- package/dist/generators/AstJsonGenerator.d.ts +0 -6
- package/dist/generators/AstJsonGenerator.js +0 -15
- package/dist/generators/Cx2Generator.d.ts +0 -10
- package/dist/generators/Cx2Generator.js +0 -140
- package/dist/generators/Generator.d.ts +0 -5
- package/dist/generators/Generator.js +0 -2
- package/dist/generators/LabeledPropertyGraph.d.ts +0 -42
- package/dist/generators/LabeledPropertyGraph.js +0 -2
- package/dist/generators/index.d.ts +0 -6
- package/dist/generators/index.js +0 -6
- package/dist/generators/transformAstToLabeledPropertyGraph.d.ts +0 -4
- package/dist/generators/transformAstToLabeledPropertyGraph.js +0 -78
- package/dist/generators/ts/AbstractCollectionType.d.ts +0 -37
- package/dist/generators/ts/AbstractCollectionType.js +0 -88
- package/dist/generators/ts/AbstractContainerType.d.ts +0 -53
- package/dist/generators/ts/AbstractContainerType.js +0 -97
- package/dist/generators/ts/AbstractDateType.d.ts +0 -23
- package/dist/generators/ts/AbstractDateType.js +0 -37
- package/dist/generators/ts/AbstractIdentifierType.d.ts +0 -21
- package/dist/generators/ts/AbstractIdentifierType.js +0 -25
- package/dist/generators/ts/AbstractLazyType.d.ts +0 -67
- package/dist/generators/ts/AbstractLazyType.js +0 -154
- package/dist/generators/ts/AbstractLiteralType.d.ts +0 -26
- package/dist/generators/ts/AbstractLiteralType.js +0 -15
- package/dist/generators/ts/AbstractNumericType.d.ts +0 -21
- package/dist/generators/ts/AbstractNumericType.js +0 -65
- package/dist/generators/ts/AbstractObjectSetType.d.ts +0 -36
- package/dist/generators/ts/AbstractObjectSetType.js +0 -44
- package/dist/generators/ts/AbstractPrimitiveType.d.ts +0 -32
- package/dist/generators/ts/AbstractPrimitiveType.js +0 -51
- package/dist/generators/ts/AbstractTermType.d.ts +0 -50
- package/dist/generators/ts/AbstractTermType.js +0 -102
- package/dist/generators/ts/AbstractType.d.ts +0 -345
- package/dist/generators/ts/AbstractType.js +0 -135
- package/dist/generators/ts/BigDecimalType.d.ts +0 -28
- package/dist/generators/ts/BigDecimalType.js +0 -58
- package/dist/generators/ts/BigIntType.d.ts +0 -17
- package/dist/generators/ts/BigIntType.js +0 -56
- package/dist/generators/ts/BlankNodeType.d.ts +0 -22
- package/dist/generators/ts/BlankNodeType.js +0 -67
- package/dist/generators/ts/BooleanType.d.ts +0 -21
- package/dist/generators/ts/BooleanType.js +0 -53
- package/dist/generators/ts/DateTimeType.d.ts +0 -13
- package/dist/generators/ts/DateTimeType.js +0 -31
- package/dist/generators/ts/DateType.d.ts +0 -14
- package/dist/generators/ts/DateType.js +0 -32
- package/dist/generators/ts/DefaultValueType.d.ts +0 -83
- package/dist/generators/ts/DefaultValueType.js +0 -143
- package/dist/generators/ts/FloatType.d.ts +0 -13
- package/dist/generators/ts/FloatType.js +0 -30
- package/dist/generators/ts/GraphqlSchema.d.ts +0 -22
- package/dist/generators/ts/GraphqlSchema.js +0 -87
- package/dist/generators/ts/IdentifierType.d.ts +0 -23
- package/dist/generators/ts/IdentifierType.js +0 -83
- package/dist/generators/ts/Imports.d.ts +0 -40
- package/dist/generators/ts/Imports.js +0 -41
- package/dist/generators/ts/IntType.d.ts +0 -13
- package/dist/generators/ts/IntType.js +0 -30
- package/dist/generators/ts/IriType.d.ts +0 -23
- package/dist/generators/ts/IriType.js +0 -112
- package/dist/generators/ts/LazyOptionType.d.ts +0 -36
- package/dist/generators/ts/LazyOptionType.js +0 -75
- package/dist/generators/ts/LazySetType.d.ts +0 -20
- package/dist/generators/ts/LazySetType.js +0 -76
- package/dist/generators/ts/LazyType.d.ts +0 -19
- package/dist/generators/ts/LazyType.js +0 -65
- package/dist/generators/ts/ListType.d.ts +0 -49
- package/dist/generators/ts/ListType.js +0 -161
- package/dist/generators/ts/LiteralType.d.ts +0 -27
- package/dist/generators/ts/LiteralType.js +0 -71
- package/dist/generators/ts/ObjectSetType.d.ts +0 -6
- package/dist/generators/ts/ObjectSetType.js +0 -36
- package/dist/generators/ts/ObjectType.d.ts +0 -104
- package/dist/generators/ts/ObjectType.js +0 -492
- package/dist/generators/ts/ObjectUnionType.d.ts +0 -20
- package/dist/generators/ts/ObjectUnionType.js +0 -223
- package/dist/generators/ts/OptionType.d.ts +0 -39
- package/dist/generators/ts/OptionType.js +0 -157
- package/dist/generators/ts/RdfjsDatasetObjectSetType.d.ts +0 -6
- package/dist/generators/ts/RdfjsDatasetObjectSetType.js +0 -323
- package/dist/generators/ts/Reusables.d.ts +0 -13
- package/dist/generators/ts/Reusables.js +0 -15
- package/dist/generators/ts/SetType.d.ts +0 -32
- package/dist/generators/ts/SetType.js +0 -132
- package/dist/generators/ts/Snippet.d.ts +0 -3
- package/dist/generators/ts/Snippet.js +0 -2
- package/dist/generators/ts/SnippetFactory.d.ts +0 -16
- package/dist/generators/ts/SnippetFactory.js +0 -2
- package/dist/generators/ts/Snippets.d.ts +0 -177
- package/dist/generators/ts/Snippets.js +0 -1163
- package/dist/generators/ts/SparqlObjectSetType.d.ts +0 -6
- package/dist/generators/ts/SparqlObjectSetType.js +0 -241
- package/dist/generators/ts/StringType.d.ts +0 -22
- package/dist/generators/ts/StringType.js +0 -68
- package/dist/generators/ts/TermType.d.ts +0 -31
- package/dist/generators/ts/TermType.js +0 -143
- package/dist/generators/ts/TsFeature.d.ts +0 -3
- package/dist/generators/ts/TsFeature.js +0 -28
- package/dist/generators/ts/TsGenerator.d.ts +0 -30
- package/dist/generators/ts/TsGenerator.js +0 -292
- package/dist/generators/ts/Type.d.ts +0 -25
- package/dist/generators/ts/Type.js +0 -2
- package/dist/generators/ts/TypeFactory.d.ts +0 -43
- package/dist/generators/ts/TypeFactory.js +0 -540
- package/dist/generators/ts/Typeof.d.ts +0 -2
- package/dist/generators/ts/Typeof.js +0 -2
- package/dist/generators/ts/UnionType.d.ts +0 -126
- package/dist/generators/ts/UnionType.js +0 -850
- package/dist/generators/ts/ZodGenerator.d.ts +0 -11
- package/dist/generators/ts/ZodGenerator.js +0 -60
- package/dist/generators/ts/_ObjectType/AbstractProperty.d.ts +0 -220
- package/dist/generators/ts/_ObjectType/AbstractProperty.js +0 -37
- package/dist/generators/ts/_ObjectType/DiscriminantProperty.d.ts +0 -45
- package/dist/generators/ts/_ObjectType/DiscriminantProperty.js +0 -104
- package/dist/generators/ts/_ObjectType/IdentifierProperty.d.ts +0 -43
- package/dist/generators/ts/_ObjectType/IdentifierProperty.js +0 -216
- package/dist/generators/ts/_ObjectType/ObjectType_createFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_createFunctionExpression.js +0 -28
- package/dist/generators/ts/_ObjectType/ObjectType_equalsFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_equalsFunctionExpression.js +0 -15
- package/dist/generators/ts/_ObjectType/ObjectType_filterFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_filterFunctionExpression.js +0 -12
- package/dist/generators/ts/_ObjectType/ObjectType_filterTypeExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_filterTypeExpression.js +0 -20
- package/dist/generators/ts/_ObjectType/ObjectType_focusSparqlConstructTriplesFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_focusSparqlConstructTriplesFunctionExpression.js +0 -46
- package/dist/generators/ts/_ObjectType/ObjectType_focusSparqlWherePatternsFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_focusSparqlWherePatternsFunctionExpression.js +0 -79
- package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionExpression.js +0 -12
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunctionExpression.js +0 -43
- package/dist/generators/ts/_ObjectType/ObjectType_graphqlTypeExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_graphqlTypeExpression.js +0 -26
- package/dist/generators/ts/_ObjectType/ObjectType_hashFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_hashFunctionExpression.js +0 -30
- package/dist/generators/ts/_ObjectType/ObjectType_identifierTypeDeclarations.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_identifierTypeDeclarations.js +0 -13
- package/dist/generators/ts/_ObjectType/ObjectType_isTypeFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_isTypeFunctionDeclaration.js +0 -20
- package/dist/generators/ts/_ObjectType/ObjectType_jsonParseFunctionDeclaration.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_jsonParseFunctionDeclaration.js +0 -10
- package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaExpression.js +0 -22
- package/dist/generators/ts/_ObjectType/ObjectType_jsonTypeExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_jsonTypeExpression.js +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_jsonUiSchemaFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_jsonUiSchemaFunctionExpression.js +0 -17
- package/dist/generators/ts/_ObjectType/ObjectType_objectSetMethodNames.d.ts +0 -11
- package/dist/generators/ts/_ObjectType/ObjectType_objectSetMethodNames.js +0 -23
- package/dist/generators/ts/_ObjectType/ObjectType_schemaExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_schemaExpression.js +0 -18
- package/dist/generators/ts/_ObjectType/ObjectType_schemaTypeExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_schemaTypeExpression.js +0 -18
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunctionDeclaration.d.ts +0 -10
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunctionDeclaration.js +0 -35
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryStringFunctionDeclaration.d.ts +0 -10
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryStringFunctionDeclaration.js +0 -8
- package/dist/generators/ts/_ObjectType/ObjectType_toJsonFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_toJsonFunctionExpression.js +0 -14
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunctionExpression.js +0 -33
- package/dist/generators/ts/_ObjectType/ObjectType_toStringFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_toStringFunctionExpression.js +0 -7
- package/dist/generators/ts/_ObjectType/ObjectType_toStringRecordFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_toStringRecordFunctionExpression.js +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlConstructTriplesFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlConstructTriplesFunctionExpression.js +0 -8
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunctionExpression.js +0 -10
- package/dist/generators/ts/_ObjectType/Property.d.ts +0 -6
- package/dist/generators/ts/_ObjectType/Property.js +0 -2
- package/dist/generators/ts/_ObjectType/ShaclProperty.d.ts +0 -53
- package/dist/generators/ts/_ObjectType/ShaclProperty.js +0 -292
- package/dist/generators/ts/_snippets/snippets_BlankNodeFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_BlankNodeFilter.js +0 -5
- package/dist/generators/ts/_snippets/snippets_BlankNodeSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_BlankNodeSchema.js +0 -6
- package/dist/generators/ts/_snippets/snippets_BooleanFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_BooleanFilter.js +0 -6
- package/dist/generators/ts/_snippets/snippets_BooleanSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_BooleanSchema.js +0 -8
- package/dist/generators/ts/_snippets/snippets_CollectionFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_CollectionFilter.js +0 -7
- package/dist/generators/ts/_snippets/snippets_CollectionSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_CollectionSchema.js +0 -8
- package/dist/generators/ts/_snippets/snippets_ConversionFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ConversionFunction.js +0 -4
- package/dist/generators/ts/_snippets/snippets_DateFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_DateFilter.js +0 -10
- package/dist/generators/ts/_snippets/snippets_DateSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_DateSchema.js +0 -8
- package/dist/generators/ts/_snippets/snippets_DefaultValueSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_DefaultValueSchema.js +0 -8
- package/dist/generators/ts/_snippets/snippets_EqualsResult.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_EqualsResult.js +0 -63
- package/dist/generators/ts/_snippets/snippets_FocusSparqlConstructTriplesFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_FocusSparqlConstructTriplesFunction.js +0 -10
- package/dist/generators/ts/_snippets/snippets_FocusSparqlWherePatternsFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_FocusSparqlWherePatternsFunction.js +0 -11
- package/dist/generators/ts/_snippets/snippets_FromRdfResourceFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_FromRdfResourceFunction.js +0 -13
- package/dist/generators/ts/_snippets/snippets_FromRdfResourceValuesFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_FromRdfResourceValuesFunction.js +0 -16
- package/dist/generators/ts/_snippets/snippets_HashFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_HashFunction.js +0 -4
- package/dist/generators/ts/_snippets/snippets_Hasher.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_Hasher.js +0 -3
- package/dist/generators/ts/_snippets/snippets_IdentifierFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_IdentifierFilter.js +0 -7
- package/dist/generators/ts/_snippets/snippets_IdentifierSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_IdentifierSchema.js +0 -7
- package/dist/generators/ts/_snippets/snippets_IdentifierSet.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_IdentifierSet.js +0 -27
- package/dist/generators/ts/_snippets/snippets_IriFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_IriFilter.js +0 -6
- package/dist/generators/ts/_snippets/snippets_IriSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_IriSchema.js +0 -8
- package/dist/generators/ts/_snippets/snippets_Lazy.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_Lazy.js +0 -22
- package/dist/generators/ts/_snippets/snippets_LazyOption.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_LazyOption.js +0 -25
- package/dist/generators/ts/_snippets/snippets_LazySet.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_LazySet.js +0 -40
- package/dist/generators/ts/_snippets/snippets_LiteralFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_LiteralFilter.js +0 -4
- package/dist/generators/ts/_snippets/snippets_LiteralSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_LiteralSchema.js +0 -9
- package/dist/generators/ts/_snippets/snippets_MaybeFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_MaybeFilter.js +0 -4
- package/dist/generators/ts/_snippets/snippets_MaybeSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_MaybeSchema.js +0 -7
- package/dist/generators/ts/_snippets/snippets_NumericFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_NumericFilter.js +0 -10
- package/dist/generators/ts/_snippets/snippets_NumericSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_NumericSchema.js +0 -8
- package/dist/generators/ts/_snippets/snippets_PropertyPath.d.ts +0 -6
- package/dist/generators/ts/_snippets/snippets_PropertyPath.js +0 -46
- package/dist/generators/ts/_snippets/snippets_RdfVocabularies.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_RdfVocabularies.js +0 -40
- package/dist/generators/ts/_snippets/snippets_ShaclPropertySchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ShaclPropertySchema.js +0 -8
- package/dist/generators/ts/_snippets/snippets_SparqlFilterPattern.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_SparqlFilterPattern.js +0 -3
- package/dist/generators/ts/_snippets/snippets_SparqlPattern.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_SparqlPattern.js +0 -3
- package/dist/generators/ts/_snippets/snippets_SparqlPattern_isSolutionGenerating.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_SparqlPattern_isSolutionGenerating.js +0 -30
- package/dist/generators/ts/_snippets/snippets_StringFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_StringFilter.js +0 -8
- package/dist/generators/ts/_snippets/snippets_StringSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_StringSchema.js +0 -9
- package/dist/generators/ts/_snippets/snippets_TermFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_TermFilter.js +0 -9
- package/dist/generators/ts/_snippets/snippets_TermSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_TermSchema.js +0 -9
- package/dist/generators/ts/_snippets/snippets_ToRdfResourceFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ToRdfResourceFunction.js +0 -11
- package/dist/generators/ts/_snippets/snippets_ToRdfResourceValuesFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ToRdfResourceValuesFunction.js +0 -16
- package/dist/generators/ts/_snippets/snippets_UnwrapR.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_UnwrapR.js +0 -4
- package/dist/generators/ts/_snippets/snippets_ValidationFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ValidationFunction.js +0 -4
- package/dist/generators/ts/_snippets/snippets_ValueSparqlConstructTriplesFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ValueSparqlConstructTriplesFunction.js +0 -11
- package/dist/generators/ts/_snippets/snippets_ValueSparqlWherePatternsFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ValueSparqlWherePatternsFunction.js +0 -13
- package/dist/generators/ts/_snippets/snippets__FromRdfResourceFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets__FromRdfResourceFunction.js +0 -13
- package/dist/generators/ts/_snippets/snippets__ToRdfResourceFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets__ToRdfResourceFunction.js +0 -12
- package/dist/generators/ts/_snippets/snippets_arrayEquals.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_arrayEquals.js +0 -68
- package/dist/generators/ts/_snippets/snippets_arrayIntersection.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_arrayIntersection.js +0 -29
- package/dist/generators/ts/_snippets/snippets_bigDecimalFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_bigDecimalFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_bigDecimalLiteral.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_bigDecimalLiteral.js +0 -9
- package/dist/generators/ts/_snippets/snippets_bigDecimalSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_bigDecimalSparqlWherePatterns.js +0 -83
- package/dist/generators/ts/_snippets/snippets_bigIntFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_bigIntFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_blankNodeFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_blankNodeFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_blankNodeSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_blankNodeSparqlWherePatterns.js +0 -5
- package/dist/generators/ts/_snippets/snippets_booleanEquals.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_booleanEquals.js +0 -16
- package/dist/generators/ts/_snippets/snippets_booleanFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_booleanFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_booleanSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_booleanSparqlWherePatterns.js +0 -15
- package/dist/generators/ts/_snippets/snippets_compactRecord.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_compactRecord.js +0 -15
- package/dist/generators/ts/_snippets/snippets_convertToArraySet.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToArraySet.js +0 -8
- package/dist/generators/ts/_snippets/snippets_convertToBlankNode.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToBlankNode.js +0 -11
- package/dist/generators/ts/_snippets/snippets_convertToBlankNodeIdentifierProperty.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToBlankNodeIdentifierProperty.js +0 -17
- package/dist/generators/ts/_snippets/snippets_convertToIdentifier.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToIdentifier.js +0 -13
- package/dist/generators/ts/_snippets/snippets_convertToIdentifierProperty.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToIdentifierProperty.js +0 -21
- package/dist/generators/ts/_snippets/snippets_convertToIri.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToIri.js +0 -11
- package/dist/generators/ts/_snippets/snippets_convertToIriIdentifierProperty.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToIriIdentifierProperty.js +0 -17
- package/dist/generators/ts/_snippets/snippets_convertToLazy.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToLazy.js +0 -15
- package/dist/generators/ts/_snippets/snippets_convertToLazyOption.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToLazyOption.js +0 -33
- package/dist/generators/ts/_snippets/snippets_convertToLazySet.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToLazySet.js +0 -27
- package/dist/generators/ts/_snippets/snippets_convertToList.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToList.js +0 -7
- package/dist/generators/ts/_snippets/snippets_convertToLiteral.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToLiteral.js +0 -13
- package/dist/generators/ts/_snippets/snippets_convertToMaybe.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToMaybe.js +0 -19
- package/dist/generators/ts/_snippets/snippets_convertToScalarSet.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToScalarSet.js +0 -15
- package/dist/generators/ts/_snippets/snippets_convertWithDefaultValue.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertWithDefaultValue.js +0 -11
- package/dist/generators/ts/_snippets/snippets_dateEquals.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_dateEquals.js +0 -13
- package/dist/generators/ts/_snippets/snippets_dateFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_dateFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_dateSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_dateSparqlWherePatterns.js +0 -71
- package/dist/generators/ts/_snippets/snippets_dateTimeFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_dateTimeFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_decodeBigDecimalLiteral.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_decodeBigDecimalLiteral.js +0 -9
- package/dist/generators/ts/_snippets/snippets_deduplicateSparqlPatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_deduplicateSparqlPatterns.js +0 -19
- package/dist/generators/ts/_snippets/snippets_defaultValueFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_defaultValueFromRdfResourceValues.js +0 -10
- package/dist/generators/ts/_snippets/snippets_defaultValueSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_defaultValueSparqlWherePatterns.js +0 -9
- package/dist/generators/ts/_snippets/snippets_ensureRdfResourceType.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ensureRdfResourceType.js +0 -16
- package/dist/generators/ts/_snippets/snippets_filterArray.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterArray.js +0 -22
- package/dist/generators/ts/_snippets/snippets_filterBigDecimal.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterBigDecimal.js +0 -26
- package/dist/generators/ts/_snippets/snippets_filterBlankNode.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterBlankNode.js +0 -6
- package/dist/generators/ts/_snippets/snippets_filterBoolean.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterBoolean.js +0 -10
- package/dist/generators/ts/_snippets/snippets_filterDate.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterDate.js +0 -26
- package/dist/generators/ts/_snippets/snippets_filterIdentifier.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterIdentifier.js +0 -14
- package/dist/generators/ts/_snippets/snippets_filterIri.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterIri.js +0 -10
- package/dist/generators/ts/_snippets/snippets_filterLiteral.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterLiteral.js +0 -6
- package/dist/generators/ts/_snippets/snippets_filterMaybe.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterMaybe.js +0 -22
- package/dist/generators/ts/_snippets/snippets_filterNumeric.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterNumeric.js +0 -26
- package/dist/generators/ts/_snippets/snippets_filterString.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterString.js +0 -18
- package/dist/generators/ts/_snippets/snippets_filterTerm.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterTerm.js +0 -22
- package/dist/generators/ts/_snippets/snippets_floatFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_floatFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_hashArray.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashArray.js +0 -11
- package/dist/generators/ts/_snippets/snippets_hashBigDecimal.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashBigDecimal.js +0 -7
- package/dist/generators/ts/_snippets/snippets_hashBoolean.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashBoolean.js +0 -7
- package/dist/generators/ts/_snippets/snippets_hashDate.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashDate.js +0 -7
- package/dist/generators/ts/_snippets/snippets_hashDateTime.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashDateTime.js +0 -7
- package/dist/generators/ts/_snippets/snippets_hashMaybe.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashMaybe.js +0 -11
- package/dist/generators/ts/_snippets/snippets_hashNumeric.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashNumeric.js +0 -7
- package/dist/generators/ts/_snippets/snippets_hashString.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashString.js +0 -7
- package/dist/generators/ts/_snippets/snippets_hashTerm.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashTerm.js +0 -12
- package/dist/generators/ts/_snippets/snippets_identifierFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_identifierFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_identifierSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_identifierSparqlWherePatterns.js +0 -30
- package/dist/generators/ts/_snippets/snippets_identityConversionFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_identityConversionFunction.js +0 -6
- package/dist/generators/ts/_snippets/snippets_identityValidationFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_identityValidationFunction.js +0 -6
- package/dist/generators/ts/_snippets/snippets_intFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_intFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_iriFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_iriFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_iriSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_iriSparqlWherePatterns.js +0 -13
- package/dist/generators/ts/_snippets/snippets_liftSparqlPatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_liftSparqlPatterns.js +0 -15
- package/dist/generators/ts/_snippets/snippets_listFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_listFromRdfResourceValues.js +0 -15
- package/dist/generators/ts/_snippets/snippets_listSparqlConstructTriples.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_listSparqlConstructTriples.js +0 -37
- package/dist/generators/ts/_snippets/snippets_listSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_listSparqlWherePatterns.js +0 -116
- package/dist/generators/ts/_snippets/snippets_literalFactory.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_literalFactory.js +0 -3
- package/dist/generators/ts/_snippets/snippets_literalFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_literalFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_literalSchemaSparqlPatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_literalSchemaSparqlPatterns.js +0 -39
- package/dist/generators/ts/_snippets/snippets_literalSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_literalSparqlWherePatterns.js +0 -5
- package/dist/generators/ts/_snippets/snippets_maybeEquals.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_maybeEquals.js +0 -31
- package/dist/generators/ts/_snippets/snippets_maybeFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_maybeFromRdfResourceValues.js +0 -11
- package/dist/generators/ts/_snippets/snippets_maybeSparqlConstructTriples.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_maybeSparqlConstructTriples.js +0 -6
- package/dist/generators/ts/_snippets/snippets_maybeSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_maybeSparqlWherePatterns.js +0 -21
- package/dist/generators/ts/_snippets/snippets_monkeyPatchObject.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_monkeyPatchObject.js +0 -16
- package/dist/generators/ts/_snippets/snippets_mutableListFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_mutableListFromRdfResourceValues.js +0 -8
- package/dist/generators/ts/_snippets/snippets_mutableSetFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_mutableSetFromRdfResourceValues.js +0 -8
- package/dist/generators/ts/_snippets/snippets_normalizeSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_normalizeSparqlWherePatterns.js +0 -92
- package/dist/generators/ts/_snippets/snippets_numericSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_numericSparqlWherePatterns.js +0 -62
- package/dist/generators/ts/_snippets/snippets_parseBlankNode.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_parseBlankNode.js +0 -9
- package/dist/generators/ts/_snippets/snippets_parseIdentifier.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_parseIdentifier.js +0 -4
- package/dist/generators/ts/_snippets/snippets_parseIri.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_parseIri.js +0 -9
- package/dist/generators/ts/_snippets/snippets_sequenceRecord.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_sequenceRecord.js +0 -18
- package/dist/generators/ts/_snippets/snippets_setFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_setFromRdfResourceValues.js +0 -9
- package/dist/generators/ts/_snippets/snippets_setSparqlConstructTriples.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_setSparqlConstructTriples.js +0 -6
- package/dist/generators/ts/_snippets/snippets_setSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_setSparqlWherePatterns.js +0 -17
- package/dist/generators/ts/_snippets/snippets_shaclPropertyFromRdf.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_shaclPropertyFromRdf.js +0 -17
- package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlConstructTriples.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlConstructTriples.js +0 -90
- package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlWherePatterns.js +0 -86
- package/dist/generators/ts/_snippets/snippets_sortSparqlPatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_sortSparqlPatterns.js +0 -24
- package/dist/generators/ts/_snippets/snippets_sparqlInstancesOfPattern.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_sparqlInstancesOfPattern.js +0 -29
- package/dist/generators/ts/_snippets/snippets_sparqlPropertyPath.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_sparqlPropertyPath.js +0 -59
- package/dist/generators/ts/_snippets/snippets_sparqlValueInPattern.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_sparqlValueInPattern.js +0 -23
- package/dist/generators/ts/_snippets/snippets_strictEquals.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_strictEquals.js +0 -12
- package/dist/generators/ts/_snippets/snippets_stringFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_stringFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_stringSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_stringSparqlWherePatterns.js +0 -39
- package/dist/generators/ts/_snippets/snippets_termFilterSparqlPatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_termFilterSparqlPatterns.js +0 -93
- package/dist/generators/ts/_snippets/snippets_termFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_termFromRdfResourceValues.js +0 -17
- package/dist/generators/ts/_snippets/snippets_termLikeFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_termLikeFromRdfResourceValues.js +0 -60
- package/dist/generators/ts/_snippets/snippets_termSchemaSparqlPatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_termSchemaSparqlPatterns.js +0 -24
- package/dist/generators/ts/_snippets/snippets_termSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_termSparqlWherePatterns.js +0 -5
- package/dist/generators/ts/_snippets/snippets_toIsoDateString.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_toIsoDateString.js +0 -6
- package/dist/generators/ts/_snippets/snippets_validateArray.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_validateArray.js +0 -13
- package/dist/generators/ts/_snippets/snippets_validateMaybe.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_validateMaybe.js +0 -7
- package/dist/generators/ts/_snippets/snippets_wrap_FromRdfResourceFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_wrap_FromRdfResourceFunction.js +0 -9
- package/dist/generators/ts/_snippets/snippets_wrap_ToRdfResourceFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_wrap_ToRdfResourceFunction.js +0 -14
- package/dist/generators/ts/codeEquals.d.ts +0 -3
- package/dist/generators/ts/codeEquals.js +0 -7
- package/dist/generators/ts/rdfjsTermExpression.d.ts +0 -11
- package/dist/generators/ts/rdfjsTermExpression.js +0 -72
- package/dist/generators/ts/singleEntryRecord.d.ts +0 -2
- package/dist/generators/ts/singleEntryRecord.js +0 -6
- package/dist/generators/ts/ts-poet-wrapper.d.ts +0 -5
- package/dist/generators/ts/ts-poet-wrapper.js +0 -13
- package/dist/generators/ts/tsComment.d.ts +0 -5
- package/dist/generators/ts/tsComment.js +0 -11
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -6
- package/dist/input/ShapesGraph.d.ts +0 -44
- package/dist/input/ShapesGraph.js +0 -66
- package/dist/input/generated.d.ts +0 -4074
- package/dist/input/generated.js +0 -3417
- package/dist/input/index.d.ts +0 -3
- package/dist/input/index.js +0 -3
package/dist/ast/StructType.js
DELETED
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { PropertyPath } from "@rdfx/resource";
|
|
8
|
-
import { invariant } from "ts-invariant";
|
|
9
|
-
import { Memoize } from "typescript-memoize";
|
|
10
|
-
import { AbstractType } from "./AbstractType.js";
|
|
11
|
-
import { arrayEquals } from "./equals.js";
|
|
12
|
-
import { Type } from "./Type.js";
|
|
13
|
-
export class StructType extends AbstractType {
|
|
14
|
-
/**
|
|
15
|
-
* Fields of this StructType.
|
|
16
|
-
*
|
|
17
|
-
* Mutable to support cycle-handling logic in the compiler.
|
|
18
|
-
*/
|
|
19
|
-
#fields = [];
|
|
20
|
-
fieldNames = new Set();
|
|
21
|
-
/**
|
|
22
|
-
* If true, the code for this StructType is defined externally and should not be generated.
|
|
23
|
-
*
|
|
24
|
-
* Defaults to false.
|
|
25
|
-
*/
|
|
26
|
-
extern;
|
|
27
|
-
/**
|
|
28
|
-
* The expected rdf:type of instances of this StructType.
|
|
29
|
-
*
|
|
30
|
-
* This is usually the identifier of an sh:NodeShape that is also an rdfs:Class (i.e., a node shape with implicit
|
|
31
|
-
* class targets).
|
|
32
|
-
*/
|
|
33
|
-
fromRdfType;
|
|
34
|
-
/**
|
|
35
|
-
* Identifier type.
|
|
36
|
-
*/
|
|
37
|
-
identifierType;
|
|
38
|
-
/**
|
|
39
|
-
* Type discriminant.
|
|
40
|
-
*/
|
|
41
|
-
kind = "Struct";
|
|
42
|
-
nodeKinds = nodeKinds;
|
|
43
|
-
/**
|
|
44
|
-
* Was this type synthesized or did it come from SHACL?
|
|
45
|
-
*/
|
|
46
|
-
synthetic;
|
|
47
|
-
/**
|
|
48
|
-
* rdf:type's that will be added to this object when it's serialized toRdf.
|
|
49
|
-
*
|
|
50
|
-
* This is usually the identifier of an sh:NodeShape that is also an rdfs:Class (i.e., a node shape with implicit
|
|
51
|
-
* class targets).
|
|
52
|
-
*/
|
|
53
|
-
toRdfTypes;
|
|
54
|
-
/**
|
|
55
|
-
* TypeScript imports to add to generated code.
|
|
56
|
-
*
|
|
57
|
-
* This is often used in conjunction with extern=true to import the extern'd StructType code in order for generated
|
|
58
|
-
* code to reference it.
|
|
59
|
-
*
|
|
60
|
-
* import { MyType } from "./MyType.js"
|
|
61
|
-
*/
|
|
62
|
-
tsImports;
|
|
63
|
-
constructor({ extern, fromRdfType, identifierType, synthetic, toRdfTypes, tsImports, ...superParameters }) {
|
|
64
|
-
super(superParameters);
|
|
65
|
-
this.extern = extern;
|
|
66
|
-
this.fromRdfType = fromRdfType;
|
|
67
|
-
this.identifierType = identifierType;
|
|
68
|
-
this.synthetic = synthetic;
|
|
69
|
-
this.toRdfTypes = toRdfTypes;
|
|
70
|
-
this.tsImports = tsImports;
|
|
71
|
-
}
|
|
72
|
-
get fields() {
|
|
73
|
-
return this.#fields;
|
|
74
|
-
}
|
|
75
|
-
get recursive() {
|
|
76
|
-
return this.fields.some((field) => field.recursive);
|
|
77
|
-
}
|
|
78
|
-
addFields(...fields) {
|
|
79
|
-
for (const field of fields) {
|
|
80
|
-
invariant(Object.is(field.structType, this), "field has unexpected .structType");
|
|
81
|
-
invariant(!this.fieldNames.has(field.name), `${field.structType.shapeIdentifier}: duplicate field name: ${field.name}`);
|
|
82
|
-
this.#fields.push(field);
|
|
83
|
-
this.fieldNames.add(field.name);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
equals(other) {
|
|
87
|
-
// Don't recurse
|
|
88
|
-
return this.shapeIdentifier.equals(other.shapeIdentifier);
|
|
89
|
-
}
|
|
90
|
-
sortFields() {
|
|
91
|
-
this.#fields.sort((left, right) => {
|
|
92
|
-
if (left.order < right.order) {
|
|
93
|
-
return -1;
|
|
94
|
-
}
|
|
95
|
-
if (left.order > right.order) {
|
|
96
|
-
return 1;
|
|
97
|
-
}
|
|
98
|
-
return 0;
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
toJSON() {
|
|
102
|
-
return {
|
|
103
|
-
...super.toJSON(),
|
|
104
|
-
fromRdfType: this.fromRdfType.extract(),
|
|
105
|
-
identifierType: this.identifierType.toJSON(),
|
|
106
|
-
synthetic: this.synthetic ? true : undefined,
|
|
107
|
-
toRdfTypes: this.toRdfTypes.length > 0 ? this.toRdfTypes : undefined,
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
const nodeKinds = new Set(["BlankNode", "IRI"]);
|
|
112
|
-
(function (StructType) {
|
|
113
|
-
class Field {
|
|
114
|
-
/**
|
|
115
|
-
* Documentation comment from rdfs:comment.
|
|
116
|
-
*/
|
|
117
|
-
comment;
|
|
118
|
-
/**
|
|
119
|
-
* Description from sh:description.
|
|
120
|
-
*/
|
|
121
|
-
description;
|
|
122
|
-
/**
|
|
123
|
-
* Should the field and its value be displayed in a toString()-type representation?
|
|
124
|
-
*/
|
|
125
|
-
display;
|
|
126
|
-
/**
|
|
127
|
-
* Human-readable label from rdfs:label.
|
|
128
|
-
*/
|
|
129
|
-
label;
|
|
130
|
-
/**
|
|
131
|
-
* The field should be mutable in generated code i.e., it should be re-assignable. The field value may or may
|
|
132
|
-
* not be mutable.
|
|
133
|
-
*/
|
|
134
|
-
mutable;
|
|
135
|
-
/**
|
|
136
|
-
* Name of this field, derived from sh:name or shaclmate:name.
|
|
137
|
-
*/
|
|
138
|
-
name;
|
|
139
|
-
/**
|
|
140
|
-
* Relative order of this field, derived from sh:order.
|
|
141
|
-
*/
|
|
142
|
-
order;
|
|
143
|
-
/**
|
|
144
|
-
* SHACL property path (https://www.w3.org/TR/shacl/#field-paths)
|
|
145
|
-
*/
|
|
146
|
-
path;
|
|
147
|
-
/**
|
|
148
|
-
* Identifier of the field shape.
|
|
149
|
-
*/
|
|
150
|
-
shapeIdentifier;
|
|
151
|
-
/**
|
|
152
|
-
* StructType this field belongs to.
|
|
153
|
-
*/
|
|
154
|
-
structType;
|
|
155
|
-
/**
|
|
156
|
-
* Type of this field.
|
|
157
|
-
*/
|
|
158
|
-
type;
|
|
159
|
-
constructor({ comment, description, display, label, mutable, name, order, path, shapeIdentifier, structType, type, }) {
|
|
160
|
-
this.comment = comment;
|
|
161
|
-
this.description = description;
|
|
162
|
-
this.display = display;
|
|
163
|
-
this.label = label;
|
|
164
|
-
this.mutable = mutable;
|
|
165
|
-
this.name = name;
|
|
166
|
-
this.structType = structType;
|
|
167
|
-
this.order = order;
|
|
168
|
-
this.path = path;
|
|
169
|
-
this.shapeIdentifier = shapeIdentifier;
|
|
170
|
-
this.type = type;
|
|
171
|
-
}
|
|
172
|
-
equals(other) {
|
|
173
|
-
return this.shapeIdentifier.equals(other.shapeIdentifier);
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* Does the field directly or indirectly reference the StructType itself?
|
|
177
|
-
*/
|
|
178
|
-
get recursive() {
|
|
179
|
-
const DEBUG = false;
|
|
180
|
-
const rootField = this;
|
|
181
|
-
const rootStructType = this.structType;
|
|
182
|
-
function helper(stack) {
|
|
183
|
-
const currentStackFrame = stack.at(-1);
|
|
184
|
-
const { field, fieldType, structType } = currentStackFrame;
|
|
185
|
-
if (DEBUG) {
|
|
186
|
-
process.stderr.write(`${[
|
|
187
|
-
stack.length.toString(),
|
|
188
|
-
rootField,
|
|
189
|
-
rootStructType,
|
|
190
|
-
field,
|
|
191
|
-
fieldType
|
|
192
|
-
? `[${fieldType.map(Type.toString).join(", ")}]`
|
|
193
|
-
: "undefined",
|
|
194
|
-
structType,
|
|
195
|
-
].join(",")}\n`);
|
|
196
|
-
}
|
|
197
|
-
for (const lowerStackFrame of stack.slice(0, -1)) {
|
|
198
|
-
if (!Type.equals(currentStackFrame.structType, lowerStackFrame.structType)) {
|
|
199
|
-
continue;
|
|
200
|
-
}
|
|
201
|
-
if (!currentStackFrame.field.equals(lowerStackFrame.field)) {
|
|
202
|
-
continue;
|
|
203
|
-
}
|
|
204
|
-
if (!arrayEquals(Type.equals)(currentStackFrame.fieldType ?? [], lowerStackFrame.fieldType ?? [])) {
|
|
205
|
-
continue;
|
|
206
|
-
}
|
|
207
|
-
// We've seen this combination before and don't want to recurse further, to avoid infinite recursion
|
|
208
|
-
if (DEBUG) {
|
|
209
|
-
process.stderr.write("recursion detected, halting");
|
|
210
|
-
}
|
|
211
|
-
return true;
|
|
212
|
-
}
|
|
213
|
-
if (!fieldType) {
|
|
214
|
-
return helper(stack.concat({
|
|
215
|
-
field,
|
|
216
|
-
fieldType: [field.type],
|
|
217
|
-
structType,
|
|
218
|
-
}));
|
|
219
|
-
}
|
|
220
|
-
invariant(fieldType.length > 0);
|
|
221
|
-
const currentFieldType = fieldType.at(-1);
|
|
222
|
-
switch (currentFieldType.kind) {
|
|
223
|
-
case "BlankNode":
|
|
224
|
-
case "Identifier":
|
|
225
|
-
case "Iri":
|
|
226
|
-
case "Literal":
|
|
227
|
-
case "Term":
|
|
228
|
-
return false;
|
|
229
|
-
case "LazyOption":
|
|
230
|
-
case "LazySet":
|
|
231
|
-
case "Lazy": {
|
|
232
|
-
if (helper(stack.concat({
|
|
233
|
-
field,
|
|
234
|
-
fieldType: fieldType.concat(currentFieldType.partialType),
|
|
235
|
-
structType,
|
|
236
|
-
}))) {
|
|
237
|
-
return true;
|
|
238
|
-
}
|
|
239
|
-
if (helper(stack.concat({
|
|
240
|
-
field,
|
|
241
|
-
fieldType: fieldType.concat(currentFieldType.resolveType),
|
|
242
|
-
structType,
|
|
243
|
-
}))) {
|
|
244
|
-
return true;
|
|
245
|
-
}
|
|
246
|
-
return false;
|
|
247
|
-
}
|
|
248
|
-
case "Struct": {
|
|
249
|
-
if (DEBUG) {
|
|
250
|
-
process.stderr.write(`recurse into ${currentFieldType}`);
|
|
251
|
-
}
|
|
252
|
-
for (const field of currentFieldType.fields) {
|
|
253
|
-
if (helper(stack.concat({
|
|
254
|
-
structType: currentFieldType,
|
|
255
|
-
field,
|
|
256
|
-
}))) {
|
|
257
|
-
return true;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
return false;
|
|
261
|
-
}
|
|
262
|
-
case "Intersection":
|
|
263
|
-
case "Union": {
|
|
264
|
-
if (DEBUG) {
|
|
265
|
-
process.stderr.write(`recurse into ${currentFieldType}`);
|
|
266
|
-
}
|
|
267
|
-
for (const member of currentFieldType.members) {
|
|
268
|
-
if (helper(stack.concat({
|
|
269
|
-
field,
|
|
270
|
-
fieldType: fieldType.concat(member.type),
|
|
271
|
-
structType,
|
|
272
|
-
}))) {
|
|
273
|
-
return true;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
return false;
|
|
277
|
-
}
|
|
278
|
-
case "DefaultValue":
|
|
279
|
-
case "List":
|
|
280
|
-
case "Option":
|
|
281
|
-
case "Set":
|
|
282
|
-
return helper(stack.concat({
|
|
283
|
-
field,
|
|
284
|
-
fieldType: fieldType.concat(currentFieldType.itemType),
|
|
285
|
-
structType,
|
|
286
|
-
}));
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
return helper([{ structType: rootStructType, field: rootField }]);
|
|
290
|
-
}
|
|
291
|
-
toJSON() {
|
|
292
|
-
return {
|
|
293
|
-
comment: this.comment.extract(),
|
|
294
|
-
description: this.description.extract(),
|
|
295
|
-
label: this.label.extract(),
|
|
296
|
-
mutable: this.mutable ? true : undefined,
|
|
297
|
-
name: this.name,
|
|
298
|
-
order: this.order,
|
|
299
|
-
path: PropertyPath.toString(this.path),
|
|
300
|
-
recursive: this.recursive ? true : undefined,
|
|
301
|
-
shapeIdentifier: this.shapeIdentifier,
|
|
302
|
-
type: this.type.toJSON(),
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
toString() {
|
|
306
|
-
return JSON.stringify(this.toJSON());
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
__decorate([
|
|
310
|
-
Memoize()
|
|
311
|
-
], Field.prototype, "recursive", null);
|
|
312
|
-
StructType.Field = Field;
|
|
313
|
-
})(StructType || (StructType = {}));
|
|
314
|
-
//# sourceMappingURL=StructType.js.map
|
package/dist/ast/TermType.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { BlankNode, Literal, NamedNode } from "@rdfjs/types";
|
|
2
|
-
import type { NodeKind } from "@shaclmate/shacl-ast";
|
|
3
|
-
import { AbstractTermType } from "./AbstractTermType.js";
|
|
4
|
-
/**
|
|
5
|
-
* Term type that is neither an IdentifierType nor a LiteralType. For example, a term type with nodeKinds = Literal | NamedNode.
|
|
6
|
-
*/
|
|
7
|
-
export declare class TermType extends AbstractTermType<Literal | NamedNode, BlankNode | Literal | NamedNode> {
|
|
8
|
-
readonly kind = "Term";
|
|
9
|
-
readonly nodeKinds: ReadonlySet<NodeKind>;
|
|
10
|
-
constructor({ nodeKinds, ...superParameters }: ConstructorParameters<typeof AbstractTermType<Literal | NamedNode, BlankNode | Literal | NamedNode>>[0] & {
|
|
11
|
-
nodeKinds: ReadonlySet<NodeKind>;
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=TermType.d.ts.map
|
package/dist/ast/TermType.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { invariant } from "ts-invariant";
|
|
2
|
-
import { AbstractTermType } from "./AbstractTermType.js";
|
|
3
|
-
/**
|
|
4
|
-
* Term type that is neither an IdentifierType nor a LiteralType. For example, a term type with nodeKinds = Literal | NamedNode.
|
|
5
|
-
*/
|
|
6
|
-
export class TermType extends AbstractTermType {
|
|
7
|
-
kind = "Term";
|
|
8
|
-
nodeKinds;
|
|
9
|
-
constructor({ nodeKinds, ...superParameters }) {
|
|
10
|
-
super(superParameters);
|
|
11
|
-
this.nodeKinds = nodeKinds;
|
|
12
|
-
invariant(this.nodeKinds.has("Literal") &&
|
|
13
|
-
(this.nodeKinds.has("BlankNode") || this.nodeKinds.has("IRI")), "should be IdentifierType or LiteralType");
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=TermType.js.map
|
package/dist/ast/Type.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { BlankNodeType } from "./BlankNodeType.js";
|
|
2
|
-
import type { DefaultValueType } from "./DefaultValueType.js";
|
|
3
|
-
import type { IdentifierType } from "./IdentifierType.js";
|
|
4
|
-
import type { IntersectionType } from "./IntersectionType.js";
|
|
5
|
-
import type { IriType } from "./IriType.js";
|
|
6
|
-
import type { LazyOptionType } from "./LazyOptionType.js";
|
|
7
|
-
import type { LazySetType } from "./LazySetType.js";
|
|
8
|
-
import type { LazyType } from "./LazyType.js";
|
|
9
|
-
import type { ListType } from "./ListType.js";
|
|
10
|
-
import type { LiteralType } from "./LiteralType.js";
|
|
11
|
-
import type { OptionType } from "./OptionType.js";
|
|
12
|
-
import type { SetType } from "./SetType.js";
|
|
13
|
-
import type { StructType } from "./StructType.js";
|
|
14
|
-
import type { TermType } from "./TermType.js";
|
|
15
|
-
import type { UnionType } from "./UnionType.js";
|
|
16
|
-
export type Type = BlankNodeType | DefaultValueType | IdentifierType | IntersectionType | IriType | LazyOptionType | LazySetType | LazyType | ListType | LiteralType | StructType | OptionType | SetType | TermType | UnionType;
|
|
17
|
-
export declare namespace Type {
|
|
18
|
-
function equals(left: Type, right: Type): boolean;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=Type.d.ts.map
|
package/dist/ast/Type.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export var Type;
|
|
2
|
-
(function (Type) {
|
|
3
|
-
function equals(left, right) {
|
|
4
|
-
if (left.kind !== right.kind) {
|
|
5
|
-
return false;
|
|
6
|
-
}
|
|
7
|
-
switch (left.kind) {
|
|
8
|
-
case "BlankNode":
|
|
9
|
-
return left.equals(right);
|
|
10
|
-
case "DefaultValue":
|
|
11
|
-
return left.equals(right);
|
|
12
|
-
case "Identifier":
|
|
13
|
-
return left.equals(right);
|
|
14
|
-
case "Intersection":
|
|
15
|
-
return left.equals(right);
|
|
16
|
-
case "Iri":
|
|
17
|
-
return left.equals(right);
|
|
18
|
-
case "Literal":
|
|
19
|
-
return left.equals(right);
|
|
20
|
-
case "LazyOption":
|
|
21
|
-
return left.equals(right);
|
|
22
|
-
case "LazySet":
|
|
23
|
-
return left.equals(right);
|
|
24
|
-
case "Lazy":
|
|
25
|
-
return left.equals(right);
|
|
26
|
-
case "List":
|
|
27
|
-
return left.equals(right);
|
|
28
|
-
case "Struct":
|
|
29
|
-
return left.equals(right);
|
|
30
|
-
case "Option":
|
|
31
|
-
return left.equals(right);
|
|
32
|
-
case "Term":
|
|
33
|
-
return left.equals(right);
|
|
34
|
-
case "Union":
|
|
35
|
-
return left.equals(right);
|
|
36
|
-
case "Set":
|
|
37
|
-
return left.equals(right);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
Type.equals = equals;
|
|
41
|
-
})(Type || (Type = {}));
|
|
42
|
-
//# sourceMappingURL=Type.js.map
|
package/dist/ast/UnionType.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { Maybe } from "purify-ts";
|
|
2
|
-
import { AbstractCompoundType } from "./AbstractCompoundType.js";
|
|
3
|
-
import type { StructUnionType } from "./StructUnionType.js";
|
|
4
|
-
/**
|
|
5
|
-
* A disjunction/union of types, corresponding to an sh:xone.
|
|
6
|
-
*/
|
|
7
|
-
export declare class UnionType<MemberTypeT extends UnionType.MemberType = UnionType.MemberType> extends AbstractCompoundType<UnionType.Member<MemberTypeT>, MemberTypeT> {
|
|
8
|
-
readonly kind = "Union";
|
|
9
|
-
isStructUnionType(): this is StructUnionType;
|
|
10
|
-
toJSON(): {
|
|
11
|
-
members: {
|
|
12
|
-
discriminantValue: string | number | undefined;
|
|
13
|
-
type: any;
|
|
14
|
-
}[] | undefined;
|
|
15
|
-
comment: string | undefined;
|
|
16
|
-
kind: string;
|
|
17
|
-
label: string | undefined;
|
|
18
|
-
name: string | undefined;
|
|
19
|
-
recursive: boolean | undefined;
|
|
20
|
-
shapeIdentifier: import("@rdfjs/types").BlankNode | import("@rdfjs/types").NamedNode<string>;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export declare namespace UnionType {
|
|
24
|
-
interface Member<TypeT extends UnionType.MemberType> extends AbstractCompoundType.Member<TypeT> {
|
|
25
|
-
readonly discriminantValue: Maybe<number | string>;
|
|
26
|
-
}
|
|
27
|
-
type MemberType = AbstractCompoundType.MemberType;
|
|
28
|
-
const isMemberType: typeof AbstractCompoundType.isMemberType;
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=UnionType.d.ts.map
|
package/dist/ast/UnionType.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { AbstractCompoundType } from "./AbstractCompoundType.js";
|
|
2
|
-
/**
|
|
3
|
-
* A disjunction/union of types, corresponding to an sh:xone.
|
|
4
|
-
*/
|
|
5
|
-
export class UnionType extends AbstractCompoundType {
|
|
6
|
-
kind = "Union";
|
|
7
|
-
isStructUnionType() {
|
|
8
|
-
return (this.members.length > 0 &&
|
|
9
|
-
this.members.every((member) => member.type.kind === "Struct" ||
|
|
10
|
-
(member.type.kind === "Union" && member.type.isStructUnionType())));
|
|
11
|
-
}
|
|
12
|
-
toJSON() {
|
|
13
|
-
return {
|
|
14
|
-
...super.toJSON(),
|
|
15
|
-
members: !this.recursive
|
|
16
|
-
? this.members.map((member) => ({
|
|
17
|
-
discriminantValue: member.discriminantValue.extract(),
|
|
18
|
-
type: member.type.toJSON(),
|
|
19
|
-
}))
|
|
20
|
-
: undefined,
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
(function (UnionType) {
|
|
25
|
-
UnionType.isMemberType = AbstractCompoundType.isMemberType;
|
|
26
|
-
})(UnionType || (UnionType = {}));
|
|
27
|
-
//# sourceMappingURL=UnionType.js.map
|
package/dist/ast/equals.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Term } from "@rdfjs/types";
|
|
2
|
-
import type { Maybe } from "purify-ts";
|
|
3
|
-
type EqualsFunction<T> = (left: T, right: T) => boolean;
|
|
4
|
-
export declare function arrayEquals<T>(elementEquals: EqualsFunction<T>): EqualsFunction<readonly T[]>;
|
|
5
|
-
export declare function dateEquals(left: Date, right: Date): boolean;
|
|
6
|
-
export declare function maybeEquals<T>(valueEquals: EqualsFunction<T>): EqualsFunction<Maybe<T>>;
|
|
7
|
-
export declare function recordEquals<KeyT extends keyof any, ValueT>(valueEquals: EqualsFunction<ValueT>): EqualsFunction<Record<KeyT, ValueT>>;
|
|
8
|
-
export declare function setEquals<T>(elementEquals: EqualsFunction<T>): EqualsFunction<ReadonlySet<T>>;
|
|
9
|
-
export declare function strictEquals<T>(left: T, right: T): boolean;
|
|
10
|
-
export declare function termEquals(left: Term, right: Term): boolean;
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=equals.d.ts.map
|
package/dist/ast/equals.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
export function arrayEquals(elementEquals) {
|
|
2
|
-
return (left, right) => {
|
|
3
|
-
if (left.length !== right.length) {
|
|
4
|
-
return false;
|
|
5
|
-
}
|
|
6
|
-
for (let i = 0; i < left.length; i++) {
|
|
7
|
-
if (!elementEquals(left[i], right[i])) {
|
|
8
|
-
return false;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
return true;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export function dateEquals(left, right) {
|
|
15
|
-
return left.getTime() === right.getTime();
|
|
16
|
-
}
|
|
17
|
-
export function maybeEquals(valueEquals) {
|
|
18
|
-
return (left, right) => {
|
|
19
|
-
if (left.isJust()) {
|
|
20
|
-
if (right.isJust()) {
|
|
21
|
-
return valueEquals(left.unsafeCoerce(), right.unsafeCoerce());
|
|
22
|
-
}
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
if (right.isJust()) {
|
|
26
|
-
return false;
|
|
27
|
-
}
|
|
28
|
-
return true;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export function recordEquals(valueEquals) {
|
|
32
|
-
return (left, right) => {
|
|
33
|
-
const leftKeys = Object.keys(left);
|
|
34
|
-
const rightKeys = Object.keys(right);
|
|
35
|
-
if (leftKeys.length !== rightKeys.length) {
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
38
|
-
for (const leftKey of leftKeys) {
|
|
39
|
-
const leftValue = left[leftKey];
|
|
40
|
-
const rightValue = right[leftKey];
|
|
41
|
-
if (rightValue === undefined) {
|
|
42
|
-
return false;
|
|
43
|
-
}
|
|
44
|
-
if (!valueEquals(leftValue, rightValue)) {
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return true;
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
export function setEquals(elementEquals) {
|
|
52
|
-
return (left, right) => {
|
|
53
|
-
if (left.size !== right.size) {
|
|
54
|
-
return false;
|
|
55
|
-
}
|
|
56
|
-
return arrayEquals(elementEquals)([...left], [...right]);
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
export function strictEquals(left, right) {
|
|
60
|
-
return left === right;
|
|
61
|
-
}
|
|
62
|
-
export function termEquals(left, right) {
|
|
63
|
-
return left.equals(right);
|
|
64
|
-
}
|
|
65
|
-
//# sourceMappingURL=equals.js.map
|
package/dist/ast/index.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export * from "./Ast.js";
|
|
2
|
-
export * from "./BlankNodeType.js";
|
|
3
|
-
export * from "./DefaultValueType.js";
|
|
4
|
-
export * from "./IdentifierType.js";
|
|
5
|
-
export * from "./IntersectionType.js";
|
|
6
|
-
export * from "./IriType.js";
|
|
7
|
-
export * from "./LazyOptionType.js";
|
|
8
|
-
export * from "./LazySetType.js";
|
|
9
|
-
export * from "./LazyType.js";
|
|
10
|
-
export * from "./ListType.js";
|
|
11
|
-
export * from "./LiteralType.js";
|
|
12
|
-
export * from "./OptionType.js";
|
|
13
|
-
export * from "./SetType.js";
|
|
14
|
-
export * from "./StructCompoundType.js";
|
|
15
|
-
export * from "./StructIntersectionType.js";
|
|
16
|
-
export * from "./StructType.js";
|
|
17
|
-
export * from "./StructUnionType.js";
|
|
18
|
-
export * from "./TermType.js";
|
|
19
|
-
export * from "./Type.js";
|
|
20
|
-
export * from "./UnionType.js";
|
|
21
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/ast/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export * from "./Ast.js";
|
|
2
|
-
export * from "./BlankNodeType.js";
|
|
3
|
-
export * from "./DefaultValueType.js";
|
|
4
|
-
export * from "./IdentifierType.js";
|
|
5
|
-
export * from "./IntersectionType.js";
|
|
6
|
-
export * from "./IriType.js";
|
|
7
|
-
export * from "./LazyOptionType.js";
|
|
8
|
-
export * from "./LazySetType.js";
|
|
9
|
-
export * from "./LazyType.js";
|
|
10
|
-
export * from "./ListType.js";
|
|
11
|
-
export * from "./LiteralType.js";
|
|
12
|
-
export * from "./OptionType.js";
|
|
13
|
-
export * from "./SetType.js";
|
|
14
|
-
export * from "./StructCompoundType.js";
|
|
15
|
-
export * from "./StructIntersectionType.js";
|
|
16
|
-
export * from "./StructType.js";
|
|
17
|
-
export * from "./StructUnionType.js";
|
|
18
|
-
export * from "./TermType.js";
|
|
19
|
-
export * from "./Type.js";
|
|
20
|
-
export * from "./UnionType.js";
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export class AstJsonGenerator {
|
|
2
|
-
generate(ast) {
|
|
3
|
-
return JSON.stringify({
|
|
4
|
-
namedTypes: ast.namedTypes.map((namedType) => ({
|
|
5
|
-
...namedType.toJSON(),
|
|
6
|
-
...(namedType.kind === "Struct"
|
|
7
|
-
? {
|
|
8
|
-
properties: namedType.fields.map((property) => property.toJSON()),
|
|
9
|
-
}
|
|
10
|
-
: {}),
|
|
11
|
-
})),
|
|
12
|
-
}, undefined, 2);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=AstJsonGenerator.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Ast } from "../ast/Ast.js";
|
|
2
|
-
import type { Generator } from "./Generator.js";
|
|
3
|
-
export declare class Cx2Generator implements Generator {
|
|
4
|
-
private readonly visualProperties;
|
|
5
|
-
constructor(options?: {
|
|
6
|
-
visualProperties?: Record<string, unknown>;
|
|
7
|
-
});
|
|
8
|
-
generate(ast: Ast): string;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=Cx2Generator.d.ts.map
|