@shaclmate/compiler 4.0.94 → 4.0.95
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/Eithers.d.ts +2 -1
- package/dist/Eithers.js +15 -0
- package/dist/ShapesGraphToAstTransformer.js +10 -0
- package/dist/_ShapesGraphToAstTransformer/ShapeStack.d.ts +2 -2
- package/dist/_ShapesGraphToAstTransformer/ShapeStack.js +2 -1
- package/dist/_ShapesGraphToAstTransformer/isNodeShape.d.ts +3 -0
- package/dist/_ShapesGraphToAstTransformer/isNodeShape.js +4 -0
- package/dist/_ShapesGraphToAstTransformer/isPropertyShape.d.ts +3 -0
- package/dist/_ShapesGraphToAstTransformer/isPropertyShape.js +4 -0
- package/dist/_ShapesGraphToAstTransformer/shapeAstTypeName.d.ts +2 -1
- package/dist/_ShapesGraphToAstTransformer/shapeAstTypeName.js +4 -3
- package/dist/_ShapesGraphToAstTransformer/shapeNodeKinds.d.ts +1 -1
- package/dist/_ShapesGraphToAstTransformer/shapeNodeKinds.js +7 -3
- package/dist/_ShapesGraphToAstTransformer/shapeOntology.d.ts +1 -1
- package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstStructTypeField.d.ts +1 -1
- package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstStructTypeField.js +34 -16
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.d.ts +1 -1
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.js +3 -2
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.d.ts +1 -1
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.js +3 -3
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstStructType.d.ts +1 -1
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstStructType.js +86 -65
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstTermType.d.ts +1 -1
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstTermType.js +1 -1
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.d.ts +1 -1
- package/dist/ast/AbstractCollectionType.d.ts +2 -2
- package/dist/ast/AbstractConstruct.d.ts +25 -0
- package/dist/ast/AbstractConstruct.js +38 -0
- package/dist/ast/AbstractContainerType.d.ts +2 -2
- package/dist/ast/AbstractLazyType.d.ts +14 -36
- package/dist/ast/AbstractTermType.d.ts +2 -2
- package/dist/ast/AbstractType.d.ts +7 -17
- package/dist/ast/AbstractType.js +6 -22
- package/dist/ast/Ast.d.ts +2 -0
- package/dist/ast/DefaultValueType.d.ts +2 -2
- package/dist/ast/DiscriminatedUnionType.d.ts +2 -2
- package/dist/ast/DiscriminatedUnionType.js +3 -1
- package/dist/ast/LiteralType.d.ts +2 -2
- package/dist/ast/Operation.d.ts +67 -0
- package/dist/ast/Operation.js +32 -0
- package/dist/ast/Service.d.ts +17 -0
- package/dist/ast/Service.js +17 -0
- package/dist/ast/SetType.d.ts +2 -2
- package/dist/ast/StructCompoundType.d.ts +1 -1
- package/dist/ast/StructCompoundType.js +5 -5
- package/dist/ast/StructType.d.ts +64 -32
- package/dist/ast/StructType.js +62 -29
- package/dist/ast/index.d.ts +2 -0
- package/dist/ast/index.js +2 -0
- package/dist/generators/transformAstToLabeledPropertyGraph.js +13 -10
- package/dist/generators/ts/AbstractCallable.d.ts +20 -0
- package/dist/generators/ts/AbstractCallable.js +9 -0
- package/dist/generators/ts/AbstractCollectionType.d.ts +7 -9
- package/dist/generators/ts/AbstractCollectionType.js +11 -11
- package/dist/generators/ts/AbstractCompoundType.d.ts +18 -0
- package/dist/generators/ts/AbstractCompoundType.js +33 -0
- package/dist/generators/ts/AbstractConstruct.d.ts +31 -0
- package/dist/generators/ts/AbstractConstruct.js +31 -0
- package/dist/generators/ts/AbstractContainerType.d.ts +7 -4
- package/dist/generators/ts/AbstractContainerType.js +5 -2
- package/dist/generators/ts/AbstractDateType.d.ts +8 -5
- package/dist/generators/ts/AbstractDateType.js +22 -8
- package/dist/generators/ts/AbstractDiscriminatedUnionType.d.ts +43 -45
- package/dist/generators/ts/AbstractDiscriminatedUnionType.js +100 -258
- package/dist/generators/ts/AbstractIdentifierType.d.ts +8 -3
- package/dist/generators/ts/AbstractIdentifierType.js +34 -5
- package/dist/generators/ts/AbstractIntersectionType.d.ts +48 -0
- package/dist/generators/ts/AbstractIntersectionType.js +80 -0
- package/dist/generators/ts/AbstractLazyType.d.ts +28 -17
- package/dist/generators/ts/AbstractLazyType.js +61 -23
- package/dist/generators/ts/AbstractLiteralType.d.ts +2 -2
- package/dist/generators/ts/AbstractLiteralType.js +15 -1
- package/dist/generators/ts/AbstractNumericType.d.ts +5 -4
- package/dist/generators/ts/AbstractNumericType.js +4 -6
- package/dist/generators/ts/AbstractObjectSetType.d.ts +5 -6
- package/dist/generators/ts/AbstractObjectSetType.js +10 -13
- package/dist/generators/ts/AbstractPrimitiveType.d.ts +7 -7
- package/dist/generators/ts/AbstractPrimitiveType.js +18 -36
- package/dist/generators/ts/AbstractStructuredType.d.ts +71 -0
- package/dist/generators/ts/AbstractStructuredType.js +273 -0
- package/dist/generators/ts/AbstractTermType.d.ts +8 -10
- package/dist/generators/ts/AbstractTermType.js +6 -18
- package/dist/generators/ts/AbstractType.d.ts +54 -78
- package/dist/generators/ts/AbstractType.js +25 -29
- package/dist/generators/ts/AbstractTypedLiteralType.d.ts +5 -4
- package/dist/generators/ts/AbstractTypedLiteralType.js +14 -3
- package/dist/generators/ts/BigDecimalType.d.ts +15 -13
- package/dist/generators/ts/BigDecimalType.js +13 -29
- package/dist/generators/ts/BigIntType.d.ts +10 -8
- package/dist/generators/ts/BigIntType.js +26 -51
- package/dist/generators/ts/BlankNodeType.d.ts +12 -12
- package/dist/generators/ts/BlankNodeType.js +9 -35
- package/dist/generators/ts/BooleanType.d.ts +12 -6
- package/dist/generators/ts/BooleanType.js +21 -11
- package/dist/generators/ts/Callable.d.ts +5 -0
- package/dist/generators/ts/Callable.js +2 -0
- package/dist/generators/ts/CodeThunk.d.ts +6 -0
- package/dist/generators/ts/CodeThunk.js +8 -0
- package/dist/generators/ts/DateTimeType.d.ts +7 -4
- package/dist/generators/ts/DateTimeType.js +8 -21
- package/dist/generators/ts/DateType.d.ts +7 -4
- package/dist/generators/ts/DateType.js +8 -21
- package/dist/generators/ts/DeclaredCallable.d.ts +23 -0
- package/dist/generators/ts/DeclaredCallable.js +59 -0
- package/dist/generators/ts/DefaultValueType.d.ts +24 -23
- package/dist/generators/ts/DefaultValueType.js +29 -59
- package/dist/generators/ts/FloatType.d.ts +7 -2
- package/dist/generators/ts/FloatType.js +16 -6
- package/dist/generators/ts/GraphqlSchema.js +1 -1
- package/dist/generators/ts/IdentifierType.d.ts +13 -13
- package/dist/generators/ts/IdentifierType.js +10 -39
- package/dist/generators/ts/Imports.d.ts +8 -0
- package/dist/generators/ts/Imports.js +15 -7
- package/dist/generators/ts/InlineCallable.d.ts +18 -0
- package/dist/generators/ts/InlineCallable.js +51 -0
- package/dist/generators/ts/IntType.d.ts +6 -1
- package/dist/generators/ts/IntType.js +16 -1
- package/dist/generators/ts/IriType.d.ts +12 -8
- package/dist/generators/ts/IriType.js +56 -43
- package/dist/generators/ts/LangStringType.d.ts +12 -7
- package/dist/generators/ts/LangStringType.js +37 -20
- package/dist/generators/ts/LazyOptionType.d.ts +10 -24
- package/dist/generators/ts/LazyOptionType.js +5 -26
- package/dist/generators/ts/LazySetType.d.ts +7 -2
- package/dist/generators/ts/LazySetType.js +5 -25
- package/dist/generators/ts/LazyType.d.ts +7 -2
- package/dist/generators/ts/LazyType.js +5 -21
- package/dist/generators/ts/ListType.d.ts +12 -7
- package/dist/generators/ts/ListType.js +45 -22
- package/dist/generators/ts/LiteralType.d.ts +11 -7
- package/dist/generators/ts/LiteralType.js +31 -21
- package/dist/generators/ts/ObjectDiscriminatedUnionType.d.ts +19 -2
- package/dist/generators/ts/ObjectDiscriminatedUnionType.js +105 -41
- package/dist/generators/ts/ObjectIntersectionType.d.ts +44 -0
- package/dist/generators/ts/ObjectIntersectionType.js +204 -0
- package/dist/generators/ts/ObjectSetType.js +0 -1
- package/dist/generators/ts/ObjectType.d.ts +78 -49
- package/dist/generators/ts/ObjectType.js +235 -362
- package/dist/generators/ts/Operation.d.ts +54 -0
- package/dist/generators/ts/Operation.js +206 -0
- package/dist/generators/ts/OptionType.d.ts +15 -13
- package/dist/generators/ts/OptionType.js +43 -33
- package/dist/generators/ts/RdfjsDatasetObjectSetType.js +14 -7
- package/dist/generators/ts/ReferenceCallable.d.ts +14 -0
- package/dist/generators/ts/ReferenceCallable.js +16 -0
- package/dist/generators/ts/Service.d.ts +15 -0
- package/dist/generators/ts/Service.js +53 -0
- package/dist/generators/ts/SetType.d.ts +11 -8
- package/dist/generators/ts/SetType.js +35 -35
- package/dist/generators/ts/SnippetFactory.d.ts +1 -1
- package/dist/generators/ts/Snippets.d.ts +80 -2
- package/dist/generators/ts/Snippets.js +622 -74
- package/dist/generators/ts/SparqlObjectSetType.js +1 -4
- package/dist/generators/ts/StringType.d.ts +10 -5
- package/dist/generators/ts/StringType.js +25 -17
- package/dist/generators/ts/TermType.d.ts +13 -7
- package/dist/generators/ts/TermType.js +61 -71
- package/dist/generators/ts/TsFeature.d.ts +4 -1
- package/dist/generators/ts/TsFeature.js +51 -0
- package/dist/generators/ts/TsGenerator.d.ts +2 -1
- package/dist/generators/ts/TsGenerator.js +98 -54
- package/dist/generators/ts/Type.d.ts +2 -1
- package/dist/generators/ts/TypeFactory.d.ts +10 -7
- package/dist/generators/ts/TypeFactory.js +193 -140
- package/dist/generators/ts/UberObjectDiscriminatedUnionType.d.ts +6 -2
- package/dist/generators/ts/UberObjectDiscriminatedUnionType.js +18 -12
- package/dist/generators/ts/ZodGenerator.js +6 -14
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_Discriminant.d.ts +3 -6
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_conversionFunctionExpression.d.ts → AbstractDiscriminatedUnionType_conversionFunction.d.ts} +1 -1
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_conversionFunctionExpression.js → AbstractDiscriminatedUnionType_conversionFunction.js} +2 -2
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_equalsFunctionExpression.d.ts → AbstractDiscriminatedUnionType_equalsFunction.d.ts} +1 -1
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_equalsFunctionExpression.js → AbstractDiscriminatedUnionType_equalsFunction.js} +4 -4
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_filterFunctionExpression.d.ts → AbstractDiscriminatedUnionType_filterFunction.d.ts} +1 -1
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_filterFunctionExpression.js → AbstractDiscriminatedUnionType_filterFunction.js} +7 -8
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_filterTypeExpression.js +1 -2
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_fromJsonObjectFunction.d.ts +5 -0
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_fromJsonObjectFunction.js +18 -0
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_fromRdfResourceValuesFunctionExpression.d.ts → AbstractDiscriminatedUnionType_fromRdfResourceValuesFunction.d.ts} +1 -1
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_fromRdfResourceValuesFunctionExpression.js → AbstractDiscriminatedUnionType_fromRdfResourceValuesFunction.js} +5 -5
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_hashFunctionExpression.d.ts → AbstractDiscriminatedUnionType_hashFunction.d.ts} +1 -1
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_hashFunctionExpression.js → AbstractDiscriminatedUnionType_hashFunction.js} +4 -5
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_inferDiscriminant.js +6 -9
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_inlineExpression.js +5 -5
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toJsonObjectFunction.d.ts +5 -0
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toJsonObjectFunction.js +16 -0
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toLoggableFunction.d.ts +5 -0
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toLoggableFunction.js +20 -0
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_toRdfResourceValuesFunctionExpression.d.ts → AbstractDiscriminatedUnionType_toRdfResourceValuesFunction.d.ts} +1 -1
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toRdfResourceValuesFunction.js +18 -0
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_toStringFunctionExpression.d.ts → AbstractDiscriminatedUnionType_toStringFunction.d.ts} +1 -1
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_toStringFunctionExpression.js → AbstractDiscriminatedUnionType_toStringFunction.js} +3 -3
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_valueSparqlConstructTriplesFunctionExpression.d.ts → AbstractDiscriminatedUnionType_valueSparqlConstructTriplesFunction.d.ts} +1 -1
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_valueSparqlConstructTriplesFunctionExpression.js → AbstractDiscriminatedUnionType_valueSparqlConstructTriplesFunction.js} +4 -4
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_valueSparqlWherePatternsFunctionExpression.d.ts → AbstractDiscriminatedUnionType_valueSparqlWherePatternsFunction.d.ts} +1 -1
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/{AbstractDiscriminatedUnionType_valueSparqlWherePatternsFunctionExpression.js → AbstractDiscriminatedUnionType_valueSparqlWherePatternsFunction.js} +4 -4
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_equalsFunction.d.ts +5 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_equalsFunction.js +7 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_filterFunction.d.ts +5 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_filterFunction.js +7 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_hashFunction.d.ts +5 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_hashFunction.js +8 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_toLoggableFunction.d.ts +5 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_toLoggableFunction.js +14 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_toStringFunction.d.ts +5 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_toStringFunction.js +17 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_valueSparqlConstructTriplesFunction.d.ts +5 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_valueSparqlConstructTriplesFunction.js +13 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_valueSparqlWherePatternsFunction.d.ts +5 -0
- package/dist/generators/ts/_AbstractIntersectionType/AbstractIntersectionType_valueSparqlWherePatternsFunction.js +13 -0
- package/dist/generators/ts/_AbstractType/AbstractType_DiscriminatedType.d.ts +9 -0
- package/dist/generators/ts/_AbstractType/AbstractType_DiscriminatedType.js +2 -0
- package/dist/generators/ts/_AbstractType/AbstractType_JsonType.d.ts +196 -11
- package/dist/generators/ts/_AbstractType/AbstractType_JsonType.js +411 -17
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/{ObjectDiscriminatedUnionType_focusSparqlConstructTriplesFunctionDeclaration.d.ts → ObjectDiscriminatedUnionType_focusSparqlConstructTriplesFunction.d.ts} +3 -3
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_focusSparqlConstructTriplesFunction.js +12 -0
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/{ObjectDiscriminatedUnionType_focusSparqlWherePatternsFunctionDeclaration.d.ts → ObjectDiscriminatedUnionType_focusSparqlWherePatternsFunction.d.ts} +3 -3
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_focusSparqlWherePatternsFunction.js +32 -0
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/{ObjectDiscriminatedUnionType_fromRdfResourceFunctionDeclaration.d.ts → ObjectDiscriminatedUnionType_fromRdfResourceFunction.d.ts} +3 -3
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_fromRdfResourceFunction.js +16 -0
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/{ObjectDiscriminatedUnionType_graphqlTypeVariableStatement.d.ts → ObjectDiscriminatedUnionType_graphqlTypeExpression.d.ts} +2 -2
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_graphqlTypeExpression.js +11 -0
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_schemaExpression.d.ts +4 -0
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/{ObjectDiscriminatedUnionType_schemaVariableStatement.js → ObjectDiscriminatedUnionType_schemaExpression.js} +3 -8
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/{ObjectDiscriminatedUnionType_toRdfResourceFunctionDeclaration.d.ts → ObjectDiscriminatedUnionType_toRdfResourceFunction.d.ts} +3 -3
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_toRdfResourceFunction.js +17 -0
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/{ObjectDiscriminatedUnionType_typeGuardFunctionDeclaration.d.ts → ObjectDiscriminatedUnionType_typeGuardFunction.d.ts} +4 -3
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_typeGuardFunction.js +14 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType__fromRdfResourceFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType__fromRdfResourceFunction.js +16 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType__toRdfResourceFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType__toRdfResourceFunction.js +18 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_createFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_createFunction.js +30 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_createFunctionParameters.d.ts +4 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_createFunctionParameters.js +25 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_createUnsafeFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_createUnsafeFunction.js +10 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_focusSparqlConstructTriplesFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_focusSparqlConstructTriplesFunction.js +19 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_focusSparqlWherePatternsFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_focusSparqlWherePatternsFunction.js +19 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_fromJsonObjectFunction.d.ts +5 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_fromJsonObjectFunction.js +15 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_fromRdfResourceFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_fromRdfResourceFunction.js +9 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_fromRdfResourceValuesFunction.d.ts +5 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_fromRdfResourceValuesFunction.js +8 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_toJsonObjectFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_toJsonObjectFunction.js +7 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_toRdfResourceFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_toRdfResourceFunction.js +12 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_toRdfResourceValuesFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_toRdfResourceValuesFunction.js +5 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_typeGuardFunction.d.ts +5 -0
- package/dist/generators/ts/_ObjectIntersectionType/ObjectIntersectionType_typeGuardFunction.js +18 -0
- package/dist/generators/ts/_ObjectType/ObjectType_AbstractProperty.d.ts +37 -23
- package/dist/generators/ts/_ObjectType/ObjectType_AbstractProperty.js +19 -1
- package/dist/generators/ts/_ObjectType/ObjectType_DiscriminantProperty.d.ts +15 -15
- package/dist/generators/ts/_ObjectType/ObjectType_DiscriminantProperty.js +22 -56
- package/dist/generators/ts/_ObjectType/ObjectType_IdentifierProperty.d.ts +9 -10
- package/dist/generators/ts/_ObjectType/ObjectType_IdentifierProperty.js +40 -49
- package/dist/generators/ts/_ObjectType/ObjectType_RdfTypeProperty.d.ts +8 -9
- package/dist/generators/ts/_ObjectType/ObjectType_RdfTypeProperty.js +47 -14
- package/dist/generators/ts/_ObjectType/ObjectType_ShaclProperty.d.ts +10 -10
- package/dist/generators/ts/_ObjectType/ObjectType_ShaclProperty.js +41 -57
- package/dist/generators/ts/_ObjectType/ObjectType__fromRdfResourceFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_fromRdfResourceFunctionExpression.js → ObjectType__fromRdfResourceFunction.js} +14 -11
- package/dist/generators/ts/_ObjectType/ObjectType__toRdfResourceFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType__toRdfResourceFunction.js +32 -0
- package/dist/generators/ts/_ObjectType/ObjectType_conversionFunction.d.ts +5 -0
- package/dist/generators/ts/_ObjectType/ObjectType_conversionFunction.js +28 -0
- package/dist/generators/ts/_ObjectType/ObjectType_createFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_createFunction.js +31 -0
- package/dist/generators/ts/_ObjectType/ObjectType_createFunctionParameters.d.ts +3 -0
- package/dist/generators/ts/_ObjectType/ObjectType_createFunctionParameters.js +29 -0
- package/dist/generators/ts/_ObjectType/ObjectType_createUnsafeFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_createUnsafeFunction.js +10 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_equalsFunctionExpression.d.ts → ObjectType_equalsFunction.d.ts} +2 -1
- package/dist/generators/ts/_ObjectType/{ObjectType_equalsFunctionExpression.js → ObjectType_equalsFunction.js} +6 -4
- package/dist/generators/ts/_ObjectType/{ObjectType_filterFunctionExpression.d.ts → ObjectType_filterFunction.d.ts} +2 -1
- package/dist/generators/ts/_ObjectType/{ObjectType_filterFunctionExpression.js → ObjectType_filterFunction.js} +5 -2
- package/dist/generators/ts/_ObjectType/{ObjectType_focusSparqlConstructTriplesFunctionExpression.d.ts → ObjectType_focusSparqlConstructTriplesFunction.d.ts} +3 -3
- package/dist/generators/ts/_ObjectType/{ObjectType_focusSparqlConstructTriplesFunctionExpression.js → ObjectType_focusSparqlConstructTriplesFunction.js} +11 -4
- package/dist/generators/ts/_ObjectType/{ObjectType_focusSparqlWherePatternsFunctionExpression.d.ts → ObjectType_focusSparqlWherePatternsFunction.d.ts} +3 -3
- package/dist/generators/ts/_ObjectType/{ObjectType_focusSparqlWherePatternsFunctionExpression.js → ObjectType_focusSparqlWherePatternsFunction.js} +11 -4
- package/dist/generators/ts/_ObjectType/ObjectType_fromJsonObjectFunction.d.ts +5 -0
- package/dist/generators/ts/_ObjectType/ObjectType_fromJsonObjectFunction.js +19 -0
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunction.js +9 -0
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceValuesFunction.d.ts +5 -0
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceValuesFunction.js +8 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_hashFunctionExpression.d.ts → ObjectType_hashFunction.d.ts} +2 -1
- package/dist/generators/ts/_ObjectType/{ObjectType_hashFunctionExpression.js → ObjectType_hashFunction.js} +10 -14
- package/dist/generators/ts/_ObjectType/ObjectType_identifierTypeDeclarations.d.ts +6 -2
- package/dist/generators/ts/_ObjectType/ObjectType_identifierTypeDeclarations.js +1 -2
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunction.d.ts +20 -0
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunction.js +39 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_sparqlConstructQueryStringFunctionDeclaration.d.ts → ObjectType_sparqlConstructQueryStringFunction.d.ts} +11 -4
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryStringFunction.js +11 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toJsonObjectFunction.d.ts +5 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toJsonObjectFunction.js +16 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toLoggableFunction.d.ts +5 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toLoggableFunction.js +11 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunction.js +12 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceValuesFunction.d.ts +5 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceValuesFunction.js +8 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_toStringFunctionExpression.d.ts → ObjectType_toStringFunction.d.ts} +2 -1
- package/dist/generators/ts/_ObjectType/ObjectType_toStringFunction.js +10 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toStringRecordFunction.d.ts +4 -0
- package/dist/generators/ts/_ObjectType/ObjectType_toStringRecordFunction.js +17 -0
- package/dist/generators/ts/_ObjectType/ObjectType_typeGuardFunction.d.ts +5 -0
- package/dist/generators/ts/_ObjectType/ObjectType_typeGuardFunction.js +18 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_valueSparqlConstructTriplesFunctionExpression.d.ts → ObjectType_valueSparqlConstructTriplesFunction.d.ts} +1 -1
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlConstructTriplesFunction.js +7 -0
- package/dist/generators/ts/_ObjectType/{ObjectType_valueSparqlWherePatternsFunctionExpression.d.ts → ObjectType_valueSparqlWherePatternsFunction.d.ts} +1 -1
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunction.js +9 -0
- package/dist/generators/ts/_snippets/snippets_BooleanSchema.js +1 -0
- package/dist/generators/ts/_snippets/snippets_DateSchema.js +1 -0
- package/dist/generators/ts/_snippets/snippets_FilterFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_FilterFunction.js +3 -0
- package/dist/generators/ts/_snippets/snippets_FromJsonObjectFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_FromJsonObjectFunction.js +21 -0
- package/dist/generators/ts/_snippets/snippets_FromJsonValueFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_FromJsonValueFunction.js +21 -0
- package/dist/generators/ts/_snippets/snippets_HashFunction.js +1 -1
- package/dist/generators/ts/_snippets/snippets_Hasher.js +1 -1
- package/dist/generators/ts/_snippets/snippets_IdentifierJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_IdentifierJsonObject.js +12 -0
- package/dist/generators/ts/_snippets/snippets_LangStringJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_LangStringJsonObject.js +14 -0
- package/dist/generators/ts/_snippets/snippets_Lazy.js +8 -1
- package/dist/generators/ts/_snippets/snippets_LazyOption.js +17 -1
- package/dist/generators/ts/_snippets/snippets_LazySet.js +8 -1
- package/dist/generators/ts/_snippets/snippets_LiteralJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_LiteralJsonObject.js +16 -0
- package/dist/generators/ts/_snippets/snippets_NumericSchema.js +1 -0
- package/dist/generators/ts/_snippets/snippets_ObjectTypeGuardFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_ObjectTypeGuardFunction.js +4 -0
- package/dist/generators/ts/_snippets/snippets_Primitive.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_Primitive.js +4 -0
- package/dist/generators/ts/_snippets/snippets_ProblemDetailsJson.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_ProblemDetailsJson.js +41 -0
- package/dist/generators/ts/_snippets/snippets_PropertyPath.js +11 -6
- package/dist/generators/ts/_snippets/snippets_SparqlConstructQueryFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_SparqlConstructQueryFunction.js +12 -0
- package/dist/generators/ts/_snippets/snippets_SparqlConstructQueryStringFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_SparqlConstructQueryStringFunction.js +13 -0
- package/dist/generators/ts/_snippets/snippets_StringSchema.js +1 -0
- package/dist/generators/ts/_snippets/snippets_TermJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_TermJsonObject.js +8 -0
- package/dist/generators/ts/_snippets/snippets_ToJsonObjectFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_ToJsonObjectFunction.js +3 -0
- package/dist/generators/ts/_snippets/snippets_ToJsonValueFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_ToJsonValueFunction.js +3 -0
- package/dist/generators/ts/_snippets/snippets_ToLoggableFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_ToLoggableFunction.js +3 -0
- package/dist/generators/ts/_snippets/snippets_ToRdfResourceFunction.js +1 -1
- package/dist/generators/ts/_snippets/snippets_ToStringFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_ToStringFunction.js +3 -0
- package/dist/generators/ts/_snippets/snippets_ToStringRecordFunction.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_ToStringRecordFunction.js +3 -0
- package/dist/generators/ts/_snippets/snippets_TypedLiteralJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_TypedLiteralJsonObject.js +14 -0
- package/dist/generators/ts/_snippets/snippets__ToRdfResourceFunction.js +1 -1
- package/dist/generators/ts/_snippets/snippets_arrayFromJsonArray.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_arrayFromJsonArray.js +13 -0
- package/dist/generators/ts/_snippets/snippets_arrayToJsonArray.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_arrayToJsonArray.js +6 -0
- package/dist/generators/ts/_snippets/snippets_bigDecimalFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_bigDecimalFromJsonObject.js +5 -0
- package/dist/generators/ts/_snippets/snippets_bigDecimalFromJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_bigDecimalFromJsonString.js +5 -0
- package/dist/generators/ts/_snippets/snippets_bigDecimalFromRdfResourceValues.js +3 -3
- package/dist/generators/ts/_snippets/snippets_bigDecimalLiteral.js +3 -2
- package/dist/generators/ts/_snippets/snippets_bigDecimalToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_bigDecimalToJsonObject.js +6 -0
- package/dist/generators/ts/_snippets/snippets_bigDecimalToJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_bigDecimalToJsonString.js +5 -0
- package/dist/generators/ts/_snippets/snippets_bigIntFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_bigIntFromJsonObject.js +9 -0
- package/dist/generators/ts/_snippets/snippets_bigIntFromJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_bigIntFromJsonString.js +8 -0
- package/dist/generators/ts/_snippets/snippets_bigIntFromRdfResourceValues.js +2 -2
- package/dist/generators/ts/_snippets/snippets_bigIntToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_bigIntToJsonObject.js +6 -0
- package/dist/generators/ts/_snippets/snippets_bigIntToJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_bigIntToJsonString.js +5 -0
- package/dist/generators/ts/_snippets/snippets_blankNodeFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_blankNodeFromJsonObject.js +5 -0
- package/dist/generators/ts/_snippets/snippets_blankNodeFromJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_blankNodeFromJsonString.js +5 -0
- package/dist/generators/ts/_snippets/snippets_blankNodeFromRdfResourceValues.js +2 -3
- package/dist/generators/ts/_snippets/snippets_blankNodeToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_blankNodeToJsonObject.js +5 -0
- package/dist/generators/ts/_snippets/snippets_blankNodeToJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_blankNodeToJsonString.js +5 -0
- package/dist/generators/ts/_snippets/snippets_booleanFromJsonBoolean.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_booleanFromJsonBoolean.js +6 -0
- package/dist/generators/ts/_snippets/snippets_booleanFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_booleanFromJsonObject.js +9 -0
- package/dist/generators/ts/_snippets/snippets_constrainPrimitive.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_constrainPrimitive.js +12 -0
- package/dist/generators/ts/_snippets/snippets_convertToLazy.js +2 -13
- package/dist/generators/ts/_snippets/snippets_convertToLazyOption.js +2 -13
- package/dist/generators/ts/_snippets/snippets_convertToLazySet.js +2 -15
- package/dist/generators/ts/_snippets/snippets_dateFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_dateFromJsonObject.js +5 -0
- package/dist/generators/ts/_snippets/snippets_dateFromJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_dateFromJsonString.js +5 -0
- package/dist/generators/ts/_snippets/snippets_dateFromRdfResourceValues.js +3 -4
- package/dist/generators/ts/_snippets/snippets_dateSparqlWherePatterns.js +7 -6
- package/dist/generators/ts/_snippets/snippets_dateTimeFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_dateTimeFromJsonObject.js +5 -0
- package/dist/generators/ts/_snippets/snippets_dateTimeFromRdfResourceValues.js +3 -4
- package/dist/generators/ts/_snippets/snippets_dateTimeToJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_dateTimeToJsonString.js +5 -0
- package/dist/generators/ts/_snippets/snippets_dateToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_dateToJsonObject.js +6 -0
- package/dist/generators/ts/_snippets/snippets_dateToJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_dateToJsonString.js +5 -0
- package/dist/generators/ts/_snippets/snippets_defaultValueFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_defaultValueFromJsonObject.js +9 -0
- package/dist/generators/ts/_snippets/snippets_defaultValueFromJsonValue.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_defaultValueFromJsonValue.js +9 -0
- package/dist/generators/ts/_snippets/snippets_errorToProblemDetailsJson.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_errorToProblemDetailsJson.js +27 -0
- package/dist/generators/ts/_snippets/snippets_filterBigDecimal.js +1 -1
- package/dist/generators/ts/_snippets/snippets_filterBlankNode.js +1 -3
- package/dist/generators/ts/_snippets/snippets_filterBoolean.js +1 -1
- package/dist/generators/ts/_snippets/snippets_filterDate.js +1 -1
- package/dist/generators/ts/_snippets/snippets_filterIdentifier.js +1 -1
- package/dist/generators/ts/_snippets/snippets_filterIri.js +1 -1
- package/dist/generators/ts/_snippets/snippets_filterLiteral.js +1 -3
- package/dist/generators/ts/_snippets/snippets_filterString.js +1 -1
- package/dist/generators/ts/_snippets/snippets_filterTerm.js +17 -17
- package/dist/generators/ts/_snippets/snippets_floatFromJsonNumber.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_floatFromJsonNumber.js +6 -0
- package/dist/generators/ts/_snippets/snippets_floatFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_floatFromJsonObject.js +9 -0
- package/dist/generators/ts/_snippets/snippets_hashArray.js +1 -2
- package/dist/generators/ts/_snippets/snippets_hashBigDecimal.js +1 -2
- package/dist/generators/ts/_snippets/snippets_hashBoolean.js +1 -2
- package/dist/generators/ts/_snippets/snippets_hashDate.js +1 -2
- package/dist/generators/ts/_snippets/snippets_hashDateTime.js +1 -2
- package/dist/generators/ts/_snippets/snippets_hashMaybe.js +1 -2
- package/dist/generators/ts/_snippets/snippets_hashNumeric.js +1 -2
- package/dist/generators/ts/_snippets/snippets_hashString.js +1 -2
- package/dist/generators/ts/_snippets/snippets_hashTerm.js +1 -2
- package/dist/generators/ts/_snippets/snippets_identifierFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_identifierFromJsonObject.js +5 -0
- package/dist/generators/ts/_snippets/snippets_identifierFromJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_identifierFromJsonString.js +5 -0
- package/dist/generators/ts/_snippets/snippets_identifierFromRdfResourceValues.js +2 -3
- package/dist/generators/ts/_snippets/snippets_identifierToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_identifierToJsonObject.js +5 -0
- package/dist/generators/ts/_snippets/snippets_identifierToJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_identifierToJsonString.js +5 -0
- package/dist/generators/ts/_snippets/snippets_intFromJsonNumber.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_intFromJsonNumber.js +6 -0
- package/dist/generators/ts/_snippets/snippets_intFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_intFromJsonObject.js +9 -0
- package/dist/generators/ts/_snippets/snippets_iriFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_iriFromJsonObject.js +6 -0
- package/dist/generators/ts/_snippets/snippets_iriFromJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_iriFromJsonString.js +6 -0
- package/dist/generators/ts/_snippets/snippets_iriToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_iriToJsonObject.js +6 -0
- package/dist/generators/ts/_snippets/snippets_iriToJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_iriToJsonString.js +6 -0
- package/dist/generators/ts/_snippets/snippets_langStringFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_langStringFromJsonObject.js +5 -0
- package/dist/generators/ts/_snippets/snippets_langStringFromRdfResourceValues.js +2 -3
- package/dist/generators/ts/_snippets/snippets_langStringToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_langStringToJsonObject.js +5 -0
- package/dist/generators/ts/_snippets/snippets_listFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_listFromJsonObject.js +10 -0
- package/dist/generators/ts/_snippets/snippets_listSparqlConstructTriples.js +6 -5
- package/dist/generators/ts/_snippets/snippets_listToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_listToJsonObject.js +6 -0
- package/dist/generators/ts/_snippets/snippets_literalFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_literalFromJsonObject.js +16 -0
- package/dist/generators/ts/_snippets/snippets_literalFromRdfResourceValues.js +2 -3
- package/dist/generators/ts/_snippets/snippets_literalToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_literalToJsonObject.js +15 -0
- package/dist/generators/ts/_snippets/snippets_maybeFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_maybeFromJsonObject.js +12 -0
- package/dist/generators/ts/_snippets/snippets_maybeFromJsonValue.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_maybeFromJsonValue.js +12 -0
- package/dist/generators/ts/_snippets/snippets_maybeToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_maybeToJsonObject.js +6 -0
- package/dist/generators/ts/_snippets/snippets_maybeToJsonValue.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_maybeToJsonValue.js +6 -0
- package/dist/generators/ts/_snippets/snippets_missingResolver.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_missingResolver.js +3 -0
- package/dist/generators/ts/_snippets/snippets_primitiveToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_primitiveToJsonObject.js +6 -0
- package/dist/generators/ts/_snippets/snippets_primitiveToJsonValue.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_primitiveToJsonValue.js +6 -0
- package/dist/generators/ts/_snippets/snippets_sparqlInstancesOfPattern.js +4 -3
- package/dist/generators/ts/_snippets/snippets_stringFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_stringFromJsonObject.js +9 -0
- package/dist/generators/ts/_snippets/snippets_stringFromJsonString.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_stringFromJsonString.js +6 -0
- package/dist/generators/ts/_snippets/snippets_termFromJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_termFromJsonObject.js +31 -0
- package/dist/generators/ts/_snippets/snippets_termToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_termToJsonObject.js +14 -0
- package/dist/generators/ts/_snippets/snippets_typedLiteralToJsonObject.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_typedLiteralToJsonObject.js +5 -0
- package/dist/generators/ts/_snippets/snippets_wrap_ToRdfResourceFunction.js +23 -3
- package/dist/generators/ts/_snippets/snippets_zValidator.d.ts +3 -0
- package/dist/generators/ts/_snippets/snippets_zValidator.js +16 -0
- package/dist/generators/ts/rdfjsTermExpression.d.ts +1 -1
- package/dist/generators/ts/rdfjsTermExpression.js +5 -54
- package/dist/input/ShapesGraph.d.ts +7 -3
- package/dist/input/ShapesGraph.js +74 -3
- package/dist/input/index.d.ts +3 -1
- package/dist/input/index.js +1 -1
- package/dist/input/input.shaclmate.d.ts +1494 -240
- package/dist/input/input.shaclmate.js +1159 -387
- package/dist/input/input.shaclmate.ttl +245 -0
- package/package.json +331 -98
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_fromJsonFunctionExpression.d.ts +0 -5
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_fromJsonFunctionExpression.js +0 -14
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_jsonSchemaExpression.d.ts +0 -5
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_jsonSchemaExpression.js +0 -32
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_jsonTypeLiteral.d.ts +0 -5
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_jsonTypeLiteral.js +0 -26
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toJsonFunctionExpression.d.ts +0 -5
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toJsonFunctionExpression.js +0 -10
- package/dist/generators/ts/_AbstractDiscriminatedUnionType/AbstractDiscriminatedUnionType_toRdfResourceValuesFunctionExpression.js +0 -30
- package/dist/generators/ts/_AbstractType/AbstractType_DiscriminantProperty.d.ts +0 -9
- package/dist/generators/ts/_AbstractType/AbstractType_DiscriminantProperty.js +0 -2
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_focusSparqlConstructTriplesFunctionDeclaration.js +0 -13
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_focusSparqlWherePatternsFunctionDeclaration.js +0 -32
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_fromRdfResourceFunctionDeclaration.js +0 -17
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_graphqlTypeVariableStatement.js +0 -16
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_identifierTypeDeclarations.d.ts +0 -4
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_identifierTypeDeclarations.js +0 -14
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_schemaVariableStatement.d.ts +0 -4
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_toRdfResourceFunctionDeclaration.js +0 -15
- package/dist/generators/ts/_ObjectDiscriminatedUnionType/ObjectDiscriminatedUnionType_typeGuardFunctionDeclaration.js +0 -16
- package/dist/generators/ts/_ObjectType/ObjectType_createFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_createFunctionExpression.js +0 -29
- 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_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_sparqlConstructQueryFunctionDeclaration.d.ts +0 -10
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunctionDeclaration.js +0 -35
- 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 -12
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunctionExpression.js +0 -26
- 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_typeGuardFunctionExpression.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_typeGuardFunctionExpression.js +0 -14
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlConstructTriplesFunctionExpression.js +0 -8
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunctionExpression.js +0 -10
- package/dist/generators/ts/_snippets/snippets_RdfVocabularies.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_RdfVocabularies.js +0 -42
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import dataFactory from "@rdfx/data-factory";
|
|
2
2
|
import { LiteralFactory } from "@rdfx/literal";
|
|
3
3
|
import { PropertyPath as RdfxResourcePropertyPath, Resource, } from "@rdfx/resource";
|
|
4
|
-
import { NTriplesIdentifier
|
|
4
|
+
import { NTriplesIdentifier } from "@rdfx/string";
|
|
5
5
|
import { Either, Left, Maybe, Right } from "purify-ts";
|
|
6
6
|
function $bigIntFromRdfResourceValues(values, options) {
|
|
7
7
|
return $termLikeFromRdfResourceValues(values, options).chain((values) => values.chainMap((value) => options.schema.in
|
|
@@ -135,7 +135,7 @@ function $defaultValueFromRdfResourceValues(itemFromRdfResourceValues) {
|
|
|
135
135
|
}
|
|
136
136
|
function $ensureRdfResourceType(resource, types, options) {
|
|
137
137
|
return resource
|
|
138
|
-
.value($
|
|
138
|
+
.value($rdf_type, options)
|
|
139
139
|
.chain((actualRdfTypeValue) => actualRdfTypeValue.toIri())
|
|
140
140
|
.chain((actualRdfType) => {
|
|
141
141
|
// Check the expected type and its known subtypes
|
|
@@ -152,15 +152,18 @@ function $floatFromRdfResourceValues(values, options) {
|
|
|
152
152
|
? value.toFloat(options.schema.in)
|
|
153
153
|
: value.toFloat()));
|
|
154
154
|
}
|
|
155
|
-
|
|
156
|
-
return $termLikeFromRdfResourceValues(values, options).chain((values) => values.chainMap((value) => value.toIdentifier()));
|
|
157
|
-
}
|
|
155
|
+
const $identifierFromRdfResourceValues = (values, options) => $termLikeFromRdfResourceValues(values, options).chain((values) => values.chainMap((value) => value.toIdentifier()));
|
|
158
156
|
function $identityConversionFunction(value, _defaultNamespace) {
|
|
159
157
|
return Either.of(value);
|
|
160
158
|
}
|
|
161
159
|
function $identityValidationFunction(_schema, value) {
|
|
162
160
|
return Either.of(value);
|
|
163
161
|
}
|
|
162
|
+
function $intFromRdfResourceValues(values, options) {
|
|
163
|
+
return $termLikeFromRdfResourceValues(values, options).chain((values) => values.chainMap((value) => options.schema.in
|
|
164
|
+
? value.toInt(options.schema.in)
|
|
165
|
+
: value.toInt()));
|
|
166
|
+
}
|
|
164
167
|
function $iriFromRdfResourceValues(values, options) {
|
|
165
168
|
return $termLikeFromRdfResourceValues(values, options).chain((values) => values.chainMap((value) => options.schema.in
|
|
166
169
|
? value.toIri(options.schema.in)
|
|
@@ -177,9 +180,7 @@ function $listFromRdfResourceValues(itemFromRdfResourceValues) {
|
|
|
177
180
|
.map((valueLists) => valueLists.map((valueList) => valueList.toArray())); // Convert inner Resource.Values to arrays
|
|
178
181
|
}
|
|
179
182
|
const $literalFactory = new LiteralFactory({ dataFactory: dataFactory });
|
|
180
|
-
|
|
181
|
-
return $termLikeFromRdfResourceValues(values, options).chain((values) => values.chainMap((value) => value.toLiteral(options.schema.in)));
|
|
182
|
-
}
|
|
183
|
+
const $literalFromRdfResourceValues = (values, options) => $termLikeFromRdfResourceValues(values, options).chain((values) => values.chainMap((value) => value.toLiteral(options.schema.in)));
|
|
183
184
|
function $maybeFromRdfResourceValues(itemFromRdfResourceValues) {
|
|
184
185
|
return (values, options) => itemFromRdfResourceValues(values, {
|
|
185
186
|
...options,
|
|
@@ -221,51 +222,20 @@ export var $PropertyPath;
|
|
|
221
222
|
$PropertyPath.schema = {};
|
|
222
223
|
$PropertyPath.$toString = RdfxResourcePropertyPath.toString;
|
|
223
224
|
})($PropertyPath || ($PropertyPath = {}));
|
|
225
|
+
const $rdf_subject = dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#subject");
|
|
226
|
+
const $rdf_type = dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type");
|
|
224
227
|
function $rdfResourceIdentifierValues(resource) {
|
|
225
228
|
return new Resource.Value({
|
|
226
229
|
dataFactory: dataFactory,
|
|
227
230
|
focusResource: resource,
|
|
228
|
-
propertyPath: $
|
|
231
|
+
propertyPath: $rdf_subject,
|
|
229
232
|
term: resource.identifier,
|
|
230
233
|
}).toValues();
|
|
231
234
|
}
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
langString: dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),
|
|
237
|
-
nil: dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"),
|
|
238
|
-
rest: dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"),
|
|
239
|
-
subject: dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#subject"),
|
|
240
|
-
type: dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),
|
|
241
|
-
};
|
|
242
|
-
$RdfVocabularies.rdfs = {
|
|
243
|
-
subClassOf: dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#subClassOf"),
|
|
244
|
-
};
|
|
245
|
-
$RdfVocabularies.xsd = {
|
|
246
|
-
boolean: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#boolean"),
|
|
247
|
-
byte: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#byte"),
|
|
248
|
-
date: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#date"),
|
|
249
|
-
dateTime: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#dateTime"),
|
|
250
|
-
dateTimeStamp: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#dateTimeStamp"),
|
|
251
|
-
decimal: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#decimal"),
|
|
252
|
-
double: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#double"),
|
|
253
|
-
float: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#float"),
|
|
254
|
-
int: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#int"),
|
|
255
|
-
integer: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#integer"),
|
|
256
|
-
long: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#long"),
|
|
257
|
-
negativeInteger: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#negativeInteger"),
|
|
258
|
-
nonNegativeInteger: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#nonNegativeInteger"),
|
|
259
|
-
nonPositiveInteger: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#nonPositiveInteger"),
|
|
260
|
-
positiveInteger: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#positiveInteger"),
|
|
261
|
-
short: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#short"),
|
|
262
|
-
string: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#string"),
|
|
263
|
-
unsignedByte: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#unsignedByte"),
|
|
264
|
-
unsignedInt: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#unsignedInt"),
|
|
265
|
-
unsignedLong: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#unsignedLong"),
|
|
266
|
-
unsignedShort: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#unsignedShort"),
|
|
267
|
-
};
|
|
268
|
-
})($RdfVocabularies || ($RdfVocabularies = {}));
|
|
235
|
+
const $rdfs_comment = dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#comment");
|
|
236
|
+
const $rdfs_isDefinedBy = dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#isDefinedBy");
|
|
237
|
+
const $rdfs_label = dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#label");
|
|
238
|
+
const $rdfs_subClassOf = dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#subClassOf");
|
|
269
239
|
function $sequenceRecord(record) {
|
|
270
240
|
const result = {};
|
|
271
241
|
for (const key of globalThis.Object.keys(record)) {
|
|
@@ -400,17 +370,25 @@ function $wrap_FromRdfResourceFunction(_fromRdfResourceFunction) {
|
|
|
400
370
|
});
|
|
401
371
|
};
|
|
402
372
|
}
|
|
373
|
+
const $xsd_boolean = dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#boolean");
|
|
374
|
+
const $xsd_double = dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#double");
|
|
375
|
+
const $xsd_int = dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#int");
|
|
376
|
+
const $xsd_integer = dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#integer");
|
|
377
|
+
const $xsd_string = dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#string");
|
|
403
378
|
export var NodeShape;
|
|
404
379
|
(function (NodeShape) {
|
|
405
|
-
NodeShape._fromRdfResource = (resource, options) => (
|
|
406
|
-
? $ensureRdfResourceType(resource, [NodeShape.schema.properties.$rdfType.fromRdfType], { graph: options.graph })
|
|
407
|
-
: Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
|
|
380
|
+
NodeShape._fromRdfResource = (resource, options) => $sequenceRecord({
|
|
408
381
|
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
409
382
|
...options,
|
|
410
383
|
focusResource: resource,
|
|
411
|
-
propertyPath: $
|
|
384
|
+
propertyPath: $rdf_subject,
|
|
412
385
|
schema: NodeShape.schema.properties.$identifier.type,
|
|
413
386
|
}).chain((values) => values.head()),
|
|
387
|
+
$rdfType: !options.ignoreRdfType
|
|
388
|
+
? $ensureRdfResourceType(resource, [NodeShape.schema.properties.$rdfType.fromRdfType], {
|
|
389
|
+
graph: options.graph,
|
|
390
|
+
})
|
|
391
|
+
: Right(true),
|
|
414
392
|
and: $shaclPropertyFromRdf({
|
|
415
393
|
...options,
|
|
416
394
|
focusResource: resource,
|
|
@@ -712,60 +690,56 @@ export var NodeShape;
|
|
|
712
690
|
propertySchema: NodeShape.schema.properties.xone,
|
|
713
691
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues($identifierFromRdfResourceValues)),
|
|
714
692
|
}),
|
|
715
|
-
}).chain((properties) => NodeShape.create(properties))
|
|
693
|
+
}).chain((properties) => NodeShape.create(properties));
|
|
716
694
|
NodeShape.$toString = (_nodeShape) => `NodeShape(${JSON.stringify(NodeShape.toStringRecord(_nodeShape))})`;
|
|
717
|
-
NodeShape.create = (parameters) => $sequenceRecord({
|
|
718
|
-
$identifier: $convertToIdentifierProperty(parameters
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
function createUnsafe(parameters) {
|
|
766
|
-
return NodeShape.create(parameters).unsafeCoerce();
|
|
767
|
-
}
|
|
768
|
-
NodeShape.createUnsafe = createUnsafe;
|
|
695
|
+
NodeShape.create = (parameters = {}) => $sequenceRecord({
|
|
696
|
+
$identifier: $convertToIdentifierProperty(parameters.$identifier, parameters.$defaultNamespace),
|
|
697
|
+
$type: Right("NodeShape"),
|
|
698
|
+
and: $convertToMaybe($convertToList($convertToIdentifier))(parameters.and, parameters.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.and.type, value)),
|
|
699
|
+
classes: $convertToScalarSet($convertToIri)(parameters.classes, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.classes.type, value)),
|
|
700
|
+
closed: $convertToMaybe($identityConversionFunction)(parameters.closed, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.closed.type, value)),
|
|
701
|
+
comment: $convertToMaybe($identityConversionFunction)(parameters.comment, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.comment.type, value)),
|
|
702
|
+
datatype: $convertToMaybe($convertToIri)(parameters.datatype, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.datatype.type, value)),
|
|
703
|
+
deactivated: $convertToMaybe($identityConversionFunction)(parameters.deactivated, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.deactivated.type, value)),
|
|
704
|
+
discriminantValue: $convertToMaybe($identityConversionFunction)(parameters.discriminantValue, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.discriminantValue.type, value)),
|
|
705
|
+
extern: $convertToMaybe($identityConversionFunction)(parameters.extern, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.extern.type, value)),
|
|
706
|
+
flags: $convertToMaybe($identityConversionFunction)(parameters.flags, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.flags.type, value)),
|
|
707
|
+
fromRdfType: $convertToMaybe($convertToIri)(parameters.fromRdfType, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.fromRdfType.type, value)),
|
|
708
|
+
hasValues: $convertToScalarSet($identityConversionFunction)(parameters.hasValues, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.hasValues.type, value)),
|
|
709
|
+
ignore: $convertWithDefaultValue($identityConversionFunction, false)(parameters.ignore, parameters.$defaultNamespace),
|
|
710
|
+
ignoredProperties: $convertToMaybe($convertToList($convertToIri))(parameters.ignoredProperties, parameters.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.ignoredProperties.type, value)),
|
|
711
|
+
in_: $convertToMaybe($convertToList($identityConversionFunction))(parameters.in_, parameters.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.in_.type, value)),
|
|
712
|
+
isDefinedBy: $convertToMaybe($convertToIdentifier)(parameters.isDefinedBy, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.isDefinedBy.type, value)),
|
|
713
|
+
label: $convertToMaybe($identityConversionFunction)(parameters.label, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.label.type, value)),
|
|
714
|
+
languageIn: $convertToMaybe($convertToList($identityConversionFunction))(parameters.languageIn, parameters.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.languageIn.type, value)),
|
|
715
|
+
maxExclusive: $convertToMaybe($convertToLiteral)(parameters.maxExclusive, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxExclusive.type, value)),
|
|
716
|
+
maxInclusive: $convertToMaybe($convertToLiteral)(parameters.maxInclusive, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxInclusive.type, value)),
|
|
717
|
+
maxLength: $convertToMaybe($convertToBigInt)(parameters.maxLength, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxLength.type, value)),
|
|
718
|
+
message: $convertToMaybe($identityConversionFunction)(parameters.message, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.message.type, value)),
|
|
719
|
+
minExclusive: $convertToMaybe($convertToLiteral)(parameters.minExclusive, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minExclusive.type, value)),
|
|
720
|
+
minInclusive: $convertToMaybe($convertToLiteral)(parameters.minInclusive, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minInclusive.type, value)),
|
|
721
|
+
minLength: $convertToMaybe($convertToBigInt)(parameters.minLength, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minLength.type, value)),
|
|
722
|
+
mutable: $convertToMaybe($identityConversionFunction)(parameters.mutable, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.mutable.type, value)),
|
|
723
|
+
node: $convertToMaybe($convertToIdentifier)(parameters.node, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.node.type, value)),
|
|
724
|
+
nodeKind: $convertToMaybe(($convertToInIri))(parameters.nodeKind, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.nodeKind.type, value)),
|
|
725
|
+
not: $convertToScalarSet($convertToIdentifier)(parameters.not, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.not.type, value)),
|
|
726
|
+
or: $convertToMaybe($convertToList($convertToIdentifier))(parameters.or, parameters.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.or.type, value)),
|
|
727
|
+
pattern: $convertToMaybe($identityConversionFunction)(parameters.pattern, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.pattern.type, value)),
|
|
728
|
+
properties: $convertToScalarSet($convertToIdentifier)(parameters.properties, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.properties.type, value)),
|
|
729
|
+
rdfType: $convertToMaybe($convertToIri)(parameters.rdfType, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.rdfType.type, value)),
|
|
730
|
+
severity: $convertToMaybe(($convertToInIri))(parameters.severity, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.severity.type, value)),
|
|
731
|
+
shaclmateName: $convertToMaybe($identityConversionFunction)(parameters.shaclmateName, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.shaclmateName.type, value)),
|
|
732
|
+
subClassOf: $convertToScalarSet($convertToIri)(parameters.subClassOf, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.subClassOf.type, value)),
|
|
733
|
+
targetClasses: $convertToScalarSet($convertToIri)(parameters.targetClasses, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.targetClasses.type, value)),
|
|
734
|
+
targetNodes: $convertToScalarSet($identityConversionFunction)(parameters.targetNodes, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.targetNodes.type, value)),
|
|
735
|
+
targetObjectsOf: $convertToScalarSet($convertToIri)(parameters.targetObjectsOf, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.targetObjectsOf.type, value)),
|
|
736
|
+
targetSubjectsOf: $convertToScalarSet($convertToIri)(parameters.targetSubjectsOf, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.targetSubjectsOf.type, value)),
|
|
737
|
+
toRdfTypes: $convertToScalarSet($convertToIri)(parameters.toRdfTypes, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.toRdfTypes.type, value)),
|
|
738
|
+
tsImports: $convertToScalarSet($identityConversionFunction)(parameters.tsImports, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.tsImports.type, value)),
|
|
739
|
+
types: $convertToScalarSet($convertToIri)(parameters.types, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.types.type, value)),
|
|
740
|
+
xone: $convertToMaybe($convertToList($convertToIdentifier))(parameters.xone, parameters.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.xone.type, value)),
|
|
741
|
+
}).map((object) => $monkeyPatchObject(object, { $toString: NodeShape.$toString }));
|
|
742
|
+
NodeShape.createUnsafe = (parameters) => NodeShape.create(parameters).unsafeCoerce();
|
|
769
743
|
NodeShape.fromRdfResource = $wrap_FromRdfResourceFunction(NodeShape._fromRdfResource);
|
|
770
744
|
NodeShape.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
|
|
771
745
|
.toResource()
|
|
@@ -773,7 +747,6 @@ export var NodeShape;
|
|
|
773
747
|
let Identifier;
|
|
774
748
|
(function (Identifier) {
|
|
775
749
|
Identifier.parse = $parseIdentifier;
|
|
776
|
-
Identifier.stringify = NTriplesTerm.stringify;
|
|
777
750
|
})(Identifier = NodeShape.Identifier || (NodeShape.Identifier = {}));
|
|
778
751
|
NodeShape.isNodeShape = (object) => object.$type === "NodeShape";
|
|
779
752
|
NodeShape.schema = {
|
|
@@ -789,7 +762,6 @@ export var NodeShape;
|
|
|
789
762
|
dataFactory.namedNode("http://www.w3.org/ns/shacl#NodeShape"),
|
|
790
763
|
],
|
|
791
764
|
},
|
|
792
|
-
$type: { kind: "Discriminant", value: "NodeShape" },
|
|
793
765
|
and: {
|
|
794
766
|
kind: "Shacl",
|
|
795
767
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#and"),
|
|
@@ -811,15 +783,15 @@ export var NodeShape;
|
|
|
811
783
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#closed"),
|
|
812
784
|
type: {
|
|
813
785
|
kind: "Option",
|
|
814
|
-
itemType: { kind: "Boolean" },
|
|
786
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
815
787
|
},
|
|
816
788
|
},
|
|
817
789
|
comment: {
|
|
818
790
|
kind: "Shacl",
|
|
819
|
-
path:
|
|
791
|
+
path: $rdfs_comment,
|
|
820
792
|
type: {
|
|
821
793
|
kind: "Option",
|
|
822
|
-
itemType: { kind: "String" },
|
|
794
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
823
795
|
},
|
|
824
796
|
},
|
|
825
797
|
datatype: {
|
|
@@ -832,7 +804,7 @@ export var NodeShape;
|
|
|
832
804
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#deactivated"),
|
|
833
805
|
type: {
|
|
834
806
|
kind: "Option",
|
|
835
|
-
itemType: { kind: "Boolean" },
|
|
807
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
836
808
|
},
|
|
837
809
|
},
|
|
838
810
|
discriminantValue: {
|
|
@@ -840,7 +812,7 @@ export var NodeShape;
|
|
|
840
812
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#discriminantValue"),
|
|
841
813
|
type: {
|
|
842
814
|
kind: "Option",
|
|
843
|
-
itemType: { kind: "String" },
|
|
815
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
844
816
|
},
|
|
845
817
|
},
|
|
846
818
|
extern: {
|
|
@@ -848,7 +820,7 @@ export var NodeShape;
|
|
|
848
820
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#extern"),
|
|
849
821
|
type: {
|
|
850
822
|
kind: "Option",
|
|
851
|
-
itemType: { kind: "Boolean" },
|
|
823
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
852
824
|
},
|
|
853
825
|
},
|
|
854
826
|
flags: {
|
|
@@ -856,7 +828,7 @@ export var NodeShape;
|
|
|
856
828
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#flags"),
|
|
857
829
|
type: {
|
|
858
830
|
kind: "Option",
|
|
859
|
-
itemType: { kind: "String" },
|
|
831
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
860
832
|
},
|
|
861
833
|
},
|
|
862
834
|
fromRdfType: {
|
|
@@ -877,8 +849,8 @@ export var NodeShape;
|
|
|
877
849
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#ignore"),
|
|
878
850
|
type: {
|
|
879
851
|
kind: "DefaultValue",
|
|
880
|
-
itemType: { kind: "Boolean" },
|
|
881
|
-
defaultValue: dataFactory.literal("false", $
|
|
852
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
853
|
+
defaultValue: dataFactory.literal("false", $xsd_boolean),
|
|
882
854
|
},
|
|
883
855
|
},
|
|
884
856
|
ignoredProperties: {
|
|
@@ -908,7 +880,7 @@ export var NodeShape;
|
|
|
908
880
|
},
|
|
909
881
|
isDefinedBy: {
|
|
910
882
|
kind: "Shacl",
|
|
911
|
-
path:
|
|
883
|
+
path: $rdfs_isDefinedBy,
|
|
912
884
|
type: {
|
|
913
885
|
kind: "Option",
|
|
914
886
|
itemType: { kind: "Identifier" },
|
|
@@ -916,10 +888,10 @@ export var NodeShape;
|
|
|
916
888
|
},
|
|
917
889
|
label: {
|
|
918
890
|
kind: "Shacl",
|
|
919
|
-
path:
|
|
891
|
+
path: $rdfs_label,
|
|
920
892
|
type: {
|
|
921
893
|
kind: "Option",
|
|
922
|
-
itemType: { kind: "String" },
|
|
894
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
923
895
|
},
|
|
924
896
|
},
|
|
925
897
|
languageIn: {
|
|
@@ -929,7 +901,7 @@ export var NodeShape;
|
|
|
929
901
|
kind: "Option",
|
|
930
902
|
itemType: {
|
|
931
903
|
kind: "List",
|
|
932
|
-
itemType: { kind: "String" },
|
|
904
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
933
905
|
},
|
|
934
906
|
},
|
|
935
907
|
},
|
|
@@ -954,7 +926,7 @@ export var NodeShape;
|
|
|
954
926
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxLength"),
|
|
955
927
|
type: {
|
|
956
928
|
kind: "Option",
|
|
957
|
-
itemType: { kind: "BigInt" },
|
|
929
|
+
itemType: { kind: "BigInt", datatype: $xsd_integer },
|
|
958
930
|
},
|
|
959
931
|
},
|
|
960
932
|
message: {
|
|
@@ -962,7 +934,7 @@ export var NodeShape;
|
|
|
962
934
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#message"),
|
|
963
935
|
type: {
|
|
964
936
|
kind: "Option",
|
|
965
|
-
itemType: { kind: "String" },
|
|
937
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
966
938
|
},
|
|
967
939
|
},
|
|
968
940
|
minExclusive: {
|
|
@@ -973,36 +945,702 @@ export var NodeShape;
|
|
|
973
945
|
itemType: { kind: "Literal" },
|
|
974
946
|
},
|
|
975
947
|
},
|
|
976
|
-
minInclusive: {
|
|
948
|
+
minInclusive: {
|
|
949
|
+
kind: "Shacl",
|
|
950
|
+
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minInclusive"),
|
|
951
|
+
type: {
|
|
952
|
+
kind: "Option",
|
|
953
|
+
itemType: { kind: "Literal" },
|
|
954
|
+
},
|
|
955
|
+
},
|
|
956
|
+
minLength: {
|
|
957
|
+
kind: "Shacl",
|
|
958
|
+
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minLength"),
|
|
959
|
+
type: {
|
|
960
|
+
kind: "Option",
|
|
961
|
+
itemType: { kind: "BigInt", datatype: $xsd_integer },
|
|
962
|
+
},
|
|
963
|
+
},
|
|
964
|
+
mutable: {
|
|
965
|
+
kind: "Shacl",
|
|
966
|
+
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#mutable"),
|
|
967
|
+
type: {
|
|
968
|
+
kind: "Option",
|
|
969
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
970
|
+
},
|
|
971
|
+
},
|
|
972
|
+
node: {
|
|
973
|
+
kind: "Shacl",
|
|
974
|
+
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#node"),
|
|
975
|
+
type: {
|
|
976
|
+
kind: "Option",
|
|
977
|
+
itemType: { kind: "Identifier" },
|
|
978
|
+
},
|
|
979
|
+
},
|
|
980
|
+
nodeKind: {
|
|
981
|
+
kind: "Shacl",
|
|
982
|
+
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#nodeKind"),
|
|
983
|
+
type: {
|
|
984
|
+
kind: "Option",
|
|
985
|
+
itemType: {
|
|
986
|
+
kind: "Iri",
|
|
987
|
+
in: [
|
|
988
|
+
dataFactory.namedNode("http://www.w3.org/ns/shacl#BlankNode"),
|
|
989
|
+
dataFactory.namedNode("http://www.w3.org/ns/shacl#BlankNodeOrIRI"),
|
|
990
|
+
dataFactory.namedNode("http://www.w3.org/ns/shacl#BlankNodeOrLiteral"),
|
|
991
|
+
dataFactory.namedNode("http://www.w3.org/ns/shacl#IRI"),
|
|
992
|
+
dataFactory.namedNode("http://www.w3.org/ns/shacl#IRIOrLiteral"),
|
|
993
|
+
dataFactory.namedNode("http://www.w3.org/ns/shacl#Literal"),
|
|
994
|
+
],
|
|
995
|
+
},
|
|
996
|
+
},
|
|
997
|
+
},
|
|
998
|
+
not: {
|
|
999
|
+
kind: "Shacl",
|
|
1000
|
+
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#not"),
|
|
1001
|
+
type: {
|
|
1002
|
+
kind: "Set",
|
|
1003
|
+
itemType: { kind: "Identifier" },
|
|
1004
|
+
},
|
|
1005
|
+
},
|
|
1006
|
+
or: {
|
|
1007
|
+
kind: "Shacl",
|
|
1008
|
+
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#or"),
|
|
1009
|
+
type: {
|
|
1010
|
+
kind: "Option",
|
|
1011
|
+
itemType: {
|
|
1012
|
+
kind: "List",
|
|
1013
|
+
itemType: { kind: "Identifier" },
|
|
1014
|
+
},
|
|
1015
|
+
},
|
|
1016
|
+
},
|
|
1017
|
+
pattern: {
|
|
1018
|
+
kind: "Shacl",
|
|
1019
|
+
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#pattern"),
|
|
1020
|
+
type: {
|
|
1021
|
+
kind: "Option",
|
|
1022
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1023
|
+
},
|
|
1024
|
+
},
|
|
1025
|
+
properties: {
|
|
1026
|
+
kind: "Shacl",
|
|
1027
|
+
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#property"),
|
|
1028
|
+
type: {
|
|
1029
|
+
kind: "Set",
|
|
1030
|
+
itemType: { kind: "Identifier" },
|
|
1031
|
+
},
|
|
1032
|
+
},
|
|
1033
|
+
rdfType: {
|
|
1034
|
+
kind: "Shacl",
|
|
1035
|
+
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#rdfType"),
|
|
1036
|
+
type: { kind: "Option", itemType: { kind: "Iri" } },
|
|
1037
|
+
},
|
|
1038
|
+
severity: {
|
|
1039
|
+
kind: "Shacl",
|
|
1040
|
+
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#severity"),
|
|
1041
|
+
get type() {
|
|
1042
|
+
return {
|
|
1043
|
+
kind: "Option",
|
|
1044
|
+
get itemType() {
|
|
1045
|
+
return Severity.schema;
|
|
1046
|
+
},
|
|
1047
|
+
};
|
|
1048
|
+
},
|
|
1049
|
+
},
|
|
1050
|
+
shaclmateName: {
|
|
1051
|
+
kind: "Shacl",
|
|
1052
|
+
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#name"),
|
|
1053
|
+
type: {
|
|
1054
|
+
kind: "Option",
|
|
1055
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1056
|
+
},
|
|
1057
|
+
},
|
|
1058
|
+
subClassOf: {
|
|
1059
|
+
kind: "Shacl",
|
|
1060
|
+
path: $rdfs_subClassOf,
|
|
1061
|
+
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1062
|
+
},
|
|
1063
|
+
targetClasses: {
|
|
1064
|
+
kind: "Shacl",
|
|
1065
|
+
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetClass"),
|
|
1066
|
+
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1067
|
+
},
|
|
1068
|
+
targetNodes: {
|
|
1069
|
+
kind: "Shacl",
|
|
1070
|
+
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetNode"),
|
|
1071
|
+
type: {
|
|
1072
|
+
kind: "Set",
|
|
1073
|
+
itemType: { kind: "Term", types: ["NamedNode", "Literal"] },
|
|
1074
|
+
},
|
|
1075
|
+
},
|
|
1076
|
+
targetObjectsOf: {
|
|
1077
|
+
kind: "Shacl",
|
|
1078
|
+
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetObjectsOf"),
|
|
1079
|
+
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1080
|
+
},
|
|
1081
|
+
targetSubjectsOf: {
|
|
1082
|
+
kind: "Shacl",
|
|
1083
|
+
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetSubjectsOf"),
|
|
1084
|
+
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1085
|
+
},
|
|
1086
|
+
toRdfTypes: {
|
|
1087
|
+
kind: "Shacl",
|
|
1088
|
+
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#toRdfType"),
|
|
1089
|
+
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1090
|
+
},
|
|
1091
|
+
tsImports: {
|
|
1092
|
+
kind: "Shacl",
|
|
1093
|
+
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#tsImport"),
|
|
1094
|
+
type: {
|
|
1095
|
+
kind: "Set",
|
|
1096
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1097
|
+
},
|
|
1098
|
+
},
|
|
1099
|
+
types: {
|
|
1100
|
+
kind: "Shacl",
|
|
1101
|
+
path: $rdf_type,
|
|
1102
|
+
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1103
|
+
},
|
|
1104
|
+
xone: {
|
|
1105
|
+
kind: "Shacl",
|
|
1106
|
+
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#xone"),
|
|
1107
|
+
type: {
|
|
1108
|
+
kind: "Option",
|
|
1109
|
+
itemType: {
|
|
1110
|
+
kind: "List",
|
|
1111
|
+
itemType: { kind: "Identifier" },
|
|
1112
|
+
},
|
|
1113
|
+
},
|
|
1114
|
+
},
|
|
1115
|
+
},
|
|
1116
|
+
};
|
|
1117
|
+
NodeShape.toStringRecord = (_nodeShape) => $compactRecord({
|
|
1118
|
+
$identifier: _nodeShape.$identifier().toString(),
|
|
1119
|
+
label: _nodeShape.label.map((item) => item.toString()).extract(),
|
|
1120
|
+
shaclmateName: _nodeShape.shaclmateName
|
|
1121
|
+
.map((item) => item.toString())
|
|
1122
|
+
.extract(),
|
|
1123
|
+
});
|
|
1124
|
+
})(NodeShape || (NodeShape = {}));
|
|
1125
|
+
export var Ontology;
|
|
1126
|
+
(function (Ontology) {
|
|
1127
|
+
Ontology._fromRdfResource = (resource, options) => $sequenceRecord({
|
|
1128
|
+
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
1129
|
+
...options,
|
|
1130
|
+
focusResource: resource,
|
|
1131
|
+
propertyPath: $rdf_subject,
|
|
1132
|
+
schema: Ontology.schema.properties.$identifier.type,
|
|
1133
|
+
}).chain((values) => values.head()),
|
|
1134
|
+
$rdfType: !options.ignoreRdfType
|
|
1135
|
+
? $ensureRdfResourceType(resource, [Ontology.schema.properties.$rdfType.fromRdfType], {
|
|
1136
|
+
graph: options.graph,
|
|
1137
|
+
})
|
|
1138
|
+
: Right(true),
|
|
1139
|
+
comment: $shaclPropertyFromRdf({
|
|
1140
|
+
...options,
|
|
1141
|
+
focusResource: resource,
|
|
1142
|
+
ignoreRdfType: true,
|
|
1143
|
+
propertySchema: NodeShape.schema.properties.comment,
|
|
1144
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1145
|
+
}),
|
|
1146
|
+
label: $shaclPropertyFromRdf({
|
|
1147
|
+
...options,
|
|
1148
|
+
focusResource: resource,
|
|
1149
|
+
ignoreRdfType: true,
|
|
1150
|
+
propertySchema: NodeShape.schema.properties.label,
|
|
1151
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1152
|
+
}),
|
|
1153
|
+
}).chain((properties) => Ontology.create(properties));
|
|
1154
|
+
Ontology.$toString = (_ontology) => `Ontology(${JSON.stringify(Ontology.toStringRecord(_ontology))})`;
|
|
1155
|
+
Ontology.create = (parameters = {}) => $sequenceRecord({
|
|
1156
|
+
$identifier: $convertToIdentifierProperty(parameters.$identifier, parameters.$defaultNamespace),
|
|
1157
|
+
$type: Right("Ontology"),
|
|
1158
|
+
comment: $convertToMaybe($identityConversionFunction)(parameters.comment, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.comment.type, value)),
|
|
1159
|
+
label: $convertToMaybe($identityConversionFunction)(parameters.label, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.label.type, value)),
|
|
1160
|
+
}).map((object) => $monkeyPatchObject(object, { $toString: Ontology.$toString }));
|
|
1161
|
+
Ontology.createUnsafe = (parameters) => Ontology.create(parameters).unsafeCoerce();
|
|
1162
|
+
Ontology.fromRdfResource = $wrap_FromRdfResourceFunction(Ontology._fromRdfResource);
|
|
1163
|
+
Ontology.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
|
|
1164
|
+
.toResource()
|
|
1165
|
+
.chain((resource) => Ontology.fromRdfResource(resource, options)));
|
|
1166
|
+
let Identifier;
|
|
1167
|
+
(function (Identifier) {
|
|
1168
|
+
Identifier.parse = $parseIdentifier;
|
|
1169
|
+
})(Identifier = Ontology.Identifier || (Ontology.Identifier = {}));
|
|
1170
|
+
Ontology.isOntology = (object) => object.$type === "Ontology";
|
|
1171
|
+
Ontology.schema = {
|
|
1172
|
+
properties: {
|
|
1173
|
+
$identifier: {
|
|
1174
|
+
kind: "Identifier",
|
|
1175
|
+
type: { kind: "Identifier" },
|
|
1176
|
+
},
|
|
1177
|
+
$rdfType: {
|
|
1178
|
+
fromRdfType: dataFactory.namedNode("http://www.w3.org/2002/07/owl#Ontology"),
|
|
1179
|
+
kind: "RdfType",
|
|
1180
|
+
toRdfTypes: [
|
|
1181
|
+
dataFactory.namedNode("http://www.w3.org/2002/07/owl#Ontology"),
|
|
1182
|
+
],
|
|
1183
|
+
},
|
|
1184
|
+
comment: {
|
|
1185
|
+
kind: "Shacl",
|
|
1186
|
+
path: $rdfs_comment,
|
|
1187
|
+
type: {
|
|
1188
|
+
kind: "Option",
|
|
1189
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1190
|
+
},
|
|
1191
|
+
},
|
|
1192
|
+
label: {
|
|
1193
|
+
kind: "Shacl",
|
|
1194
|
+
path: $rdfs_label,
|
|
1195
|
+
type: {
|
|
1196
|
+
kind: "Option",
|
|
1197
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1198
|
+
},
|
|
1199
|
+
},
|
|
1200
|
+
},
|
|
1201
|
+
};
|
|
1202
|
+
Ontology.toStringRecord = (_ontology) => $compactRecord({
|
|
1203
|
+
$identifier: _ontology.$identifier().toString(),
|
|
1204
|
+
label: _ontology.label.map((item) => item.toString()).extract(),
|
|
1205
|
+
});
|
|
1206
|
+
})(Ontology || (Ontology = {}));
|
|
1207
|
+
export var Operation;
|
|
1208
|
+
(function (Operation) {
|
|
1209
|
+
Operation._fromRdfResource = (resource, options) => $sequenceRecord({
|
|
1210
|
+
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
1211
|
+
...options,
|
|
1212
|
+
focusResource: resource,
|
|
1213
|
+
propertyPath: $rdf_subject,
|
|
1214
|
+
schema: Operation.schema.properties.$identifier.type,
|
|
1215
|
+
}).chain((values) => values.head()),
|
|
1216
|
+
$rdfType: !options.ignoreRdfType
|
|
1217
|
+
? $ensureRdfResourceType(resource, [Operation.schema.properties.$rdfType.fromRdfType], {
|
|
1218
|
+
graph: options.graph,
|
|
1219
|
+
})
|
|
1220
|
+
: Right(true),
|
|
1221
|
+
bindings: $shaclPropertyFromRdf({
|
|
1222
|
+
...options,
|
|
1223
|
+
focusResource: resource,
|
|
1224
|
+
ignoreRdfType: true,
|
|
1225
|
+
propertySchema: Operation.schema.properties.bindings,
|
|
1226
|
+
typeFromRdfResourceValues: $setFromRdfResourceValues(OperationHttpBinding.fromRdfResourceValues),
|
|
1227
|
+
}),
|
|
1228
|
+
comment: $shaclPropertyFromRdf({
|
|
1229
|
+
...options,
|
|
1230
|
+
focusResource: resource,
|
|
1231
|
+
ignoreRdfType: true,
|
|
1232
|
+
propertySchema: NodeShape.schema.properties.comment,
|
|
1233
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1234
|
+
}),
|
|
1235
|
+
error: $shaclPropertyFromRdf({
|
|
1236
|
+
...options,
|
|
1237
|
+
focusResource: resource,
|
|
1238
|
+
ignoreRdfType: true,
|
|
1239
|
+
propertySchema: Operation.schema.properties.error,
|
|
1240
|
+
typeFromRdfResourceValues: $setFromRdfResourceValues(OperationError.fromRdfResourceValues),
|
|
1241
|
+
}),
|
|
1242
|
+
label: $shaclPropertyFromRdf({
|
|
1243
|
+
...options,
|
|
1244
|
+
focusResource: resource,
|
|
1245
|
+
ignoreRdfType: true,
|
|
1246
|
+
propertySchema: NodeShape.schema.properties.label,
|
|
1247
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1248
|
+
}),
|
|
1249
|
+
name: $shaclPropertyFromRdf({
|
|
1250
|
+
...options,
|
|
1251
|
+
focusResource: resource,
|
|
1252
|
+
ignoreRdfType: true,
|
|
1253
|
+
propertySchema: Operation.schema.properties.name,
|
|
1254
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1255
|
+
}),
|
|
1256
|
+
parameter: $shaclPropertyFromRdf({
|
|
1257
|
+
...options,
|
|
1258
|
+
focusResource: resource,
|
|
1259
|
+
ignoreRdfType: true,
|
|
1260
|
+
propertySchema: Operation.schema.properties.parameter,
|
|
1261
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
1262
|
+
}),
|
|
1263
|
+
result: $shaclPropertyFromRdf({
|
|
1264
|
+
...options,
|
|
1265
|
+
focusResource: resource,
|
|
1266
|
+
ignoreRdfType: true,
|
|
1267
|
+
propertySchema: Operation.schema.properties.result,
|
|
1268
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
1269
|
+
}),
|
|
1270
|
+
}).chain((properties) => Operation.create(properties));
|
|
1271
|
+
Operation.$toString = (_operation) => `Operation(${JSON.stringify(Operation.toStringRecord(_operation))})`;
|
|
1272
|
+
Operation.create = (parameters = {}) => $sequenceRecord({
|
|
1273
|
+
$identifier: $convertToIdentifierProperty(parameters.$identifier, parameters.$defaultNamespace),
|
|
1274
|
+
$type: Right("Operation"),
|
|
1275
|
+
bindings: $convertToScalarSet($identityConversionFunction)(parameters.bindings, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(Operation.schema.properties.bindings.type, value)),
|
|
1276
|
+
comment: $convertToMaybe($identityConversionFunction)(parameters.comment, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.comment.type, value)),
|
|
1277
|
+
error: $convertToScalarSet($identityConversionFunction)(parameters.error, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(Operation.schema.properties.error.type, value)),
|
|
1278
|
+
label: $convertToMaybe($identityConversionFunction)(parameters.label, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.label.type, value)),
|
|
1279
|
+
name: $convertToMaybe($identityConversionFunction)(parameters.name, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(Operation.schema.properties.name.type, value)),
|
|
1280
|
+
parameter: $convertToMaybe($convertToIdentifier)(parameters.parameter, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(Operation.schema.properties.parameter.type, value)),
|
|
1281
|
+
result: $convertToMaybe($convertToIdentifier)(parameters.result, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(Operation.schema.properties.result.type, value)),
|
|
1282
|
+
}).map((object) => $monkeyPatchObject(object, { $toString: Operation.$toString }));
|
|
1283
|
+
Operation.createUnsafe = (parameters) => Operation.create(parameters).unsafeCoerce();
|
|
1284
|
+
Operation.fromRdfResource = $wrap_FromRdfResourceFunction(Operation._fromRdfResource);
|
|
1285
|
+
Operation.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
|
|
1286
|
+
.toResource()
|
|
1287
|
+
.chain((resource) => Operation.fromRdfResource(resource, options)));
|
|
1288
|
+
let Identifier;
|
|
1289
|
+
(function (Identifier) {
|
|
1290
|
+
Identifier.parse = $parseIdentifier;
|
|
1291
|
+
})(Identifier = Operation.Identifier || (Operation.Identifier = {}));
|
|
1292
|
+
Operation.isOperation = (object) => object.$type === "Operation";
|
|
1293
|
+
Operation.schema = {
|
|
1294
|
+
properties: {
|
|
1295
|
+
$identifier: {
|
|
1296
|
+
kind: "Identifier",
|
|
1297
|
+
type: { kind: "Identifier" },
|
|
1298
|
+
},
|
|
1299
|
+
$rdfType: {
|
|
1300
|
+
fromRdfType: dataFactory.namedNode("http://purl.org/shaclmate/ontology#Operation"),
|
|
1301
|
+
kind: "RdfType",
|
|
1302
|
+
toRdfTypes: [
|
|
1303
|
+
dataFactory.namedNode("http://purl.org/shaclmate/ontology#Operation"),
|
|
1304
|
+
],
|
|
1305
|
+
},
|
|
1306
|
+
bindings: {
|
|
1307
|
+
kind: "Shacl",
|
|
1308
|
+
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#binding"),
|
|
1309
|
+
get type() {
|
|
1310
|
+
return {
|
|
1311
|
+
kind: "Set",
|
|
1312
|
+
get itemType() {
|
|
1313
|
+
return OperationHttpBinding.schema;
|
|
1314
|
+
},
|
|
1315
|
+
};
|
|
1316
|
+
},
|
|
1317
|
+
},
|
|
1318
|
+
comment: {
|
|
1319
|
+
kind: "Shacl",
|
|
1320
|
+
path: $rdfs_comment,
|
|
1321
|
+
type: {
|
|
1322
|
+
kind: "Option",
|
|
1323
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1324
|
+
},
|
|
1325
|
+
},
|
|
1326
|
+
error: {
|
|
1327
|
+
kind: "Shacl",
|
|
1328
|
+
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#error"),
|
|
1329
|
+
get type() {
|
|
1330
|
+
return {
|
|
1331
|
+
kind: "Set",
|
|
1332
|
+
get itemType() {
|
|
1333
|
+
return OperationError.schema;
|
|
1334
|
+
},
|
|
1335
|
+
};
|
|
1336
|
+
},
|
|
1337
|
+
},
|
|
1338
|
+
label: {
|
|
1339
|
+
kind: "Shacl",
|
|
1340
|
+
path: $rdfs_label,
|
|
1341
|
+
type: {
|
|
1342
|
+
kind: "Option",
|
|
1343
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1344
|
+
},
|
|
1345
|
+
},
|
|
1346
|
+
name: {
|
|
1347
|
+
kind: "Shacl",
|
|
1348
|
+
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#name"),
|
|
1349
|
+
type: {
|
|
1350
|
+
kind: "Option",
|
|
1351
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1352
|
+
},
|
|
1353
|
+
},
|
|
1354
|
+
parameter: {
|
|
1355
|
+
kind: "Shacl",
|
|
1356
|
+
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#parameter"),
|
|
1357
|
+
get type() {
|
|
1358
|
+
return {
|
|
1359
|
+
kind: "Option",
|
|
1360
|
+
get itemType() {
|
|
1361
|
+
return OperationParameter.schema;
|
|
1362
|
+
},
|
|
1363
|
+
};
|
|
1364
|
+
},
|
|
1365
|
+
},
|
|
1366
|
+
result: {
|
|
1367
|
+
kind: "Shacl",
|
|
1368
|
+
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#result"),
|
|
1369
|
+
get type() {
|
|
1370
|
+
return {
|
|
1371
|
+
kind: "Option",
|
|
1372
|
+
get itemType() {
|
|
1373
|
+
return OperationResult.schema;
|
|
1374
|
+
},
|
|
1375
|
+
};
|
|
1376
|
+
},
|
|
1377
|
+
},
|
|
1378
|
+
},
|
|
1379
|
+
};
|
|
1380
|
+
Operation.toStringRecord = (_operation) => $compactRecord({
|
|
1381
|
+
$identifier: _operation.$identifier().toString(),
|
|
1382
|
+
label: _operation.label.map((item) => item.toString()).extract(),
|
|
1383
|
+
name: _operation.name.map((item) => item.toString()).extract(),
|
|
1384
|
+
});
|
|
1385
|
+
})(Operation || (Operation = {}));
|
|
1386
|
+
export var OperationError;
|
|
1387
|
+
(function (OperationError) {
|
|
1388
|
+
OperationError._fromRdfResource = (resource, options) => $sequenceRecord({
|
|
1389
|
+
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
1390
|
+
...options,
|
|
1391
|
+
focusResource: resource,
|
|
1392
|
+
propertyPath: $rdf_subject,
|
|
1393
|
+
schema: OperationError.schema.properties.$identifier.type,
|
|
1394
|
+
}).chain((values) => values.head()),
|
|
1395
|
+
classes: $shaclPropertyFromRdf({
|
|
1396
|
+
...options,
|
|
1397
|
+
focusResource: resource,
|
|
1398
|
+
ignoreRdfType: true,
|
|
1399
|
+
propertySchema: NodeShape.schema.properties.classes,
|
|
1400
|
+
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1401
|
+
}),
|
|
1402
|
+
closed: $shaclPropertyFromRdf({
|
|
1403
|
+
...options,
|
|
1404
|
+
focusResource: resource,
|
|
1405
|
+
ignoreRdfType: true,
|
|
1406
|
+
propertySchema: NodeShape.schema.properties.closed,
|
|
1407
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($booleanFromRdfResourceValues)),
|
|
1408
|
+
}),
|
|
1409
|
+
comment: $shaclPropertyFromRdf({
|
|
1410
|
+
...options,
|
|
1411
|
+
focusResource: resource,
|
|
1412
|
+
ignoreRdfType: true,
|
|
1413
|
+
propertySchema: NodeShape.schema.properties.comment,
|
|
1414
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1415
|
+
}),
|
|
1416
|
+
deactivated: $shaclPropertyFromRdf({
|
|
1417
|
+
...options,
|
|
1418
|
+
focusResource: resource,
|
|
1419
|
+
ignoreRdfType: true,
|
|
1420
|
+
propertySchema: NodeShape.schema.properties.deactivated,
|
|
1421
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($booleanFromRdfResourceValues)),
|
|
1422
|
+
}),
|
|
1423
|
+
extern: $shaclPropertyFromRdf({
|
|
1424
|
+
...options,
|
|
1425
|
+
focusResource: resource,
|
|
1426
|
+
ignoreRdfType: true,
|
|
1427
|
+
propertySchema: NodeShape.schema.properties.extern,
|
|
1428
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($booleanFromRdfResourceValues)),
|
|
1429
|
+
}),
|
|
1430
|
+
fromRdfType: $shaclPropertyFromRdf({
|
|
1431
|
+
...options,
|
|
1432
|
+
focusResource: resource,
|
|
1433
|
+
ignoreRdfType: true,
|
|
1434
|
+
propertySchema: NodeShape.schema.properties.fromRdfType,
|
|
1435
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1436
|
+
}),
|
|
1437
|
+
ignoredProperties: $shaclPropertyFromRdf({
|
|
1438
|
+
...options,
|
|
1439
|
+
focusResource: resource,
|
|
1440
|
+
ignoreRdfType: true,
|
|
1441
|
+
propertySchema: NodeShape.schema.properties.ignoredProperties,
|
|
1442
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues(($iriFromRdfResourceValues))),
|
|
1443
|
+
}),
|
|
1444
|
+
isDefinedBy: $shaclPropertyFromRdf({
|
|
1445
|
+
...options,
|
|
1446
|
+
focusResource: resource,
|
|
1447
|
+
ignoreRdfType: true,
|
|
1448
|
+
propertySchema: NodeShape.schema.properties.isDefinedBy,
|
|
1449
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
1450
|
+
}),
|
|
1451
|
+
label: $shaclPropertyFromRdf({
|
|
1452
|
+
...options,
|
|
1453
|
+
focusResource: resource,
|
|
1454
|
+
ignoreRdfType: true,
|
|
1455
|
+
propertySchema: NodeShape.schema.properties.label,
|
|
1456
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1457
|
+
}),
|
|
1458
|
+
message: $shaclPropertyFromRdf({
|
|
1459
|
+
...options,
|
|
1460
|
+
focusResource: resource,
|
|
1461
|
+
ignoreRdfType: true,
|
|
1462
|
+
propertySchema: NodeShape.schema.properties.message,
|
|
1463
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1464
|
+
}),
|
|
1465
|
+
nodeKind: $shaclPropertyFromRdf({
|
|
1466
|
+
...options,
|
|
1467
|
+
focusResource: resource,
|
|
1468
|
+
ignoreRdfType: true,
|
|
1469
|
+
propertySchema: NodeShape.schema.properties.nodeKind,
|
|
1470
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1471
|
+
}),
|
|
1472
|
+
properties: $shaclPropertyFromRdf({
|
|
1473
|
+
...options,
|
|
1474
|
+
focusResource: resource,
|
|
1475
|
+
ignoreRdfType: true,
|
|
1476
|
+
propertySchema: OperationError.schema.properties.properties,
|
|
1477
|
+
typeFromRdfResourceValues: $setFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
1478
|
+
}),
|
|
1479
|
+
rdfType: $shaclPropertyFromRdf({
|
|
1480
|
+
...options,
|
|
1481
|
+
focusResource: resource,
|
|
1482
|
+
ignoreRdfType: true,
|
|
1483
|
+
propertySchema: NodeShape.schema.properties.rdfType,
|
|
1484
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1485
|
+
}),
|
|
1486
|
+
severity: $shaclPropertyFromRdf({
|
|
1487
|
+
...options,
|
|
1488
|
+
focusResource: resource,
|
|
1489
|
+
ignoreRdfType: true,
|
|
1490
|
+
propertySchema: NodeShape.schema.properties.severity,
|
|
1491
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1492
|
+
}),
|
|
1493
|
+
shaclmateName: $shaclPropertyFromRdf({
|
|
1494
|
+
...options,
|
|
1495
|
+
focusResource: resource,
|
|
1496
|
+
ignoreRdfType: true,
|
|
1497
|
+
propertySchema: NodeShape.schema.properties.shaclmateName,
|
|
1498
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1499
|
+
}),
|
|
1500
|
+
subClassOf: $shaclPropertyFromRdf({
|
|
1501
|
+
...options,
|
|
1502
|
+
focusResource: resource,
|
|
1503
|
+
ignoreRdfType: true,
|
|
1504
|
+
propertySchema: NodeShape.schema.properties.subClassOf,
|
|
1505
|
+
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1506
|
+
}),
|
|
1507
|
+
toRdfTypes: $shaclPropertyFromRdf({
|
|
1508
|
+
...options,
|
|
1509
|
+
focusResource: resource,
|
|
1510
|
+
ignoreRdfType: true,
|
|
1511
|
+
propertySchema: NodeShape.schema.properties.toRdfTypes,
|
|
1512
|
+
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1513
|
+
}),
|
|
1514
|
+
tsImports: $shaclPropertyFromRdf({
|
|
1515
|
+
...options,
|
|
1516
|
+
focusResource: resource,
|
|
1517
|
+
ignoreRdfType: true,
|
|
1518
|
+
propertySchema: NodeShape.schema.properties.tsImports,
|
|
1519
|
+
typeFromRdfResourceValues: $setFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1520
|
+
}),
|
|
1521
|
+
types: $shaclPropertyFromRdf({
|
|
1522
|
+
...options,
|
|
1523
|
+
focusResource: resource,
|
|
1524
|
+
ignoreRdfType: true,
|
|
1525
|
+
propertySchema: NodeShape.schema.properties.types,
|
|
1526
|
+
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1527
|
+
}),
|
|
1528
|
+
}).chain((properties) => OperationError.create(properties));
|
|
1529
|
+
OperationError.$toString = (_operationError) => `OperationError(${JSON.stringify(OperationError.toStringRecord(_operationError))})`;
|
|
1530
|
+
OperationError.create = (parameters = {}) => $sequenceRecord({
|
|
1531
|
+
$identifier: $convertToIdentifierProperty(parameters.$identifier, parameters.$defaultNamespace),
|
|
1532
|
+
$type: Right("OperationError"),
|
|
1533
|
+
classes: $convertToScalarSet($convertToIri)(parameters.classes, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.classes.type, value)),
|
|
1534
|
+
closed: $convertToMaybe($identityConversionFunction)(parameters.closed, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.closed.type, value)),
|
|
1535
|
+
comment: $convertToMaybe($identityConversionFunction)(parameters.comment, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.comment.type, value)),
|
|
1536
|
+
deactivated: $convertToMaybe($identityConversionFunction)(parameters.deactivated, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.deactivated.type, value)),
|
|
1537
|
+
extern: $convertToMaybe($identityConversionFunction)(parameters.extern, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.extern.type, value)),
|
|
1538
|
+
fromRdfType: $convertToMaybe($convertToIri)(parameters.fromRdfType, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.fromRdfType.type, value)),
|
|
1539
|
+
ignoredProperties: $convertToMaybe($convertToList($convertToIri))(parameters.ignoredProperties, parameters.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.ignoredProperties.type, value)),
|
|
1540
|
+
isDefinedBy: $convertToMaybe($convertToIdentifier)(parameters.isDefinedBy, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.isDefinedBy.type, value)),
|
|
1541
|
+
label: $convertToMaybe($identityConversionFunction)(parameters.label, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.label.type, value)),
|
|
1542
|
+
message: $convertToMaybe($identityConversionFunction)(parameters.message, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.message.type, value)),
|
|
1543
|
+
nodeKind: $convertToMaybe(($convertToInIri))(parameters.nodeKind, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.nodeKind.type, value)),
|
|
1544
|
+
properties: $convertToScalarSet($convertToIdentifier)(parameters.properties, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(OperationError.schema.properties.properties.type, value)),
|
|
1545
|
+
rdfType: $convertToMaybe($convertToIri)(parameters.rdfType, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.rdfType.type, value)),
|
|
1546
|
+
severity: $convertToMaybe(($convertToInIri))(parameters.severity, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.severity.type, value)),
|
|
1547
|
+
shaclmateName: $convertToMaybe($identityConversionFunction)(parameters.shaclmateName, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.shaclmateName.type, value)),
|
|
1548
|
+
subClassOf: $convertToScalarSet($convertToIri)(parameters.subClassOf, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.subClassOf.type, value)),
|
|
1549
|
+
toRdfTypes: $convertToScalarSet($convertToIri)(parameters.toRdfTypes, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.toRdfTypes.type, value)),
|
|
1550
|
+
tsImports: $convertToScalarSet($identityConversionFunction)(parameters.tsImports, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.tsImports.type, value)),
|
|
1551
|
+
types: $convertToScalarSet($convertToIri)(parameters.types, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.types.type, value)),
|
|
1552
|
+
}).map((object) => $monkeyPatchObject(object, { $toString: OperationError.$toString }));
|
|
1553
|
+
OperationError.createUnsafe = (parameters) => OperationError.create(parameters).unsafeCoerce();
|
|
1554
|
+
OperationError.fromRdfResource = $wrap_FromRdfResourceFunction(OperationError._fromRdfResource);
|
|
1555
|
+
OperationError.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
|
|
1556
|
+
.toResource()
|
|
1557
|
+
.chain((resource) => OperationError.fromRdfResource(resource, options)));
|
|
1558
|
+
let Identifier;
|
|
1559
|
+
(function (Identifier) {
|
|
1560
|
+
Identifier.parse = $parseIdentifier;
|
|
1561
|
+
})(Identifier = OperationError.Identifier || (OperationError.Identifier = {}));
|
|
1562
|
+
OperationError.isOperationError = (object) => object.$type === "OperationError";
|
|
1563
|
+
OperationError.schema = {
|
|
1564
|
+
properties: {
|
|
1565
|
+
$identifier: {
|
|
1566
|
+
kind: "Identifier",
|
|
1567
|
+
type: { kind: "Identifier" },
|
|
1568
|
+
},
|
|
1569
|
+
classes: {
|
|
1570
|
+
kind: "Shacl",
|
|
1571
|
+
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#class"),
|
|
1572
|
+
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1573
|
+
},
|
|
1574
|
+
closed: {
|
|
1575
|
+
kind: "Shacl",
|
|
1576
|
+
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#closed"),
|
|
1577
|
+
type: {
|
|
1578
|
+
kind: "Option",
|
|
1579
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
1580
|
+
},
|
|
1581
|
+
},
|
|
1582
|
+
comment: {
|
|
1583
|
+
kind: "Shacl",
|
|
1584
|
+
path: $rdfs_comment,
|
|
1585
|
+
type: {
|
|
1586
|
+
kind: "Option",
|
|
1587
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1588
|
+
},
|
|
1589
|
+
},
|
|
1590
|
+
deactivated: {
|
|
1591
|
+
kind: "Shacl",
|
|
1592
|
+
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#deactivated"),
|
|
1593
|
+
type: {
|
|
1594
|
+
kind: "Option",
|
|
1595
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
1596
|
+
},
|
|
1597
|
+
},
|
|
1598
|
+
extern: {
|
|
1599
|
+
kind: "Shacl",
|
|
1600
|
+
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#extern"),
|
|
1601
|
+
type: {
|
|
1602
|
+
kind: "Option",
|
|
1603
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
1604
|
+
},
|
|
1605
|
+
},
|
|
1606
|
+
fromRdfType: {
|
|
1607
|
+
kind: "Shacl",
|
|
1608
|
+
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#fromRdfType"),
|
|
1609
|
+
type: { kind: "Option", itemType: { kind: "Iri" } },
|
|
1610
|
+
},
|
|
1611
|
+
ignoredProperties: {
|
|
977
1612
|
kind: "Shacl",
|
|
978
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#
|
|
1613
|
+
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#ignoredProperties"),
|
|
979
1614
|
type: {
|
|
980
1615
|
kind: "Option",
|
|
981
|
-
itemType: {
|
|
1616
|
+
itemType: {
|
|
1617
|
+
kind: "List",
|
|
1618
|
+
itemType: { kind: "Iri" },
|
|
1619
|
+
},
|
|
982
1620
|
},
|
|
983
1621
|
},
|
|
984
|
-
|
|
1622
|
+
isDefinedBy: {
|
|
985
1623
|
kind: "Shacl",
|
|
986
|
-
path:
|
|
1624
|
+
path: $rdfs_isDefinedBy,
|
|
987
1625
|
type: {
|
|
988
1626
|
kind: "Option",
|
|
989
|
-
itemType: { kind: "
|
|
1627
|
+
itemType: { kind: "Identifier" },
|
|
990
1628
|
},
|
|
991
1629
|
},
|
|
992
|
-
|
|
1630
|
+
label: {
|
|
993
1631
|
kind: "Shacl",
|
|
994
|
-
path:
|
|
1632
|
+
path: $rdfs_label,
|
|
995
1633
|
type: {
|
|
996
1634
|
kind: "Option",
|
|
997
|
-
itemType: { kind: "
|
|
1635
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
998
1636
|
},
|
|
999
1637
|
},
|
|
1000
|
-
|
|
1638
|
+
message: {
|
|
1001
1639
|
kind: "Shacl",
|
|
1002
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#
|
|
1640
|
+
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#message"),
|
|
1003
1641
|
type: {
|
|
1004
1642
|
kind: "Option",
|
|
1005
|
-
itemType: { kind: "
|
|
1643
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1006
1644
|
},
|
|
1007
1645
|
},
|
|
1008
1646
|
nodeKind: {
|
|
@@ -1023,39 +1661,13 @@ export var NodeShape;
|
|
|
1023
1661
|
},
|
|
1024
1662
|
},
|
|
1025
1663
|
},
|
|
1026
|
-
not: {
|
|
1027
|
-
kind: "Shacl",
|
|
1028
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#not"),
|
|
1029
|
-
type: {
|
|
1030
|
-
kind: "Set",
|
|
1031
|
-
itemType: { kind: "Identifier" },
|
|
1032
|
-
},
|
|
1033
|
-
},
|
|
1034
|
-
or: {
|
|
1035
|
-
kind: "Shacl",
|
|
1036
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#or"),
|
|
1037
|
-
type: {
|
|
1038
|
-
kind: "Option",
|
|
1039
|
-
itemType: {
|
|
1040
|
-
kind: "List",
|
|
1041
|
-
itemType: { kind: "Identifier" },
|
|
1042
|
-
},
|
|
1043
|
-
},
|
|
1044
|
-
},
|
|
1045
|
-
pattern: {
|
|
1046
|
-
kind: "Shacl",
|
|
1047
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#pattern"),
|
|
1048
|
-
type: {
|
|
1049
|
-
kind: "Option",
|
|
1050
|
-
itemType: { kind: "String" },
|
|
1051
|
-
},
|
|
1052
|
-
},
|
|
1053
1664
|
properties: {
|
|
1054
1665
|
kind: "Shacl",
|
|
1055
1666
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#property"),
|
|
1056
1667
|
type: {
|
|
1057
1668
|
kind: "Set",
|
|
1058
1669
|
itemType: { kind: "Identifier" },
|
|
1670
|
+
minCount: 1,
|
|
1059
1671
|
},
|
|
1060
1672
|
},
|
|
1061
1673
|
rdfType: {
|
|
@@ -1080,35 +1692,12 @@ export var NodeShape;
|
|
|
1080
1692
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#name"),
|
|
1081
1693
|
type: {
|
|
1082
1694
|
kind: "Option",
|
|
1083
|
-
itemType: { kind: "String" },
|
|
1695
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1084
1696
|
},
|
|
1085
1697
|
},
|
|
1086
1698
|
subClassOf: {
|
|
1087
1699
|
kind: "Shacl",
|
|
1088
|
-
path: $
|
|
1089
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1090
|
-
},
|
|
1091
|
-
targetClasses: {
|
|
1092
|
-
kind: "Shacl",
|
|
1093
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetClass"),
|
|
1094
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1095
|
-
},
|
|
1096
|
-
targetNodes: {
|
|
1097
|
-
kind: "Shacl",
|
|
1098
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetNode"),
|
|
1099
|
-
type: {
|
|
1100
|
-
kind: "Set",
|
|
1101
|
-
itemType: { kind: "Term", types: ["NamedNode", "Literal"] },
|
|
1102
|
-
},
|
|
1103
|
-
},
|
|
1104
|
-
targetObjectsOf: {
|
|
1105
|
-
kind: "Shacl",
|
|
1106
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetObjectsOf"),
|
|
1107
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1108
|
-
},
|
|
1109
|
-
targetSubjectsOf: {
|
|
1110
|
-
kind: "Shacl",
|
|
1111
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetSubjectsOf"),
|
|
1700
|
+
path: $rdfs_subClassOf,
|
|
1112
1701
|
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1113
1702
|
},
|
|
1114
1703
|
toRdfTypes: {
|
|
@@ -1119,132 +1708,216 @@ export var NodeShape;
|
|
|
1119
1708
|
tsImports: {
|
|
1120
1709
|
kind: "Shacl",
|
|
1121
1710
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#tsImport"),
|
|
1122
|
-
type: {
|
|
1711
|
+
type: {
|
|
1712
|
+
kind: "Set",
|
|
1713
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1714
|
+
},
|
|
1123
1715
|
},
|
|
1124
1716
|
types: {
|
|
1125
1717
|
kind: "Shacl",
|
|
1126
|
-
path: $
|
|
1718
|
+
path: $rdf_type,
|
|
1127
1719
|
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1128
1720
|
},
|
|
1129
|
-
|
|
1721
|
+
},
|
|
1722
|
+
};
|
|
1723
|
+
OperationError.toStringRecord = (_operationError) => $compactRecord({
|
|
1724
|
+
$identifier: _operationError.$identifier().toString(),
|
|
1725
|
+
label: _operationError.label.map((item) => item.toString()).extract(),
|
|
1726
|
+
shaclmateName: _operationError.shaclmateName
|
|
1727
|
+
.map((item) => item.toString())
|
|
1728
|
+
.extract(),
|
|
1729
|
+
});
|
|
1730
|
+
})(OperationError || (OperationError = {}));
|
|
1731
|
+
export var OperationErrorHttpBinding;
|
|
1732
|
+
(function (OperationErrorHttpBinding) {
|
|
1733
|
+
OperationErrorHttpBinding._fromRdfResource = (resource, options) => $sequenceRecord({
|
|
1734
|
+
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
1735
|
+
...options,
|
|
1736
|
+
focusResource: resource,
|
|
1737
|
+
propertyPath: $rdf_subject,
|
|
1738
|
+
schema: OperationErrorHttpBinding.schema.properties.$identifier.type,
|
|
1739
|
+
}).chain((values) => values.head()),
|
|
1740
|
+
statusCode: $shaclPropertyFromRdf({
|
|
1741
|
+
...options,
|
|
1742
|
+
focusResource: resource,
|
|
1743
|
+
ignoreRdfType: true,
|
|
1744
|
+
propertySchema: OperationErrorHttpBinding.schema.properties.statusCode,
|
|
1745
|
+
typeFromRdfResourceValues: ($intFromRdfResourceValues),
|
|
1746
|
+
}),
|
|
1747
|
+
}).chain((properties) => OperationErrorHttpBinding.create(properties));
|
|
1748
|
+
OperationErrorHttpBinding.$toString = (_operationErrorHttpBinding) => `OperationErrorHttpBinding(${JSON.stringify(OperationErrorHttpBinding.toStringRecord(_operationErrorHttpBinding))})`;
|
|
1749
|
+
OperationErrorHttpBinding.create = (parameters) => $sequenceRecord({
|
|
1750
|
+
$identifier: $convertToIdentifierProperty(parameters.$identifier, parameters.$defaultNamespace),
|
|
1751
|
+
$type: Right("OperationErrorHttpBinding"),
|
|
1752
|
+
statusCode: Either.of(parameters.statusCode),
|
|
1753
|
+
}).map((object) => $monkeyPatchObject(object, {
|
|
1754
|
+
$toString: OperationErrorHttpBinding.$toString,
|
|
1755
|
+
}));
|
|
1756
|
+
OperationErrorHttpBinding.createUnsafe = (parameters) => OperationErrorHttpBinding.create(parameters).unsafeCoerce();
|
|
1757
|
+
OperationErrorHttpBinding.fromRdfResource = $wrap_FromRdfResourceFunction(OperationErrorHttpBinding._fromRdfResource);
|
|
1758
|
+
OperationErrorHttpBinding.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
|
|
1759
|
+
.toResource()
|
|
1760
|
+
.chain((resource) => OperationErrorHttpBinding.fromRdfResource(resource, options)));
|
|
1761
|
+
let Identifier;
|
|
1762
|
+
(function (Identifier) {
|
|
1763
|
+
Identifier.parse = $parseIdentifier;
|
|
1764
|
+
})(Identifier = OperationErrorHttpBinding.Identifier || (OperationErrorHttpBinding.Identifier = {}));
|
|
1765
|
+
OperationErrorHttpBinding.isOperationErrorHttpBinding = (object) => object.$type === "OperationErrorHttpBinding";
|
|
1766
|
+
OperationErrorHttpBinding.schema = {
|
|
1767
|
+
properties: {
|
|
1768
|
+
$identifier: {
|
|
1769
|
+
kind: "Identifier",
|
|
1770
|
+
type: { kind: "Identifier" },
|
|
1771
|
+
},
|
|
1772
|
+
statusCode: {
|
|
1130
1773
|
kind: "Shacl",
|
|
1131
|
-
path: dataFactory.namedNode("http://
|
|
1132
|
-
type
|
|
1133
|
-
|
|
1134
|
-
itemType: {
|
|
1135
|
-
kind: "List",
|
|
1136
|
-
itemType: { kind: "Identifier" },
|
|
1137
|
-
},
|
|
1774
|
+
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#httpStatusCode"),
|
|
1775
|
+
get type() {
|
|
1776
|
+
return OperationErrorHttpBindingStatusCode.schema;
|
|
1138
1777
|
},
|
|
1139
1778
|
},
|
|
1140
1779
|
},
|
|
1141
1780
|
};
|
|
1142
|
-
|
|
1143
|
-
$identifier:
|
|
1144
|
-
label: _nodeShape.label.map((item) => item.toString()).extract(),
|
|
1145
|
-
shaclmateName: _nodeShape.shaclmateName
|
|
1146
|
-
.map((item) => item.toString())
|
|
1147
|
-
.extract(),
|
|
1781
|
+
OperationErrorHttpBinding.toStringRecord = (_operationErrorHttpBinding) => $compactRecord({
|
|
1782
|
+
$identifier: _operationErrorHttpBinding.$identifier().toString(),
|
|
1148
1783
|
});
|
|
1149
|
-
})(
|
|
1150
|
-
export var
|
|
1151
|
-
(function (
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
:
|
|
1784
|
+
})(OperationErrorHttpBinding || (OperationErrorHttpBinding = {}));
|
|
1785
|
+
export var OperationErrorHttpBindingStatusCode;
|
|
1786
|
+
(function (OperationErrorHttpBindingStatusCode) {
|
|
1787
|
+
OperationErrorHttpBindingStatusCode.schema = {
|
|
1788
|
+
kind: "Int",
|
|
1789
|
+
in: [
|
|
1790
|
+
400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414,
|
|
1791
|
+
415, 416, 417, 418, 421, 422, 423, 424, 425, 426, 428, 429, 431, 451, 500,
|
|
1792
|
+
501, 502, 503, 504, 505, 506, 507, 508, 510, 511,
|
|
1793
|
+
],
|
|
1794
|
+
datatype: $xsd_int,
|
|
1795
|
+
};
|
|
1796
|
+
})(OperationErrorHttpBindingStatusCode || (OperationErrorHttpBindingStatusCode = {}));
|
|
1797
|
+
export var OperationHttpBinding;
|
|
1798
|
+
(function (OperationHttpBinding) {
|
|
1799
|
+
OperationHttpBinding._fromRdfResource = (resource, options) => $sequenceRecord({
|
|
1155
1800
|
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
1156
1801
|
...options,
|
|
1157
1802
|
focusResource: resource,
|
|
1158
|
-
propertyPath: $
|
|
1159
|
-
schema:
|
|
1803
|
+
propertyPath: $rdf_subject,
|
|
1804
|
+
schema: OperationHttpBinding.schema.properties.$identifier.type,
|
|
1160
1805
|
}).chain((values) => values.head()),
|
|
1161
|
-
|
|
1806
|
+
method: $shaclPropertyFromRdf({
|
|
1162
1807
|
...options,
|
|
1163
1808
|
focusResource: resource,
|
|
1164
1809
|
ignoreRdfType: true,
|
|
1165
|
-
propertySchema:
|
|
1810
|
+
propertySchema: OperationHttpBinding.schema.properties.method,
|
|
1166
1811
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1167
1812
|
}),
|
|
1168
|
-
|
|
1813
|
+
urlTemplate: $shaclPropertyFromRdf({
|
|
1169
1814
|
...options,
|
|
1170
1815
|
focusResource: resource,
|
|
1171
1816
|
ignoreRdfType: true,
|
|
1172
|
-
propertySchema:
|
|
1173
|
-
typeFromRdfResourceValues:
|
|
1817
|
+
propertySchema: OperationHttpBinding.schema.properties.urlTemplate,
|
|
1818
|
+
typeFromRdfResourceValues: ($stringFromRdfResourceValues),
|
|
1174
1819
|
}),
|
|
1175
|
-
}).chain((properties) =>
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
$identifier: $convertToIdentifierProperty(parameters
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
}
|
|
1187
|
-
Ontology.createUnsafe = createUnsafe;
|
|
1188
|
-
Ontology.fromRdfResource = $wrap_FromRdfResourceFunction(Ontology._fromRdfResource);
|
|
1189
|
-
Ontology.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
|
|
1820
|
+
}).chain((properties) => OperationHttpBinding.create(properties));
|
|
1821
|
+
OperationHttpBinding.$toString = (_operationHttpBinding) => `OperationHttpBinding(${JSON.stringify(OperationHttpBinding.toStringRecord(_operationHttpBinding))})`;
|
|
1822
|
+
OperationHttpBinding.create = (parameters) => $sequenceRecord({
|
|
1823
|
+
$identifier: $convertToIdentifierProperty(parameters.$identifier, parameters.$defaultNamespace),
|
|
1824
|
+
$type: Right("OperationHttpBinding"),
|
|
1825
|
+
method: $convertToMaybe($identityConversionFunction)(parameters.method, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(OperationHttpBinding.schema.properties.method.type, value)),
|
|
1826
|
+
urlTemplate: Either.of(parameters.urlTemplate),
|
|
1827
|
+
}).map((object) => $monkeyPatchObject(object, { $toString: OperationHttpBinding.$toString }));
|
|
1828
|
+
OperationHttpBinding.createUnsafe = (parameters) => OperationHttpBinding.create(parameters).unsafeCoerce();
|
|
1829
|
+
OperationHttpBinding.fromRdfResource = $wrap_FromRdfResourceFunction(OperationHttpBinding._fromRdfResource);
|
|
1830
|
+
OperationHttpBinding.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
|
|
1190
1831
|
.toResource()
|
|
1191
|
-
.chain((resource) =>
|
|
1832
|
+
.chain((resource) => OperationHttpBinding.fromRdfResource(resource, options)));
|
|
1192
1833
|
let Identifier;
|
|
1193
1834
|
(function (Identifier) {
|
|
1194
1835
|
Identifier.parse = $parseIdentifier;
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
Ontology.schema = {
|
|
1836
|
+
})(Identifier = OperationHttpBinding.Identifier || (OperationHttpBinding.Identifier = {}));
|
|
1837
|
+
OperationHttpBinding.isOperationHttpBinding = (object) => object.$type === "OperationHttpBinding";
|
|
1838
|
+
OperationHttpBinding.schema = {
|
|
1199
1839
|
properties: {
|
|
1200
1840
|
$identifier: {
|
|
1201
1841
|
kind: "Identifier",
|
|
1202
1842
|
type: { kind: "Identifier" },
|
|
1203
1843
|
},
|
|
1204
|
-
|
|
1205
|
-
fromRdfType: dataFactory.namedNode("http://www.w3.org/2002/07/owl#Ontology"),
|
|
1206
|
-
kind: "RdfType",
|
|
1207
|
-
toRdfTypes: [
|
|
1208
|
-
dataFactory.namedNode("http://www.w3.org/2002/07/owl#Ontology"),
|
|
1209
|
-
],
|
|
1210
|
-
},
|
|
1211
|
-
$type: { kind: "Discriminant", value: "Ontology" },
|
|
1212
|
-
comment: {
|
|
1844
|
+
method: {
|
|
1213
1845
|
kind: "Shacl",
|
|
1214
|
-
path: dataFactory.namedNode("http://
|
|
1215
|
-
type
|
|
1216
|
-
|
|
1217
|
-
|
|
1846
|
+
path: dataFactory.namedNode("http://schema.org/httpMethod"),
|
|
1847
|
+
get type() {
|
|
1848
|
+
return {
|
|
1849
|
+
kind: "Option",
|
|
1850
|
+
get itemType() {
|
|
1851
|
+
return OperationHttpBindingMethod.schema;
|
|
1852
|
+
},
|
|
1853
|
+
};
|
|
1218
1854
|
},
|
|
1219
1855
|
},
|
|
1220
|
-
|
|
1856
|
+
urlTemplate: {
|
|
1221
1857
|
kind: "Shacl",
|
|
1222
|
-
path: dataFactory.namedNode("http://
|
|
1223
|
-
type: {
|
|
1224
|
-
kind: "Option",
|
|
1225
|
-
itemType: { kind: "String" },
|
|
1226
|
-
},
|
|
1858
|
+
path: dataFactory.namedNode("http://schema.org/urlTemplate"),
|
|
1859
|
+
type: { kind: "String", datatype: $xsd_string },
|
|
1227
1860
|
},
|
|
1228
1861
|
},
|
|
1229
1862
|
};
|
|
1230
|
-
|
|
1231
|
-
$identifier:
|
|
1232
|
-
label: _ontology.label.map((item) => item.toString()).extract(),
|
|
1863
|
+
OperationHttpBinding.toStringRecord = (_operationHttpBinding) => $compactRecord({
|
|
1864
|
+
$identifier: _operationHttpBinding.$identifier().toString(),
|
|
1233
1865
|
});
|
|
1234
|
-
})(
|
|
1866
|
+
})(OperationHttpBinding || (OperationHttpBinding = {}));
|
|
1867
|
+
export var OperationHttpBindingMethod;
|
|
1868
|
+
(function (OperationHttpBindingMethod) {
|
|
1869
|
+
OperationHttpBindingMethod.schema = {
|
|
1870
|
+
kind: "String",
|
|
1871
|
+
in: ["DELETE", "GET", "POST", "PUT"],
|
|
1872
|
+
datatype: $xsd_string,
|
|
1873
|
+
};
|
|
1874
|
+
})(OperationHttpBindingMethod || (OperationHttpBindingMethod = {}));
|
|
1875
|
+
export var OperationHttpBindingStatusCode;
|
|
1876
|
+
(function (OperationHttpBindingStatusCode) {
|
|
1877
|
+
OperationHttpBindingStatusCode.schema = {
|
|
1878
|
+
kind: "Int",
|
|
1879
|
+
in: [200, 201, 202, 203, 204, 205, 206, 207, 208, 226],
|
|
1880
|
+
datatype: $xsd_int,
|
|
1881
|
+
};
|
|
1882
|
+
})(OperationHttpBindingStatusCode || (OperationHttpBindingStatusCode = {}));
|
|
1883
|
+
export var OperationParameter;
|
|
1884
|
+
(function (OperationParameter) {
|
|
1885
|
+
OperationParameter.schema = { kind: "Identifier" };
|
|
1886
|
+
})(OperationParameter || (OperationParameter = {}));
|
|
1887
|
+
export var OperationParameterHttpBindingContentType;
|
|
1888
|
+
(function (OperationParameterHttpBindingContentType) {
|
|
1889
|
+
OperationParameterHttpBindingContentType.schema = {
|
|
1890
|
+
kind: "String",
|
|
1891
|
+
in: ["application/json"],
|
|
1892
|
+
datatype: $xsd_string,
|
|
1893
|
+
};
|
|
1894
|
+
})(OperationParameterHttpBindingContentType || (OperationParameterHttpBindingContentType = {}));
|
|
1895
|
+
export var OperationResult;
|
|
1896
|
+
(function (OperationResult) {
|
|
1897
|
+
OperationResult.schema = { kind: "Identifier" };
|
|
1898
|
+
})(OperationResult || (OperationResult = {}));
|
|
1899
|
+
export var OperationResultHttpBindingContentType;
|
|
1900
|
+
(function (OperationResultHttpBindingContentType) {
|
|
1901
|
+
OperationResultHttpBindingContentType.schema = {
|
|
1902
|
+
kind: "String",
|
|
1903
|
+
in: ["application/json"],
|
|
1904
|
+
datatype: $xsd_string,
|
|
1905
|
+
};
|
|
1906
|
+
})(OperationResultHttpBindingContentType || (OperationResultHttpBindingContentType = {}));
|
|
1235
1907
|
export var PropertyGroup;
|
|
1236
1908
|
(function (PropertyGroup) {
|
|
1237
|
-
PropertyGroup._fromRdfResource = (resource, options) => (
|
|
1238
|
-
? $ensureRdfResourceType(resource, [PropertyGroup.schema.properties.$rdfType.fromRdfType], {
|
|
1239
|
-
graph: options.graph,
|
|
1240
|
-
})
|
|
1241
|
-
: Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
|
|
1909
|
+
PropertyGroup._fromRdfResource = (resource, options) => $sequenceRecord({
|
|
1242
1910
|
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
1243
1911
|
...options,
|
|
1244
1912
|
focusResource: resource,
|
|
1245
|
-
propertyPath: $
|
|
1913
|
+
propertyPath: $rdf_subject,
|
|
1246
1914
|
schema: PropertyGroup.schema.properties.$identifier.type,
|
|
1247
1915
|
}).chain((values) => values.head()),
|
|
1916
|
+
$rdfType: !options.ignoreRdfType
|
|
1917
|
+
? $ensureRdfResourceType(resource, [PropertyGroup.schema.properties.$rdfType.fromRdfType], {
|
|
1918
|
+
graph: options.graph,
|
|
1919
|
+
})
|
|
1920
|
+
: Right(true),
|
|
1248
1921
|
comment: $shaclPropertyFromRdf({
|
|
1249
1922
|
...options,
|
|
1250
1923
|
focusResource: resource,
|
|
@@ -1259,19 +1932,15 @@ export var PropertyGroup;
|
|
|
1259
1932
|
propertySchema: NodeShape.schema.properties.label,
|
|
1260
1933
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1261
1934
|
}),
|
|
1262
|
-
}).chain((properties) => PropertyGroup.create(properties))
|
|
1935
|
+
}).chain((properties) => PropertyGroup.create(properties));
|
|
1263
1936
|
PropertyGroup.$toString = (_propertyGroup) => `PropertyGroup(${JSON.stringify(PropertyGroup.toStringRecord(_propertyGroup))})`;
|
|
1264
|
-
PropertyGroup.create = (parameters) => $sequenceRecord({
|
|
1265
|
-
$identifier: $convertToIdentifierProperty(parameters
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
function createUnsafe(parameters) {
|
|
1272
|
-
return PropertyGroup.create(parameters).unsafeCoerce();
|
|
1273
|
-
}
|
|
1274
|
-
PropertyGroup.createUnsafe = createUnsafe;
|
|
1937
|
+
PropertyGroup.create = (parameters = {}) => $sequenceRecord({
|
|
1938
|
+
$identifier: $convertToIdentifierProperty(parameters.$identifier, parameters.$defaultNamespace),
|
|
1939
|
+
$type: Right("PropertyGroup"),
|
|
1940
|
+
comment: $convertToMaybe($identityConversionFunction)(parameters.comment, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.comment.type, value)),
|
|
1941
|
+
label: $convertToMaybe($identityConversionFunction)(parameters.label, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.label.type, value)),
|
|
1942
|
+
}).map((object) => $monkeyPatchObject(object, { $toString: PropertyGroup.$toString }));
|
|
1943
|
+
PropertyGroup.createUnsafe = (parameters) => PropertyGroup.create(parameters).unsafeCoerce();
|
|
1275
1944
|
PropertyGroup.fromRdfResource = $wrap_FromRdfResourceFunction(PropertyGroup._fromRdfResource);
|
|
1276
1945
|
PropertyGroup.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
|
|
1277
1946
|
.toResource()
|
|
@@ -1279,7 +1948,6 @@ export var PropertyGroup;
|
|
|
1279
1948
|
let Identifier;
|
|
1280
1949
|
(function (Identifier) {
|
|
1281
1950
|
Identifier.parse = $parseIdentifier;
|
|
1282
|
-
Identifier.stringify = NTriplesTerm.stringify;
|
|
1283
1951
|
})(Identifier = PropertyGroup.Identifier || (PropertyGroup.Identifier = {}));
|
|
1284
1952
|
PropertyGroup.isPropertyGroup = (object) => object.$type === "PropertyGroup";
|
|
1285
1953
|
PropertyGroup.schema = {
|
|
@@ -1295,21 +1963,20 @@ export var PropertyGroup;
|
|
|
1295
1963
|
dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyGroup"),
|
|
1296
1964
|
],
|
|
1297
1965
|
},
|
|
1298
|
-
$type: { kind: "Discriminant", value: "PropertyGroup" },
|
|
1299
1966
|
comment: {
|
|
1300
1967
|
kind: "Shacl",
|
|
1301
|
-
path:
|
|
1968
|
+
path: $rdfs_comment,
|
|
1302
1969
|
type: {
|
|
1303
1970
|
kind: "Option",
|
|
1304
|
-
itemType: { kind: "String" },
|
|
1971
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1305
1972
|
},
|
|
1306
1973
|
},
|
|
1307
1974
|
label: {
|
|
1308
1975
|
kind: "Shacl",
|
|
1309
|
-
path:
|
|
1976
|
+
path: $rdfs_label,
|
|
1310
1977
|
type: {
|
|
1311
1978
|
kind: "Option",
|
|
1312
|
-
itemType: { kind: "String" },
|
|
1979
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1313
1980
|
},
|
|
1314
1981
|
},
|
|
1315
1982
|
},
|
|
@@ -1321,17 +1988,18 @@ export var PropertyGroup;
|
|
|
1321
1988
|
})(PropertyGroup || (PropertyGroup = {}));
|
|
1322
1989
|
export var PropertyShape;
|
|
1323
1990
|
(function (PropertyShape) {
|
|
1324
|
-
PropertyShape._fromRdfResource = (resource, options) => (
|
|
1325
|
-
? $ensureRdfResourceType(resource, [PropertyShape.schema.properties.$rdfType.fromRdfType], {
|
|
1326
|
-
graph: options.graph,
|
|
1327
|
-
})
|
|
1328
|
-
: Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
|
|
1991
|
+
PropertyShape._fromRdfResource = (resource, options) => $sequenceRecord({
|
|
1329
1992
|
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
1330
1993
|
...options,
|
|
1331
1994
|
focusResource: resource,
|
|
1332
|
-
propertyPath: $
|
|
1995
|
+
propertyPath: $rdf_subject,
|
|
1333
1996
|
schema: PropertyShape.schema.properties.$identifier.type,
|
|
1334
1997
|
}).chain((values) => values.head()),
|
|
1998
|
+
$rdfType: !options.ignoreRdfType
|
|
1999
|
+
? $ensureRdfResourceType(resource, [PropertyShape.schema.properties.$rdfType.fromRdfType], {
|
|
2000
|
+
graph: options.graph,
|
|
2001
|
+
})
|
|
2002
|
+
: Right(true),
|
|
1335
2003
|
and: $shaclPropertyFromRdf({
|
|
1336
2004
|
...options,
|
|
1337
2005
|
focusResource: resource,
|
|
@@ -1689,10 +2357,11 @@ export var PropertyShape;
|
|
|
1689
2357
|
propertySchema: NodeShape.schema.properties.xone,
|
|
1690
2358
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues($identifierFromRdfResourceValues)),
|
|
1691
2359
|
}),
|
|
1692
|
-
}).chain((properties) => PropertyShape.create(properties))
|
|
2360
|
+
}).chain((properties) => PropertyShape.create(properties));
|
|
1693
2361
|
PropertyShape.$toString = (_propertyShape) => `PropertyShape(${JSON.stringify(PropertyShape.toStringRecord(_propertyShape))})`;
|
|
1694
2362
|
PropertyShape.create = (parameters) => $sequenceRecord({
|
|
1695
2363
|
$identifier: $convertToIdentifierProperty(parameters.$identifier, parameters.$defaultNamespace),
|
|
2364
|
+
$type: Right("PropertyShape"),
|
|
1696
2365
|
and: $convertToMaybe($convertToList($convertToIdentifier))(parameters.and, parameters.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.and.type, value)),
|
|
1697
2366
|
classes: $convertToScalarSet($convertToIri)(parameters.classes, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.classes.type, value)),
|
|
1698
2367
|
comment: $convertToMaybe($identityConversionFunction)(parameters.comment, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.comment.type, value)),
|
|
@@ -1744,13 +2413,8 @@ export var PropertyShape;
|
|
|
1744
2413
|
targetSubjectsOf: $convertToScalarSet($convertToIri)(parameters.targetSubjectsOf, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.targetSubjectsOf.type, value)),
|
|
1745
2414
|
uniqueLang: $convertToMaybe($identityConversionFunction)(parameters.uniqueLang, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.uniqueLang.type, value)),
|
|
1746
2415
|
xone: $convertToMaybe($convertToList($convertToIdentifier))(parameters.xone, parameters.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.xone.type, value)),
|
|
1747
|
-
})
|
|
1748
|
-
|
|
1749
|
-
.map((object) => $monkeyPatchObject(object, { $toString: PropertyShape.$toString }));
|
|
1750
|
-
function createUnsafe(parameters) {
|
|
1751
|
-
return PropertyShape.create(parameters).unsafeCoerce();
|
|
1752
|
-
}
|
|
1753
|
-
PropertyShape.createUnsafe = createUnsafe;
|
|
2416
|
+
}).map((object) => $monkeyPatchObject(object, { $toString: PropertyShape.$toString }));
|
|
2417
|
+
PropertyShape.createUnsafe = (parameters) => PropertyShape.create(parameters).unsafeCoerce();
|
|
1754
2418
|
PropertyShape.fromRdfResource = $wrap_FromRdfResourceFunction(PropertyShape._fromRdfResource);
|
|
1755
2419
|
PropertyShape.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
|
|
1756
2420
|
.toResource()
|
|
@@ -1758,7 +2422,6 @@ export var PropertyShape;
|
|
|
1758
2422
|
let Identifier;
|
|
1759
2423
|
(function (Identifier) {
|
|
1760
2424
|
Identifier.parse = $parseIdentifier;
|
|
1761
|
-
Identifier.stringify = NTriplesTerm.stringify;
|
|
1762
2425
|
})(Identifier = PropertyShape.Identifier || (PropertyShape.Identifier = {}));
|
|
1763
2426
|
PropertyShape.isPropertyShape = (object) => object.$type === "PropertyShape";
|
|
1764
2427
|
PropertyShape.schema = {
|
|
@@ -1774,7 +2437,6 @@ export var PropertyShape;
|
|
|
1774
2437
|
dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyShape"),
|
|
1775
2438
|
],
|
|
1776
2439
|
},
|
|
1777
|
-
$type: { kind: "Discriminant", value: "PropertyShape" },
|
|
1778
2440
|
and: {
|
|
1779
2441
|
kind: "Shacl",
|
|
1780
2442
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#and"),
|
|
@@ -1793,10 +2455,10 @@ export var PropertyShape;
|
|
|
1793
2455
|
},
|
|
1794
2456
|
comment: {
|
|
1795
2457
|
kind: "Shacl",
|
|
1796
|
-
path:
|
|
2458
|
+
path: $rdfs_comment,
|
|
1797
2459
|
type: {
|
|
1798
2460
|
kind: "Option",
|
|
1799
|
-
itemType: { kind: "String" },
|
|
2461
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1800
2462
|
},
|
|
1801
2463
|
},
|
|
1802
2464
|
datatype: {
|
|
@@ -1809,7 +2471,7 @@ export var PropertyShape;
|
|
|
1809
2471
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#deactivated"),
|
|
1810
2472
|
type: {
|
|
1811
2473
|
kind: "Option",
|
|
1812
|
-
itemType: { kind: "Boolean" },
|
|
2474
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
1813
2475
|
},
|
|
1814
2476
|
},
|
|
1815
2477
|
defaultValue: {
|
|
@@ -1825,7 +2487,7 @@ export var PropertyShape;
|
|
|
1825
2487
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#description"),
|
|
1826
2488
|
type: {
|
|
1827
2489
|
kind: "Option",
|
|
1828
|
-
itemType: { kind: "String" },
|
|
2490
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1829
2491
|
},
|
|
1830
2492
|
},
|
|
1831
2493
|
disjoint: {
|
|
@@ -1838,8 +2500,8 @@ export var PropertyShape;
|
|
|
1838
2500
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#display"),
|
|
1839
2501
|
type: {
|
|
1840
2502
|
kind: "DefaultValue",
|
|
1841
|
-
itemType: { kind: "Boolean" },
|
|
1842
|
-
defaultValue: dataFactory.literal("false", $
|
|
2503
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
2504
|
+
defaultValue: dataFactory.literal("false", $xsd_boolean),
|
|
1843
2505
|
},
|
|
1844
2506
|
},
|
|
1845
2507
|
equals: {
|
|
@@ -1852,7 +2514,7 @@ export var PropertyShape;
|
|
|
1852
2514
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#flags"),
|
|
1853
2515
|
type: {
|
|
1854
2516
|
kind: "Option",
|
|
1855
|
-
itemType: { kind: "String" },
|
|
2517
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1856
2518
|
},
|
|
1857
2519
|
},
|
|
1858
2520
|
groups: {
|
|
@@ -1876,8 +2538,8 @@ export var PropertyShape;
|
|
|
1876
2538
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#ignore"),
|
|
1877
2539
|
type: {
|
|
1878
2540
|
kind: "DefaultValue",
|
|
1879
|
-
itemType: { kind: "Boolean" },
|
|
1880
|
-
defaultValue: dataFactory.literal("false", $
|
|
2541
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
2542
|
+
defaultValue: dataFactory.literal("false", $xsd_boolean),
|
|
1881
2543
|
},
|
|
1882
2544
|
},
|
|
1883
2545
|
in_: {
|
|
@@ -1896,7 +2558,7 @@ export var PropertyShape;
|
|
|
1896
2558
|
},
|
|
1897
2559
|
isDefinedBy: {
|
|
1898
2560
|
kind: "Shacl",
|
|
1899
|
-
path:
|
|
2561
|
+
path: $rdfs_isDefinedBy,
|
|
1900
2562
|
type: {
|
|
1901
2563
|
kind: "Option",
|
|
1902
2564
|
itemType: { kind: "Identifier" },
|
|
@@ -1904,10 +2566,10 @@ export var PropertyShape;
|
|
|
1904
2566
|
},
|
|
1905
2567
|
label: {
|
|
1906
2568
|
kind: "Shacl",
|
|
1907
|
-
path:
|
|
2569
|
+
path: $rdfs_label,
|
|
1908
2570
|
type: {
|
|
1909
2571
|
kind: "Option",
|
|
1910
|
-
itemType: { kind: "String" },
|
|
2572
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1911
2573
|
},
|
|
1912
2574
|
},
|
|
1913
2575
|
languageIn: {
|
|
@@ -1917,7 +2579,7 @@ export var PropertyShape;
|
|
|
1917
2579
|
kind: "Option",
|
|
1918
2580
|
itemType: {
|
|
1919
2581
|
kind: "List",
|
|
1920
|
-
itemType: { kind: "String" },
|
|
2582
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1921
2583
|
},
|
|
1922
2584
|
},
|
|
1923
2585
|
},
|
|
@@ -1936,7 +2598,7 @@ export var PropertyShape;
|
|
|
1936
2598
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxCount"),
|
|
1937
2599
|
type: {
|
|
1938
2600
|
kind: "Option",
|
|
1939
|
-
itemType: { kind: "BigInt" },
|
|
2601
|
+
itemType: { kind: "BigInt", datatype: $xsd_integer },
|
|
1940
2602
|
},
|
|
1941
2603
|
},
|
|
1942
2604
|
maxExclusive: {
|
|
@@ -1960,7 +2622,7 @@ export var PropertyShape;
|
|
|
1960
2622
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxLength"),
|
|
1961
2623
|
type: {
|
|
1962
2624
|
kind: "Option",
|
|
1963
|
-
itemType: { kind: "BigInt" },
|
|
2625
|
+
itemType: { kind: "BigInt", datatype: $xsd_integer },
|
|
1964
2626
|
},
|
|
1965
2627
|
},
|
|
1966
2628
|
message: {
|
|
@@ -1968,7 +2630,7 @@ export var PropertyShape;
|
|
|
1968
2630
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#message"),
|
|
1969
2631
|
type: {
|
|
1970
2632
|
kind: "Option",
|
|
1971
|
-
itemType: { kind: "String" },
|
|
2633
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1972
2634
|
},
|
|
1973
2635
|
},
|
|
1974
2636
|
minCount: {
|
|
@@ -1976,7 +2638,7 @@ export var PropertyShape;
|
|
|
1976
2638
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minCount"),
|
|
1977
2639
|
type: {
|
|
1978
2640
|
kind: "Option",
|
|
1979
|
-
itemType: { kind: "BigInt" },
|
|
2641
|
+
itemType: { kind: "BigInt", datatype: $xsd_integer },
|
|
1980
2642
|
},
|
|
1981
2643
|
},
|
|
1982
2644
|
minExclusive: {
|
|
@@ -2000,7 +2662,7 @@ export var PropertyShape;
|
|
|
2000
2662
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minLength"),
|
|
2001
2663
|
type: {
|
|
2002
2664
|
kind: "Option",
|
|
2003
|
-
itemType: { kind: "BigInt" },
|
|
2665
|
+
itemType: { kind: "BigInt", datatype: $xsd_integer },
|
|
2004
2666
|
},
|
|
2005
2667
|
},
|
|
2006
2668
|
mutable: {
|
|
@@ -2008,7 +2670,7 @@ export var PropertyShape;
|
|
|
2008
2670
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#mutable"),
|
|
2009
2671
|
type: {
|
|
2010
2672
|
kind: "Option",
|
|
2011
|
-
itemType: { kind: "Boolean" },
|
|
2673
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
2012
2674
|
},
|
|
2013
2675
|
},
|
|
2014
2676
|
name: {
|
|
@@ -2016,7 +2678,7 @@ export var PropertyShape;
|
|
|
2016
2678
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#name"),
|
|
2017
2679
|
type: {
|
|
2018
2680
|
kind: "Option",
|
|
2019
|
-
itemType: { kind: "String" },
|
|
2681
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2020
2682
|
},
|
|
2021
2683
|
},
|
|
2022
2684
|
node: {
|
|
@@ -2067,7 +2729,10 @@ export var PropertyShape;
|
|
|
2067
2729
|
order: {
|
|
2068
2730
|
kind: "Shacl",
|
|
2069
2731
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#order"),
|
|
2070
|
-
type: {
|
|
2732
|
+
type: {
|
|
2733
|
+
kind: "Option",
|
|
2734
|
+
itemType: { kind: "Float", datatype: $xsd_double },
|
|
2735
|
+
},
|
|
2071
2736
|
},
|
|
2072
2737
|
path: {
|
|
2073
2738
|
kind: "Shacl",
|
|
@@ -2081,7 +2746,7 @@ export var PropertyShape;
|
|
|
2081
2746
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#pattern"),
|
|
2082
2747
|
type: {
|
|
2083
2748
|
kind: "Option",
|
|
2084
|
-
itemType: { kind: "String" },
|
|
2749
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2085
2750
|
},
|
|
2086
2751
|
},
|
|
2087
2752
|
qualifiedMaxCount: {
|
|
@@ -2089,7 +2754,7 @@ export var PropertyShape;
|
|
|
2089
2754
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#qualifiedMaxCount"),
|
|
2090
2755
|
type: {
|
|
2091
2756
|
kind: "Option",
|
|
2092
|
-
itemType: { kind: "BigInt" },
|
|
2757
|
+
itemType: { kind: "BigInt", datatype: $xsd_integer },
|
|
2093
2758
|
},
|
|
2094
2759
|
},
|
|
2095
2760
|
qualifiedMinCount: {
|
|
@@ -2097,7 +2762,7 @@ export var PropertyShape;
|
|
|
2097
2762
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#qualifiedMinCount"),
|
|
2098
2763
|
type: {
|
|
2099
2764
|
kind: "Option",
|
|
2100
|
-
itemType: { kind: "BigInt" },
|
|
2765
|
+
itemType: { kind: "BigInt", datatype: $xsd_integer },
|
|
2101
2766
|
},
|
|
2102
2767
|
},
|
|
2103
2768
|
qualifiedValueShape: {
|
|
@@ -2113,7 +2778,7 @@ export var PropertyShape;
|
|
|
2113
2778
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#qualifiedValueShapesDisjoint"),
|
|
2114
2779
|
type: {
|
|
2115
2780
|
kind: "Option",
|
|
2116
|
-
itemType: { kind: "Boolean" },
|
|
2781
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
2117
2782
|
},
|
|
2118
2783
|
},
|
|
2119
2784
|
resolve: {
|
|
@@ -2141,7 +2806,7 @@ export var PropertyShape;
|
|
|
2141
2806
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#name"),
|
|
2142
2807
|
type: {
|
|
2143
2808
|
kind: "Option",
|
|
2144
|
-
itemType: { kind: "String" },
|
|
2809
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2145
2810
|
},
|
|
2146
2811
|
},
|
|
2147
2812
|
targetClasses: {
|
|
@@ -2172,7 +2837,7 @@ export var PropertyShape;
|
|
|
2172
2837
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#uniqueLang"),
|
|
2173
2838
|
type: {
|
|
2174
2839
|
kind: "Option",
|
|
2175
|
-
itemType: { kind: "Boolean" },
|
|
2840
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
2176
2841
|
},
|
|
2177
2842
|
},
|
|
2178
2843
|
xone: {
|
|
@@ -2198,6 +2863,123 @@ export var PropertyShape;
|
|
|
2198
2863
|
.extract(),
|
|
2199
2864
|
});
|
|
2200
2865
|
})(PropertyShape || (PropertyShape = {}));
|
|
2866
|
+
export var Service;
|
|
2867
|
+
(function (Service) {
|
|
2868
|
+
Service._fromRdfResource = (resource, options) => $sequenceRecord({
|
|
2869
|
+
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
2870
|
+
...options,
|
|
2871
|
+
focusResource: resource,
|
|
2872
|
+
propertyPath: $rdf_subject,
|
|
2873
|
+
schema: Service.schema.properties.$identifier.type,
|
|
2874
|
+
}).chain((values) => values.head()),
|
|
2875
|
+
$rdfType: !options.ignoreRdfType
|
|
2876
|
+
? $ensureRdfResourceType(resource, [Service.schema.properties.$rdfType.fromRdfType], { graph: options.graph })
|
|
2877
|
+
: Right(true),
|
|
2878
|
+
comment: $shaclPropertyFromRdf({
|
|
2879
|
+
...options,
|
|
2880
|
+
focusResource: resource,
|
|
2881
|
+
ignoreRdfType: true,
|
|
2882
|
+
propertySchema: NodeShape.schema.properties.comment,
|
|
2883
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
2884
|
+
}),
|
|
2885
|
+
label: $shaclPropertyFromRdf({
|
|
2886
|
+
...options,
|
|
2887
|
+
focusResource: resource,
|
|
2888
|
+
ignoreRdfType: true,
|
|
2889
|
+
propertySchema: NodeShape.schema.properties.label,
|
|
2890
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
2891
|
+
}),
|
|
2892
|
+
name: $shaclPropertyFromRdf({
|
|
2893
|
+
...options,
|
|
2894
|
+
focusResource: resource,
|
|
2895
|
+
ignoreRdfType: true,
|
|
2896
|
+
propertySchema: Service.schema.properties.name,
|
|
2897
|
+
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
2898
|
+
}),
|
|
2899
|
+
operations: $shaclPropertyFromRdf({
|
|
2900
|
+
...options,
|
|
2901
|
+
focusResource: resource,
|
|
2902
|
+
ignoreRdfType: true,
|
|
2903
|
+
propertySchema: Service.schema.properties.operations,
|
|
2904
|
+
typeFromRdfResourceValues: $setFromRdfResourceValues(Operation.fromRdfResourceValues),
|
|
2905
|
+
}),
|
|
2906
|
+
}).chain((properties) => Service.create(properties));
|
|
2907
|
+
Service.$toString = (_service) => `Service(${JSON.stringify(Service.toStringRecord(_service))})`;
|
|
2908
|
+
Service.create = (parameters = {}) => $sequenceRecord({
|
|
2909
|
+
$identifier: $convertToIdentifierProperty(parameters.$identifier, parameters.$defaultNamespace),
|
|
2910
|
+
$type: Right("Service"),
|
|
2911
|
+
comment: $convertToMaybe($identityConversionFunction)(parameters.comment, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.comment.type, value)),
|
|
2912
|
+
label: $convertToMaybe($identityConversionFunction)(parameters.label, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.label.type, value)),
|
|
2913
|
+
name: $convertToMaybe($identityConversionFunction)(parameters.name, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(Service.schema.properties.name.type, value)),
|
|
2914
|
+
operations: $convertToScalarSet($identityConversionFunction)(parameters.operations, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(Service.schema.properties.operations.type, value)),
|
|
2915
|
+
}).map((object) => $monkeyPatchObject(object, { $toString: Service.$toString }));
|
|
2916
|
+
Service.createUnsafe = (parameters) => Service.create(parameters).unsafeCoerce();
|
|
2917
|
+
Service.fromRdfResource = $wrap_FromRdfResourceFunction(Service._fromRdfResource);
|
|
2918
|
+
Service.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
|
|
2919
|
+
.toResource()
|
|
2920
|
+
.chain((resource) => Service.fromRdfResource(resource, options)));
|
|
2921
|
+
let Identifier;
|
|
2922
|
+
(function (Identifier) {
|
|
2923
|
+
Identifier.parse = $parseIdentifier;
|
|
2924
|
+
})(Identifier = Service.Identifier || (Service.Identifier = {}));
|
|
2925
|
+
Service.isService = (object) => object.$type === "Service";
|
|
2926
|
+
Service.schema = {
|
|
2927
|
+
properties: {
|
|
2928
|
+
$identifier: {
|
|
2929
|
+
kind: "Identifier",
|
|
2930
|
+
type: { kind: "Identifier" },
|
|
2931
|
+
},
|
|
2932
|
+
$rdfType: {
|
|
2933
|
+
fromRdfType: dataFactory.namedNode("http://purl.org/shaclmate/ontology#Service"),
|
|
2934
|
+
kind: "RdfType",
|
|
2935
|
+
toRdfTypes: [
|
|
2936
|
+
dataFactory.namedNode("http://purl.org/shaclmate/ontology#Service"),
|
|
2937
|
+
],
|
|
2938
|
+
},
|
|
2939
|
+
comment: {
|
|
2940
|
+
kind: "Shacl",
|
|
2941
|
+
path: $rdfs_comment,
|
|
2942
|
+
type: {
|
|
2943
|
+
kind: "Option",
|
|
2944
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2945
|
+
},
|
|
2946
|
+
},
|
|
2947
|
+
label: {
|
|
2948
|
+
kind: "Shacl",
|
|
2949
|
+
path: $rdfs_label,
|
|
2950
|
+
type: {
|
|
2951
|
+
kind: "Option",
|
|
2952
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2953
|
+
},
|
|
2954
|
+
},
|
|
2955
|
+
name: {
|
|
2956
|
+
kind: "Shacl",
|
|
2957
|
+
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#name"),
|
|
2958
|
+
type: {
|
|
2959
|
+
kind: "Option",
|
|
2960
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2961
|
+
},
|
|
2962
|
+
},
|
|
2963
|
+
operations: {
|
|
2964
|
+
kind: "Shacl",
|
|
2965
|
+
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#operation"),
|
|
2966
|
+
get type() {
|
|
2967
|
+
return {
|
|
2968
|
+
kind: "Set",
|
|
2969
|
+
get itemType() {
|
|
2970
|
+
return Operation.schema;
|
|
2971
|
+
},
|
|
2972
|
+
};
|
|
2973
|
+
},
|
|
2974
|
+
},
|
|
2975
|
+
},
|
|
2976
|
+
};
|
|
2977
|
+
Service.toStringRecord = (_service) => $compactRecord({
|
|
2978
|
+
$identifier: _service.$identifier().toString(),
|
|
2979
|
+
label: _service.label.map((item) => item.toString()).extract(),
|
|
2980
|
+
name: _service.name.map((item) => item.toString()).extract(),
|
|
2981
|
+
});
|
|
2982
|
+
})(Service || (Service = {}));
|
|
2201
2983
|
export var Severity;
|
|
2202
2984
|
(function (Severity) {
|
|
2203
2985
|
const inValues = [
|
|
@@ -2213,17 +2995,18 @@ export var Severity;
|
|
|
2213
2995
|
})(Severity || (Severity = {}));
|
|
2214
2996
|
export var ValidationReport;
|
|
2215
2997
|
(function (ValidationReport) {
|
|
2216
|
-
ValidationReport._fromRdfResource = (resource, options) => (
|
|
2217
|
-
? $ensureRdfResourceType(resource, [ValidationReport.schema.properties.$rdfType.fromRdfType], {
|
|
2218
|
-
graph: options.graph,
|
|
2219
|
-
})
|
|
2220
|
-
: Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
|
|
2998
|
+
ValidationReport._fromRdfResource = (resource, options) => $sequenceRecord({
|
|
2221
2999
|
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
2222
3000
|
...options,
|
|
2223
3001
|
focusResource: resource,
|
|
2224
|
-
propertyPath: $
|
|
3002
|
+
propertyPath: $rdf_subject,
|
|
2225
3003
|
schema: ValidationReport.schema.properties.$identifier.type,
|
|
2226
3004
|
}).chain((values) => values.head()),
|
|
3005
|
+
$rdfType: !options.ignoreRdfType
|
|
3006
|
+
? $ensureRdfResourceType(resource, [ValidationReport.schema.properties.$rdfType.fromRdfType], {
|
|
3007
|
+
graph: options.graph,
|
|
3008
|
+
})
|
|
3009
|
+
: Right(true),
|
|
2227
3010
|
conforms: $shaclPropertyFromRdf({
|
|
2228
3011
|
...options,
|
|
2229
3012
|
focusResource: resource,
|
|
@@ -2245,23 +3028,16 @@ export var ValidationReport;
|
|
|
2245
3028
|
propertySchema: ValidationReport.schema.properties.shapesGraphWellFormed,
|
|
2246
3029
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($booleanFromRdfResourceValues)),
|
|
2247
3030
|
}),
|
|
2248
|
-
}).chain((properties) => ValidationReport.create(properties))
|
|
3031
|
+
}).chain((properties) => ValidationReport.create(properties));
|
|
2249
3032
|
ValidationReport.$toString = (_validationReport) => `ValidationReport(${JSON.stringify(ValidationReport.toStringRecord(_validationReport))})`;
|
|
2250
3033
|
ValidationReport.create = (parameters) => $sequenceRecord({
|
|
2251
3034
|
$identifier: $convertToIdentifierProperty(parameters.$identifier, parameters.$defaultNamespace),
|
|
3035
|
+
$type: Right("ValidationReport"),
|
|
2252
3036
|
conforms: Either.of(parameters.conforms),
|
|
2253
3037
|
results: $convertToScalarSet($identityConversionFunction)(parameters.results, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(ValidationReport.schema.properties.results.type, value)),
|
|
2254
3038
|
shapesGraphWellFormed: $convertToMaybe($identityConversionFunction)(parameters.shapesGraphWellFormed, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(ValidationReport.schema.properties.shapesGraphWellFormed.type, value)),
|
|
2255
|
-
})
|
|
2256
|
-
|
|
2257
|
-
...properties,
|
|
2258
|
-
$type: "ValidationReport",
|
|
2259
|
-
}))
|
|
2260
|
-
.map((object) => $monkeyPatchObject(object, { $toString: ValidationReport.$toString }));
|
|
2261
|
-
function createUnsafe(parameters) {
|
|
2262
|
-
return ValidationReport.create(parameters).unsafeCoerce();
|
|
2263
|
-
}
|
|
2264
|
-
ValidationReport.createUnsafe = createUnsafe;
|
|
3039
|
+
}).map((object) => $monkeyPatchObject(object, { $toString: ValidationReport.$toString }));
|
|
3040
|
+
ValidationReport.createUnsafe = (parameters) => ValidationReport.create(parameters).unsafeCoerce();
|
|
2265
3041
|
ValidationReport.fromRdfResource = $wrap_FromRdfResourceFunction(ValidationReport._fromRdfResource);
|
|
2266
3042
|
ValidationReport.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
|
|
2267
3043
|
.toResource()
|
|
@@ -2269,7 +3045,6 @@ export var ValidationReport;
|
|
|
2269
3045
|
let Identifier;
|
|
2270
3046
|
(function (Identifier) {
|
|
2271
3047
|
Identifier.parse = $parseIdentifier;
|
|
2272
|
-
Identifier.stringify = NTriplesTerm.stringify;
|
|
2273
3048
|
})(Identifier = ValidationReport.Identifier || (ValidationReport.Identifier = {}));
|
|
2274
3049
|
ValidationReport.isValidationReport = (object) => object.$type === "ValidationReport";
|
|
2275
3050
|
ValidationReport.schema = {
|
|
@@ -2285,11 +3060,10 @@ export var ValidationReport;
|
|
|
2285
3060
|
dataFactory.namedNode("http://www.w3.org/ns/shacl#ValidationReport"),
|
|
2286
3061
|
],
|
|
2287
3062
|
},
|
|
2288
|
-
$type: { kind: "Discriminant", value: "ValidationReport" },
|
|
2289
3063
|
conforms: {
|
|
2290
3064
|
kind: "Shacl",
|
|
2291
3065
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#conforms"),
|
|
2292
|
-
type: { kind: "Boolean" },
|
|
3066
|
+
type: { kind: "Boolean", datatype: $xsd_boolean },
|
|
2293
3067
|
},
|
|
2294
3068
|
results: {
|
|
2295
3069
|
kind: "Shacl",
|
|
@@ -2308,7 +3082,7 @@ export var ValidationReport;
|
|
|
2308
3082
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#shapesGraphWellFormed"),
|
|
2309
3083
|
type: {
|
|
2310
3084
|
kind: "Option",
|
|
2311
|
-
itemType: { kind: "Boolean" },
|
|
3085
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
2312
3086
|
},
|
|
2313
3087
|
},
|
|
2314
3088
|
},
|
|
@@ -2317,17 +3091,18 @@ export var ValidationReport;
|
|
|
2317
3091
|
})(ValidationReport || (ValidationReport = {}));
|
|
2318
3092
|
export var ValidationResult;
|
|
2319
3093
|
(function (ValidationResult) {
|
|
2320
|
-
ValidationResult._fromRdfResource = (resource, options) => (
|
|
2321
|
-
? $ensureRdfResourceType(resource, [ValidationResult.schema.properties.$rdfType.fromRdfType], {
|
|
2322
|
-
graph: options.graph,
|
|
2323
|
-
})
|
|
2324
|
-
: Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
|
|
3094
|
+
ValidationResult._fromRdfResource = (resource, options) => $sequenceRecord({
|
|
2325
3095
|
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
2326
3096
|
...options,
|
|
2327
3097
|
focusResource: resource,
|
|
2328
|
-
propertyPath: $
|
|
3098
|
+
propertyPath: $rdf_subject,
|
|
2329
3099
|
schema: ValidationResult.schema.properties.$identifier.type,
|
|
2330
3100
|
}).chain((values) => values.head()),
|
|
3101
|
+
$rdfType: !options.ignoreRdfType
|
|
3102
|
+
? $ensureRdfResourceType(resource, [ValidationResult.schema.properties.$rdfType.fromRdfType], {
|
|
3103
|
+
graph: options.graph,
|
|
3104
|
+
})
|
|
3105
|
+
: Right(true),
|
|
2331
3106
|
details: $shaclPropertyFromRdf({
|
|
2332
3107
|
...options,
|
|
2333
3108
|
focusResource: resource,
|
|
@@ -2384,10 +3159,11 @@ export var ValidationResult;
|
|
|
2384
3159
|
propertySchema: ValidationResult.schema.properties.value,
|
|
2385
3160
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($termFromRdfResourceValues)),
|
|
2386
3161
|
}),
|
|
2387
|
-
}).chain((properties) => ValidationResult.create(properties))
|
|
3162
|
+
}).chain((properties) => ValidationResult.create(properties));
|
|
2388
3163
|
ValidationResult.$toString = (_validationResult) => `ValidationResult(${JSON.stringify(ValidationResult.toStringRecord(_validationResult))})`;
|
|
2389
3164
|
ValidationResult.create = (parameters) => $sequenceRecord({
|
|
2390
3165
|
$identifier: $convertToIdentifierProperty(parameters.$identifier, parameters.$defaultNamespace),
|
|
3166
|
+
$type: Right("ValidationResult"),
|
|
2391
3167
|
details: $convertToScalarSet($identityConversionFunction)(parameters.details, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(ValidationResult.schema.properties.details.type, value)),
|
|
2392
3168
|
focusNode: Either.of(parameters.focusNode),
|
|
2393
3169
|
message: $convertToMaybe($identityConversionFunction)(parameters.message, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(ValidationResult.schema.properties.message.type, value)),
|
|
@@ -2396,16 +3172,8 @@ export var ValidationResult;
|
|
|
2396
3172
|
sourceConstraintComponent: $convertToIri(parameters.sourceConstraintComponent, parameters.$defaultNamespace),
|
|
2397
3173
|
sourceShape: $convertToMaybe($convertToIdentifier)(parameters.sourceShape, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(ValidationResult.schema.properties.sourceShape.type, value)),
|
|
2398
3174
|
value: $convertToMaybe($identityConversionFunction)(parameters.value, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(ValidationResult.schema.properties.value.type, value)),
|
|
2399
|
-
})
|
|
2400
|
-
|
|
2401
|
-
...properties,
|
|
2402
|
-
$type: "ValidationResult",
|
|
2403
|
-
}))
|
|
2404
|
-
.map((object) => $monkeyPatchObject(object, { $toString: ValidationResult.$toString }));
|
|
2405
|
-
function createUnsafe(parameters) {
|
|
2406
|
-
return ValidationResult.create(parameters).unsafeCoerce();
|
|
2407
|
-
}
|
|
2408
|
-
ValidationResult.createUnsafe = createUnsafe;
|
|
3175
|
+
}).map((object) => $monkeyPatchObject(object, { $toString: ValidationResult.$toString }));
|
|
3176
|
+
ValidationResult.createUnsafe = (parameters) => ValidationResult.create(parameters).unsafeCoerce();
|
|
2409
3177
|
ValidationResult.fromRdfResource = $wrap_FromRdfResourceFunction(ValidationResult._fromRdfResource);
|
|
2410
3178
|
ValidationResult.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
|
|
2411
3179
|
.toResource()
|
|
@@ -2413,7 +3181,6 @@ export var ValidationResult;
|
|
|
2413
3181
|
let Identifier;
|
|
2414
3182
|
(function (Identifier) {
|
|
2415
3183
|
Identifier.parse = $parseIdentifier;
|
|
2416
|
-
Identifier.stringify = NTriplesTerm.stringify;
|
|
2417
3184
|
})(Identifier = ValidationResult.Identifier || (ValidationResult.Identifier = {}));
|
|
2418
3185
|
ValidationResult.isValidationResult = (object) => object.$type === "ValidationResult";
|
|
2419
3186
|
ValidationResult.schema = {
|
|
@@ -2429,7 +3196,6 @@ export var ValidationResult;
|
|
|
2429
3196
|
dataFactory.namedNode("http://www.w3.org/ns/shacl#ValidationResult"),
|
|
2430
3197
|
],
|
|
2431
3198
|
},
|
|
2432
|
-
$type: { kind: "Discriminant", value: "ValidationResult" },
|
|
2433
3199
|
details: {
|
|
2434
3200
|
kind: "Shacl",
|
|
2435
3201
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#detail"),
|
|
@@ -2454,7 +3220,7 @@ export var ValidationResult;
|
|
|
2454
3220
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#resultMessage"),
|
|
2455
3221
|
type: {
|
|
2456
3222
|
kind: "Option",
|
|
2457
|
-
itemType: { kind: "String" },
|
|
3223
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2458
3224
|
},
|
|
2459
3225
|
},
|
|
2460
3226
|
path: {
|
|
@@ -2522,7 +3288,7 @@ export var Shape;
|
|
|
2522
3288
|
...options,
|
|
2523
3289
|
ignoreRdfType: false,
|
|
2524
3290
|
}));
|
|
2525
|
-
Shape.fromRdfResourceValues = (
|
|
3291
|
+
Shape.fromRdfResourceValues = (inputValues, options) => {
|
|
2526
3292
|
const memberInputValues = Array.from({ length: 2 }).map(() => Resource.Values.empty({
|
|
2527
3293
|
focusResource: inputValues.focusResource,
|
|
2528
3294
|
propertyPath: inputValues.propertyPath,
|
|
@@ -2586,16 +3352,12 @@ export var Shape;
|
|
|
2586
3352
|
}
|
|
2587
3353
|
}
|
|
2588
3354
|
return Right(collectedOutputValues);
|
|
2589
|
-
}
|
|
3355
|
+
};
|
|
2590
3356
|
let Identifier;
|
|
2591
3357
|
(function (Identifier) {
|
|
2592
3358
|
Identifier.parse = $parseIdentifier;
|
|
2593
|
-
Identifier.stringify = NTriplesTerm.stringify;
|
|
2594
3359
|
})(Identifier = Shape.Identifier || (Shape.Identifier = {}));
|
|
2595
|
-
|
|
2596
|
-
return (NodeShape.isNodeShape(object) || PropertyShape.isPropertyShape(object));
|
|
2597
|
-
}
|
|
2598
|
-
Shape.isShape = isShape;
|
|
3360
|
+
Shape.isShape = (object) => NodeShape.isNodeShape(object) || PropertyShape.isPropertyShape(object);
|
|
2599
3361
|
Shape.schema = {
|
|
2600
3362
|
kind: "ObjectDiscriminatedUnion",
|
|
2601
3363
|
members: {
|
|
@@ -2624,10 +3386,10 @@ export var Shape;
|
|
|
2624
3386
|
},
|
|
2625
3387
|
comment: {
|
|
2626
3388
|
kind: "Shacl",
|
|
2627
|
-
path:
|
|
3389
|
+
path: $rdfs_comment,
|
|
2628
3390
|
type: {
|
|
2629
3391
|
kind: "Option",
|
|
2630
|
-
itemType: { kind: "String" },
|
|
3392
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2631
3393
|
},
|
|
2632
3394
|
},
|
|
2633
3395
|
datatype: {
|
|
@@ -2640,7 +3402,7 @@ export var Shape;
|
|
|
2640
3402
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#deactivated"),
|
|
2641
3403
|
type: {
|
|
2642
3404
|
kind: "Option",
|
|
2643
|
-
itemType: { kind: "Boolean" },
|
|
3405
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
2644
3406
|
},
|
|
2645
3407
|
},
|
|
2646
3408
|
flags: {
|
|
@@ -2648,7 +3410,7 @@ export var Shape;
|
|
|
2648
3410
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#flags"),
|
|
2649
3411
|
type: {
|
|
2650
3412
|
kind: "Option",
|
|
2651
|
-
itemType: { kind: "String" },
|
|
3413
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2652
3414
|
},
|
|
2653
3415
|
},
|
|
2654
3416
|
hasValues: {
|
|
@@ -2664,8 +3426,8 @@ export var Shape;
|
|
|
2664
3426
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#ignore"),
|
|
2665
3427
|
type: {
|
|
2666
3428
|
kind: "DefaultValue",
|
|
2667
|
-
itemType: { kind: "Boolean" },
|
|
2668
|
-
defaultValue: dataFactory.literal("false", $
|
|
3429
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
3430
|
+
defaultValue: dataFactory.literal("false", $xsd_boolean),
|
|
2669
3431
|
},
|
|
2670
3432
|
},
|
|
2671
3433
|
in_: {
|
|
@@ -2684,7 +3446,7 @@ export var Shape;
|
|
|
2684
3446
|
},
|
|
2685
3447
|
isDefinedBy: {
|
|
2686
3448
|
kind: "Shacl",
|
|
2687
|
-
path:
|
|
3449
|
+
path: $rdfs_isDefinedBy,
|
|
2688
3450
|
type: {
|
|
2689
3451
|
kind: "Option",
|
|
2690
3452
|
itemType: { kind: "Identifier" },
|
|
@@ -2692,10 +3454,10 @@ export var Shape;
|
|
|
2692
3454
|
},
|
|
2693
3455
|
label: {
|
|
2694
3456
|
kind: "Shacl",
|
|
2695
|
-
path:
|
|
3457
|
+
path: $rdfs_label,
|
|
2696
3458
|
type: {
|
|
2697
3459
|
kind: "Option",
|
|
2698
|
-
itemType: { kind: "String" },
|
|
3460
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2699
3461
|
},
|
|
2700
3462
|
},
|
|
2701
3463
|
languageIn: {
|
|
@@ -2705,7 +3467,7 @@ export var Shape;
|
|
|
2705
3467
|
kind: "Option",
|
|
2706
3468
|
itemType: {
|
|
2707
3469
|
kind: "List",
|
|
2708
|
-
itemType: { kind: "String" },
|
|
3470
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2709
3471
|
},
|
|
2710
3472
|
},
|
|
2711
3473
|
},
|
|
@@ -2730,7 +3492,7 @@ export var Shape;
|
|
|
2730
3492
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxLength"),
|
|
2731
3493
|
type: {
|
|
2732
3494
|
kind: "Option",
|
|
2733
|
-
itemType: { kind: "BigInt" },
|
|
3495
|
+
itemType: { kind: "BigInt", datatype: $xsd_integer },
|
|
2734
3496
|
},
|
|
2735
3497
|
},
|
|
2736
3498
|
message: {
|
|
@@ -2738,7 +3500,7 @@ export var Shape;
|
|
|
2738
3500
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#message"),
|
|
2739
3501
|
type: {
|
|
2740
3502
|
kind: "Option",
|
|
2741
|
-
itemType: { kind: "String" },
|
|
3503
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2742
3504
|
},
|
|
2743
3505
|
},
|
|
2744
3506
|
minExclusive: {
|
|
@@ -2762,7 +3524,7 @@ export var Shape;
|
|
|
2762
3524
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minLength"),
|
|
2763
3525
|
type: {
|
|
2764
3526
|
kind: "Option",
|
|
2765
|
-
itemType: { kind: "BigInt" },
|
|
3527
|
+
itemType: { kind: "BigInt", datatype: $xsd_integer },
|
|
2766
3528
|
},
|
|
2767
3529
|
},
|
|
2768
3530
|
mutable: {
|
|
@@ -2770,7 +3532,7 @@ export var Shape;
|
|
|
2770
3532
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#mutable"),
|
|
2771
3533
|
type: {
|
|
2772
3534
|
kind: "Option",
|
|
2773
|
-
itemType: { kind: "Boolean" },
|
|
3535
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
2774
3536
|
},
|
|
2775
3537
|
},
|
|
2776
3538
|
node: {
|
|
@@ -2823,7 +3585,7 @@ export var Shape;
|
|
|
2823
3585
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#pattern"),
|
|
2824
3586
|
type: {
|
|
2825
3587
|
kind: "Option",
|
|
2826
|
-
itemType: { kind: "String" },
|
|
3588
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2827
3589
|
},
|
|
2828
3590
|
},
|
|
2829
3591
|
severity: {
|
|
@@ -2843,7 +3605,7 @@ export var Shape;
|
|
|
2843
3605
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#name"),
|
|
2844
3606
|
type: {
|
|
2845
3607
|
kind: "Option",
|
|
2846
|
-
itemType: { kind: "String" },
|
|
3608
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2847
3609
|
},
|
|
2848
3610
|
},
|
|
2849
3611
|
targetClasses: {
|
|
@@ -2891,10 +3653,20 @@ export var $Object;
|
|
|
2891
3653
|
return NodeShape.$toString(object);
|
|
2892
3654
|
case "Ontology":
|
|
2893
3655
|
return Ontology.$toString(object);
|
|
3656
|
+
case "Operation":
|
|
3657
|
+
return Operation.$toString(object);
|
|
3658
|
+
case "OperationError":
|
|
3659
|
+
return OperationError.$toString(object);
|
|
3660
|
+
case "OperationErrorHttpBinding":
|
|
3661
|
+
return OperationErrorHttpBinding.$toString(object);
|
|
3662
|
+
case "OperationHttpBinding":
|
|
3663
|
+
return OperationHttpBinding.$toString(object);
|
|
2894
3664
|
case "PropertyGroup":
|
|
2895
3665
|
return PropertyGroup.$toString(object);
|
|
2896
3666
|
case "PropertyShape":
|
|
2897
3667
|
return PropertyShape.$toString(object);
|
|
3668
|
+
case "Service":
|
|
3669
|
+
return Service.$toString(object);
|
|
2898
3670
|
case "ValidationReport":
|
|
2899
3671
|
return ValidationReport.$toString(object);
|
|
2900
3672
|
case "ValidationResult":
|