@shaclmate/compiler 4.0.93 → 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_fromRdfResourceValuesFunction.js +57 -0
- 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 +1507 -253
- package/dist/input/input.shaclmate.js +1226 -402
- 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_fromRdfResourceValuesFunctionExpression.js +0 -22
- 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
|
|
@@ -24,6 +24,7 @@ function $compactRecord(record) {
|
|
|
24
24
|
return definedProperties;
|
|
25
25
|
}, {});
|
|
26
26
|
}
|
|
27
|
+
const $convertToBigInt = (value) => Either.encase(() => BigInt(value));
|
|
27
28
|
function $convertToIdentifier(value, defaultNamespace) {
|
|
28
29
|
switch (typeof value) {
|
|
29
30
|
case "object":
|
|
@@ -134,7 +135,7 @@ function $defaultValueFromRdfResourceValues(itemFromRdfResourceValues) {
|
|
|
134
135
|
}
|
|
135
136
|
function $ensureRdfResourceType(resource, types, options) {
|
|
136
137
|
return resource
|
|
137
|
-
.value($
|
|
138
|
+
.value($rdf_type, options)
|
|
138
139
|
.chain((actualRdfTypeValue) => actualRdfTypeValue.toIri())
|
|
139
140
|
.chain((actualRdfType) => {
|
|
140
141
|
// Check the expected type and its known subtypes
|
|
@@ -151,15 +152,18 @@ function $floatFromRdfResourceValues(values, options) {
|
|
|
151
152
|
? value.toFloat(options.schema.in)
|
|
152
153
|
: value.toFloat()));
|
|
153
154
|
}
|
|
154
|
-
|
|
155
|
-
return $termLikeFromRdfResourceValues(values, options).chain((values) => values.chainMap((value) => value.toIdentifier()));
|
|
156
|
-
}
|
|
155
|
+
const $identifierFromRdfResourceValues = (values, options) => $termLikeFromRdfResourceValues(values, options).chain((values) => values.chainMap((value) => value.toIdentifier()));
|
|
157
156
|
function $identityConversionFunction(value, _defaultNamespace) {
|
|
158
157
|
return Either.of(value);
|
|
159
158
|
}
|
|
160
159
|
function $identityValidationFunction(_schema, value) {
|
|
161
160
|
return Either.of(value);
|
|
162
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
|
+
}
|
|
163
167
|
function $iriFromRdfResourceValues(values, options) {
|
|
164
168
|
return $termLikeFromRdfResourceValues(values, options).chain((values) => values.chainMap((value) => options.schema.in
|
|
165
169
|
? value.toIri(options.schema.in)
|
|
@@ -176,9 +180,7 @@ function $listFromRdfResourceValues(itemFromRdfResourceValues) {
|
|
|
176
180
|
.map((valueLists) => valueLists.map((valueList) => valueList.toArray())); // Convert inner Resource.Values to arrays
|
|
177
181
|
}
|
|
178
182
|
const $literalFactory = new LiteralFactory({ dataFactory: dataFactory });
|
|
179
|
-
|
|
180
|
-
return $termLikeFromRdfResourceValues(values, options).chain((values) => values.chainMap((value) => value.toLiteral(options.schema.in)));
|
|
181
|
-
}
|
|
183
|
+
const $literalFromRdfResourceValues = (values, options) => $termLikeFromRdfResourceValues(values, options).chain((values) => values.chainMap((value) => value.toLiteral(options.schema.in)));
|
|
182
184
|
function $maybeFromRdfResourceValues(itemFromRdfResourceValues) {
|
|
183
185
|
return (values, options) => itemFromRdfResourceValues(values, {
|
|
184
186
|
...options,
|
|
@@ -220,51 +222,20 @@ export var $PropertyPath;
|
|
|
220
222
|
$PropertyPath.schema = {};
|
|
221
223
|
$PropertyPath.$toString = RdfxResourcePropertyPath.toString;
|
|
222
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");
|
|
223
227
|
function $rdfResourceIdentifierValues(resource) {
|
|
224
228
|
return new Resource.Value({
|
|
225
229
|
dataFactory: dataFactory,
|
|
226
230
|
focusResource: resource,
|
|
227
|
-
propertyPath: $
|
|
231
|
+
propertyPath: $rdf_subject,
|
|
228
232
|
term: resource.identifier,
|
|
229
233
|
}).toValues();
|
|
230
234
|
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
langString: dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),
|
|
236
|
-
nil: dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"),
|
|
237
|
-
rest: dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"),
|
|
238
|
-
subject: dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#subject"),
|
|
239
|
-
type: dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),
|
|
240
|
-
};
|
|
241
|
-
$RdfVocabularies.rdfs = {
|
|
242
|
-
subClassOf: dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#subClassOf"),
|
|
243
|
-
};
|
|
244
|
-
$RdfVocabularies.xsd = {
|
|
245
|
-
boolean: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#boolean"),
|
|
246
|
-
byte: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#byte"),
|
|
247
|
-
date: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#date"),
|
|
248
|
-
dateTime: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#dateTime"),
|
|
249
|
-
dateTimeStamp: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#dateTimeStamp"),
|
|
250
|
-
decimal: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#decimal"),
|
|
251
|
-
double: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#double"),
|
|
252
|
-
float: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#float"),
|
|
253
|
-
int: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#int"),
|
|
254
|
-
integer: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#integer"),
|
|
255
|
-
long: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#long"),
|
|
256
|
-
negativeInteger: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#negativeInteger"),
|
|
257
|
-
nonNegativeInteger: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#nonNegativeInteger"),
|
|
258
|
-
nonPositiveInteger: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#nonPositiveInteger"),
|
|
259
|
-
positiveInteger: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#positiveInteger"),
|
|
260
|
-
short: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#short"),
|
|
261
|
-
string: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#string"),
|
|
262
|
-
unsignedByte: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#unsignedByte"),
|
|
263
|
-
unsignedInt: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#unsignedInt"),
|
|
264
|
-
unsignedLong: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#unsignedLong"),
|
|
265
|
-
unsignedShort: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#unsignedShort"),
|
|
266
|
-
};
|
|
267
|
-
})($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");
|
|
268
239
|
function $sequenceRecord(record) {
|
|
269
240
|
const result = {};
|
|
270
241
|
for (const key of globalThis.Object.keys(record)) {
|
|
@@ -399,17 +370,25 @@ function $wrap_FromRdfResourceFunction(_fromRdfResourceFunction) {
|
|
|
399
370
|
});
|
|
400
371
|
};
|
|
401
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");
|
|
402
378
|
export var NodeShape;
|
|
403
379
|
(function (NodeShape) {
|
|
404
|
-
NodeShape._fromRdfResource = (resource, options) => (
|
|
405
|
-
? $ensureRdfResourceType(resource, [NodeShape.schema.properties.$rdfType.fromRdfType], { graph: options.graph })
|
|
406
|
-
: Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
|
|
380
|
+
NodeShape._fromRdfResource = (resource, options) => $sequenceRecord({
|
|
407
381
|
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
408
382
|
...options,
|
|
409
383
|
focusResource: resource,
|
|
410
|
-
propertyPath: $
|
|
384
|
+
propertyPath: $rdf_subject,
|
|
411
385
|
schema: NodeShape.schema.properties.$identifier.type,
|
|
412
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),
|
|
413
392
|
and: $shaclPropertyFromRdf({
|
|
414
393
|
...options,
|
|
415
394
|
focusResource: resource,
|
|
@@ -711,60 +690,56 @@ export var NodeShape;
|
|
|
711
690
|
propertySchema: NodeShape.schema.properties.xone,
|
|
712
691
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues($identifierFromRdfResourceValues)),
|
|
713
692
|
}),
|
|
714
|
-
}).chain((properties) => NodeShape.create(properties))
|
|
693
|
+
}).chain((properties) => NodeShape.create(properties));
|
|
715
694
|
NodeShape.$toString = (_nodeShape) => `NodeShape(${JSON.stringify(NodeShape.toStringRecord(_nodeShape))})`;
|
|
716
|
-
NodeShape.create = (parameters) => $sequenceRecord({
|
|
717
|
-
$identifier: $convertToIdentifierProperty(parameters
|
|
718
|
-
|
|
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
|
-
function createUnsafe(parameters) {
|
|
765
|
-
return NodeShape.create(parameters).unsafeCoerce();
|
|
766
|
-
}
|
|
767
|
-
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();
|
|
768
743
|
NodeShape.fromRdfResource = $wrap_FromRdfResourceFunction(NodeShape._fromRdfResource);
|
|
769
744
|
NodeShape.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
|
|
770
745
|
.toResource()
|
|
@@ -772,7 +747,6 @@ export var NodeShape;
|
|
|
772
747
|
let Identifier;
|
|
773
748
|
(function (Identifier) {
|
|
774
749
|
Identifier.parse = $parseIdentifier;
|
|
775
|
-
Identifier.stringify = NTriplesTerm.stringify;
|
|
776
750
|
})(Identifier = NodeShape.Identifier || (NodeShape.Identifier = {}));
|
|
777
751
|
NodeShape.isNodeShape = (object) => object.$type === "NodeShape";
|
|
778
752
|
NodeShape.schema = {
|
|
@@ -788,7 +762,6 @@ export var NodeShape;
|
|
|
788
762
|
dataFactory.namedNode("http://www.w3.org/ns/shacl#NodeShape"),
|
|
789
763
|
],
|
|
790
764
|
},
|
|
791
|
-
$type: { kind: "Discriminant", value: "NodeShape" },
|
|
792
765
|
and: {
|
|
793
766
|
kind: "Shacl",
|
|
794
767
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#and"),
|
|
@@ -810,15 +783,15 @@ export var NodeShape;
|
|
|
810
783
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#closed"),
|
|
811
784
|
type: {
|
|
812
785
|
kind: "Option",
|
|
813
|
-
itemType: { kind: "Boolean" },
|
|
786
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
814
787
|
},
|
|
815
788
|
},
|
|
816
789
|
comment: {
|
|
817
790
|
kind: "Shacl",
|
|
818
|
-
path:
|
|
791
|
+
path: $rdfs_comment,
|
|
819
792
|
type: {
|
|
820
793
|
kind: "Option",
|
|
821
|
-
itemType: { kind: "String" },
|
|
794
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
822
795
|
},
|
|
823
796
|
},
|
|
824
797
|
datatype: {
|
|
@@ -831,7 +804,7 @@ export var NodeShape;
|
|
|
831
804
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#deactivated"),
|
|
832
805
|
type: {
|
|
833
806
|
kind: "Option",
|
|
834
|
-
itemType: { kind: "Boolean" },
|
|
807
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
835
808
|
},
|
|
836
809
|
},
|
|
837
810
|
discriminantValue: {
|
|
@@ -839,7 +812,7 @@ export var NodeShape;
|
|
|
839
812
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#discriminantValue"),
|
|
840
813
|
type: {
|
|
841
814
|
kind: "Option",
|
|
842
|
-
itemType: { kind: "String" },
|
|
815
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
843
816
|
},
|
|
844
817
|
},
|
|
845
818
|
extern: {
|
|
@@ -847,7 +820,7 @@ export var NodeShape;
|
|
|
847
820
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#extern"),
|
|
848
821
|
type: {
|
|
849
822
|
kind: "Option",
|
|
850
|
-
itemType: { kind: "Boolean" },
|
|
823
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
851
824
|
},
|
|
852
825
|
},
|
|
853
826
|
flags: {
|
|
@@ -855,7 +828,7 @@ export var NodeShape;
|
|
|
855
828
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#flags"),
|
|
856
829
|
type: {
|
|
857
830
|
kind: "Option",
|
|
858
|
-
itemType: { kind: "String" },
|
|
831
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
859
832
|
},
|
|
860
833
|
},
|
|
861
834
|
fromRdfType: {
|
|
@@ -876,8 +849,8 @@ export var NodeShape;
|
|
|
876
849
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#ignore"),
|
|
877
850
|
type: {
|
|
878
851
|
kind: "DefaultValue",
|
|
879
|
-
itemType: { kind: "Boolean" },
|
|
880
|
-
defaultValue: dataFactory.literal("false", $
|
|
852
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
853
|
+
defaultValue: dataFactory.literal("false", $xsd_boolean),
|
|
881
854
|
},
|
|
882
855
|
},
|
|
883
856
|
ignoredProperties: {
|
|
@@ -907,7 +880,7 @@ export var NodeShape;
|
|
|
907
880
|
},
|
|
908
881
|
isDefinedBy: {
|
|
909
882
|
kind: "Shacl",
|
|
910
|
-
path:
|
|
883
|
+
path: $rdfs_isDefinedBy,
|
|
911
884
|
type: {
|
|
912
885
|
kind: "Option",
|
|
913
886
|
itemType: { kind: "Identifier" },
|
|
@@ -915,10 +888,10 @@ export var NodeShape;
|
|
|
915
888
|
},
|
|
916
889
|
label: {
|
|
917
890
|
kind: "Shacl",
|
|
918
|
-
path:
|
|
891
|
+
path: $rdfs_label,
|
|
919
892
|
type: {
|
|
920
893
|
kind: "Option",
|
|
921
|
-
itemType: { kind: "String" },
|
|
894
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
922
895
|
},
|
|
923
896
|
},
|
|
924
897
|
languageIn: {
|
|
@@ -928,7 +901,7 @@ export var NodeShape;
|
|
|
928
901
|
kind: "Option",
|
|
929
902
|
itemType: {
|
|
930
903
|
kind: "List",
|
|
931
|
-
itemType: { kind: "String" },
|
|
904
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
932
905
|
},
|
|
933
906
|
},
|
|
934
907
|
},
|
|
@@ -953,7 +926,7 @@ export var NodeShape;
|
|
|
953
926
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxLength"),
|
|
954
927
|
type: {
|
|
955
928
|
kind: "Option",
|
|
956
|
-
itemType: { kind: "BigInt" },
|
|
929
|
+
itemType: { kind: "BigInt", datatype: $xsd_integer },
|
|
957
930
|
},
|
|
958
931
|
},
|
|
959
932
|
message: {
|
|
@@ -961,7 +934,7 @@ export var NodeShape;
|
|
|
961
934
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#message"),
|
|
962
935
|
type: {
|
|
963
936
|
kind: "Option",
|
|
964
|
-
itemType: { kind: "String" },
|
|
937
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
965
938
|
},
|
|
966
939
|
},
|
|
967
940
|
minExclusive: {
|
|
@@ -980,28 +953,694 @@ export var NodeShape;
|
|
|
980
953
|
itemType: { kind: "Literal" },
|
|
981
954
|
},
|
|
982
955
|
},
|
|
983
|
-
minLength: {
|
|
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: {
|
|
1612
|
+
kind: "Shacl",
|
|
1613
|
+
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#ignoredProperties"),
|
|
1614
|
+
type: {
|
|
1615
|
+
kind: "Option",
|
|
1616
|
+
itemType: {
|
|
1617
|
+
kind: "List",
|
|
1618
|
+
itemType: { kind: "Iri" },
|
|
1619
|
+
},
|
|
1620
|
+
},
|
|
1621
|
+
},
|
|
1622
|
+
isDefinedBy: {
|
|
984
1623
|
kind: "Shacl",
|
|
985
|
-
path:
|
|
1624
|
+
path: $rdfs_isDefinedBy,
|
|
986
1625
|
type: {
|
|
987
1626
|
kind: "Option",
|
|
988
|
-
itemType: { kind: "
|
|
1627
|
+
itemType: { kind: "Identifier" },
|
|
989
1628
|
},
|
|
990
1629
|
},
|
|
991
|
-
|
|
1630
|
+
label: {
|
|
992
1631
|
kind: "Shacl",
|
|
993
|
-
path:
|
|
1632
|
+
path: $rdfs_label,
|
|
994
1633
|
type: {
|
|
995
1634
|
kind: "Option",
|
|
996
|
-
itemType: { kind: "
|
|
1635
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
997
1636
|
},
|
|
998
1637
|
},
|
|
999
|
-
|
|
1638
|
+
message: {
|
|
1000
1639
|
kind: "Shacl",
|
|
1001
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#
|
|
1640
|
+
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#message"),
|
|
1002
1641
|
type: {
|
|
1003
1642
|
kind: "Option",
|
|
1004
|
-
itemType: { kind: "
|
|
1643
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1005
1644
|
},
|
|
1006
1645
|
},
|
|
1007
1646
|
nodeKind: {
|
|
@@ -1022,39 +1661,13 @@ export var NodeShape;
|
|
|
1022
1661
|
},
|
|
1023
1662
|
},
|
|
1024
1663
|
},
|
|
1025
|
-
not: {
|
|
1026
|
-
kind: "Shacl",
|
|
1027
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#not"),
|
|
1028
|
-
type: {
|
|
1029
|
-
kind: "Set",
|
|
1030
|
-
itemType: { kind: "Identifier" },
|
|
1031
|
-
},
|
|
1032
|
-
},
|
|
1033
|
-
or: {
|
|
1034
|
-
kind: "Shacl",
|
|
1035
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#or"),
|
|
1036
|
-
type: {
|
|
1037
|
-
kind: "Option",
|
|
1038
|
-
itemType: {
|
|
1039
|
-
kind: "List",
|
|
1040
|
-
itemType: { kind: "Identifier" },
|
|
1041
|
-
},
|
|
1042
|
-
},
|
|
1043
|
-
},
|
|
1044
|
-
pattern: {
|
|
1045
|
-
kind: "Shacl",
|
|
1046
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#pattern"),
|
|
1047
|
-
type: {
|
|
1048
|
-
kind: "Option",
|
|
1049
|
-
itemType: { kind: "String" },
|
|
1050
|
-
},
|
|
1051
|
-
},
|
|
1052
1664
|
properties: {
|
|
1053
1665
|
kind: "Shacl",
|
|
1054
1666
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#property"),
|
|
1055
1667
|
type: {
|
|
1056
1668
|
kind: "Set",
|
|
1057
1669
|
itemType: { kind: "Identifier" },
|
|
1670
|
+
minCount: 1,
|
|
1058
1671
|
},
|
|
1059
1672
|
},
|
|
1060
1673
|
rdfType: {
|
|
@@ -1079,35 +1692,12 @@ export var NodeShape;
|
|
|
1079
1692
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#name"),
|
|
1080
1693
|
type: {
|
|
1081
1694
|
kind: "Option",
|
|
1082
|
-
itemType: { kind: "String" },
|
|
1695
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1083
1696
|
},
|
|
1084
1697
|
},
|
|
1085
1698
|
subClassOf: {
|
|
1086
1699
|
kind: "Shacl",
|
|
1087
|
-
path: $
|
|
1088
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1089
|
-
},
|
|
1090
|
-
targetClasses: {
|
|
1091
|
-
kind: "Shacl",
|
|
1092
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetClass"),
|
|
1093
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1094
|
-
},
|
|
1095
|
-
targetNodes: {
|
|
1096
|
-
kind: "Shacl",
|
|
1097
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetNode"),
|
|
1098
|
-
type: {
|
|
1099
|
-
kind: "Set",
|
|
1100
|
-
itemType: { kind: "Term", types: ["NamedNode", "Literal"] },
|
|
1101
|
-
},
|
|
1102
|
-
},
|
|
1103
|
-
targetObjectsOf: {
|
|
1104
|
-
kind: "Shacl",
|
|
1105
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetObjectsOf"),
|
|
1106
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1107
|
-
},
|
|
1108
|
-
targetSubjectsOf: {
|
|
1109
|
-
kind: "Shacl",
|
|
1110
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetSubjectsOf"),
|
|
1700
|
+
path: $rdfs_subClassOf,
|
|
1111
1701
|
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1112
1702
|
},
|
|
1113
1703
|
toRdfTypes: {
|
|
@@ -1118,132 +1708,216 @@ export var NodeShape;
|
|
|
1118
1708
|
tsImports: {
|
|
1119
1709
|
kind: "Shacl",
|
|
1120
1710
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#tsImport"),
|
|
1121
|
-
type: {
|
|
1711
|
+
type: {
|
|
1712
|
+
kind: "Set",
|
|
1713
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1714
|
+
},
|
|
1122
1715
|
},
|
|
1123
1716
|
types: {
|
|
1124
1717
|
kind: "Shacl",
|
|
1125
|
-
path: $
|
|
1718
|
+
path: $rdf_type,
|
|
1126
1719
|
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1127
1720
|
},
|
|
1128
|
-
|
|
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: {
|
|
1129
1773
|
kind: "Shacl",
|
|
1130
|
-
path: dataFactory.namedNode("http://
|
|
1131
|
-
type
|
|
1132
|
-
|
|
1133
|
-
itemType: {
|
|
1134
|
-
kind: "List",
|
|
1135
|
-
itemType: { kind: "Identifier" },
|
|
1136
|
-
},
|
|
1774
|
+
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#httpStatusCode"),
|
|
1775
|
+
get type() {
|
|
1776
|
+
return OperationErrorHttpBindingStatusCode.schema;
|
|
1137
1777
|
},
|
|
1138
1778
|
},
|
|
1139
1779
|
},
|
|
1140
1780
|
};
|
|
1141
|
-
|
|
1142
|
-
$identifier:
|
|
1143
|
-
label: _nodeShape.label.map((item) => item.toString()).extract(),
|
|
1144
|
-
shaclmateName: _nodeShape.shaclmateName
|
|
1145
|
-
.map((item) => item.toString())
|
|
1146
|
-
.extract(),
|
|
1781
|
+
OperationErrorHttpBinding.toStringRecord = (_operationErrorHttpBinding) => $compactRecord({
|
|
1782
|
+
$identifier: _operationErrorHttpBinding.$identifier().toString(),
|
|
1147
1783
|
});
|
|
1148
|
-
})(
|
|
1149
|
-
export var
|
|
1150
|
-
(function (
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
:
|
|
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({
|
|
1154
1800
|
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
1155
1801
|
...options,
|
|
1156
1802
|
focusResource: resource,
|
|
1157
|
-
propertyPath: $
|
|
1158
|
-
schema:
|
|
1803
|
+
propertyPath: $rdf_subject,
|
|
1804
|
+
schema: OperationHttpBinding.schema.properties.$identifier.type,
|
|
1159
1805
|
}).chain((values) => values.head()),
|
|
1160
|
-
|
|
1806
|
+
method: $shaclPropertyFromRdf({
|
|
1161
1807
|
...options,
|
|
1162
1808
|
focusResource: resource,
|
|
1163
1809
|
ignoreRdfType: true,
|
|
1164
|
-
propertySchema:
|
|
1810
|
+
propertySchema: OperationHttpBinding.schema.properties.method,
|
|
1165
1811
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1166
1812
|
}),
|
|
1167
|
-
|
|
1813
|
+
urlTemplate: $shaclPropertyFromRdf({
|
|
1168
1814
|
...options,
|
|
1169
1815
|
focusResource: resource,
|
|
1170
1816
|
ignoreRdfType: true,
|
|
1171
|
-
propertySchema:
|
|
1172
|
-
typeFromRdfResourceValues:
|
|
1817
|
+
propertySchema: OperationHttpBinding.schema.properties.urlTemplate,
|
|
1818
|
+
typeFromRdfResourceValues: ($stringFromRdfResourceValues),
|
|
1173
1819
|
}),
|
|
1174
|
-
}).chain((properties) =>
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
$identifier: $convertToIdentifierProperty(parameters
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
}
|
|
1186
|
-
Ontology.createUnsafe = createUnsafe;
|
|
1187
|
-
Ontology.fromRdfResource = $wrap_FromRdfResourceFunction(Ontology._fromRdfResource);
|
|
1188
|
-
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
|
|
1189
1831
|
.toResource()
|
|
1190
|
-
.chain((resource) =>
|
|
1832
|
+
.chain((resource) => OperationHttpBinding.fromRdfResource(resource, options)));
|
|
1191
1833
|
let Identifier;
|
|
1192
1834
|
(function (Identifier) {
|
|
1193
1835
|
Identifier.parse = $parseIdentifier;
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
Ontology.schema = {
|
|
1836
|
+
})(Identifier = OperationHttpBinding.Identifier || (OperationHttpBinding.Identifier = {}));
|
|
1837
|
+
OperationHttpBinding.isOperationHttpBinding = (object) => object.$type === "OperationHttpBinding";
|
|
1838
|
+
OperationHttpBinding.schema = {
|
|
1198
1839
|
properties: {
|
|
1199
1840
|
$identifier: {
|
|
1200
1841
|
kind: "Identifier",
|
|
1201
1842
|
type: { kind: "Identifier" },
|
|
1202
1843
|
},
|
|
1203
|
-
|
|
1204
|
-
fromRdfType: dataFactory.namedNode("http://www.w3.org/2002/07/owl#Ontology"),
|
|
1205
|
-
kind: "RdfType",
|
|
1206
|
-
toRdfTypes: [
|
|
1207
|
-
dataFactory.namedNode("http://www.w3.org/2002/07/owl#Ontology"),
|
|
1208
|
-
],
|
|
1209
|
-
},
|
|
1210
|
-
$type: { kind: "Discriminant", value: "Ontology" },
|
|
1211
|
-
comment: {
|
|
1844
|
+
method: {
|
|
1212
1845
|
kind: "Shacl",
|
|
1213
|
-
path: dataFactory.namedNode("http://
|
|
1214
|
-
type
|
|
1215
|
-
|
|
1216
|
-
|
|
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
|
+
};
|
|
1217
1854
|
},
|
|
1218
1855
|
},
|
|
1219
|
-
|
|
1856
|
+
urlTemplate: {
|
|
1220
1857
|
kind: "Shacl",
|
|
1221
|
-
path: dataFactory.namedNode("http://
|
|
1222
|
-
type: {
|
|
1223
|
-
kind: "Option",
|
|
1224
|
-
itemType: { kind: "String" },
|
|
1225
|
-
},
|
|
1858
|
+
path: dataFactory.namedNode("http://schema.org/urlTemplate"),
|
|
1859
|
+
type: { kind: "String", datatype: $xsd_string },
|
|
1226
1860
|
},
|
|
1227
1861
|
},
|
|
1228
1862
|
};
|
|
1229
|
-
|
|
1230
|
-
$identifier:
|
|
1231
|
-
label: _ontology.label.map((item) => item.toString()).extract(),
|
|
1863
|
+
OperationHttpBinding.toStringRecord = (_operationHttpBinding) => $compactRecord({
|
|
1864
|
+
$identifier: _operationHttpBinding.$identifier().toString(),
|
|
1232
1865
|
});
|
|
1233
|
-
})(
|
|
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 = {}));
|
|
1234
1907
|
export var PropertyGroup;
|
|
1235
1908
|
(function (PropertyGroup) {
|
|
1236
|
-
PropertyGroup._fromRdfResource = (resource, options) => (
|
|
1237
|
-
? $ensureRdfResourceType(resource, [PropertyGroup.schema.properties.$rdfType.fromRdfType], {
|
|
1238
|
-
graph: options.graph,
|
|
1239
|
-
})
|
|
1240
|
-
: Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
|
|
1909
|
+
PropertyGroup._fromRdfResource = (resource, options) => $sequenceRecord({
|
|
1241
1910
|
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
1242
1911
|
...options,
|
|
1243
1912
|
focusResource: resource,
|
|
1244
|
-
propertyPath: $
|
|
1913
|
+
propertyPath: $rdf_subject,
|
|
1245
1914
|
schema: PropertyGroup.schema.properties.$identifier.type,
|
|
1246
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),
|
|
1247
1921
|
comment: $shaclPropertyFromRdf({
|
|
1248
1922
|
...options,
|
|
1249
1923
|
focusResource: resource,
|
|
@@ -1258,19 +1932,15 @@ export var PropertyGroup;
|
|
|
1258
1932
|
propertySchema: NodeShape.schema.properties.label,
|
|
1259
1933
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1260
1934
|
}),
|
|
1261
|
-
}).chain((properties) => PropertyGroup.create(properties))
|
|
1935
|
+
}).chain((properties) => PropertyGroup.create(properties));
|
|
1262
1936
|
PropertyGroup.$toString = (_propertyGroup) => `PropertyGroup(${JSON.stringify(PropertyGroup.toStringRecord(_propertyGroup))})`;
|
|
1263
|
-
PropertyGroup.create = (parameters) => $sequenceRecord({
|
|
1264
|
-
$identifier: $convertToIdentifierProperty(parameters
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
function createUnsafe(parameters) {
|
|
1271
|
-
return PropertyGroup.create(parameters).unsafeCoerce();
|
|
1272
|
-
}
|
|
1273
|
-
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();
|
|
1274
1944
|
PropertyGroup.fromRdfResource = $wrap_FromRdfResourceFunction(PropertyGroup._fromRdfResource);
|
|
1275
1945
|
PropertyGroup.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
|
|
1276
1946
|
.toResource()
|
|
@@ -1278,7 +1948,6 @@ export var PropertyGroup;
|
|
|
1278
1948
|
let Identifier;
|
|
1279
1949
|
(function (Identifier) {
|
|
1280
1950
|
Identifier.parse = $parseIdentifier;
|
|
1281
|
-
Identifier.stringify = NTriplesTerm.stringify;
|
|
1282
1951
|
})(Identifier = PropertyGroup.Identifier || (PropertyGroup.Identifier = {}));
|
|
1283
1952
|
PropertyGroup.isPropertyGroup = (object) => object.$type === "PropertyGroup";
|
|
1284
1953
|
PropertyGroup.schema = {
|
|
@@ -1294,21 +1963,20 @@ export var PropertyGroup;
|
|
|
1294
1963
|
dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyGroup"),
|
|
1295
1964
|
],
|
|
1296
1965
|
},
|
|
1297
|
-
$type: { kind: "Discriminant", value: "PropertyGroup" },
|
|
1298
1966
|
comment: {
|
|
1299
1967
|
kind: "Shacl",
|
|
1300
|
-
path:
|
|
1968
|
+
path: $rdfs_comment,
|
|
1301
1969
|
type: {
|
|
1302
1970
|
kind: "Option",
|
|
1303
|
-
itemType: { kind: "String" },
|
|
1971
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1304
1972
|
},
|
|
1305
1973
|
},
|
|
1306
1974
|
label: {
|
|
1307
1975
|
kind: "Shacl",
|
|
1308
|
-
path:
|
|
1976
|
+
path: $rdfs_label,
|
|
1309
1977
|
type: {
|
|
1310
1978
|
kind: "Option",
|
|
1311
|
-
itemType: { kind: "String" },
|
|
1979
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1312
1980
|
},
|
|
1313
1981
|
},
|
|
1314
1982
|
},
|
|
@@ -1320,17 +1988,18 @@ export var PropertyGroup;
|
|
|
1320
1988
|
})(PropertyGroup || (PropertyGroup = {}));
|
|
1321
1989
|
export var PropertyShape;
|
|
1322
1990
|
(function (PropertyShape) {
|
|
1323
|
-
PropertyShape._fromRdfResource = (resource, options) => (
|
|
1324
|
-
? $ensureRdfResourceType(resource, [PropertyShape.schema.properties.$rdfType.fromRdfType], {
|
|
1325
|
-
graph: options.graph,
|
|
1326
|
-
})
|
|
1327
|
-
: Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
|
|
1991
|
+
PropertyShape._fromRdfResource = (resource, options) => $sequenceRecord({
|
|
1328
1992
|
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
1329
1993
|
...options,
|
|
1330
1994
|
focusResource: resource,
|
|
1331
|
-
propertyPath: $
|
|
1995
|
+
propertyPath: $rdf_subject,
|
|
1332
1996
|
schema: PropertyShape.schema.properties.$identifier.type,
|
|
1333
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),
|
|
1334
2003
|
and: $shaclPropertyFromRdf({
|
|
1335
2004
|
...options,
|
|
1336
2005
|
focusResource: resource,
|
|
@@ -1688,10 +2357,11 @@ export var PropertyShape;
|
|
|
1688
2357
|
propertySchema: NodeShape.schema.properties.xone,
|
|
1689
2358
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues($identifierFromRdfResourceValues)),
|
|
1690
2359
|
}),
|
|
1691
|
-
}).chain((properties) => PropertyShape.create(properties))
|
|
2360
|
+
}).chain((properties) => PropertyShape.create(properties));
|
|
1692
2361
|
PropertyShape.$toString = (_propertyShape) => `PropertyShape(${JSON.stringify(PropertyShape.toStringRecord(_propertyShape))})`;
|
|
1693
2362
|
PropertyShape.create = (parameters) => $sequenceRecord({
|
|
1694
2363
|
$identifier: $convertToIdentifierProperty(parameters.$identifier, parameters.$defaultNamespace),
|
|
2364
|
+
$type: Right("PropertyShape"),
|
|
1695
2365
|
and: $convertToMaybe($convertToList($convertToIdentifier))(parameters.and, parameters.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.and.type, value)),
|
|
1696
2366
|
classes: $convertToScalarSet($convertToIri)(parameters.classes, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.classes.type, value)),
|
|
1697
2367
|
comment: $convertToMaybe($identityConversionFunction)(parameters.comment, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.comment.type, value)),
|
|
@@ -1712,15 +2382,15 @@ export var PropertyShape;
|
|
|
1712
2382
|
languageIn: $convertToMaybe($convertToList($identityConversionFunction))(parameters.languageIn, parameters.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.languageIn.type, value)),
|
|
1713
2383
|
lessThan: $convertToScalarSet($convertToIri)(parameters.lessThan, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(PropertyShape.schema.properties.lessThan.type, value)),
|
|
1714
2384
|
lessThanOrEquals: $convertToScalarSet($convertToIri)(parameters.lessThanOrEquals, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(PropertyShape.schema.properties.lessThanOrEquals.type, value)),
|
|
1715
|
-
maxCount: $convertToMaybe($
|
|
2385
|
+
maxCount: $convertToMaybe($convertToBigInt)(parameters.maxCount, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.maxCount.type, value)),
|
|
1716
2386
|
maxExclusive: $convertToMaybe($convertToLiteral)(parameters.maxExclusive, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxExclusive.type, value)),
|
|
1717
2387
|
maxInclusive: $convertToMaybe($convertToLiteral)(parameters.maxInclusive, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxInclusive.type, value)),
|
|
1718
|
-
maxLength: $convertToMaybe($
|
|
2388
|
+
maxLength: $convertToMaybe($convertToBigInt)(parameters.maxLength, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxLength.type, value)),
|
|
1719
2389
|
message: $convertToMaybe($identityConversionFunction)(parameters.message, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.message.type, value)),
|
|
1720
|
-
minCount: $convertToMaybe($
|
|
2390
|
+
minCount: $convertToMaybe($convertToBigInt)(parameters.minCount, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.minCount.type, value)),
|
|
1721
2391
|
minExclusive: $convertToMaybe($convertToLiteral)(parameters.minExclusive, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minExclusive.type, value)),
|
|
1722
2392
|
minInclusive: $convertToMaybe($convertToLiteral)(parameters.minInclusive, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minInclusive.type, value)),
|
|
1723
|
-
minLength: $convertToMaybe($
|
|
2393
|
+
minLength: $convertToMaybe($convertToBigInt)(parameters.minLength, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minLength.type, value)),
|
|
1724
2394
|
mutable: $convertToMaybe($identityConversionFunction)(parameters.mutable, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.mutable.type, value)),
|
|
1725
2395
|
name: $convertToMaybe($identityConversionFunction)(parameters.name, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.name.type, value)),
|
|
1726
2396
|
node: $convertToMaybe($convertToIdentifier)(parameters.node, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.node.type, value)),
|
|
@@ -1730,8 +2400,8 @@ export var PropertyShape;
|
|
|
1730
2400
|
order: $convertToMaybe($identityConversionFunction)(parameters.order, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.order.type, value)),
|
|
1731
2401
|
path: Either.of(parameters.path),
|
|
1732
2402
|
pattern: $convertToMaybe($identityConversionFunction)(parameters.pattern, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.pattern.type, value)),
|
|
1733
|
-
qualifiedMaxCount: $convertToMaybe($
|
|
1734
|
-
qualifiedMinCount: $convertToMaybe($
|
|
2403
|
+
qualifiedMaxCount: $convertToMaybe($convertToBigInt)(parameters.qualifiedMaxCount, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.qualifiedMaxCount.type, value)),
|
|
2404
|
+
qualifiedMinCount: $convertToMaybe($convertToBigInt)(parameters.qualifiedMinCount, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.qualifiedMinCount.type, value)),
|
|
1735
2405
|
qualifiedValueShape: $convertToMaybe($convertToIdentifier)(parameters.qualifiedValueShape, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.qualifiedValueShape.type, value)),
|
|
1736
2406
|
qualifiedValueShapesDisjoint: $convertToMaybe($identityConversionFunction)(parameters.qualifiedValueShapesDisjoint, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.qualifiedValueShapesDisjoint.type, value)),
|
|
1737
2407
|
resolve: $convertToMaybe($convertToIdentifier)(parameters.resolve, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.resolve.type, value)),
|
|
@@ -1743,13 +2413,8 @@ export var PropertyShape;
|
|
|
1743
2413
|
targetSubjectsOf: $convertToScalarSet($convertToIri)(parameters.targetSubjectsOf, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.targetSubjectsOf.type, value)),
|
|
1744
2414
|
uniqueLang: $convertToMaybe($identityConversionFunction)(parameters.uniqueLang, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.uniqueLang.type, value)),
|
|
1745
2415
|
xone: $convertToMaybe($convertToList($convertToIdentifier))(parameters.xone, parameters.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.xone.type, value)),
|
|
1746
|
-
})
|
|
1747
|
-
|
|
1748
|
-
.map((object) => $monkeyPatchObject(object, { $toString: PropertyShape.$toString }));
|
|
1749
|
-
function createUnsafe(parameters) {
|
|
1750
|
-
return PropertyShape.create(parameters).unsafeCoerce();
|
|
1751
|
-
}
|
|
1752
|
-
PropertyShape.createUnsafe = createUnsafe;
|
|
2416
|
+
}).map((object) => $monkeyPatchObject(object, { $toString: PropertyShape.$toString }));
|
|
2417
|
+
PropertyShape.createUnsafe = (parameters) => PropertyShape.create(parameters).unsafeCoerce();
|
|
1753
2418
|
PropertyShape.fromRdfResource = $wrap_FromRdfResourceFunction(PropertyShape._fromRdfResource);
|
|
1754
2419
|
PropertyShape.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
|
|
1755
2420
|
.toResource()
|
|
@@ -1757,7 +2422,6 @@ export var PropertyShape;
|
|
|
1757
2422
|
let Identifier;
|
|
1758
2423
|
(function (Identifier) {
|
|
1759
2424
|
Identifier.parse = $parseIdentifier;
|
|
1760
|
-
Identifier.stringify = NTriplesTerm.stringify;
|
|
1761
2425
|
})(Identifier = PropertyShape.Identifier || (PropertyShape.Identifier = {}));
|
|
1762
2426
|
PropertyShape.isPropertyShape = (object) => object.$type === "PropertyShape";
|
|
1763
2427
|
PropertyShape.schema = {
|
|
@@ -1773,7 +2437,6 @@ export var PropertyShape;
|
|
|
1773
2437
|
dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyShape"),
|
|
1774
2438
|
],
|
|
1775
2439
|
},
|
|
1776
|
-
$type: { kind: "Discriminant", value: "PropertyShape" },
|
|
1777
2440
|
and: {
|
|
1778
2441
|
kind: "Shacl",
|
|
1779
2442
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#and"),
|
|
@@ -1792,10 +2455,10 @@ export var PropertyShape;
|
|
|
1792
2455
|
},
|
|
1793
2456
|
comment: {
|
|
1794
2457
|
kind: "Shacl",
|
|
1795
|
-
path:
|
|
2458
|
+
path: $rdfs_comment,
|
|
1796
2459
|
type: {
|
|
1797
2460
|
kind: "Option",
|
|
1798
|
-
itemType: { kind: "String" },
|
|
2461
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1799
2462
|
},
|
|
1800
2463
|
},
|
|
1801
2464
|
datatype: {
|
|
@@ -1808,7 +2471,7 @@ export var PropertyShape;
|
|
|
1808
2471
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#deactivated"),
|
|
1809
2472
|
type: {
|
|
1810
2473
|
kind: "Option",
|
|
1811
|
-
itemType: { kind: "Boolean" },
|
|
2474
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
1812
2475
|
},
|
|
1813
2476
|
},
|
|
1814
2477
|
defaultValue: {
|
|
@@ -1824,7 +2487,7 @@ export var PropertyShape;
|
|
|
1824
2487
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#description"),
|
|
1825
2488
|
type: {
|
|
1826
2489
|
kind: "Option",
|
|
1827
|
-
itemType: { kind: "String" },
|
|
2490
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1828
2491
|
},
|
|
1829
2492
|
},
|
|
1830
2493
|
disjoint: {
|
|
@@ -1837,8 +2500,8 @@ export var PropertyShape;
|
|
|
1837
2500
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#display"),
|
|
1838
2501
|
type: {
|
|
1839
2502
|
kind: "DefaultValue",
|
|
1840
|
-
itemType: { kind: "Boolean" },
|
|
1841
|
-
defaultValue: dataFactory.literal("false", $
|
|
2503
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
2504
|
+
defaultValue: dataFactory.literal("false", $xsd_boolean),
|
|
1842
2505
|
},
|
|
1843
2506
|
},
|
|
1844
2507
|
equals: {
|
|
@@ -1851,7 +2514,7 @@ export var PropertyShape;
|
|
|
1851
2514
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#flags"),
|
|
1852
2515
|
type: {
|
|
1853
2516
|
kind: "Option",
|
|
1854
|
-
itemType: { kind: "String" },
|
|
2517
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1855
2518
|
},
|
|
1856
2519
|
},
|
|
1857
2520
|
groups: {
|
|
@@ -1875,8 +2538,8 @@ export var PropertyShape;
|
|
|
1875
2538
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#ignore"),
|
|
1876
2539
|
type: {
|
|
1877
2540
|
kind: "DefaultValue",
|
|
1878
|
-
itemType: { kind: "Boolean" },
|
|
1879
|
-
defaultValue: dataFactory.literal("false", $
|
|
2541
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
2542
|
+
defaultValue: dataFactory.literal("false", $xsd_boolean),
|
|
1880
2543
|
},
|
|
1881
2544
|
},
|
|
1882
2545
|
in_: {
|
|
@@ -1895,7 +2558,7 @@ export var PropertyShape;
|
|
|
1895
2558
|
},
|
|
1896
2559
|
isDefinedBy: {
|
|
1897
2560
|
kind: "Shacl",
|
|
1898
|
-
path:
|
|
2561
|
+
path: $rdfs_isDefinedBy,
|
|
1899
2562
|
type: {
|
|
1900
2563
|
kind: "Option",
|
|
1901
2564
|
itemType: { kind: "Identifier" },
|
|
@@ -1903,10 +2566,10 @@ export var PropertyShape;
|
|
|
1903
2566
|
},
|
|
1904
2567
|
label: {
|
|
1905
2568
|
kind: "Shacl",
|
|
1906
|
-
path:
|
|
2569
|
+
path: $rdfs_label,
|
|
1907
2570
|
type: {
|
|
1908
2571
|
kind: "Option",
|
|
1909
|
-
itemType: { kind: "String" },
|
|
2572
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1910
2573
|
},
|
|
1911
2574
|
},
|
|
1912
2575
|
languageIn: {
|
|
@@ -1916,7 +2579,7 @@ export var PropertyShape;
|
|
|
1916
2579
|
kind: "Option",
|
|
1917
2580
|
itemType: {
|
|
1918
2581
|
kind: "List",
|
|
1919
|
-
itemType: { kind: "String" },
|
|
2582
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1920
2583
|
},
|
|
1921
2584
|
},
|
|
1922
2585
|
},
|
|
@@ -1935,7 +2598,7 @@ export var PropertyShape;
|
|
|
1935
2598
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxCount"),
|
|
1936
2599
|
type: {
|
|
1937
2600
|
kind: "Option",
|
|
1938
|
-
itemType: { kind: "BigInt" },
|
|
2601
|
+
itemType: { kind: "BigInt", datatype: $xsd_integer },
|
|
1939
2602
|
},
|
|
1940
2603
|
},
|
|
1941
2604
|
maxExclusive: {
|
|
@@ -1959,7 +2622,7 @@ export var PropertyShape;
|
|
|
1959
2622
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxLength"),
|
|
1960
2623
|
type: {
|
|
1961
2624
|
kind: "Option",
|
|
1962
|
-
itemType: { kind: "BigInt" },
|
|
2625
|
+
itemType: { kind: "BigInt", datatype: $xsd_integer },
|
|
1963
2626
|
},
|
|
1964
2627
|
},
|
|
1965
2628
|
message: {
|
|
@@ -1967,7 +2630,7 @@ export var PropertyShape;
|
|
|
1967
2630
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#message"),
|
|
1968
2631
|
type: {
|
|
1969
2632
|
kind: "Option",
|
|
1970
|
-
itemType: { kind: "String" },
|
|
2633
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
1971
2634
|
},
|
|
1972
2635
|
},
|
|
1973
2636
|
minCount: {
|
|
@@ -1975,7 +2638,7 @@ export var PropertyShape;
|
|
|
1975
2638
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minCount"),
|
|
1976
2639
|
type: {
|
|
1977
2640
|
kind: "Option",
|
|
1978
|
-
itemType: { kind: "BigInt" },
|
|
2641
|
+
itemType: { kind: "BigInt", datatype: $xsd_integer },
|
|
1979
2642
|
},
|
|
1980
2643
|
},
|
|
1981
2644
|
minExclusive: {
|
|
@@ -1999,7 +2662,7 @@ export var PropertyShape;
|
|
|
1999
2662
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minLength"),
|
|
2000
2663
|
type: {
|
|
2001
2664
|
kind: "Option",
|
|
2002
|
-
itemType: { kind: "BigInt" },
|
|
2665
|
+
itemType: { kind: "BigInt", datatype: $xsd_integer },
|
|
2003
2666
|
},
|
|
2004
2667
|
},
|
|
2005
2668
|
mutable: {
|
|
@@ -2007,7 +2670,7 @@ export var PropertyShape;
|
|
|
2007
2670
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#mutable"),
|
|
2008
2671
|
type: {
|
|
2009
2672
|
kind: "Option",
|
|
2010
|
-
itemType: { kind: "Boolean" },
|
|
2673
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
2011
2674
|
},
|
|
2012
2675
|
},
|
|
2013
2676
|
name: {
|
|
@@ -2015,7 +2678,7 @@ export var PropertyShape;
|
|
|
2015
2678
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#name"),
|
|
2016
2679
|
type: {
|
|
2017
2680
|
kind: "Option",
|
|
2018
|
-
itemType: { kind: "String" },
|
|
2681
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2019
2682
|
},
|
|
2020
2683
|
},
|
|
2021
2684
|
node: {
|
|
@@ -2066,7 +2729,10 @@ export var PropertyShape;
|
|
|
2066
2729
|
order: {
|
|
2067
2730
|
kind: "Shacl",
|
|
2068
2731
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#order"),
|
|
2069
|
-
type: {
|
|
2732
|
+
type: {
|
|
2733
|
+
kind: "Option",
|
|
2734
|
+
itemType: { kind: "Float", datatype: $xsd_double },
|
|
2735
|
+
},
|
|
2070
2736
|
},
|
|
2071
2737
|
path: {
|
|
2072
2738
|
kind: "Shacl",
|
|
@@ -2080,7 +2746,7 @@ export var PropertyShape;
|
|
|
2080
2746
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#pattern"),
|
|
2081
2747
|
type: {
|
|
2082
2748
|
kind: "Option",
|
|
2083
|
-
itemType: { kind: "String" },
|
|
2749
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2084
2750
|
},
|
|
2085
2751
|
},
|
|
2086
2752
|
qualifiedMaxCount: {
|
|
@@ -2088,7 +2754,7 @@ export var PropertyShape;
|
|
|
2088
2754
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#qualifiedMaxCount"),
|
|
2089
2755
|
type: {
|
|
2090
2756
|
kind: "Option",
|
|
2091
|
-
itemType: { kind: "BigInt" },
|
|
2757
|
+
itemType: { kind: "BigInt", datatype: $xsd_integer },
|
|
2092
2758
|
},
|
|
2093
2759
|
},
|
|
2094
2760
|
qualifiedMinCount: {
|
|
@@ -2096,7 +2762,7 @@ export var PropertyShape;
|
|
|
2096
2762
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#qualifiedMinCount"),
|
|
2097
2763
|
type: {
|
|
2098
2764
|
kind: "Option",
|
|
2099
|
-
itemType: { kind: "BigInt" },
|
|
2765
|
+
itemType: { kind: "BigInt", datatype: $xsd_integer },
|
|
2100
2766
|
},
|
|
2101
2767
|
},
|
|
2102
2768
|
qualifiedValueShape: {
|
|
@@ -2112,7 +2778,7 @@ export var PropertyShape;
|
|
|
2112
2778
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#qualifiedValueShapesDisjoint"),
|
|
2113
2779
|
type: {
|
|
2114
2780
|
kind: "Option",
|
|
2115
|
-
itemType: { kind: "Boolean" },
|
|
2781
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
2116
2782
|
},
|
|
2117
2783
|
},
|
|
2118
2784
|
resolve: {
|
|
@@ -2140,7 +2806,7 @@ export var PropertyShape;
|
|
|
2140
2806
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#name"),
|
|
2141
2807
|
type: {
|
|
2142
2808
|
kind: "Option",
|
|
2143
|
-
itemType: { kind: "String" },
|
|
2809
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2144
2810
|
},
|
|
2145
2811
|
},
|
|
2146
2812
|
targetClasses: {
|
|
@@ -2171,7 +2837,7 @@ export var PropertyShape;
|
|
|
2171
2837
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#uniqueLang"),
|
|
2172
2838
|
type: {
|
|
2173
2839
|
kind: "Option",
|
|
2174
|
-
itemType: { kind: "Boolean" },
|
|
2840
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
2175
2841
|
},
|
|
2176
2842
|
},
|
|
2177
2843
|
xone: {
|
|
@@ -2197,6 +2863,123 @@ export var PropertyShape;
|
|
|
2197
2863
|
.extract(),
|
|
2198
2864
|
});
|
|
2199
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 = {}));
|
|
2200
2983
|
export var Severity;
|
|
2201
2984
|
(function (Severity) {
|
|
2202
2985
|
const inValues = [
|
|
@@ -2212,17 +2995,18 @@ export var Severity;
|
|
|
2212
2995
|
})(Severity || (Severity = {}));
|
|
2213
2996
|
export var ValidationReport;
|
|
2214
2997
|
(function (ValidationReport) {
|
|
2215
|
-
ValidationReport._fromRdfResource = (resource, options) => (
|
|
2216
|
-
? $ensureRdfResourceType(resource, [ValidationReport.schema.properties.$rdfType.fromRdfType], {
|
|
2217
|
-
graph: options.graph,
|
|
2218
|
-
})
|
|
2219
|
-
: Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
|
|
2998
|
+
ValidationReport._fromRdfResource = (resource, options) => $sequenceRecord({
|
|
2220
2999
|
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
2221
3000
|
...options,
|
|
2222
3001
|
focusResource: resource,
|
|
2223
|
-
propertyPath: $
|
|
3002
|
+
propertyPath: $rdf_subject,
|
|
2224
3003
|
schema: ValidationReport.schema.properties.$identifier.type,
|
|
2225
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),
|
|
2226
3010
|
conforms: $shaclPropertyFromRdf({
|
|
2227
3011
|
...options,
|
|
2228
3012
|
focusResource: resource,
|
|
@@ -2244,23 +3028,16 @@ export var ValidationReport;
|
|
|
2244
3028
|
propertySchema: ValidationReport.schema.properties.shapesGraphWellFormed,
|
|
2245
3029
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($booleanFromRdfResourceValues)),
|
|
2246
3030
|
}),
|
|
2247
|
-
}).chain((properties) => ValidationReport.create(properties))
|
|
3031
|
+
}).chain((properties) => ValidationReport.create(properties));
|
|
2248
3032
|
ValidationReport.$toString = (_validationReport) => `ValidationReport(${JSON.stringify(ValidationReport.toStringRecord(_validationReport))})`;
|
|
2249
3033
|
ValidationReport.create = (parameters) => $sequenceRecord({
|
|
2250
3034
|
$identifier: $convertToIdentifierProperty(parameters.$identifier, parameters.$defaultNamespace),
|
|
3035
|
+
$type: Right("ValidationReport"),
|
|
2251
3036
|
conforms: Either.of(parameters.conforms),
|
|
2252
3037
|
results: $convertToScalarSet($identityConversionFunction)(parameters.results, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(ValidationReport.schema.properties.results.type, value)),
|
|
2253
3038
|
shapesGraphWellFormed: $convertToMaybe($identityConversionFunction)(parameters.shapesGraphWellFormed, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(ValidationReport.schema.properties.shapesGraphWellFormed.type, value)),
|
|
2254
|
-
})
|
|
2255
|
-
|
|
2256
|
-
...properties,
|
|
2257
|
-
$type: "ValidationReport",
|
|
2258
|
-
}))
|
|
2259
|
-
.map((object) => $monkeyPatchObject(object, { $toString: ValidationReport.$toString }));
|
|
2260
|
-
function createUnsafe(parameters) {
|
|
2261
|
-
return ValidationReport.create(parameters).unsafeCoerce();
|
|
2262
|
-
}
|
|
2263
|
-
ValidationReport.createUnsafe = createUnsafe;
|
|
3039
|
+
}).map((object) => $monkeyPatchObject(object, { $toString: ValidationReport.$toString }));
|
|
3040
|
+
ValidationReport.createUnsafe = (parameters) => ValidationReport.create(parameters).unsafeCoerce();
|
|
2264
3041
|
ValidationReport.fromRdfResource = $wrap_FromRdfResourceFunction(ValidationReport._fromRdfResource);
|
|
2265
3042
|
ValidationReport.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
|
|
2266
3043
|
.toResource()
|
|
@@ -2268,7 +3045,6 @@ export var ValidationReport;
|
|
|
2268
3045
|
let Identifier;
|
|
2269
3046
|
(function (Identifier) {
|
|
2270
3047
|
Identifier.parse = $parseIdentifier;
|
|
2271
|
-
Identifier.stringify = NTriplesTerm.stringify;
|
|
2272
3048
|
})(Identifier = ValidationReport.Identifier || (ValidationReport.Identifier = {}));
|
|
2273
3049
|
ValidationReport.isValidationReport = (object) => object.$type === "ValidationReport";
|
|
2274
3050
|
ValidationReport.schema = {
|
|
@@ -2284,11 +3060,10 @@ export var ValidationReport;
|
|
|
2284
3060
|
dataFactory.namedNode("http://www.w3.org/ns/shacl#ValidationReport"),
|
|
2285
3061
|
],
|
|
2286
3062
|
},
|
|
2287
|
-
$type: { kind: "Discriminant", value: "ValidationReport" },
|
|
2288
3063
|
conforms: {
|
|
2289
3064
|
kind: "Shacl",
|
|
2290
3065
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#conforms"),
|
|
2291
|
-
type: { kind: "Boolean" },
|
|
3066
|
+
type: { kind: "Boolean", datatype: $xsd_boolean },
|
|
2292
3067
|
},
|
|
2293
3068
|
results: {
|
|
2294
3069
|
kind: "Shacl",
|
|
@@ -2307,7 +3082,7 @@ export var ValidationReport;
|
|
|
2307
3082
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#shapesGraphWellFormed"),
|
|
2308
3083
|
type: {
|
|
2309
3084
|
kind: "Option",
|
|
2310
|
-
itemType: { kind: "Boolean" },
|
|
3085
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
2311
3086
|
},
|
|
2312
3087
|
},
|
|
2313
3088
|
},
|
|
@@ -2316,17 +3091,18 @@ export var ValidationReport;
|
|
|
2316
3091
|
})(ValidationReport || (ValidationReport = {}));
|
|
2317
3092
|
export var ValidationResult;
|
|
2318
3093
|
(function (ValidationResult) {
|
|
2319
|
-
ValidationResult._fromRdfResource = (resource, options) => (
|
|
2320
|
-
? $ensureRdfResourceType(resource, [ValidationResult.schema.properties.$rdfType.fromRdfType], {
|
|
2321
|
-
graph: options.graph,
|
|
2322
|
-
})
|
|
2323
|
-
: Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
|
|
3094
|
+
ValidationResult._fromRdfResource = (resource, options) => $sequenceRecord({
|
|
2324
3095
|
$identifier: $identifierFromRdfResourceValues($rdfResourceIdentifierValues(resource), {
|
|
2325
3096
|
...options,
|
|
2326
3097
|
focusResource: resource,
|
|
2327
|
-
propertyPath: $
|
|
3098
|
+
propertyPath: $rdf_subject,
|
|
2328
3099
|
schema: ValidationResult.schema.properties.$identifier.type,
|
|
2329
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),
|
|
2330
3106
|
details: $shaclPropertyFromRdf({
|
|
2331
3107
|
...options,
|
|
2332
3108
|
focusResource: resource,
|
|
@@ -2383,10 +3159,11 @@ export var ValidationResult;
|
|
|
2383
3159
|
propertySchema: ValidationResult.schema.properties.value,
|
|
2384
3160
|
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($termFromRdfResourceValues)),
|
|
2385
3161
|
}),
|
|
2386
|
-
}).chain((properties) => ValidationResult.create(properties))
|
|
3162
|
+
}).chain((properties) => ValidationResult.create(properties));
|
|
2387
3163
|
ValidationResult.$toString = (_validationResult) => `ValidationResult(${JSON.stringify(ValidationResult.toStringRecord(_validationResult))})`;
|
|
2388
3164
|
ValidationResult.create = (parameters) => $sequenceRecord({
|
|
2389
3165
|
$identifier: $convertToIdentifierProperty(parameters.$identifier, parameters.$defaultNamespace),
|
|
3166
|
+
$type: Right("ValidationResult"),
|
|
2390
3167
|
details: $convertToScalarSet($identityConversionFunction)(parameters.details, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(ValidationResult.schema.properties.details.type, value)),
|
|
2391
3168
|
focusNode: Either.of(parameters.focusNode),
|
|
2392
3169
|
message: $convertToMaybe($identityConversionFunction)(parameters.message, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(ValidationResult.schema.properties.message.type, value)),
|
|
@@ -2395,16 +3172,8 @@ export var ValidationResult;
|
|
|
2395
3172
|
sourceConstraintComponent: $convertToIri(parameters.sourceConstraintComponent, parameters.$defaultNamespace),
|
|
2396
3173
|
sourceShape: $convertToMaybe($convertToIdentifier)(parameters.sourceShape, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(ValidationResult.schema.properties.sourceShape.type, value)),
|
|
2397
3174
|
value: $convertToMaybe($identityConversionFunction)(parameters.value, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(ValidationResult.schema.properties.value.type, value)),
|
|
2398
|
-
})
|
|
2399
|
-
|
|
2400
|
-
...properties,
|
|
2401
|
-
$type: "ValidationResult",
|
|
2402
|
-
}))
|
|
2403
|
-
.map((object) => $monkeyPatchObject(object, { $toString: ValidationResult.$toString }));
|
|
2404
|
-
function createUnsafe(parameters) {
|
|
2405
|
-
return ValidationResult.create(parameters).unsafeCoerce();
|
|
2406
|
-
}
|
|
2407
|
-
ValidationResult.createUnsafe = createUnsafe;
|
|
3175
|
+
}).map((object) => $monkeyPatchObject(object, { $toString: ValidationResult.$toString }));
|
|
3176
|
+
ValidationResult.createUnsafe = (parameters) => ValidationResult.create(parameters).unsafeCoerce();
|
|
2408
3177
|
ValidationResult.fromRdfResource = $wrap_FromRdfResourceFunction(ValidationResult._fromRdfResource);
|
|
2409
3178
|
ValidationResult.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
|
|
2410
3179
|
.toResource()
|
|
@@ -2412,7 +3181,6 @@ export var ValidationResult;
|
|
|
2412
3181
|
let Identifier;
|
|
2413
3182
|
(function (Identifier) {
|
|
2414
3183
|
Identifier.parse = $parseIdentifier;
|
|
2415
|
-
Identifier.stringify = NTriplesTerm.stringify;
|
|
2416
3184
|
})(Identifier = ValidationResult.Identifier || (ValidationResult.Identifier = {}));
|
|
2417
3185
|
ValidationResult.isValidationResult = (object) => object.$type === "ValidationResult";
|
|
2418
3186
|
ValidationResult.schema = {
|
|
@@ -2428,7 +3196,6 @@ export var ValidationResult;
|
|
|
2428
3196
|
dataFactory.namedNode("http://www.w3.org/ns/shacl#ValidationResult"),
|
|
2429
3197
|
],
|
|
2430
3198
|
},
|
|
2431
|
-
$type: { kind: "Discriminant", value: "ValidationResult" },
|
|
2432
3199
|
details: {
|
|
2433
3200
|
kind: "Shacl",
|
|
2434
3201
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#detail"),
|
|
@@ -2453,7 +3220,7 @@ export var ValidationResult;
|
|
|
2453
3220
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#resultMessage"),
|
|
2454
3221
|
type: {
|
|
2455
3222
|
kind: "Option",
|
|
2456
|
-
itemType: { kind: "String" },
|
|
3223
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2457
3224
|
},
|
|
2458
3225
|
},
|
|
2459
3226
|
path: {
|
|
@@ -2521,29 +3288,76 @@ export var Shape;
|
|
|
2521
3288
|
...options,
|
|
2522
3289
|
ignoreRdfType: false,
|
|
2523
3290
|
}));
|
|
2524
|
-
Shape.fromRdfResourceValues = (
|
|
2525
|
-
const
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
3291
|
+
Shape.fromRdfResourceValues = (inputValues, options) => {
|
|
3292
|
+
const memberInputValues = Array.from({ length: 2 }).map(() => Resource.Values.empty({
|
|
3293
|
+
focusResource: inputValues.focusResource,
|
|
3294
|
+
propertyPath: inputValues.propertyPath,
|
|
3295
|
+
}));
|
|
3296
|
+
for (const inputValue of inputValues) {
|
|
3297
|
+
const inputValueAsValues = inputValue.toValues();
|
|
3298
|
+
let memberOutputValuesEither;
|
|
3299
|
+
for (let memberI = 0; memberI < 2; memberI++) {
|
|
3300
|
+
if (memberI === 0) {
|
|
3301
|
+
memberOutputValuesEither = NodeShape.fromRdfResourceValues(inputValueAsValues, {
|
|
3302
|
+
...options,
|
|
3303
|
+
ignoreRdfType: false,
|
|
3304
|
+
schema: options.schema.members["NodeShape"].type,
|
|
3305
|
+
});
|
|
3306
|
+
if (memberOutputValuesEither.isRight()) {
|
|
3307
|
+
memberInputValues[memberI] =
|
|
3308
|
+
memberInputValues[memberI].concat(inputValue);
|
|
3309
|
+
break;
|
|
3310
|
+
}
|
|
3311
|
+
}
|
|
3312
|
+
else if (memberI === 1) {
|
|
3313
|
+
memberOutputValuesEither = PropertyShape.fromRdfResourceValues(inputValueAsValues, {
|
|
3314
|
+
...options,
|
|
3315
|
+
ignoreRdfType: false,
|
|
3316
|
+
schema: options.schema.members["PropertyShape"].type,
|
|
3317
|
+
});
|
|
3318
|
+
if (memberOutputValuesEither.isRight()) {
|
|
3319
|
+
memberInputValues[memberI] =
|
|
3320
|
+
memberInputValues[memberI].concat(inputValue);
|
|
3321
|
+
break;
|
|
3322
|
+
}
|
|
3323
|
+
}
|
|
3324
|
+
}
|
|
3325
|
+
if (memberOutputValuesEither.isLeft()) {
|
|
3326
|
+
return memberOutputValuesEither;
|
|
3327
|
+
}
|
|
3328
|
+
}
|
|
3329
|
+
let collectedOutputValues = Resource.Values.empty({
|
|
3330
|
+
focusResource: inputValues.focusResource,
|
|
3331
|
+
propertyPath: inputValues.propertyPath,
|
|
3332
|
+
});
|
|
3333
|
+
for (let memberI = 0; memberI < 2; memberI++) {
|
|
3334
|
+
if (memberInputValues[memberI].length === 0) {
|
|
3335
|
+
continue;
|
|
3336
|
+
}
|
|
3337
|
+
switch (memberI) {
|
|
3338
|
+
case 0:
|
|
3339
|
+
collectedOutputValues = collectedOutputValues.concat(...NodeShape.fromRdfResourceValues(memberInputValues[memberI], {
|
|
3340
|
+
...options,
|
|
3341
|
+
ignoreRdfType: false,
|
|
3342
|
+
schema: options.schema.members["NodeShape"].type,
|
|
3343
|
+
}).unsafeCoerce());
|
|
3344
|
+
break;
|
|
3345
|
+
case 1:
|
|
3346
|
+
collectedOutputValues = collectedOutputValues.concat(...PropertyShape.fromRdfResourceValues(memberInputValues[memberI], {
|
|
3347
|
+
...options,
|
|
3348
|
+
ignoreRdfType: false,
|
|
3349
|
+
schema: options.schema.members["PropertyShape"].type,
|
|
3350
|
+
}).unsafeCoerce());
|
|
3351
|
+
break;
|
|
3352
|
+
}
|
|
3353
|
+
}
|
|
3354
|
+
return Right(collectedOutputValues);
|
|
3355
|
+
};
|
|
2538
3356
|
let Identifier;
|
|
2539
3357
|
(function (Identifier) {
|
|
2540
3358
|
Identifier.parse = $parseIdentifier;
|
|
2541
|
-
Identifier.stringify = NTriplesTerm.stringify;
|
|
2542
3359
|
})(Identifier = Shape.Identifier || (Shape.Identifier = {}));
|
|
2543
|
-
|
|
2544
|
-
return (NodeShape.isNodeShape(object) || PropertyShape.isPropertyShape(object));
|
|
2545
|
-
}
|
|
2546
|
-
Shape.isShape = isShape;
|
|
3360
|
+
Shape.isShape = (object) => NodeShape.isNodeShape(object) || PropertyShape.isPropertyShape(object);
|
|
2547
3361
|
Shape.schema = {
|
|
2548
3362
|
kind: "ObjectDiscriminatedUnion",
|
|
2549
3363
|
members: {
|
|
@@ -2572,10 +3386,10 @@ export var Shape;
|
|
|
2572
3386
|
},
|
|
2573
3387
|
comment: {
|
|
2574
3388
|
kind: "Shacl",
|
|
2575
|
-
path:
|
|
3389
|
+
path: $rdfs_comment,
|
|
2576
3390
|
type: {
|
|
2577
3391
|
kind: "Option",
|
|
2578
|
-
itemType: { kind: "String" },
|
|
3392
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2579
3393
|
},
|
|
2580
3394
|
},
|
|
2581
3395
|
datatype: {
|
|
@@ -2588,7 +3402,7 @@ export var Shape;
|
|
|
2588
3402
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#deactivated"),
|
|
2589
3403
|
type: {
|
|
2590
3404
|
kind: "Option",
|
|
2591
|
-
itemType: { kind: "Boolean" },
|
|
3405
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
2592
3406
|
},
|
|
2593
3407
|
},
|
|
2594
3408
|
flags: {
|
|
@@ -2596,7 +3410,7 @@ export var Shape;
|
|
|
2596
3410
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#flags"),
|
|
2597
3411
|
type: {
|
|
2598
3412
|
kind: "Option",
|
|
2599
|
-
itemType: { kind: "String" },
|
|
3413
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2600
3414
|
},
|
|
2601
3415
|
},
|
|
2602
3416
|
hasValues: {
|
|
@@ -2612,8 +3426,8 @@ export var Shape;
|
|
|
2612
3426
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#ignore"),
|
|
2613
3427
|
type: {
|
|
2614
3428
|
kind: "DefaultValue",
|
|
2615
|
-
itemType: { kind: "Boolean" },
|
|
2616
|
-
defaultValue: dataFactory.literal("false", $
|
|
3429
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
3430
|
+
defaultValue: dataFactory.literal("false", $xsd_boolean),
|
|
2617
3431
|
},
|
|
2618
3432
|
},
|
|
2619
3433
|
in_: {
|
|
@@ -2632,7 +3446,7 @@ export var Shape;
|
|
|
2632
3446
|
},
|
|
2633
3447
|
isDefinedBy: {
|
|
2634
3448
|
kind: "Shacl",
|
|
2635
|
-
path:
|
|
3449
|
+
path: $rdfs_isDefinedBy,
|
|
2636
3450
|
type: {
|
|
2637
3451
|
kind: "Option",
|
|
2638
3452
|
itemType: { kind: "Identifier" },
|
|
@@ -2640,10 +3454,10 @@ export var Shape;
|
|
|
2640
3454
|
},
|
|
2641
3455
|
label: {
|
|
2642
3456
|
kind: "Shacl",
|
|
2643
|
-
path:
|
|
3457
|
+
path: $rdfs_label,
|
|
2644
3458
|
type: {
|
|
2645
3459
|
kind: "Option",
|
|
2646
|
-
itemType: { kind: "String" },
|
|
3460
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2647
3461
|
},
|
|
2648
3462
|
},
|
|
2649
3463
|
languageIn: {
|
|
@@ -2653,7 +3467,7 @@ export var Shape;
|
|
|
2653
3467
|
kind: "Option",
|
|
2654
3468
|
itemType: {
|
|
2655
3469
|
kind: "List",
|
|
2656
|
-
itemType: { kind: "String" },
|
|
3470
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2657
3471
|
},
|
|
2658
3472
|
},
|
|
2659
3473
|
},
|
|
@@ -2678,7 +3492,7 @@ export var Shape;
|
|
|
2678
3492
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxLength"),
|
|
2679
3493
|
type: {
|
|
2680
3494
|
kind: "Option",
|
|
2681
|
-
itemType: { kind: "BigInt" },
|
|
3495
|
+
itemType: { kind: "BigInt", datatype: $xsd_integer },
|
|
2682
3496
|
},
|
|
2683
3497
|
},
|
|
2684
3498
|
message: {
|
|
@@ -2686,7 +3500,7 @@ export var Shape;
|
|
|
2686
3500
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#message"),
|
|
2687
3501
|
type: {
|
|
2688
3502
|
kind: "Option",
|
|
2689
|
-
itemType: { kind: "String" },
|
|
3503
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2690
3504
|
},
|
|
2691
3505
|
},
|
|
2692
3506
|
minExclusive: {
|
|
@@ -2710,7 +3524,7 @@ export var Shape;
|
|
|
2710
3524
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minLength"),
|
|
2711
3525
|
type: {
|
|
2712
3526
|
kind: "Option",
|
|
2713
|
-
itemType: { kind: "BigInt" },
|
|
3527
|
+
itemType: { kind: "BigInt", datatype: $xsd_integer },
|
|
2714
3528
|
},
|
|
2715
3529
|
},
|
|
2716
3530
|
mutable: {
|
|
@@ -2718,7 +3532,7 @@ export var Shape;
|
|
|
2718
3532
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#mutable"),
|
|
2719
3533
|
type: {
|
|
2720
3534
|
kind: "Option",
|
|
2721
|
-
itemType: { kind: "Boolean" },
|
|
3535
|
+
itemType: { kind: "Boolean", datatype: $xsd_boolean },
|
|
2722
3536
|
},
|
|
2723
3537
|
},
|
|
2724
3538
|
node: {
|
|
@@ -2771,7 +3585,7 @@ export var Shape;
|
|
|
2771
3585
|
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#pattern"),
|
|
2772
3586
|
type: {
|
|
2773
3587
|
kind: "Option",
|
|
2774
|
-
itemType: { kind: "String" },
|
|
3588
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2775
3589
|
},
|
|
2776
3590
|
},
|
|
2777
3591
|
severity: {
|
|
@@ -2791,7 +3605,7 @@ export var Shape;
|
|
|
2791
3605
|
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#name"),
|
|
2792
3606
|
type: {
|
|
2793
3607
|
kind: "Option",
|
|
2794
|
-
itemType: { kind: "String" },
|
|
3608
|
+
itemType: { kind: "String", datatype: $xsd_string },
|
|
2795
3609
|
},
|
|
2796
3610
|
},
|
|
2797
3611
|
targetClasses: {
|
|
@@ -2839,10 +3653,20 @@ export var $Object;
|
|
|
2839
3653
|
return NodeShape.$toString(object);
|
|
2840
3654
|
case "Ontology":
|
|
2841
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);
|
|
2842
3664
|
case "PropertyGroup":
|
|
2843
3665
|
return PropertyGroup.$toString(object);
|
|
2844
3666
|
case "PropertyShape":
|
|
2845
3667
|
return PropertyShape.$toString(object);
|
|
3668
|
+
case "Service":
|
|
3669
|
+
return Service.$toString(object);
|
|
2846
3670
|
case "ValidationReport":
|
|
2847
3671
|
return ValidationReport.$toString(object);
|
|
2848
3672
|
case "ValidationResult":
|