@shaclmate/compiler 4.0.49 → 4.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/input/input.shaclmate.ttl +85 -0
- package/package.json +602 -19
- package/dist/Compiler.d.ts +0 -14
- package/dist/Compiler.js +0 -18
- package/dist/Eithers.d.ts +0 -14
- package/dist/Eithers.js +0 -67
- package/dist/ShapesGraphToAstTransformer.d.ts +0 -18
- package/dist/ShapesGraphToAstTransformer.js +0 -50
- package/dist/_ShapesGraphToAstTransformer/ShapeStack.d.ts +0 -15
- package/dist/_ShapesGraphToAstTransformer/ShapeStack.js +0 -51
- package/dist/_ShapesGraphToAstTransformer/defaultNodeShapeNodeKinds.d.ts +0 -3
- package/dist/_ShapesGraphToAstTransformer/defaultNodeShapeNodeKinds.js +0 -5
- package/dist/_ShapesGraphToAstTransformer/shapeAstTypeName.d.ts +0 -4
- package/dist/_ShapesGraphToAstTransformer/shapeAstTypeName.js +0 -24
- package/dist/_ShapesGraphToAstTransformer/shapeNodeKinds.d.ts +0 -9
- package/dist/_ShapesGraphToAstTransformer/shapeNodeKinds.js +0 -150
- package/dist/_ShapesGraphToAstTransformer/shapeOntology.d.ts +0 -5
- package/dist/_ShapesGraphToAstTransformer/shapeOntology.js +0 -26
- package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstStructTypeField.d.ts +0 -17
- package/dist/_ShapesGraphToAstTransformer/transformPropertyShapeToAstStructTypeField.js +0 -285
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.d.ts +0 -10
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.js +0 -92
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.d.ts +0 -11
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstListType.js +0 -149
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstStructType.d.ts +0 -7
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstStructType.js +0 -166
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstTermType.d.ts +0 -12
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstTermType.js +0 -110
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.d.ts +0 -11
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstType.js +0 -46
- package/dist/ast/AbstractCollectionType.d.ts +0 -30
- package/dist/ast/AbstractCollectionType.js +0 -33
- package/dist/ast/AbstractCompoundType.d.ts +0 -45
- package/dist/ast/AbstractCompoundType.js +0 -81
- package/dist/ast/AbstractContainerType.d.ts +0 -44
- package/dist/ast/AbstractContainerType.js +0 -63
- package/dist/ast/AbstractLazyType.d.ts +0 -117
- package/dist/ast/AbstractLazyType.js +0 -40
- package/dist/ast/AbstractTermType.d.ts +0 -33
- package/dist/ast/AbstractTermType.js +0 -47
- package/dist/ast/AbstractType.d.ts +0 -55
- package/dist/ast/AbstractType.js +0 -55
- package/dist/ast/Ast.d.ts +0 -6
- package/dist/ast/Ast.js +0 -2
- package/dist/ast/BlankNodeType.d.ts +0 -11
- package/dist/ast/BlankNodeType.js +0 -17
- package/dist/ast/DefaultValueType.d.ts +0 -35
- package/dist/ast/DefaultValueType.js +0 -50
- package/dist/ast/IdentifierType.d.ts +0 -12
- package/dist/ast/IdentifierType.js +0 -20
- package/dist/ast/IntersectionType.d.ts +0 -14
- package/dist/ast/IntersectionType.js +0 -17
- package/dist/ast/IriType.d.ts +0 -10
- package/dist/ast/IriType.js +0 -10
- package/dist/ast/LazyOptionType.d.ts +0 -6
- package/dist/ast/LazyOptionType.js +0 -5
- package/dist/ast/LazySetType.d.ts +0 -6
- package/dist/ast/LazySetType.js +0 -5
- package/dist/ast/LazyType.d.ts +0 -5
- package/dist/ast/LazyType.js +0 -5
- package/dist/ast/ListType.d.ts +0 -44
- package/dist/ast/ListType.js +0 -56
- package/dist/ast/LiteralType.d.ts +0 -40
- package/dist/ast/LiteralType.js +0 -59
- package/dist/ast/OptionType.d.ts +0 -13
- package/dist/ast/OptionType.js +0 -21
- package/dist/ast/SetType.d.ts +0 -31
- package/dist/ast/SetType.js +0 -42
- package/dist/ast/StructCompoundType.d.ts +0 -12
- package/dist/ast/StructCompoundType.js +0 -87
- package/dist/ast/StructIntersectionType.d.ts +0 -4
- package/dist/ast/StructIntersectionType.js +0 -2
- package/dist/ast/StructType.d.ts +0 -178
- package/dist/ast/StructType.js +0 -314
- package/dist/ast/StructUnionType.d.ts +0 -4
- package/dist/ast/StructUnionType.js +0 -2
- package/dist/ast/TermType.d.ts +0 -14
- package/dist/ast/TermType.js +0 -16
- package/dist/ast/Type.d.ts +0 -20
- package/dist/ast/Type.js +0 -42
- package/dist/ast/UnionType.d.ts +0 -30
- package/dist/ast/UnionType.js +0 -27
- package/dist/ast/equals.d.ts +0 -12
- package/dist/ast/equals.js +0 -65
- package/dist/ast/index.d.ts +0 -21
- package/dist/ast/index.js +0 -21
- package/dist/generators/AstJsonGenerator.d.ts +0 -6
- package/dist/generators/AstJsonGenerator.js +0 -15
- package/dist/generators/Cx2Generator.d.ts +0 -10
- package/dist/generators/Cx2Generator.js +0 -140
- package/dist/generators/Generator.d.ts +0 -5
- package/dist/generators/Generator.js +0 -2
- package/dist/generators/LabeledPropertyGraph.d.ts +0 -42
- package/dist/generators/LabeledPropertyGraph.js +0 -2
- package/dist/generators/index.d.ts +0 -6
- package/dist/generators/index.js +0 -6
- package/dist/generators/transformAstToLabeledPropertyGraph.d.ts +0 -4
- package/dist/generators/transformAstToLabeledPropertyGraph.js +0 -78
- package/dist/generators/ts/AbstractCollectionType.d.ts +0 -37
- package/dist/generators/ts/AbstractCollectionType.js +0 -88
- package/dist/generators/ts/AbstractContainerType.d.ts +0 -53
- package/dist/generators/ts/AbstractContainerType.js +0 -97
- package/dist/generators/ts/AbstractDateType.d.ts +0 -23
- package/dist/generators/ts/AbstractDateType.js +0 -37
- package/dist/generators/ts/AbstractIdentifierType.d.ts +0 -21
- package/dist/generators/ts/AbstractIdentifierType.js +0 -25
- package/dist/generators/ts/AbstractLazyType.d.ts +0 -67
- package/dist/generators/ts/AbstractLazyType.js +0 -154
- package/dist/generators/ts/AbstractLiteralType.d.ts +0 -26
- package/dist/generators/ts/AbstractLiteralType.js +0 -15
- package/dist/generators/ts/AbstractNumericType.d.ts +0 -21
- package/dist/generators/ts/AbstractNumericType.js +0 -65
- package/dist/generators/ts/AbstractObjectSetType.d.ts +0 -36
- package/dist/generators/ts/AbstractObjectSetType.js +0 -44
- package/dist/generators/ts/AbstractPrimitiveType.d.ts +0 -32
- package/dist/generators/ts/AbstractPrimitiveType.js +0 -51
- package/dist/generators/ts/AbstractTermType.d.ts +0 -50
- package/dist/generators/ts/AbstractTermType.js +0 -102
- package/dist/generators/ts/AbstractType.d.ts +0 -345
- package/dist/generators/ts/AbstractType.js +0 -135
- package/dist/generators/ts/BigDecimalType.d.ts +0 -28
- package/dist/generators/ts/BigDecimalType.js +0 -58
- package/dist/generators/ts/BigIntType.d.ts +0 -17
- package/dist/generators/ts/BigIntType.js +0 -56
- package/dist/generators/ts/BlankNodeType.d.ts +0 -22
- package/dist/generators/ts/BlankNodeType.js +0 -67
- package/dist/generators/ts/BooleanType.d.ts +0 -21
- package/dist/generators/ts/BooleanType.js +0 -53
- package/dist/generators/ts/DateTimeType.d.ts +0 -13
- package/dist/generators/ts/DateTimeType.js +0 -31
- package/dist/generators/ts/DateType.d.ts +0 -14
- package/dist/generators/ts/DateType.js +0 -32
- package/dist/generators/ts/DefaultValueType.d.ts +0 -83
- package/dist/generators/ts/DefaultValueType.js +0 -143
- package/dist/generators/ts/FloatType.d.ts +0 -13
- package/dist/generators/ts/FloatType.js +0 -30
- package/dist/generators/ts/GraphqlSchema.d.ts +0 -22
- package/dist/generators/ts/GraphqlSchema.js +0 -87
- package/dist/generators/ts/IdentifierType.d.ts +0 -23
- package/dist/generators/ts/IdentifierType.js +0 -83
- package/dist/generators/ts/Imports.d.ts +0 -40
- package/dist/generators/ts/Imports.js +0 -41
- package/dist/generators/ts/IntType.d.ts +0 -13
- package/dist/generators/ts/IntType.js +0 -30
- package/dist/generators/ts/IriType.d.ts +0 -23
- package/dist/generators/ts/IriType.js +0 -112
- package/dist/generators/ts/LazyOptionType.d.ts +0 -36
- package/dist/generators/ts/LazyOptionType.js +0 -75
- package/dist/generators/ts/LazySetType.d.ts +0 -20
- package/dist/generators/ts/LazySetType.js +0 -76
- package/dist/generators/ts/LazyType.d.ts +0 -19
- package/dist/generators/ts/LazyType.js +0 -65
- package/dist/generators/ts/ListType.d.ts +0 -49
- package/dist/generators/ts/ListType.js +0 -161
- package/dist/generators/ts/LiteralType.d.ts +0 -27
- package/dist/generators/ts/LiteralType.js +0 -71
- package/dist/generators/ts/ObjectSetType.d.ts +0 -6
- package/dist/generators/ts/ObjectSetType.js +0 -36
- package/dist/generators/ts/ObjectType.d.ts +0 -104
- package/dist/generators/ts/ObjectType.js +0 -492
- package/dist/generators/ts/ObjectUnionType.d.ts +0 -20
- package/dist/generators/ts/ObjectUnionType.js +0 -223
- package/dist/generators/ts/OptionType.d.ts +0 -39
- package/dist/generators/ts/OptionType.js +0 -157
- package/dist/generators/ts/RdfjsDatasetObjectSetType.d.ts +0 -6
- package/dist/generators/ts/RdfjsDatasetObjectSetType.js +0 -323
- package/dist/generators/ts/Reusables.d.ts +0 -13
- package/dist/generators/ts/Reusables.js +0 -15
- package/dist/generators/ts/SetType.d.ts +0 -32
- package/dist/generators/ts/SetType.js +0 -132
- package/dist/generators/ts/Snippet.d.ts +0 -3
- package/dist/generators/ts/Snippet.js +0 -2
- package/dist/generators/ts/SnippetFactory.d.ts +0 -16
- package/dist/generators/ts/SnippetFactory.js +0 -2
- package/dist/generators/ts/Snippets.d.ts +0 -177
- package/dist/generators/ts/Snippets.js +0 -1163
- package/dist/generators/ts/SparqlObjectSetType.d.ts +0 -6
- package/dist/generators/ts/SparqlObjectSetType.js +0 -241
- package/dist/generators/ts/StringType.d.ts +0 -22
- package/dist/generators/ts/StringType.js +0 -68
- package/dist/generators/ts/TermType.d.ts +0 -31
- package/dist/generators/ts/TermType.js +0 -143
- package/dist/generators/ts/TsFeature.d.ts +0 -3
- package/dist/generators/ts/TsFeature.js +0 -28
- package/dist/generators/ts/TsGenerator.d.ts +0 -30
- package/dist/generators/ts/TsGenerator.js +0 -292
- package/dist/generators/ts/Type.d.ts +0 -25
- package/dist/generators/ts/Type.js +0 -2
- package/dist/generators/ts/TypeFactory.d.ts +0 -43
- package/dist/generators/ts/TypeFactory.js +0 -540
- package/dist/generators/ts/Typeof.d.ts +0 -2
- package/dist/generators/ts/Typeof.js +0 -2
- package/dist/generators/ts/UnionType.d.ts +0 -126
- package/dist/generators/ts/UnionType.js +0 -850
- package/dist/generators/ts/ZodGenerator.d.ts +0 -11
- package/dist/generators/ts/ZodGenerator.js +0 -60
- package/dist/generators/ts/_ObjectType/AbstractProperty.d.ts +0 -220
- package/dist/generators/ts/_ObjectType/AbstractProperty.js +0 -37
- package/dist/generators/ts/_ObjectType/DiscriminantProperty.d.ts +0 -45
- package/dist/generators/ts/_ObjectType/DiscriminantProperty.js +0 -104
- package/dist/generators/ts/_ObjectType/IdentifierProperty.d.ts +0 -43
- package/dist/generators/ts/_ObjectType/IdentifierProperty.js +0 -216
- package/dist/generators/ts/_ObjectType/ObjectType_createFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_createFunctionExpression.js +0 -28
- package/dist/generators/ts/_ObjectType/ObjectType_equalsFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_equalsFunctionExpression.js +0 -15
- package/dist/generators/ts/_ObjectType/ObjectType_filterFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_filterFunctionExpression.js +0 -12
- package/dist/generators/ts/_ObjectType/ObjectType_filterTypeExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_filterTypeExpression.js +0 -20
- package/dist/generators/ts/_ObjectType/ObjectType_focusSparqlConstructTriplesFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_focusSparqlConstructTriplesFunctionExpression.js +0 -46
- package/dist/generators/ts/_ObjectType/ObjectType_focusSparqlWherePatternsFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_focusSparqlWherePatternsFunctionExpression.js +0 -79
- package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_fromJsonFunctionExpression.js +0 -12
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_fromRdfResourceFunctionExpression.js +0 -43
- package/dist/generators/ts/_ObjectType/ObjectType_graphqlTypeExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_graphqlTypeExpression.js +0 -26
- package/dist/generators/ts/_ObjectType/ObjectType_hashFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_hashFunctionExpression.js +0 -30
- package/dist/generators/ts/_ObjectType/ObjectType_identifierTypeDeclarations.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_identifierTypeDeclarations.js +0 -13
- package/dist/generators/ts/_ObjectType/ObjectType_isTypeFunctionDeclaration.d.ts +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_isTypeFunctionDeclaration.js +0 -20
- package/dist/generators/ts/_ObjectType/ObjectType_jsonParseFunctionDeclaration.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_jsonParseFunctionDeclaration.js +0 -10
- package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_jsonSchemaExpression.js +0 -22
- package/dist/generators/ts/_ObjectType/ObjectType_jsonTypeExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_jsonTypeExpression.js +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_jsonUiSchemaFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_jsonUiSchemaFunctionExpression.js +0 -17
- package/dist/generators/ts/_ObjectType/ObjectType_objectSetMethodNames.d.ts +0 -11
- package/dist/generators/ts/_ObjectType/ObjectType_objectSetMethodNames.js +0 -23
- package/dist/generators/ts/_ObjectType/ObjectType_schemaExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_schemaExpression.js +0 -18
- package/dist/generators/ts/_ObjectType/ObjectType_schemaTypeExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_schemaTypeExpression.js +0 -18
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunctionDeclaration.d.ts +0 -10
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryFunctionDeclaration.js +0 -35
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryStringFunctionDeclaration.d.ts +0 -10
- package/dist/generators/ts/_ObjectType/ObjectType_sparqlConstructQueryStringFunctionDeclaration.js +0 -8
- package/dist/generators/ts/_ObjectType/ObjectType_toJsonFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_toJsonFunctionExpression.js +0 -14
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_toRdfResourceFunctionExpression.js +0 -33
- package/dist/generators/ts/_ObjectType/ObjectType_toStringFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_toStringFunctionExpression.js +0 -7
- package/dist/generators/ts/_ObjectType/ObjectType_toStringRecordFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_toStringRecordFunctionExpression.js +0 -5
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlConstructTriplesFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlConstructTriplesFunctionExpression.js +0 -8
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunctionExpression.d.ts +0 -4
- package/dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunctionExpression.js +0 -10
- package/dist/generators/ts/_ObjectType/Property.d.ts +0 -6
- package/dist/generators/ts/_ObjectType/Property.js +0 -2
- package/dist/generators/ts/_ObjectType/ShaclProperty.d.ts +0 -53
- package/dist/generators/ts/_ObjectType/ShaclProperty.js +0 -292
- package/dist/generators/ts/_snippets/snippets_BlankNodeFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_BlankNodeFilter.js +0 -5
- package/dist/generators/ts/_snippets/snippets_BlankNodeSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_BlankNodeSchema.js +0 -6
- package/dist/generators/ts/_snippets/snippets_BooleanFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_BooleanFilter.js +0 -6
- package/dist/generators/ts/_snippets/snippets_BooleanSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_BooleanSchema.js +0 -8
- package/dist/generators/ts/_snippets/snippets_CollectionFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_CollectionFilter.js +0 -7
- package/dist/generators/ts/_snippets/snippets_CollectionSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_CollectionSchema.js +0 -8
- package/dist/generators/ts/_snippets/snippets_ConversionFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ConversionFunction.js +0 -4
- package/dist/generators/ts/_snippets/snippets_DateFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_DateFilter.js +0 -10
- package/dist/generators/ts/_snippets/snippets_DateSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_DateSchema.js +0 -8
- package/dist/generators/ts/_snippets/snippets_DefaultValueSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_DefaultValueSchema.js +0 -8
- package/dist/generators/ts/_snippets/snippets_EqualsResult.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_EqualsResult.js +0 -63
- package/dist/generators/ts/_snippets/snippets_FocusSparqlConstructTriplesFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_FocusSparqlConstructTriplesFunction.js +0 -10
- package/dist/generators/ts/_snippets/snippets_FocusSparqlWherePatternsFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_FocusSparqlWherePatternsFunction.js +0 -11
- package/dist/generators/ts/_snippets/snippets_FromRdfResourceFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_FromRdfResourceFunction.js +0 -13
- package/dist/generators/ts/_snippets/snippets_FromRdfResourceValuesFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_FromRdfResourceValuesFunction.js +0 -16
- package/dist/generators/ts/_snippets/snippets_HashFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_HashFunction.js +0 -4
- package/dist/generators/ts/_snippets/snippets_Hasher.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_Hasher.js +0 -3
- package/dist/generators/ts/_snippets/snippets_IdentifierFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_IdentifierFilter.js +0 -7
- package/dist/generators/ts/_snippets/snippets_IdentifierSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_IdentifierSchema.js +0 -7
- package/dist/generators/ts/_snippets/snippets_IdentifierSet.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_IdentifierSet.js +0 -27
- package/dist/generators/ts/_snippets/snippets_IriFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_IriFilter.js +0 -6
- package/dist/generators/ts/_snippets/snippets_IriSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_IriSchema.js +0 -8
- package/dist/generators/ts/_snippets/snippets_Lazy.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_Lazy.js +0 -22
- package/dist/generators/ts/_snippets/snippets_LazyOption.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_LazyOption.js +0 -25
- package/dist/generators/ts/_snippets/snippets_LazySet.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_LazySet.js +0 -40
- package/dist/generators/ts/_snippets/snippets_LiteralFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_LiteralFilter.js +0 -4
- package/dist/generators/ts/_snippets/snippets_LiteralSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_LiteralSchema.js +0 -9
- package/dist/generators/ts/_snippets/snippets_MaybeFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_MaybeFilter.js +0 -4
- package/dist/generators/ts/_snippets/snippets_MaybeSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_MaybeSchema.js +0 -7
- package/dist/generators/ts/_snippets/snippets_NumericFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_NumericFilter.js +0 -10
- package/dist/generators/ts/_snippets/snippets_NumericSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_NumericSchema.js +0 -8
- package/dist/generators/ts/_snippets/snippets_PropertyPath.d.ts +0 -6
- package/dist/generators/ts/_snippets/snippets_PropertyPath.js +0 -46
- package/dist/generators/ts/_snippets/snippets_RdfVocabularies.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_RdfVocabularies.js +0 -40
- package/dist/generators/ts/_snippets/snippets_ShaclPropertySchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ShaclPropertySchema.js +0 -8
- package/dist/generators/ts/_snippets/snippets_SparqlFilterPattern.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_SparqlFilterPattern.js +0 -3
- package/dist/generators/ts/_snippets/snippets_SparqlPattern.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_SparqlPattern.js +0 -3
- package/dist/generators/ts/_snippets/snippets_SparqlPattern_isSolutionGenerating.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_SparqlPattern_isSolutionGenerating.js +0 -30
- package/dist/generators/ts/_snippets/snippets_StringFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_StringFilter.js +0 -8
- package/dist/generators/ts/_snippets/snippets_StringSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_StringSchema.js +0 -9
- package/dist/generators/ts/_snippets/snippets_TermFilter.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_TermFilter.js +0 -9
- package/dist/generators/ts/_snippets/snippets_TermSchema.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_TermSchema.js +0 -9
- package/dist/generators/ts/_snippets/snippets_ToRdfResourceFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ToRdfResourceFunction.js +0 -11
- package/dist/generators/ts/_snippets/snippets_ToRdfResourceValuesFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ToRdfResourceValuesFunction.js +0 -16
- package/dist/generators/ts/_snippets/snippets_UnwrapR.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_UnwrapR.js +0 -4
- package/dist/generators/ts/_snippets/snippets_ValidationFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ValidationFunction.js +0 -4
- package/dist/generators/ts/_snippets/snippets_ValueSparqlConstructTriplesFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ValueSparqlConstructTriplesFunction.js +0 -11
- package/dist/generators/ts/_snippets/snippets_ValueSparqlWherePatternsFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ValueSparqlWherePatternsFunction.js +0 -13
- package/dist/generators/ts/_snippets/snippets__FromRdfResourceFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets__FromRdfResourceFunction.js +0 -13
- package/dist/generators/ts/_snippets/snippets__ToRdfResourceFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets__ToRdfResourceFunction.js +0 -12
- package/dist/generators/ts/_snippets/snippets_arrayEquals.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_arrayEquals.js +0 -68
- package/dist/generators/ts/_snippets/snippets_arrayIntersection.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_arrayIntersection.js +0 -29
- package/dist/generators/ts/_snippets/snippets_bigDecimalFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_bigDecimalFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_bigDecimalLiteral.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_bigDecimalLiteral.js +0 -9
- package/dist/generators/ts/_snippets/snippets_bigDecimalSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_bigDecimalSparqlWherePatterns.js +0 -83
- package/dist/generators/ts/_snippets/snippets_bigIntFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_bigIntFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_blankNodeFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_blankNodeFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_blankNodeSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_blankNodeSparqlWherePatterns.js +0 -5
- package/dist/generators/ts/_snippets/snippets_booleanEquals.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_booleanEquals.js +0 -16
- package/dist/generators/ts/_snippets/snippets_booleanFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_booleanFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_booleanSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_booleanSparqlWherePatterns.js +0 -15
- package/dist/generators/ts/_snippets/snippets_compactRecord.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_compactRecord.js +0 -15
- package/dist/generators/ts/_snippets/snippets_convertToArraySet.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToArraySet.js +0 -8
- package/dist/generators/ts/_snippets/snippets_convertToBlankNode.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToBlankNode.js +0 -11
- package/dist/generators/ts/_snippets/snippets_convertToBlankNodeIdentifierProperty.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToBlankNodeIdentifierProperty.js +0 -17
- package/dist/generators/ts/_snippets/snippets_convertToIdentifier.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToIdentifier.js +0 -13
- package/dist/generators/ts/_snippets/snippets_convertToIdentifierProperty.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToIdentifierProperty.js +0 -21
- package/dist/generators/ts/_snippets/snippets_convertToIri.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToIri.js +0 -11
- package/dist/generators/ts/_snippets/snippets_convertToIriIdentifierProperty.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToIriIdentifierProperty.js +0 -17
- package/dist/generators/ts/_snippets/snippets_convertToLazy.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToLazy.js +0 -15
- package/dist/generators/ts/_snippets/snippets_convertToLazyOption.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToLazyOption.js +0 -33
- package/dist/generators/ts/_snippets/snippets_convertToLazySet.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToLazySet.js +0 -27
- package/dist/generators/ts/_snippets/snippets_convertToList.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToList.js +0 -7
- package/dist/generators/ts/_snippets/snippets_convertToLiteral.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToLiteral.js +0 -13
- package/dist/generators/ts/_snippets/snippets_convertToMaybe.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToMaybe.js +0 -19
- package/dist/generators/ts/_snippets/snippets_convertToScalarSet.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertToScalarSet.js +0 -15
- package/dist/generators/ts/_snippets/snippets_convertWithDefaultValue.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_convertWithDefaultValue.js +0 -11
- package/dist/generators/ts/_snippets/snippets_dateEquals.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_dateEquals.js +0 -13
- package/dist/generators/ts/_snippets/snippets_dateFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_dateFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_dateSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_dateSparqlWherePatterns.js +0 -71
- package/dist/generators/ts/_snippets/snippets_dateTimeFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_dateTimeFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_decodeBigDecimalLiteral.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_decodeBigDecimalLiteral.js +0 -9
- package/dist/generators/ts/_snippets/snippets_deduplicateSparqlPatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_deduplicateSparqlPatterns.js +0 -19
- package/dist/generators/ts/_snippets/snippets_defaultValueFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_defaultValueFromRdfResourceValues.js +0 -10
- package/dist/generators/ts/_snippets/snippets_defaultValueSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_defaultValueSparqlWherePatterns.js +0 -9
- package/dist/generators/ts/_snippets/snippets_ensureRdfResourceType.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_ensureRdfResourceType.js +0 -16
- package/dist/generators/ts/_snippets/snippets_filterArray.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterArray.js +0 -22
- package/dist/generators/ts/_snippets/snippets_filterBigDecimal.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterBigDecimal.js +0 -26
- package/dist/generators/ts/_snippets/snippets_filterBlankNode.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterBlankNode.js +0 -6
- package/dist/generators/ts/_snippets/snippets_filterBoolean.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterBoolean.js +0 -10
- package/dist/generators/ts/_snippets/snippets_filterDate.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterDate.js +0 -26
- package/dist/generators/ts/_snippets/snippets_filterIdentifier.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterIdentifier.js +0 -14
- package/dist/generators/ts/_snippets/snippets_filterIri.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterIri.js +0 -10
- package/dist/generators/ts/_snippets/snippets_filterLiteral.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterLiteral.js +0 -6
- package/dist/generators/ts/_snippets/snippets_filterMaybe.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterMaybe.js +0 -22
- package/dist/generators/ts/_snippets/snippets_filterNumeric.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterNumeric.js +0 -26
- package/dist/generators/ts/_snippets/snippets_filterString.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterString.js +0 -18
- package/dist/generators/ts/_snippets/snippets_filterTerm.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_filterTerm.js +0 -22
- package/dist/generators/ts/_snippets/snippets_floatFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_floatFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_hashArray.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashArray.js +0 -11
- package/dist/generators/ts/_snippets/snippets_hashBigDecimal.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashBigDecimal.js +0 -7
- package/dist/generators/ts/_snippets/snippets_hashBoolean.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashBoolean.js +0 -7
- package/dist/generators/ts/_snippets/snippets_hashDate.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashDate.js +0 -7
- package/dist/generators/ts/_snippets/snippets_hashDateTime.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashDateTime.js +0 -7
- package/dist/generators/ts/_snippets/snippets_hashMaybe.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashMaybe.js +0 -11
- package/dist/generators/ts/_snippets/snippets_hashNumeric.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashNumeric.js +0 -7
- package/dist/generators/ts/_snippets/snippets_hashString.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashString.js +0 -7
- package/dist/generators/ts/_snippets/snippets_hashTerm.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_hashTerm.js +0 -12
- package/dist/generators/ts/_snippets/snippets_identifierFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_identifierFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_identifierSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_identifierSparqlWherePatterns.js +0 -30
- package/dist/generators/ts/_snippets/snippets_identityConversionFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_identityConversionFunction.js +0 -6
- package/dist/generators/ts/_snippets/snippets_identityValidationFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_identityValidationFunction.js +0 -6
- package/dist/generators/ts/_snippets/snippets_intFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_intFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_iriFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_iriFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_iriSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_iriSparqlWherePatterns.js +0 -13
- package/dist/generators/ts/_snippets/snippets_liftSparqlPatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_liftSparqlPatterns.js +0 -15
- package/dist/generators/ts/_snippets/snippets_listFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_listFromRdfResourceValues.js +0 -15
- package/dist/generators/ts/_snippets/snippets_listSparqlConstructTriples.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_listSparqlConstructTriples.js +0 -37
- package/dist/generators/ts/_snippets/snippets_listSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_listSparqlWherePatterns.js +0 -116
- package/dist/generators/ts/_snippets/snippets_literalFactory.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_literalFactory.js +0 -3
- package/dist/generators/ts/_snippets/snippets_literalFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_literalFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_literalSchemaSparqlPatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_literalSchemaSparqlPatterns.js +0 -39
- package/dist/generators/ts/_snippets/snippets_literalSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_literalSparqlWherePatterns.js +0 -5
- package/dist/generators/ts/_snippets/snippets_maybeEquals.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_maybeEquals.js +0 -31
- package/dist/generators/ts/_snippets/snippets_maybeFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_maybeFromRdfResourceValues.js +0 -11
- package/dist/generators/ts/_snippets/snippets_maybeSparqlConstructTriples.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_maybeSparqlConstructTriples.js +0 -6
- package/dist/generators/ts/_snippets/snippets_maybeSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_maybeSparqlWherePatterns.js +0 -21
- package/dist/generators/ts/_snippets/snippets_monkeyPatchObject.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_monkeyPatchObject.js +0 -16
- package/dist/generators/ts/_snippets/snippets_mutableListFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_mutableListFromRdfResourceValues.js +0 -8
- package/dist/generators/ts/_snippets/snippets_mutableSetFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_mutableSetFromRdfResourceValues.js +0 -8
- package/dist/generators/ts/_snippets/snippets_normalizeSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_normalizeSparqlWherePatterns.js +0 -92
- package/dist/generators/ts/_snippets/snippets_numericSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_numericSparqlWherePatterns.js +0 -62
- package/dist/generators/ts/_snippets/snippets_parseBlankNode.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_parseBlankNode.js +0 -9
- package/dist/generators/ts/_snippets/snippets_parseIdentifier.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_parseIdentifier.js +0 -4
- package/dist/generators/ts/_snippets/snippets_parseIri.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_parseIri.js +0 -9
- package/dist/generators/ts/_snippets/snippets_sequenceRecord.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_sequenceRecord.js +0 -18
- package/dist/generators/ts/_snippets/snippets_setFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_setFromRdfResourceValues.js +0 -9
- package/dist/generators/ts/_snippets/snippets_setSparqlConstructTriples.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_setSparqlConstructTriples.js +0 -6
- package/dist/generators/ts/_snippets/snippets_setSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_setSparqlWherePatterns.js +0 -17
- package/dist/generators/ts/_snippets/snippets_shaclPropertyFromRdf.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_shaclPropertyFromRdf.js +0 -17
- package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlConstructTriples.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlConstructTriples.js +0 -90
- package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_shaclPropertySparqlWherePatterns.js +0 -86
- package/dist/generators/ts/_snippets/snippets_sortSparqlPatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_sortSparqlPatterns.js +0 -24
- package/dist/generators/ts/_snippets/snippets_sparqlInstancesOfPattern.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_sparqlInstancesOfPattern.js +0 -29
- package/dist/generators/ts/_snippets/snippets_sparqlPropertyPath.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_sparqlPropertyPath.js +0 -59
- package/dist/generators/ts/_snippets/snippets_sparqlValueInPattern.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_sparqlValueInPattern.js +0 -23
- package/dist/generators/ts/_snippets/snippets_strictEquals.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_strictEquals.js +0 -12
- package/dist/generators/ts/_snippets/snippets_stringFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_stringFromRdfResourceValues.js +0 -6
- package/dist/generators/ts/_snippets/snippets_stringSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_stringSparqlWherePatterns.js +0 -39
- package/dist/generators/ts/_snippets/snippets_termFilterSparqlPatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_termFilterSparqlPatterns.js +0 -93
- package/dist/generators/ts/_snippets/snippets_termFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_termFromRdfResourceValues.js +0 -17
- package/dist/generators/ts/_snippets/snippets_termLikeFromRdfResourceValues.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_termLikeFromRdfResourceValues.js +0 -60
- package/dist/generators/ts/_snippets/snippets_termSchemaSparqlPatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_termSchemaSparqlPatterns.js +0 -24
- package/dist/generators/ts/_snippets/snippets_termSparqlWherePatterns.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_termSparqlWherePatterns.js +0 -5
- package/dist/generators/ts/_snippets/snippets_toIsoDateString.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_toIsoDateString.js +0 -6
- package/dist/generators/ts/_snippets/snippets_validateArray.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_validateArray.js +0 -13
- package/dist/generators/ts/_snippets/snippets_validateMaybe.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_validateMaybe.js +0 -7
- package/dist/generators/ts/_snippets/snippets_wrap_FromRdfResourceFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_wrap_FromRdfResourceFunction.js +0 -9
- package/dist/generators/ts/_snippets/snippets_wrap_ToRdfResourceFunction.d.ts +0 -3
- package/dist/generators/ts/_snippets/snippets_wrap_ToRdfResourceFunction.js +0 -14
- package/dist/generators/ts/codeEquals.d.ts +0 -3
- package/dist/generators/ts/codeEquals.js +0 -7
- package/dist/generators/ts/rdfjsTermExpression.d.ts +0 -11
- package/dist/generators/ts/rdfjsTermExpression.js +0 -72
- package/dist/generators/ts/singleEntryRecord.d.ts +0 -2
- package/dist/generators/ts/singleEntryRecord.js +0 -6
- package/dist/generators/ts/ts-poet-wrapper.d.ts +0 -5
- package/dist/generators/ts/ts-poet-wrapper.js +0 -13
- package/dist/generators/ts/tsComment.d.ts +0 -5
- package/dist/generators/ts/tsComment.js +0 -11
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -6
- package/dist/input/ShapesGraph.d.ts +0 -44
- package/dist/input/ShapesGraph.js +0 -66
- package/dist/input/generated.d.ts +0 -4074
- package/dist/input/generated.js +0 -3417
- package/dist/input/index.d.ts +0 -3
- package/dist/input/index.js +0 -3
package/dist/input/generated.js
DELETED
|
@@ -1,3417 +0,0 @@
|
|
|
1
|
-
import datasetFactory from "@rdfjs/dataset";
|
|
2
|
-
import dataFactory from "@rdfx/data-factory";
|
|
3
|
-
import { LiteralFactory } from "@rdfx/literal";
|
|
4
|
-
import { PropertyPath as RdfxResourcePropertyPath, Resource, ResourceSet, } from "@rdfx/resource";
|
|
5
|
-
import { NTriplesIdentifier, NTriplesTerm } from "@rdfx/string";
|
|
6
|
-
import { Either, Left, Maybe, Right } from "purify-ts";
|
|
7
|
-
function $bigIntFromRdfResourceValues(values, options) {
|
|
8
|
-
return $termLikeFromRdfResourceValues(values, options).chain((values) => values.chainMap((value) => options.schema.in
|
|
9
|
-
? value.toBigInt(options.schema.in)
|
|
10
|
-
: value.toBigInt()));
|
|
11
|
-
}
|
|
12
|
-
function $booleanFromRdfResourceValues(values, options) {
|
|
13
|
-
return $termLikeFromRdfResourceValues(values, options).chain((values) => values.chainMap((value) => options.schema.in
|
|
14
|
-
? value.toBoolean(options.schema.in)
|
|
15
|
-
: value.toBoolean()));
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Remove undefined values from a record.
|
|
19
|
-
*/
|
|
20
|
-
function $compactRecord(record) {
|
|
21
|
-
return globalThis.Object.entries(record).reduce((definedProperties, [propertyName, propertyValue]) => {
|
|
22
|
-
if (propertyValue !== undefined) {
|
|
23
|
-
definedProperties[propertyName] = propertyValue;
|
|
24
|
-
}
|
|
25
|
-
return definedProperties;
|
|
26
|
-
}, {});
|
|
27
|
-
}
|
|
28
|
-
function $convertToIdentifier(value) {
|
|
29
|
-
switch (typeof value) {
|
|
30
|
-
case "object":
|
|
31
|
-
return Either.of(value);
|
|
32
|
-
case "string":
|
|
33
|
-
return Either.of(dataFactory.namedNode(value));
|
|
34
|
-
case "undefined":
|
|
35
|
-
return Either.of(dataFactory.blankNode());
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
function $convertToIdentifierProperty(identifier) {
|
|
39
|
-
switch (typeof identifier) {
|
|
40
|
-
case "function":
|
|
41
|
-
return Either.of(identifier);
|
|
42
|
-
case "object": {
|
|
43
|
-
const captureIdentifier = identifier;
|
|
44
|
-
return Either.of(() => captureIdentifier);
|
|
45
|
-
}
|
|
46
|
-
case "string": {
|
|
47
|
-
const captureIdentifier = dataFactory.namedNode(identifier);
|
|
48
|
-
return Either.of(() => captureIdentifier);
|
|
49
|
-
}
|
|
50
|
-
case "undefined": {
|
|
51
|
-
const captureIdentifier = dataFactory.blankNode();
|
|
52
|
-
return Either.of(() => captureIdentifier);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
function $convertToIri(value) {
|
|
57
|
-
switch (typeof value) {
|
|
58
|
-
case "object":
|
|
59
|
-
return Either.of(value);
|
|
60
|
-
case "string":
|
|
61
|
-
return Either.of(dataFactory.namedNode(value));
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
function $convertToList(convertToItem, _readonly) {
|
|
65
|
-
return (value) => Either.sequence(value.map(convertToItem));
|
|
66
|
-
}
|
|
67
|
-
function $convertToLiteral(value) {
|
|
68
|
-
if (typeof value === "object") {
|
|
69
|
-
if (value instanceof Date) {
|
|
70
|
-
return Either.of($literalFactory.date(value));
|
|
71
|
-
}
|
|
72
|
-
return Either.of(value);
|
|
73
|
-
}
|
|
74
|
-
return Either.of($literalFactory.primitive(value));
|
|
75
|
-
}
|
|
76
|
-
function $convertToMaybe(convertToItem) {
|
|
77
|
-
return (value) => {
|
|
78
|
-
switch (typeof value) {
|
|
79
|
-
case "object": {
|
|
80
|
-
if (Maybe.isMaybe(value)) {
|
|
81
|
-
return Either.of(value);
|
|
82
|
-
}
|
|
83
|
-
break;
|
|
84
|
-
}
|
|
85
|
-
case "undefined":
|
|
86
|
-
return Either.of(Maybe.empty());
|
|
87
|
-
}
|
|
88
|
-
return convertToItem(value).map(Maybe.of);
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
function $convertToScalarSet(convertToItem, _readonly) {
|
|
92
|
-
return (value) => {
|
|
93
|
-
if (typeof value === "undefined") {
|
|
94
|
-
return Either.of([]);
|
|
95
|
-
}
|
|
96
|
-
if (Array.isArray(value)) {
|
|
97
|
-
return Either.sequence(value.map(convertToItem));
|
|
98
|
-
}
|
|
99
|
-
return convertToItem(value).map((value) => [
|
|
100
|
-
value,
|
|
101
|
-
]);
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
function $convertWithDefaultValue(convertToItem, defaultValue) {
|
|
105
|
-
return (value) => {
|
|
106
|
-
if (typeof value === "undefined") {
|
|
107
|
-
return convertToItem(defaultValue);
|
|
108
|
-
}
|
|
109
|
-
return convertToItem(value);
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
function $defaultValueFromRdfResourceValues(itemFromRdfResourceValues) {
|
|
113
|
-
return (values, options) => itemFromRdfResourceValues(values.length > 0
|
|
114
|
-
? values
|
|
115
|
-
: new Resource.Value({
|
|
116
|
-
dataFactory: dataFactory,
|
|
117
|
-
focusResource: options.focusResource,
|
|
118
|
-
propertyPath: options.propertyPath,
|
|
119
|
-
term: options.schema.defaultValue,
|
|
120
|
-
}).toValues(), { ...options, schema: options.schema.itemType });
|
|
121
|
-
}
|
|
122
|
-
function $ensureRdfResourceType(resource, types, options) {
|
|
123
|
-
return resource
|
|
124
|
-
.value($RdfVocabularies.rdf.type, options)
|
|
125
|
-
.chain((actualRdfTypeValue) => actualRdfTypeValue.toIri())
|
|
126
|
-
.chain((actualRdfType) => {
|
|
127
|
-
// Check the expected type and its known subtypes
|
|
128
|
-
for (const type of types) {
|
|
129
|
-
if (resource.isInstanceOf(type, options)) {
|
|
130
|
-
return Right(undefined);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
return Left(new Error(`${resource.identifier} has unexpected RDF type (actual: ${actualRdfType}, expected one of ${types})`));
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
export var $EqualsResult;
|
|
137
|
-
(function ($EqualsResult) {
|
|
138
|
-
$EqualsResult.Equal = Right(true);
|
|
139
|
-
function fromBooleanEqualsResult(left, right, equalsResult) {
|
|
140
|
-
if (typeof equalsResult !== "boolean") {
|
|
141
|
-
return equalsResult;
|
|
142
|
-
}
|
|
143
|
-
if (equalsResult) {
|
|
144
|
-
return $EqualsResult.Equal;
|
|
145
|
-
}
|
|
146
|
-
return Left({ left, right, type: "boolean" });
|
|
147
|
-
}
|
|
148
|
-
$EqualsResult.fromBooleanEqualsResult = fromBooleanEqualsResult;
|
|
149
|
-
})($EqualsResult || ($EqualsResult = {}));
|
|
150
|
-
function $floatFromRdfResourceValues(values, options) {
|
|
151
|
-
return $termLikeFromRdfResourceValues(values, options).chain((values) => values.chainMap((value) => options.schema.in
|
|
152
|
-
? value.toFloat(options.schema.in)
|
|
153
|
-
: value.toFloat()));
|
|
154
|
-
}
|
|
155
|
-
function $identifierFromRdfResourceValues(values, options) {
|
|
156
|
-
return $termLikeFromRdfResourceValues(values, options).chain((values) => values.chainMap((value) => value.toIdentifier()));
|
|
157
|
-
}
|
|
158
|
-
function $identityConversionFunction(value) {
|
|
159
|
-
return Either.of(value);
|
|
160
|
-
}
|
|
161
|
-
function $identityValidationFunction(_schema, value) {
|
|
162
|
-
return Either.of(value);
|
|
163
|
-
}
|
|
164
|
-
function $iriFromRdfResourceValues(values, options) {
|
|
165
|
-
return $termLikeFromRdfResourceValues(values, options).chain((values) => values.chainMap((value) => options.schema.in
|
|
166
|
-
? value.toIri(options.schema.in)
|
|
167
|
-
: value.toIri()));
|
|
168
|
-
}
|
|
169
|
-
function $listFromRdfResourceValues(itemFromRdfResourceValues) {
|
|
170
|
-
return (values, options) => values
|
|
171
|
-
.chainMap((value) => value.toList({ graph: options.graph })) // Resource.Values<Resource.Value> to Resource.Values<Resource.Values>;
|
|
172
|
-
.chain((valueLists) => valueLists.chainMap((valueList) => itemFromRdfResourceValues(Resource.Values.fromArray({
|
|
173
|
-
focusResource: options.focusResource,
|
|
174
|
-
propertyPath: options.propertyPath,
|
|
175
|
-
values: valueList.toArray(),
|
|
176
|
-
}), { ...options, schema: options.schema.itemType }))) // Resource.Values<Resource.Values> to Resource.Values<item type arrays>
|
|
177
|
-
.map((valueLists) => valueLists.map((valueList) => valueList.toArray())); // Convert inner Resource.Values to arrays
|
|
178
|
-
}
|
|
179
|
-
const $literalFactory = new LiteralFactory({ dataFactory: dataFactory });
|
|
180
|
-
function $literalFromRdfResourceValues(values, options) {
|
|
181
|
-
return $termLikeFromRdfResourceValues(values, options).chain((values) => values.chainMap((value) => value.toLiteral()));
|
|
182
|
-
}
|
|
183
|
-
function $maybeFromRdfResourceValues(itemFromRdfResourceValues) {
|
|
184
|
-
return (values, options) => itemFromRdfResourceValues(values, {
|
|
185
|
-
...options,
|
|
186
|
-
schema: options.schema.itemType,
|
|
187
|
-
}).map((values) => values.length > 0
|
|
188
|
-
? values.map((value) => Maybe.of(value))
|
|
189
|
-
: Resource.Values.fromValue({
|
|
190
|
-
focusResource: options.focusResource,
|
|
191
|
-
propertyPath: options.propertyPath,
|
|
192
|
-
value: Maybe.empty(),
|
|
193
|
-
}));
|
|
194
|
-
}
|
|
195
|
-
function $monkeyPatchObject(obj, methods) {
|
|
196
|
-
if (methods.toJson &&
|
|
197
|
-
(!globalThis.Object.prototype.hasOwnProperty.call(obj, "toJSON") ||
|
|
198
|
-
typeof obj.toJSON === "function")) {
|
|
199
|
-
const toJsonMethod = methods.toJson;
|
|
200
|
-
obj.toJSON = function (_key) {
|
|
201
|
-
return toJsonMethod(this);
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
if (methods.$toString &&
|
|
205
|
-
(!globalThis.Object.prototype.hasOwnProperty.call(obj, "toString") ||
|
|
206
|
-
typeof obj.toJSON === "function")) {
|
|
207
|
-
const toStringMethod = methods.$toString;
|
|
208
|
-
obj.toString = function () {
|
|
209
|
-
return toStringMethod(this);
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
return obj;
|
|
213
|
-
}
|
|
214
|
-
const $parseIdentifier = NTriplesIdentifier.parser(dataFactory);
|
|
215
|
-
export var $PropertyPath;
|
|
216
|
-
(function ($PropertyPath) {
|
|
217
|
-
$PropertyPath.fromRdfResource = RdfxResourcePropertyPath.fromResource;
|
|
218
|
-
$PropertyPath.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
|
|
219
|
-
.toResource()
|
|
220
|
-
.chain((resource) => $PropertyPath.fromRdfResource(resource, options)));
|
|
221
|
-
$PropertyPath.schema = {};
|
|
222
|
-
$PropertyPath.toRdfResource = RdfxResourcePropertyPath.toResource;
|
|
223
|
-
$PropertyPath.$toString = RdfxResourcePropertyPath.toString;
|
|
224
|
-
})($PropertyPath || ($PropertyPath = {}));
|
|
225
|
-
var $RdfVocabularies;
|
|
226
|
-
(function ($RdfVocabularies) {
|
|
227
|
-
$RdfVocabularies.rdf = {
|
|
228
|
-
first: dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#first"),
|
|
229
|
-
nil: dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"),
|
|
230
|
-
rest: dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"),
|
|
231
|
-
subject: dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#subject"),
|
|
232
|
-
type: dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),
|
|
233
|
-
};
|
|
234
|
-
$RdfVocabularies.rdfs = {
|
|
235
|
-
subClassOf: dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#subClassOf"),
|
|
236
|
-
};
|
|
237
|
-
$RdfVocabularies.xsd = {
|
|
238
|
-
boolean: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#boolean"),
|
|
239
|
-
byte: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#byte"),
|
|
240
|
-
date: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#date"),
|
|
241
|
-
dateTime: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#dateTime"),
|
|
242
|
-
decimal: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#decimal"),
|
|
243
|
-
double: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#double"),
|
|
244
|
-
float: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#float"),
|
|
245
|
-
int: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#int"),
|
|
246
|
-
integer: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#integer"),
|
|
247
|
-
long: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#long"),
|
|
248
|
-
negativeInteger: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#negativeInteger"),
|
|
249
|
-
nonNegativeInteger: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#nonNegativeInteger"),
|
|
250
|
-
nonPositiveInteger: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#nonPositiveInteger"),
|
|
251
|
-
positiveInteger: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#positiveInteger"),
|
|
252
|
-
short: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#short"),
|
|
253
|
-
string: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#string"),
|
|
254
|
-
unsignedByte: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#unsignedByte"),
|
|
255
|
-
unsignedInt: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#unsignedInt"),
|
|
256
|
-
unsignedLong: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#unsignedLong"),
|
|
257
|
-
unsignedShort: dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#unsignedShort"),
|
|
258
|
-
};
|
|
259
|
-
})($RdfVocabularies || ($RdfVocabularies = {}));
|
|
260
|
-
function $sequenceRecord(record) {
|
|
261
|
-
const result = {};
|
|
262
|
-
for (const key of globalThis.Object.keys(record)) {
|
|
263
|
-
const either = record[key];
|
|
264
|
-
if (either.isLeft()) {
|
|
265
|
-
return either;
|
|
266
|
-
}
|
|
267
|
-
result[key] = either.extract();
|
|
268
|
-
}
|
|
269
|
-
return Right(result);
|
|
270
|
-
}
|
|
271
|
-
function $setFromRdfResourceValues(itemFromRdfResourceValues) {
|
|
272
|
-
return (values, options) => itemFromRdfResourceValues(values, {
|
|
273
|
-
...options,
|
|
274
|
-
schema: options.schema.itemType,
|
|
275
|
-
})
|
|
276
|
-
.map((values) => values.toArray())
|
|
277
|
-
.map((valuesArray) => Resource.Values.fromValue({
|
|
278
|
-
focusResource: options.focusResource,
|
|
279
|
-
propertyPath: options.propertyPath,
|
|
280
|
-
value: valuesArray,
|
|
281
|
-
}));
|
|
282
|
-
}
|
|
283
|
-
function $shaclPropertyFromRdf({ focusResource, graph, propertySchema, typeFromRdfResourceValues, ...otherParameters }) {
|
|
284
|
-
return typeFromRdfResourceValues(focusResource.values(propertySchema.path, { graph, unique: true }), {
|
|
285
|
-
...otherParameters,
|
|
286
|
-
focusResource,
|
|
287
|
-
graph,
|
|
288
|
-
propertyPath: propertySchema.path,
|
|
289
|
-
schema: propertySchema.type,
|
|
290
|
-
}).chain((values) => values.head());
|
|
291
|
-
}
|
|
292
|
-
/**
|
|
293
|
-
* Compare two values for strict equality (===), returning an $EqualsResult rather than a boolean.
|
|
294
|
-
*/
|
|
295
|
-
function $strictEquals(left, right) {
|
|
296
|
-
return $EqualsResult.fromBooleanEqualsResult(left, right, left === right);
|
|
297
|
-
}
|
|
298
|
-
function $stringFromRdfResourceValues(values, options) {
|
|
299
|
-
return $termLikeFromRdfResourceValues(values, options).chain((values) => values.chainMap((value) => options.schema.in
|
|
300
|
-
? value.toString(options.schema.in)
|
|
301
|
-
: value.toString()));
|
|
302
|
-
}
|
|
303
|
-
function $termFromRdfResourceValues(values, options) {
|
|
304
|
-
const { focusResource, propertyPath, schema } = options;
|
|
305
|
-
return $termLikeFromRdfResourceValues(values, options).chain((values) => values.chainMap((value) => value.toTerm().chain((term) => {
|
|
306
|
-
if (schema.in &&
|
|
307
|
-
schema.in.length > 0 &&
|
|
308
|
-
!schema.in.some((in_) => in_.equals(term))) {
|
|
309
|
-
return Left(new Resource.MistypedTermValueError({
|
|
310
|
-
actualValue: term,
|
|
311
|
-
expectedValueType: "Term in",
|
|
312
|
-
focusResource,
|
|
313
|
-
propertyPath,
|
|
314
|
-
}));
|
|
315
|
-
}
|
|
316
|
-
if (!schema.types.some((type) => term.termType === type)) {
|
|
317
|
-
return Left(new Resource.MistypedTermValueError({
|
|
318
|
-
actualValue: term,
|
|
319
|
-
expectedValueType: "Term types",
|
|
320
|
-
focusResource,
|
|
321
|
-
propertyPath,
|
|
322
|
-
}));
|
|
323
|
-
}
|
|
324
|
-
return Right(term);
|
|
325
|
-
})));
|
|
326
|
-
}
|
|
327
|
-
const $termLikeFromRdfResourceValues = (values, { preferredLanguages, schema: { hasValues, languageIn } }) => {
|
|
328
|
-
let chain = Either.of(values);
|
|
329
|
-
if (hasValues && hasValues.length > 0) {
|
|
330
|
-
chain = chain.chain((values) => Either.sequence(hasValues.map((hasValue) => values.find((value) => value.term.equals(hasValue)))).map(() => values));
|
|
331
|
-
}
|
|
332
|
-
if (languageIn && languageIn.length > 0) {
|
|
333
|
-
chain = chain.chain((values) => values.chainMap((value) => value.toLiteral().chain((literal) => languageIn.includes(literal.language)
|
|
334
|
-
? Right(value)
|
|
335
|
-
: Left(new Resource.MistypedTermValueError({
|
|
336
|
-
actualValue: literal,
|
|
337
|
-
expectedValueType: "Literal",
|
|
338
|
-
focusResource: value.focusResource,
|
|
339
|
-
propertyPath: value.propertyPath,
|
|
340
|
-
})))));
|
|
341
|
-
}
|
|
342
|
-
if (preferredLanguages && preferredLanguages.length > 0) {
|
|
343
|
-
chain = chain.chain((values) => {
|
|
344
|
-
const literals = [];
|
|
345
|
-
const literalValues = [];
|
|
346
|
-
const nonLiteralValues = [];
|
|
347
|
-
for (const value of values) {
|
|
348
|
-
const term = value.toTerm().unsafeCoerce();
|
|
349
|
-
if (term.termType === "Literal") {
|
|
350
|
-
literals.push(term);
|
|
351
|
-
literalValues.push(value);
|
|
352
|
-
}
|
|
353
|
-
else {
|
|
354
|
-
nonLiteralValues.push(value);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
// Return all literals for the first preferredLanguage, then all literals for the second preferredLanguage, etc.
|
|
358
|
-
// Within a preferredLanguage the literals may be in any order.
|
|
359
|
-
const preferredLanguageLiteralValues = [];
|
|
360
|
-
for (const preferredLanguage of preferredLanguages) {
|
|
361
|
-
for (let literalI = 0; literalI < literals.length; literalI++) {
|
|
362
|
-
if (literals[literalI].language === preferredLanguage) {
|
|
363
|
-
preferredLanguageLiteralValues.push(literalValues[literalI]);
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
return Right(Resource.Values.fromArray({
|
|
368
|
-
focusResource: values.focusResource,
|
|
369
|
-
propertyPath: values.propertyPath,
|
|
370
|
-
values: nonLiteralValues.concat(preferredLanguageLiteralValues),
|
|
371
|
-
}));
|
|
372
|
-
});
|
|
373
|
-
}
|
|
374
|
-
return chain;
|
|
375
|
-
};
|
|
376
|
-
function $validateArray(validateItem, _readonly) {
|
|
377
|
-
return (schema, valueArray) => {
|
|
378
|
-
if (schema.minCount !== undefined && valueArray.length < schema.minCount) {
|
|
379
|
-
return Left(new Error(`value array has length (${valueArray.length}) less than minCount (${schema.minCount})`));
|
|
380
|
-
}
|
|
381
|
-
return Either.sequence(valueArray.map((value) => validateItem(schema.itemType, value)));
|
|
382
|
-
};
|
|
383
|
-
}
|
|
384
|
-
function $validateMaybe(validateItem) {
|
|
385
|
-
return (schema, valueMaybe) => valueMaybe
|
|
386
|
-
.map((value) => validateItem(schema.itemType, value).map(() => valueMaybe))
|
|
387
|
-
.orDefault(Either.of(valueMaybe));
|
|
388
|
-
}
|
|
389
|
-
function $wrap_FromRdfResourceFunction(_fromRdfResourceFunction) {
|
|
390
|
-
return (resource, options) => {
|
|
391
|
-
const { context, graph, ignoreRdfType = false, preferredLanguages, } = options ?? {};
|
|
392
|
-
return _fromRdfResourceFunction(resource, {
|
|
393
|
-
context,
|
|
394
|
-
graph,
|
|
395
|
-
ignoreRdfType,
|
|
396
|
-
preferredLanguages,
|
|
397
|
-
});
|
|
398
|
-
};
|
|
399
|
-
}
|
|
400
|
-
function $wrap_ToRdfResourceFunction(_toRdfResourceFunction) {
|
|
401
|
-
return (object, options) => {
|
|
402
|
-
let { graph, ignoreRdfType = false, resourceSet } = options ?? {};
|
|
403
|
-
if (!resourceSet) {
|
|
404
|
-
resourceSet = new ResourceSet({
|
|
405
|
-
dataFactory: dataFactory,
|
|
406
|
-
dataset: datasetFactory.dataset(),
|
|
407
|
-
});
|
|
408
|
-
}
|
|
409
|
-
const resource = resourceSet.resource(object.$identifier());
|
|
410
|
-
_toRdfResourceFunction({
|
|
411
|
-
graph,
|
|
412
|
-
ignoreRdfType,
|
|
413
|
-
object,
|
|
414
|
-
resource,
|
|
415
|
-
resourceSet,
|
|
416
|
-
});
|
|
417
|
-
return resource;
|
|
418
|
-
};
|
|
419
|
-
}
|
|
420
|
-
export var NodeShape;
|
|
421
|
-
(function (NodeShape) {
|
|
422
|
-
NodeShape.create = (parameters) => $sequenceRecord({
|
|
423
|
-
$identifier: $convertToIdentifierProperty(parameters?.$identifier),
|
|
424
|
-
and: $convertToMaybe($convertToList($convertToIdentifier, true))(parameters?.and).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.and.type, value)),
|
|
425
|
-
classes: $convertToScalarSet(($convertToIri), true)(parameters?.classes).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.classes.type, value)),
|
|
426
|
-
closed: $convertToMaybe($identityConversionFunction)(parameters?.closed).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.closed.type, value)),
|
|
427
|
-
comment: $convertToMaybe($identityConversionFunction)(parameters?.comment).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.comment.type, value)),
|
|
428
|
-
datatype: $convertToMaybe(($convertToIri))(parameters?.datatype).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.datatype.type, value)),
|
|
429
|
-
deactivated: $convertToMaybe($identityConversionFunction)(parameters?.deactivated).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.deactivated.type, value)),
|
|
430
|
-
discriminantValue: $convertToMaybe($identityConversionFunction)(parameters?.discriminantValue).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.discriminantValue.type, value)),
|
|
431
|
-
extern: $convertToMaybe($identityConversionFunction)(parameters?.extern).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.extern.type, value)),
|
|
432
|
-
flags: $convertToMaybe($identityConversionFunction)(parameters?.flags).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.flags.type, value)),
|
|
433
|
-
fromRdfType: $convertToMaybe(($convertToIri))(parameters?.fromRdfType).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.fromRdfType.type, value)),
|
|
434
|
-
hasValues: $convertToScalarSet($identityConversionFunction, true)(parameters?.hasValues).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.hasValues.type, value)),
|
|
435
|
-
ignore: $convertWithDefaultValue($identityConversionFunction, false)(parameters?.ignore),
|
|
436
|
-
ignoredProperties: $convertToMaybe($convertToList(($convertToIri), true))(parameters?.ignoredProperties).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.ignoredProperties.type, value)),
|
|
437
|
-
in_: $convertToMaybe($convertToList($identityConversionFunction, true))(parameters?.in_).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.in_.type, value)),
|
|
438
|
-
isDefinedBy: $convertToMaybe($convertToIdentifier)(parameters?.isDefinedBy).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.isDefinedBy.type, value)),
|
|
439
|
-
label: $convertToMaybe($identityConversionFunction)(parameters?.label).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.label.type, value)),
|
|
440
|
-
languageIn: $convertToMaybe($convertToList($identityConversionFunction, true))(parameters?.languageIn).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.languageIn.type, value)),
|
|
441
|
-
maxExclusive: $convertToMaybe($convertToLiteral)(parameters?.maxExclusive).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxExclusive.type, value)),
|
|
442
|
-
maxInclusive: $convertToMaybe($convertToLiteral)(parameters?.maxInclusive).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxInclusive.type, value)),
|
|
443
|
-
maxLength: $convertToMaybe($identityConversionFunction)(parameters?.maxLength).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxLength.type, value)),
|
|
444
|
-
message: $convertToMaybe($identityConversionFunction)(parameters?.message).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.message.type, value)),
|
|
445
|
-
minExclusive: $convertToMaybe($convertToLiteral)(parameters?.minExclusive).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minExclusive.type, value)),
|
|
446
|
-
minInclusive: $convertToMaybe($convertToLiteral)(parameters?.minInclusive).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minInclusive.type, value)),
|
|
447
|
-
minLength: $convertToMaybe($identityConversionFunction)(parameters?.minLength).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minLength.type, value)),
|
|
448
|
-
mutable: $convertToMaybe($identityConversionFunction)(parameters?.mutable).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.mutable.type, value)),
|
|
449
|
-
node: $convertToMaybe($convertToIdentifier)(parameters?.node).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.node.type, value)),
|
|
450
|
-
nodeKind: $convertToMaybe(($convertToIri))(parameters?.nodeKind).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.nodeKind.type, value)),
|
|
451
|
-
not: $convertToScalarSet($convertToIdentifier, true)(parameters?.not).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.not.type, value)),
|
|
452
|
-
or: $convertToMaybe($convertToList($convertToIdentifier, true))(parameters?.or).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.or.type, value)),
|
|
453
|
-
pattern: $convertToMaybe($identityConversionFunction)(parameters?.pattern).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.pattern.type, value)),
|
|
454
|
-
properties: $convertToScalarSet($convertToIdentifier, true)(parameters?.properties).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.properties.type, value)),
|
|
455
|
-
rdfType: $convertToMaybe(($convertToIri))(parameters?.rdfType).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.rdfType.type, value)),
|
|
456
|
-
severity: $convertToMaybe(($convertToIri))(parameters?.severity).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.severity.type, value)),
|
|
457
|
-
shaclmateName: $convertToMaybe($identityConversionFunction)(parameters?.shaclmateName).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.shaclmateName.type, value)),
|
|
458
|
-
subClassOf: $convertToScalarSet(($convertToIri), true)(parameters?.subClassOf).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.subClassOf.type, value)),
|
|
459
|
-
targetClasses: $convertToScalarSet(($convertToIri), true)(parameters?.targetClasses).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.targetClasses.type, value)),
|
|
460
|
-
targetNodes: $convertToScalarSet($identityConversionFunction, true)(parameters?.targetNodes).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.targetNodes.type, value)),
|
|
461
|
-
targetObjectsOf: $convertToScalarSet(($convertToIri), true)(parameters?.targetObjectsOf).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.targetObjectsOf.type, value)),
|
|
462
|
-
targetSubjectsOf: $convertToScalarSet(($convertToIri), true)(parameters?.targetSubjectsOf).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.targetSubjectsOf.type, value)),
|
|
463
|
-
toRdfTypes: $convertToScalarSet(($convertToIri), true)(parameters?.toRdfTypes).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.toRdfTypes.type, value)),
|
|
464
|
-
tsImports: $convertToScalarSet($identityConversionFunction, true)(parameters?.tsImports).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.tsImports.type, value)),
|
|
465
|
-
types: $convertToScalarSet(($convertToIri), true)(parameters?.types).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.types.type, value)),
|
|
466
|
-
xone: $convertToMaybe($convertToList($convertToIdentifier, true))(parameters?.xone).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.xone.type, value)),
|
|
467
|
-
})
|
|
468
|
-
.map((properties) => ({ ...properties, $type: "NodeShape" }))
|
|
469
|
-
.map((object) => $monkeyPatchObject(object, { $toString: NodeShape.$toString }));
|
|
470
|
-
function createUnsafe(parameters) {
|
|
471
|
-
return NodeShape.create(parameters).unsafeCoerce();
|
|
472
|
-
}
|
|
473
|
-
NodeShape.createUnsafe = createUnsafe;
|
|
474
|
-
NodeShape._fromRdfResource = ($resource, _$options) => (!_$options.ignoreRdfType
|
|
475
|
-
? $ensureRdfResourceType($resource, [NodeShape.schema.fromRdfType], {
|
|
476
|
-
graph: _$options.graph,
|
|
477
|
-
})
|
|
478
|
-
: Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
|
|
479
|
-
$identifier: $identifierFromRdfResourceValues(new Resource.Value({
|
|
480
|
-
dataFactory: dataFactory,
|
|
481
|
-
focusResource: $resource,
|
|
482
|
-
propertyPath: $RdfVocabularies.rdf.subject,
|
|
483
|
-
term: $resource.identifier,
|
|
484
|
-
}).toValues(), {
|
|
485
|
-
context: _$options.context,
|
|
486
|
-
graph: _$options.graph,
|
|
487
|
-
focusResource: $resource,
|
|
488
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
489
|
-
propertyPath: $RdfVocabularies.rdf.subject,
|
|
490
|
-
schema: NodeShape.schema.properties.$identifier.type,
|
|
491
|
-
}).chain((values) => values.head()),
|
|
492
|
-
and: $shaclPropertyFromRdf({
|
|
493
|
-
context: _$options.context,
|
|
494
|
-
graph: _$options.graph,
|
|
495
|
-
focusResource: $resource,
|
|
496
|
-
ignoreRdfType: true,
|
|
497
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
498
|
-
propertySchema: NodeShape.schema.properties.and,
|
|
499
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues($identifierFromRdfResourceValues)),
|
|
500
|
-
}),
|
|
501
|
-
classes: $shaclPropertyFromRdf({
|
|
502
|
-
context: _$options.context,
|
|
503
|
-
graph: _$options.graph,
|
|
504
|
-
focusResource: $resource,
|
|
505
|
-
ignoreRdfType: true,
|
|
506
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
507
|
-
propertySchema: NodeShape.schema.properties.classes,
|
|
508
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
509
|
-
}),
|
|
510
|
-
closed: $shaclPropertyFromRdf({
|
|
511
|
-
context: _$options.context,
|
|
512
|
-
graph: _$options.graph,
|
|
513
|
-
focusResource: $resource,
|
|
514
|
-
ignoreRdfType: true,
|
|
515
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
516
|
-
propertySchema: NodeShape.schema.properties.closed,
|
|
517
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($booleanFromRdfResourceValues)),
|
|
518
|
-
}),
|
|
519
|
-
comment: $shaclPropertyFromRdf({
|
|
520
|
-
context: _$options.context,
|
|
521
|
-
graph: _$options.graph,
|
|
522
|
-
focusResource: $resource,
|
|
523
|
-
ignoreRdfType: true,
|
|
524
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
525
|
-
propertySchema: NodeShape.schema.properties.comment,
|
|
526
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
527
|
-
}),
|
|
528
|
-
datatype: $shaclPropertyFromRdf({
|
|
529
|
-
context: _$options.context,
|
|
530
|
-
graph: _$options.graph,
|
|
531
|
-
focusResource: $resource,
|
|
532
|
-
ignoreRdfType: true,
|
|
533
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
534
|
-
propertySchema: NodeShape.schema.properties.datatype,
|
|
535
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
536
|
-
}),
|
|
537
|
-
deactivated: $shaclPropertyFromRdf({
|
|
538
|
-
context: _$options.context,
|
|
539
|
-
graph: _$options.graph,
|
|
540
|
-
focusResource: $resource,
|
|
541
|
-
ignoreRdfType: true,
|
|
542
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
543
|
-
propertySchema: NodeShape.schema.properties.deactivated,
|
|
544
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($booleanFromRdfResourceValues)),
|
|
545
|
-
}),
|
|
546
|
-
discriminantValue: $shaclPropertyFromRdf({
|
|
547
|
-
context: _$options.context,
|
|
548
|
-
graph: _$options.graph,
|
|
549
|
-
focusResource: $resource,
|
|
550
|
-
ignoreRdfType: true,
|
|
551
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
552
|
-
propertySchema: NodeShape.schema.properties.discriminantValue,
|
|
553
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
554
|
-
}),
|
|
555
|
-
extern: $shaclPropertyFromRdf({
|
|
556
|
-
context: _$options.context,
|
|
557
|
-
graph: _$options.graph,
|
|
558
|
-
focusResource: $resource,
|
|
559
|
-
ignoreRdfType: true,
|
|
560
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
561
|
-
propertySchema: NodeShape.schema.properties.extern,
|
|
562
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($booleanFromRdfResourceValues)),
|
|
563
|
-
}),
|
|
564
|
-
flags: $shaclPropertyFromRdf({
|
|
565
|
-
context: _$options.context,
|
|
566
|
-
graph: _$options.graph,
|
|
567
|
-
focusResource: $resource,
|
|
568
|
-
ignoreRdfType: true,
|
|
569
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
570
|
-
propertySchema: NodeShape.schema.properties.flags,
|
|
571
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
572
|
-
}),
|
|
573
|
-
fromRdfType: $shaclPropertyFromRdf({
|
|
574
|
-
context: _$options.context,
|
|
575
|
-
graph: _$options.graph,
|
|
576
|
-
focusResource: $resource,
|
|
577
|
-
ignoreRdfType: true,
|
|
578
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
579
|
-
propertySchema: NodeShape.schema.properties.fromRdfType,
|
|
580
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
581
|
-
}),
|
|
582
|
-
hasValues: $shaclPropertyFromRdf({
|
|
583
|
-
context: _$options.context,
|
|
584
|
-
graph: _$options.graph,
|
|
585
|
-
focusResource: $resource,
|
|
586
|
-
ignoreRdfType: true,
|
|
587
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
588
|
-
propertySchema: NodeShape.schema.properties.hasValues,
|
|
589
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues(($termFromRdfResourceValues)),
|
|
590
|
-
}),
|
|
591
|
-
ignore: $shaclPropertyFromRdf({
|
|
592
|
-
context: _$options.context,
|
|
593
|
-
graph: _$options.graph,
|
|
594
|
-
focusResource: $resource,
|
|
595
|
-
ignoreRdfType: true,
|
|
596
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
597
|
-
propertySchema: NodeShape.schema.properties.ignore,
|
|
598
|
-
typeFromRdfResourceValues: $defaultValueFromRdfResourceValues(($booleanFromRdfResourceValues)),
|
|
599
|
-
}),
|
|
600
|
-
ignoredProperties: $shaclPropertyFromRdf({
|
|
601
|
-
context: _$options.context,
|
|
602
|
-
graph: _$options.graph,
|
|
603
|
-
focusResource: $resource,
|
|
604
|
-
ignoreRdfType: true,
|
|
605
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
606
|
-
propertySchema: NodeShape.schema.properties.ignoredProperties,
|
|
607
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues(($iriFromRdfResourceValues))),
|
|
608
|
-
}),
|
|
609
|
-
in_: $shaclPropertyFromRdf({
|
|
610
|
-
context: _$options.context,
|
|
611
|
-
graph: _$options.graph,
|
|
612
|
-
focusResource: $resource,
|
|
613
|
-
ignoreRdfType: true,
|
|
614
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
615
|
-
propertySchema: NodeShape.schema.properties.in_,
|
|
616
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues(($termFromRdfResourceValues))),
|
|
617
|
-
}),
|
|
618
|
-
isDefinedBy: $shaclPropertyFromRdf({
|
|
619
|
-
context: _$options.context,
|
|
620
|
-
graph: _$options.graph,
|
|
621
|
-
focusResource: $resource,
|
|
622
|
-
ignoreRdfType: true,
|
|
623
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
624
|
-
propertySchema: NodeShape.schema.properties.isDefinedBy,
|
|
625
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
626
|
-
}),
|
|
627
|
-
label: $shaclPropertyFromRdf({
|
|
628
|
-
context: _$options.context,
|
|
629
|
-
graph: _$options.graph,
|
|
630
|
-
focusResource: $resource,
|
|
631
|
-
ignoreRdfType: true,
|
|
632
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
633
|
-
propertySchema: NodeShape.schema.properties.label,
|
|
634
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
635
|
-
}),
|
|
636
|
-
languageIn: $shaclPropertyFromRdf({
|
|
637
|
-
context: _$options.context,
|
|
638
|
-
graph: _$options.graph,
|
|
639
|
-
focusResource: $resource,
|
|
640
|
-
ignoreRdfType: true,
|
|
641
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
642
|
-
propertySchema: NodeShape.schema.properties.languageIn,
|
|
643
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues(($stringFromRdfResourceValues))),
|
|
644
|
-
}),
|
|
645
|
-
maxExclusive: $shaclPropertyFromRdf({
|
|
646
|
-
context: _$options.context,
|
|
647
|
-
graph: _$options.graph,
|
|
648
|
-
focusResource: $resource,
|
|
649
|
-
ignoreRdfType: true,
|
|
650
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
651
|
-
propertySchema: NodeShape.schema.properties.maxExclusive,
|
|
652
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($literalFromRdfResourceValues),
|
|
653
|
-
}),
|
|
654
|
-
maxInclusive: $shaclPropertyFromRdf({
|
|
655
|
-
context: _$options.context,
|
|
656
|
-
graph: _$options.graph,
|
|
657
|
-
focusResource: $resource,
|
|
658
|
-
ignoreRdfType: true,
|
|
659
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
660
|
-
propertySchema: NodeShape.schema.properties.maxInclusive,
|
|
661
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($literalFromRdfResourceValues),
|
|
662
|
-
}),
|
|
663
|
-
maxLength: $shaclPropertyFromRdf({
|
|
664
|
-
context: _$options.context,
|
|
665
|
-
graph: _$options.graph,
|
|
666
|
-
focusResource: $resource,
|
|
667
|
-
ignoreRdfType: true,
|
|
668
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
669
|
-
propertySchema: NodeShape.schema.properties.maxLength,
|
|
670
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($bigIntFromRdfResourceValues)),
|
|
671
|
-
}),
|
|
672
|
-
message: $shaclPropertyFromRdf({
|
|
673
|
-
context: _$options.context,
|
|
674
|
-
graph: _$options.graph,
|
|
675
|
-
focusResource: $resource,
|
|
676
|
-
ignoreRdfType: true,
|
|
677
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
678
|
-
propertySchema: NodeShape.schema.properties.message,
|
|
679
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
680
|
-
}),
|
|
681
|
-
minExclusive: $shaclPropertyFromRdf({
|
|
682
|
-
context: _$options.context,
|
|
683
|
-
graph: _$options.graph,
|
|
684
|
-
focusResource: $resource,
|
|
685
|
-
ignoreRdfType: true,
|
|
686
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
687
|
-
propertySchema: NodeShape.schema.properties.minExclusive,
|
|
688
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($literalFromRdfResourceValues),
|
|
689
|
-
}),
|
|
690
|
-
minInclusive: $shaclPropertyFromRdf({
|
|
691
|
-
context: _$options.context,
|
|
692
|
-
graph: _$options.graph,
|
|
693
|
-
focusResource: $resource,
|
|
694
|
-
ignoreRdfType: true,
|
|
695
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
696
|
-
propertySchema: NodeShape.schema.properties.minInclusive,
|
|
697
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($literalFromRdfResourceValues),
|
|
698
|
-
}),
|
|
699
|
-
minLength: $shaclPropertyFromRdf({
|
|
700
|
-
context: _$options.context,
|
|
701
|
-
graph: _$options.graph,
|
|
702
|
-
focusResource: $resource,
|
|
703
|
-
ignoreRdfType: true,
|
|
704
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
705
|
-
propertySchema: NodeShape.schema.properties.minLength,
|
|
706
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($bigIntFromRdfResourceValues)),
|
|
707
|
-
}),
|
|
708
|
-
mutable: $shaclPropertyFromRdf({
|
|
709
|
-
context: _$options.context,
|
|
710
|
-
graph: _$options.graph,
|
|
711
|
-
focusResource: $resource,
|
|
712
|
-
ignoreRdfType: true,
|
|
713
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
714
|
-
propertySchema: NodeShape.schema.properties.mutable,
|
|
715
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($booleanFromRdfResourceValues)),
|
|
716
|
-
}),
|
|
717
|
-
node: $shaclPropertyFromRdf({
|
|
718
|
-
context: _$options.context,
|
|
719
|
-
graph: _$options.graph,
|
|
720
|
-
focusResource: $resource,
|
|
721
|
-
ignoreRdfType: true,
|
|
722
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
723
|
-
propertySchema: NodeShape.schema.properties.node,
|
|
724
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
725
|
-
}),
|
|
726
|
-
nodeKind: $shaclPropertyFromRdf({
|
|
727
|
-
context: _$options.context,
|
|
728
|
-
graph: _$options.graph,
|
|
729
|
-
focusResource: $resource,
|
|
730
|
-
ignoreRdfType: true,
|
|
731
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
732
|
-
propertySchema: NodeShape.schema.properties.nodeKind,
|
|
733
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
734
|
-
}),
|
|
735
|
-
not: $shaclPropertyFromRdf({
|
|
736
|
-
context: _$options.context,
|
|
737
|
-
graph: _$options.graph,
|
|
738
|
-
focusResource: $resource,
|
|
739
|
-
ignoreRdfType: true,
|
|
740
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
741
|
-
propertySchema: NodeShape.schema.properties.not,
|
|
742
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
743
|
-
}),
|
|
744
|
-
or: $shaclPropertyFromRdf({
|
|
745
|
-
context: _$options.context,
|
|
746
|
-
graph: _$options.graph,
|
|
747
|
-
focusResource: $resource,
|
|
748
|
-
ignoreRdfType: true,
|
|
749
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
750
|
-
propertySchema: NodeShape.schema.properties.or,
|
|
751
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues($identifierFromRdfResourceValues)),
|
|
752
|
-
}),
|
|
753
|
-
pattern: $shaclPropertyFromRdf({
|
|
754
|
-
context: _$options.context,
|
|
755
|
-
graph: _$options.graph,
|
|
756
|
-
focusResource: $resource,
|
|
757
|
-
ignoreRdfType: true,
|
|
758
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
759
|
-
propertySchema: NodeShape.schema.properties.pattern,
|
|
760
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
761
|
-
}),
|
|
762
|
-
properties: $shaclPropertyFromRdf({
|
|
763
|
-
context: _$options.context,
|
|
764
|
-
graph: _$options.graph,
|
|
765
|
-
focusResource: $resource,
|
|
766
|
-
ignoreRdfType: true,
|
|
767
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
768
|
-
propertySchema: NodeShape.schema.properties.properties,
|
|
769
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
770
|
-
}),
|
|
771
|
-
rdfType: $shaclPropertyFromRdf({
|
|
772
|
-
context: _$options.context,
|
|
773
|
-
graph: _$options.graph,
|
|
774
|
-
focusResource: $resource,
|
|
775
|
-
ignoreRdfType: true,
|
|
776
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
777
|
-
propertySchema: NodeShape.schema.properties.rdfType,
|
|
778
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
779
|
-
}),
|
|
780
|
-
severity: $shaclPropertyFromRdf({
|
|
781
|
-
context: _$options.context,
|
|
782
|
-
graph: _$options.graph,
|
|
783
|
-
focusResource: $resource,
|
|
784
|
-
ignoreRdfType: true,
|
|
785
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
786
|
-
propertySchema: NodeShape.schema.properties.severity,
|
|
787
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
788
|
-
}),
|
|
789
|
-
shaclmateName: $shaclPropertyFromRdf({
|
|
790
|
-
context: _$options.context,
|
|
791
|
-
graph: _$options.graph,
|
|
792
|
-
focusResource: $resource,
|
|
793
|
-
ignoreRdfType: true,
|
|
794
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
795
|
-
propertySchema: NodeShape.schema.properties.shaclmateName,
|
|
796
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
797
|
-
}),
|
|
798
|
-
subClassOf: $shaclPropertyFromRdf({
|
|
799
|
-
context: _$options.context,
|
|
800
|
-
graph: _$options.graph,
|
|
801
|
-
focusResource: $resource,
|
|
802
|
-
ignoreRdfType: true,
|
|
803
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
804
|
-
propertySchema: NodeShape.schema.properties.subClassOf,
|
|
805
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
806
|
-
}),
|
|
807
|
-
targetClasses: $shaclPropertyFromRdf({
|
|
808
|
-
context: _$options.context,
|
|
809
|
-
graph: _$options.graph,
|
|
810
|
-
focusResource: $resource,
|
|
811
|
-
ignoreRdfType: true,
|
|
812
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
813
|
-
propertySchema: NodeShape.schema.properties.targetClasses,
|
|
814
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
815
|
-
}),
|
|
816
|
-
targetNodes: $shaclPropertyFromRdf({
|
|
817
|
-
context: _$options.context,
|
|
818
|
-
graph: _$options.graph,
|
|
819
|
-
focusResource: $resource,
|
|
820
|
-
ignoreRdfType: true,
|
|
821
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
822
|
-
propertySchema: NodeShape.schema.properties.targetNodes,
|
|
823
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues(($termFromRdfResourceValues)),
|
|
824
|
-
}),
|
|
825
|
-
targetObjectsOf: $shaclPropertyFromRdf({
|
|
826
|
-
context: _$options.context,
|
|
827
|
-
graph: _$options.graph,
|
|
828
|
-
focusResource: $resource,
|
|
829
|
-
ignoreRdfType: true,
|
|
830
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
831
|
-
propertySchema: NodeShape.schema.properties.targetObjectsOf,
|
|
832
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
833
|
-
}),
|
|
834
|
-
targetSubjectsOf: $shaclPropertyFromRdf({
|
|
835
|
-
context: _$options.context,
|
|
836
|
-
graph: _$options.graph,
|
|
837
|
-
focusResource: $resource,
|
|
838
|
-
ignoreRdfType: true,
|
|
839
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
840
|
-
propertySchema: NodeShape.schema.properties.targetSubjectsOf,
|
|
841
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
842
|
-
}),
|
|
843
|
-
toRdfTypes: $shaclPropertyFromRdf({
|
|
844
|
-
context: _$options.context,
|
|
845
|
-
graph: _$options.graph,
|
|
846
|
-
focusResource: $resource,
|
|
847
|
-
ignoreRdfType: true,
|
|
848
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
849
|
-
propertySchema: NodeShape.schema.properties.toRdfTypes,
|
|
850
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
851
|
-
}),
|
|
852
|
-
tsImports: $shaclPropertyFromRdf({
|
|
853
|
-
context: _$options.context,
|
|
854
|
-
graph: _$options.graph,
|
|
855
|
-
focusResource: $resource,
|
|
856
|
-
ignoreRdfType: true,
|
|
857
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
858
|
-
propertySchema: NodeShape.schema.properties.tsImports,
|
|
859
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
860
|
-
}),
|
|
861
|
-
types: $shaclPropertyFromRdf({
|
|
862
|
-
context: _$options.context,
|
|
863
|
-
graph: _$options.graph,
|
|
864
|
-
focusResource: $resource,
|
|
865
|
-
ignoreRdfType: true,
|
|
866
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
867
|
-
propertySchema: NodeShape.schema.properties.types,
|
|
868
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
869
|
-
}),
|
|
870
|
-
xone: $shaclPropertyFromRdf({
|
|
871
|
-
context: _$options.context,
|
|
872
|
-
graph: _$options.graph,
|
|
873
|
-
focusResource: $resource,
|
|
874
|
-
ignoreRdfType: true,
|
|
875
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
876
|
-
propertySchema: NodeShape.schema.properties.xone,
|
|
877
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues($identifierFromRdfResourceValues)),
|
|
878
|
-
}),
|
|
879
|
-
}).chain((properties) => NodeShape.create(properties)));
|
|
880
|
-
NodeShape.fromRdfResource = $wrap_FromRdfResourceFunction(NodeShape._fromRdfResource);
|
|
881
|
-
NodeShape.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
|
|
882
|
-
.toResource()
|
|
883
|
-
.chain((resource) => NodeShape.fromRdfResource(resource, options)));
|
|
884
|
-
let Identifier;
|
|
885
|
-
(function (Identifier) {
|
|
886
|
-
Identifier.parse = $parseIdentifier;
|
|
887
|
-
Identifier.stringify = NTriplesTerm.stringify;
|
|
888
|
-
})(Identifier = NodeShape.Identifier || (NodeShape.Identifier = {}));
|
|
889
|
-
function isNodeShape(object) {
|
|
890
|
-
return object.$type === "NodeShape";
|
|
891
|
-
}
|
|
892
|
-
NodeShape.isNodeShape = isNodeShape;
|
|
893
|
-
NodeShape.schema = {
|
|
894
|
-
fromRdfType: dataFactory.namedNode("http://www.w3.org/ns/shacl#NodeShape"),
|
|
895
|
-
properties: {
|
|
896
|
-
$identifier: {
|
|
897
|
-
kind: "Identifier",
|
|
898
|
-
type: { kind: "Identifier" },
|
|
899
|
-
},
|
|
900
|
-
and: {
|
|
901
|
-
kind: "Shacl",
|
|
902
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#and"),
|
|
903
|
-
type: {
|
|
904
|
-
kind: "Option",
|
|
905
|
-
itemType: {
|
|
906
|
-
kind: "List",
|
|
907
|
-
itemType: { kind: "Identifier" },
|
|
908
|
-
},
|
|
909
|
-
},
|
|
910
|
-
},
|
|
911
|
-
classes: {
|
|
912
|
-
kind: "Shacl",
|
|
913
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#class"),
|
|
914
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
915
|
-
},
|
|
916
|
-
closed: {
|
|
917
|
-
kind: "Shacl",
|
|
918
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#closed"),
|
|
919
|
-
type: {
|
|
920
|
-
kind: "Option",
|
|
921
|
-
itemType: { kind: "Boolean" },
|
|
922
|
-
},
|
|
923
|
-
},
|
|
924
|
-
comment: {
|
|
925
|
-
kind: "Shacl",
|
|
926
|
-
path: dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#comment"),
|
|
927
|
-
type: {
|
|
928
|
-
kind: "Option",
|
|
929
|
-
itemType: { kind: "String" },
|
|
930
|
-
},
|
|
931
|
-
},
|
|
932
|
-
datatype: {
|
|
933
|
-
kind: "Shacl",
|
|
934
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#datatype"),
|
|
935
|
-
type: { kind: "Option", itemType: { kind: "Iri" } },
|
|
936
|
-
},
|
|
937
|
-
deactivated: {
|
|
938
|
-
kind: "Shacl",
|
|
939
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#deactivated"),
|
|
940
|
-
type: {
|
|
941
|
-
kind: "Option",
|
|
942
|
-
itemType: { kind: "Boolean" },
|
|
943
|
-
},
|
|
944
|
-
},
|
|
945
|
-
discriminantValue: {
|
|
946
|
-
kind: "Shacl",
|
|
947
|
-
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#discriminantValue"),
|
|
948
|
-
type: {
|
|
949
|
-
kind: "Option",
|
|
950
|
-
itemType: { kind: "String" },
|
|
951
|
-
},
|
|
952
|
-
},
|
|
953
|
-
extern: {
|
|
954
|
-
kind: "Shacl",
|
|
955
|
-
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#extern"),
|
|
956
|
-
type: {
|
|
957
|
-
kind: "Option",
|
|
958
|
-
itemType: { kind: "Boolean" },
|
|
959
|
-
},
|
|
960
|
-
},
|
|
961
|
-
flags: {
|
|
962
|
-
kind: "Shacl",
|
|
963
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#flags"),
|
|
964
|
-
type: {
|
|
965
|
-
kind: "Option",
|
|
966
|
-
itemType: { kind: "String" },
|
|
967
|
-
},
|
|
968
|
-
},
|
|
969
|
-
fromRdfType: {
|
|
970
|
-
kind: "Shacl",
|
|
971
|
-
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#fromRdfType"),
|
|
972
|
-
type: { kind: "Option", itemType: { kind: "Iri" } },
|
|
973
|
-
},
|
|
974
|
-
hasValues: {
|
|
975
|
-
kind: "Shacl",
|
|
976
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#hasValue"),
|
|
977
|
-
type: {
|
|
978
|
-
kind: "Set",
|
|
979
|
-
itemType: { kind: "Term", types: ["NamedNode", "Literal"] },
|
|
980
|
-
},
|
|
981
|
-
},
|
|
982
|
-
ignore: {
|
|
983
|
-
kind: "Shacl",
|
|
984
|
-
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#ignore"),
|
|
985
|
-
type: {
|
|
986
|
-
kind: "DefaultValue",
|
|
987
|
-
itemType: { kind: "Boolean" },
|
|
988
|
-
defaultValue: dataFactory.literal("false", $RdfVocabularies.xsd.boolean),
|
|
989
|
-
},
|
|
990
|
-
},
|
|
991
|
-
ignoredProperties: {
|
|
992
|
-
kind: "Shacl",
|
|
993
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#ignoredProperties"),
|
|
994
|
-
type: {
|
|
995
|
-
kind: "Option",
|
|
996
|
-
itemType: {
|
|
997
|
-
kind: "List",
|
|
998
|
-
itemType: { kind: "Iri" },
|
|
999
|
-
},
|
|
1000
|
-
},
|
|
1001
|
-
},
|
|
1002
|
-
in_: {
|
|
1003
|
-
kind: "Shacl",
|
|
1004
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#in"),
|
|
1005
|
-
type: {
|
|
1006
|
-
kind: "Option",
|
|
1007
|
-
itemType: {
|
|
1008
|
-
kind: "List",
|
|
1009
|
-
itemType: {
|
|
1010
|
-
kind: "Term",
|
|
1011
|
-
types: ["NamedNode", "Literal"],
|
|
1012
|
-
},
|
|
1013
|
-
},
|
|
1014
|
-
},
|
|
1015
|
-
},
|
|
1016
|
-
isDefinedBy: {
|
|
1017
|
-
kind: "Shacl",
|
|
1018
|
-
path: dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#isDefinedBy"),
|
|
1019
|
-
type: {
|
|
1020
|
-
kind: "Option",
|
|
1021
|
-
itemType: { kind: "Identifier" },
|
|
1022
|
-
},
|
|
1023
|
-
},
|
|
1024
|
-
label: {
|
|
1025
|
-
kind: "Shacl",
|
|
1026
|
-
path: dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#label"),
|
|
1027
|
-
type: {
|
|
1028
|
-
kind: "Option",
|
|
1029
|
-
itemType: { kind: "String" },
|
|
1030
|
-
},
|
|
1031
|
-
},
|
|
1032
|
-
languageIn: {
|
|
1033
|
-
kind: "Shacl",
|
|
1034
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#languageIn"),
|
|
1035
|
-
type: {
|
|
1036
|
-
kind: "Option",
|
|
1037
|
-
itemType: {
|
|
1038
|
-
kind: "List",
|
|
1039
|
-
itemType: { kind: "String" },
|
|
1040
|
-
},
|
|
1041
|
-
},
|
|
1042
|
-
},
|
|
1043
|
-
maxExclusive: {
|
|
1044
|
-
kind: "Shacl",
|
|
1045
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxExclusive"),
|
|
1046
|
-
type: {
|
|
1047
|
-
kind: "Option",
|
|
1048
|
-
itemType: { kind: "Literal" },
|
|
1049
|
-
},
|
|
1050
|
-
},
|
|
1051
|
-
maxInclusive: {
|
|
1052
|
-
kind: "Shacl",
|
|
1053
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxInclusive"),
|
|
1054
|
-
type: {
|
|
1055
|
-
kind: "Option",
|
|
1056
|
-
itemType: { kind: "Literal" },
|
|
1057
|
-
},
|
|
1058
|
-
},
|
|
1059
|
-
maxLength: {
|
|
1060
|
-
kind: "Shacl",
|
|
1061
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxLength"),
|
|
1062
|
-
type: {
|
|
1063
|
-
kind: "Option",
|
|
1064
|
-
itemType: { kind: "BigInt" },
|
|
1065
|
-
},
|
|
1066
|
-
},
|
|
1067
|
-
message: {
|
|
1068
|
-
kind: "Shacl",
|
|
1069
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#message"),
|
|
1070
|
-
type: {
|
|
1071
|
-
kind: "Option",
|
|
1072
|
-
itemType: { kind: "String" },
|
|
1073
|
-
},
|
|
1074
|
-
},
|
|
1075
|
-
minExclusive: {
|
|
1076
|
-
kind: "Shacl",
|
|
1077
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minExclusive"),
|
|
1078
|
-
type: {
|
|
1079
|
-
kind: "Option",
|
|
1080
|
-
itemType: { kind: "Literal" },
|
|
1081
|
-
},
|
|
1082
|
-
},
|
|
1083
|
-
minInclusive: {
|
|
1084
|
-
kind: "Shacl",
|
|
1085
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minInclusive"),
|
|
1086
|
-
type: {
|
|
1087
|
-
kind: "Option",
|
|
1088
|
-
itemType: { kind: "Literal" },
|
|
1089
|
-
},
|
|
1090
|
-
},
|
|
1091
|
-
minLength: {
|
|
1092
|
-
kind: "Shacl",
|
|
1093
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minLength"),
|
|
1094
|
-
type: {
|
|
1095
|
-
kind: "Option",
|
|
1096
|
-
itemType: { kind: "BigInt" },
|
|
1097
|
-
},
|
|
1098
|
-
},
|
|
1099
|
-
mutable: {
|
|
1100
|
-
kind: "Shacl",
|
|
1101
|
-
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#mutable"),
|
|
1102
|
-
type: {
|
|
1103
|
-
kind: "Option",
|
|
1104
|
-
itemType: { kind: "Boolean" },
|
|
1105
|
-
},
|
|
1106
|
-
},
|
|
1107
|
-
node: {
|
|
1108
|
-
kind: "Shacl",
|
|
1109
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#node"),
|
|
1110
|
-
type: {
|
|
1111
|
-
kind: "Option",
|
|
1112
|
-
itemType: { kind: "Identifier" },
|
|
1113
|
-
},
|
|
1114
|
-
},
|
|
1115
|
-
nodeKind: {
|
|
1116
|
-
kind: "Shacl",
|
|
1117
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#nodeKind"),
|
|
1118
|
-
type: {
|
|
1119
|
-
kind: "Option",
|
|
1120
|
-
itemType: {
|
|
1121
|
-
kind: "Iri",
|
|
1122
|
-
in: [
|
|
1123
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#BlankNode"),
|
|
1124
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#BlankNodeOrIRI"),
|
|
1125
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#BlankNodeOrLiteral"),
|
|
1126
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#IRI"),
|
|
1127
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#IRIOrLiteral"),
|
|
1128
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#Literal"),
|
|
1129
|
-
],
|
|
1130
|
-
},
|
|
1131
|
-
},
|
|
1132
|
-
},
|
|
1133
|
-
not: {
|
|
1134
|
-
kind: "Shacl",
|
|
1135
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#not"),
|
|
1136
|
-
type: {
|
|
1137
|
-
kind: "Set",
|
|
1138
|
-
itemType: { kind: "Identifier" },
|
|
1139
|
-
},
|
|
1140
|
-
},
|
|
1141
|
-
or: {
|
|
1142
|
-
kind: "Shacl",
|
|
1143
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#or"),
|
|
1144
|
-
type: {
|
|
1145
|
-
kind: "Option",
|
|
1146
|
-
itemType: {
|
|
1147
|
-
kind: "List",
|
|
1148
|
-
itemType: { kind: "Identifier" },
|
|
1149
|
-
},
|
|
1150
|
-
},
|
|
1151
|
-
},
|
|
1152
|
-
pattern: {
|
|
1153
|
-
kind: "Shacl",
|
|
1154
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#pattern"),
|
|
1155
|
-
type: {
|
|
1156
|
-
kind: "Option",
|
|
1157
|
-
itemType: { kind: "String" },
|
|
1158
|
-
},
|
|
1159
|
-
},
|
|
1160
|
-
properties: {
|
|
1161
|
-
kind: "Shacl",
|
|
1162
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#property"),
|
|
1163
|
-
type: {
|
|
1164
|
-
kind: "Set",
|
|
1165
|
-
itemType: { kind: "Identifier" },
|
|
1166
|
-
},
|
|
1167
|
-
},
|
|
1168
|
-
rdfType: {
|
|
1169
|
-
kind: "Shacl",
|
|
1170
|
-
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#rdfType"),
|
|
1171
|
-
type: { kind: "Option", itemType: { kind: "Iri" } },
|
|
1172
|
-
},
|
|
1173
|
-
severity: {
|
|
1174
|
-
kind: "Shacl",
|
|
1175
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#severity"),
|
|
1176
|
-
type: {
|
|
1177
|
-
kind: "Option",
|
|
1178
|
-
itemType: {
|
|
1179
|
-
kind: "Iri",
|
|
1180
|
-
in: [
|
|
1181
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#Info"),
|
|
1182
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#Warning"),
|
|
1183
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#Violation"),
|
|
1184
|
-
],
|
|
1185
|
-
},
|
|
1186
|
-
},
|
|
1187
|
-
},
|
|
1188
|
-
shaclmateName: {
|
|
1189
|
-
kind: "Shacl",
|
|
1190
|
-
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#name"),
|
|
1191
|
-
type: {
|
|
1192
|
-
kind: "Option",
|
|
1193
|
-
itemType: { kind: "String" },
|
|
1194
|
-
},
|
|
1195
|
-
},
|
|
1196
|
-
subClassOf: {
|
|
1197
|
-
kind: "Shacl",
|
|
1198
|
-
path: $RdfVocabularies.rdfs.subClassOf,
|
|
1199
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1200
|
-
},
|
|
1201
|
-
targetClasses: {
|
|
1202
|
-
kind: "Shacl",
|
|
1203
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetClass"),
|
|
1204
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1205
|
-
},
|
|
1206
|
-
targetNodes: {
|
|
1207
|
-
kind: "Shacl",
|
|
1208
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetNode"),
|
|
1209
|
-
type: {
|
|
1210
|
-
kind: "Set",
|
|
1211
|
-
itemType: { kind: "Term", types: ["NamedNode", "Literal"] },
|
|
1212
|
-
},
|
|
1213
|
-
},
|
|
1214
|
-
targetObjectsOf: {
|
|
1215
|
-
kind: "Shacl",
|
|
1216
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetObjectsOf"),
|
|
1217
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1218
|
-
},
|
|
1219
|
-
targetSubjectsOf: {
|
|
1220
|
-
kind: "Shacl",
|
|
1221
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetSubjectsOf"),
|
|
1222
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1223
|
-
},
|
|
1224
|
-
toRdfTypes: {
|
|
1225
|
-
kind: "Shacl",
|
|
1226
|
-
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#toRdfType"),
|
|
1227
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1228
|
-
},
|
|
1229
|
-
tsImports: {
|
|
1230
|
-
kind: "Shacl",
|
|
1231
|
-
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#tsImport"),
|
|
1232
|
-
type: { kind: "Set", itemType: { kind: "String" } },
|
|
1233
|
-
},
|
|
1234
|
-
types: {
|
|
1235
|
-
kind: "Shacl",
|
|
1236
|
-
path: $RdfVocabularies.rdf.type,
|
|
1237
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
1238
|
-
},
|
|
1239
|
-
xone: {
|
|
1240
|
-
kind: "Shacl",
|
|
1241
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#xone"),
|
|
1242
|
-
type: {
|
|
1243
|
-
kind: "Option",
|
|
1244
|
-
itemType: {
|
|
1245
|
-
kind: "List",
|
|
1246
|
-
itemType: { kind: "Identifier" },
|
|
1247
|
-
},
|
|
1248
|
-
},
|
|
1249
|
-
},
|
|
1250
|
-
},
|
|
1251
|
-
};
|
|
1252
|
-
NodeShape._toRdfResource = (parameters) => {
|
|
1253
|
-
if (!parameters.ignoreRdfType) {
|
|
1254
|
-
parameters.resource.add($RdfVocabularies.rdf.type, dataFactory.namedNode("http://www.w3.org/ns/shacl#NodeShape"), parameters.graph);
|
|
1255
|
-
}
|
|
1256
|
-
parameters.resource.add(NodeShape.schema.properties.and.path, parameters.object.and.toList().flatMap((value) => [
|
|
1257
|
-
value.length > 0
|
|
1258
|
-
? value.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
|
|
1259
|
-
if (itemIndex === 0) {
|
|
1260
|
-
currentSubListResource = listResource;
|
|
1261
|
-
}
|
|
1262
|
-
else {
|
|
1263
|
-
const newSubListResource = parameters.resourceSet.resource((() => dataFactory.blankNode())());
|
|
1264
|
-
currentSubListResource.add($RdfVocabularies.rdf.rest, newSubListResource.identifier, parameters.graph);
|
|
1265
|
-
currentSubListResource = newSubListResource;
|
|
1266
|
-
}
|
|
1267
|
-
currentSubListResource.add($RdfVocabularies.rdf.first, [item], parameters.graph);
|
|
1268
|
-
if (itemIndex + 1 === list.length) {
|
|
1269
|
-
currentSubListResource.add($RdfVocabularies.rdf.rest, $RdfVocabularies.rdf.nil, parameters.graph);
|
|
1270
|
-
}
|
|
1271
|
-
return { currentSubListResource, listResource };
|
|
1272
|
-
}, {
|
|
1273
|
-
currentSubListResource: null,
|
|
1274
|
-
listResource: parameters.resourceSet.resource((() => dataFactory.blankNode())()),
|
|
1275
|
-
}).listResource.identifier
|
|
1276
|
-
: $RdfVocabularies.rdf.nil,
|
|
1277
|
-
]), parameters.graph);
|
|
1278
|
-
parameters.resource.add(NodeShape.schema.properties.classes.path, parameters.object.classes.flatMap((item) => [item]), parameters.graph);
|
|
1279
|
-
parameters.resource.add(NodeShape.schema.properties.closed.path, parameters.object.closed
|
|
1280
|
-
.toList()
|
|
1281
|
-
.flatMap((value) => [
|
|
1282
|
-
$literalFactory.boolean(value, $RdfVocabularies.xsd.boolean),
|
|
1283
|
-
]), parameters.graph);
|
|
1284
|
-
parameters.resource.add(NodeShape.schema.properties.comment.path, parameters.object.comment
|
|
1285
|
-
.toList()
|
|
1286
|
-
.flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
|
|
1287
|
-
parameters.resource.add(NodeShape.schema.properties.datatype.path, parameters.object.datatype.toList(), parameters.graph);
|
|
1288
|
-
parameters.resource.add(NodeShape.schema.properties.deactivated.path, parameters.object.deactivated
|
|
1289
|
-
.toList()
|
|
1290
|
-
.flatMap((value) => [
|
|
1291
|
-
$literalFactory.boolean(value, $RdfVocabularies.xsd.boolean),
|
|
1292
|
-
]), parameters.graph);
|
|
1293
|
-
parameters.resource.add(NodeShape.schema.properties.discriminantValue.path, parameters.object.discriminantValue
|
|
1294
|
-
.toList()
|
|
1295
|
-
.flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
|
|
1296
|
-
parameters.resource.add(NodeShape.schema.properties.extern.path, parameters.object.extern
|
|
1297
|
-
.toList()
|
|
1298
|
-
.flatMap((value) => [
|
|
1299
|
-
$literalFactory.boolean(value, $RdfVocabularies.xsd.boolean),
|
|
1300
|
-
]), parameters.graph);
|
|
1301
|
-
parameters.resource.add(NodeShape.schema.properties.flags.path, parameters.object.flags
|
|
1302
|
-
.toList()
|
|
1303
|
-
.flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
|
|
1304
|
-
parameters.resource.add(NodeShape.schema.properties.fromRdfType.path, parameters.object.fromRdfType.toList(), parameters.graph);
|
|
1305
|
-
parameters.resource.add(NodeShape.schema.properties.hasValues.path, parameters.object.hasValues.flatMap((item) => [item]), parameters.graph);
|
|
1306
|
-
parameters.resource.add(NodeShape.schema.properties.ignore.path, $strictEquals(parameters.object.ignore, false).isLeft()
|
|
1307
|
-
? [
|
|
1308
|
-
$literalFactory.boolean(parameters.object.ignore, $RdfVocabularies.xsd.boolean),
|
|
1309
|
-
]
|
|
1310
|
-
: [], parameters.graph);
|
|
1311
|
-
parameters.resource.add(NodeShape.schema.properties.ignoredProperties.path, parameters.object.ignoredProperties.toList().flatMap((value) => [
|
|
1312
|
-
value.length > 0
|
|
1313
|
-
? value.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
|
|
1314
|
-
if (itemIndex === 0) {
|
|
1315
|
-
currentSubListResource = listResource;
|
|
1316
|
-
}
|
|
1317
|
-
else {
|
|
1318
|
-
const newSubListResource = parameters.resourceSet.resource((() => dataFactory.blankNode())());
|
|
1319
|
-
currentSubListResource.add($RdfVocabularies.rdf.rest, newSubListResource.identifier, parameters.graph);
|
|
1320
|
-
currentSubListResource = newSubListResource;
|
|
1321
|
-
}
|
|
1322
|
-
currentSubListResource.add($RdfVocabularies.rdf.first, [item], parameters.graph);
|
|
1323
|
-
if (itemIndex + 1 === list.length) {
|
|
1324
|
-
currentSubListResource.add($RdfVocabularies.rdf.rest, $RdfVocabularies.rdf.nil, parameters.graph);
|
|
1325
|
-
}
|
|
1326
|
-
return { currentSubListResource, listResource };
|
|
1327
|
-
}, {
|
|
1328
|
-
currentSubListResource: null,
|
|
1329
|
-
listResource: parameters.resourceSet.resource((() => dataFactory.blankNode())()),
|
|
1330
|
-
}).listResource.identifier
|
|
1331
|
-
: $RdfVocabularies.rdf.nil,
|
|
1332
|
-
]), parameters.graph);
|
|
1333
|
-
parameters.resource.add(NodeShape.schema.properties.in_.path, parameters.object.in_.toList().flatMap((value) => [
|
|
1334
|
-
value.length > 0
|
|
1335
|
-
? value.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
|
|
1336
|
-
if (itemIndex === 0) {
|
|
1337
|
-
currentSubListResource = listResource;
|
|
1338
|
-
}
|
|
1339
|
-
else {
|
|
1340
|
-
const newSubListResource = parameters.resourceSet.resource((() => dataFactory.blankNode())());
|
|
1341
|
-
currentSubListResource.add($RdfVocabularies.rdf.rest, newSubListResource.identifier, parameters.graph);
|
|
1342
|
-
currentSubListResource = newSubListResource;
|
|
1343
|
-
}
|
|
1344
|
-
currentSubListResource.add($RdfVocabularies.rdf.first, [item], parameters.graph);
|
|
1345
|
-
if (itemIndex + 1 === list.length) {
|
|
1346
|
-
currentSubListResource.add($RdfVocabularies.rdf.rest, $RdfVocabularies.rdf.nil, parameters.graph);
|
|
1347
|
-
}
|
|
1348
|
-
return { currentSubListResource, listResource };
|
|
1349
|
-
}, {
|
|
1350
|
-
currentSubListResource: null,
|
|
1351
|
-
listResource: parameters.resourceSet.resource((() => dataFactory.blankNode())()),
|
|
1352
|
-
}).listResource.identifier
|
|
1353
|
-
: $RdfVocabularies.rdf.nil,
|
|
1354
|
-
]), parameters.graph);
|
|
1355
|
-
parameters.resource.add(NodeShape.schema.properties.isDefinedBy.path, parameters.object.isDefinedBy.toList(), parameters.graph);
|
|
1356
|
-
parameters.resource.add(NodeShape.schema.properties.label.path, parameters.object.label
|
|
1357
|
-
.toList()
|
|
1358
|
-
.flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
|
|
1359
|
-
parameters.resource.add(NodeShape.schema.properties.languageIn.path, parameters.object.languageIn.toList().flatMap((value) => [
|
|
1360
|
-
value.length > 0
|
|
1361
|
-
? value.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
|
|
1362
|
-
if (itemIndex === 0) {
|
|
1363
|
-
currentSubListResource = listResource;
|
|
1364
|
-
}
|
|
1365
|
-
else {
|
|
1366
|
-
const newSubListResource = parameters.resourceSet.resource((() => dataFactory.blankNode())());
|
|
1367
|
-
currentSubListResource.add($RdfVocabularies.rdf.rest, newSubListResource.identifier, parameters.graph);
|
|
1368
|
-
currentSubListResource = newSubListResource;
|
|
1369
|
-
}
|
|
1370
|
-
currentSubListResource.add($RdfVocabularies.rdf.first, [$literalFactory.string(item)], parameters.graph);
|
|
1371
|
-
if (itemIndex + 1 === list.length) {
|
|
1372
|
-
currentSubListResource.add($RdfVocabularies.rdf.rest, $RdfVocabularies.rdf.nil, parameters.graph);
|
|
1373
|
-
}
|
|
1374
|
-
return { currentSubListResource, listResource };
|
|
1375
|
-
}, {
|
|
1376
|
-
currentSubListResource: null,
|
|
1377
|
-
listResource: parameters.resourceSet.resource((() => dataFactory.blankNode())()),
|
|
1378
|
-
}).listResource.identifier
|
|
1379
|
-
: $RdfVocabularies.rdf.nil,
|
|
1380
|
-
]), parameters.graph);
|
|
1381
|
-
parameters.resource.add(NodeShape.schema.properties.maxExclusive.path, parameters.object.maxExclusive.toList(), parameters.graph);
|
|
1382
|
-
parameters.resource.add(NodeShape.schema.properties.maxInclusive.path, parameters.object.maxInclusive.toList(), parameters.graph);
|
|
1383
|
-
parameters.resource.add(NodeShape.schema.properties.maxLength.path, parameters.object.maxLength
|
|
1384
|
-
.toList()
|
|
1385
|
-
.flatMap((value) => [
|
|
1386
|
-
$literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
|
|
1387
|
-
]), parameters.graph);
|
|
1388
|
-
parameters.resource.add(NodeShape.schema.properties.message.path, parameters.object.message
|
|
1389
|
-
.toList()
|
|
1390
|
-
.flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
|
|
1391
|
-
parameters.resource.add(NodeShape.schema.properties.minExclusive.path, parameters.object.minExclusive.toList(), parameters.graph);
|
|
1392
|
-
parameters.resource.add(NodeShape.schema.properties.minInclusive.path, parameters.object.minInclusive.toList(), parameters.graph);
|
|
1393
|
-
parameters.resource.add(NodeShape.schema.properties.minLength.path, parameters.object.minLength
|
|
1394
|
-
.toList()
|
|
1395
|
-
.flatMap((value) => [
|
|
1396
|
-
$literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
|
|
1397
|
-
]), parameters.graph);
|
|
1398
|
-
parameters.resource.add(NodeShape.schema.properties.mutable.path, parameters.object.mutable
|
|
1399
|
-
.toList()
|
|
1400
|
-
.flatMap((value) => [
|
|
1401
|
-
$literalFactory.boolean(value, $RdfVocabularies.xsd.boolean),
|
|
1402
|
-
]), parameters.graph);
|
|
1403
|
-
parameters.resource.add(NodeShape.schema.properties.node.path, parameters.object.node.toList(), parameters.graph);
|
|
1404
|
-
parameters.resource.add(NodeShape.schema.properties.nodeKind.path, parameters.object.nodeKind.toList(), parameters.graph);
|
|
1405
|
-
parameters.resource.add(NodeShape.schema.properties.not.path, parameters.object.not.flatMap((item) => [item]), parameters.graph);
|
|
1406
|
-
parameters.resource.add(NodeShape.schema.properties.or.path, parameters.object.or.toList().flatMap((value) => [
|
|
1407
|
-
value.length > 0
|
|
1408
|
-
? value.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
|
|
1409
|
-
if (itemIndex === 0) {
|
|
1410
|
-
currentSubListResource = listResource;
|
|
1411
|
-
}
|
|
1412
|
-
else {
|
|
1413
|
-
const newSubListResource = parameters.resourceSet.resource((() => dataFactory.blankNode())());
|
|
1414
|
-
currentSubListResource.add($RdfVocabularies.rdf.rest, newSubListResource.identifier, parameters.graph);
|
|
1415
|
-
currentSubListResource = newSubListResource;
|
|
1416
|
-
}
|
|
1417
|
-
currentSubListResource.add($RdfVocabularies.rdf.first, [item], parameters.graph);
|
|
1418
|
-
if (itemIndex + 1 === list.length) {
|
|
1419
|
-
currentSubListResource.add($RdfVocabularies.rdf.rest, $RdfVocabularies.rdf.nil, parameters.graph);
|
|
1420
|
-
}
|
|
1421
|
-
return { currentSubListResource, listResource };
|
|
1422
|
-
}, {
|
|
1423
|
-
currentSubListResource: null,
|
|
1424
|
-
listResource: parameters.resourceSet.resource((() => dataFactory.blankNode())()),
|
|
1425
|
-
}).listResource.identifier
|
|
1426
|
-
: $RdfVocabularies.rdf.nil,
|
|
1427
|
-
]), parameters.graph);
|
|
1428
|
-
parameters.resource.add(NodeShape.schema.properties.pattern.path, parameters.object.pattern
|
|
1429
|
-
.toList()
|
|
1430
|
-
.flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
|
|
1431
|
-
parameters.resource.add(NodeShape.schema.properties.properties.path, parameters.object.properties.flatMap((item) => [item]), parameters.graph);
|
|
1432
|
-
parameters.resource.add(NodeShape.schema.properties.rdfType.path, parameters.object.rdfType.toList(), parameters.graph);
|
|
1433
|
-
parameters.resource.add(NodeShape.schema.properties.severity.path, parameters.object.severity.toList(), parameters.graph);
|
|
1434
|
-
parameters.resource.add(NodeShape.schema.properties.shaclmateName.path, parameters.object.shaclmateName
|
|
1435
|
-
.toList()
|
|
1436
|
-
.flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
|
|
1437
|
-
parameters.resource.add(NodeShape.schema.properties.subClassOf.path, parameters.object.subClassOf.flatMap((item) => [item]), parameters.graph);
|
|
1438
|
-
parameters.resource.add(NodeShape.schema.properties.targetClasses.path, parameters.object.targetClasses.flatMap((item) => [item]), parameters.graph);
|
|
1439
|
-
parameters.resource.add(NodeShape.schema.properties.targetNodes.path, parameters.object.targetNodes.flatMap((item) => [item]), parameters.graph);
|
|
1440
|
-
parameters.resource.add(NodeShape.schema.properties.targetObjectsOf.path, parameters.object.targetObjectsOf.flatMap((item) => [item]), parameters.graph);
|
|
1441
|
-
parameters.resource.add(NodeShape.schema.properties.targetSubjectsOf.path, parameters.object.targetSubjectsOf.flatMap((item) => [item]), parameters.graph);
|
|
1442
|
-
parameters.resource.add(NodeShape.schema.properties.toRdfTypes.path, parameters.object.toRdfTypes.flatMap((item) => [item]), parameters.graph);
|
|
1443
|
-
parameters.resource.add(NodeShape.schema.properties.tsImports.path, parameters.object.tsImports.flatMap((item) => [
|
|
1444
|
-
$literalFactory.string(item),
|
|
1445
|
-
]), parameters.graph);
|
|
1446
|
-
parameters.resource.add(NodeShape.schema.properties.types.path, parameters.object.types.flatMap((item) => [item]), parameters.graph);
|
|
1447
|
-
parameters.resource.add(NodeShape.schema.properties.xone.path, parameters.object.xone.toList().flatMap((value) => [
|
|
1448
|
-
value.length > 0
|
|
1449
|
-
? value.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
|
|
1450
|
-
if (itemIndex === 0) {
|
|
1451
|
-
currentSubListResource = listResource;
|
|
1452
|
-
}
|
|
1453
|
-
else {
|
|
1454
|
-
const newSubListResource = parameters.resourceSet.resource((() => dataFactory.blankNode())());
|
|
1455
|
-
currentSubListResource.add($RdfVocabularies.rdf.rest, newSubListResource.identifier, parameters.graph);
|
|
1456
|
-
currentSubListResource = newSubListResource;
|
|
1457
|
-
}
|
|
1458
|
-
currentSubListResource.add($RdfVocabularies.rdf.first, [item], parameters.graph);
|
|
1459
|
-
if (itemIndex + 1 === list.length) {
|
|
1460
|
-
currentSubListResource.add($RdfVocabularies.rdf.rest, $RdfVocabularies.rdf.nil, parameters.graph);
|
|
1461
|
-
}
|
|
1462
|
-
return { currentSubListResource, listResource };
|
|
1463
|
-
}, {
|
|
1464
|
-
currentSubListResource: null,
|
|
1465
|
-
listResource: parameters.resourceSet.resource((() => dataFactory.blankNode())()),
|
|
1466
|
-
}).listResource.identifier
|
|
1467
|
-
: $RdfVocabularies.rdf.nil,
|
|
1468
|
-
]), parameters.graph);
|
|
1469
|
-
return parameters.resource;
|
|
1470
|
-
};
|
|
1471
|
-
NodeShape.toRdfResource = $wrap_ToRdfResourceFunction(NodeShape._toRdfResource);
|
|
1472
|
-
NodeShape.$toString = (_nodeShape) => `NodeShape(${JSON.stringify(NodeShape.toStringRecord(_nodeShape))})`;
|
|
1473
|
-
NodeShape.toStringRecord = (_nodeShape) => $compactRecord({
|
|
1474
|
-
$identifier: _nodeShape.$identifier().toString(),
|
|
1475
|
-
label: _nodeShape.label.map((item) => item.toString()).extract(),
|
|
1476
|
-
shaclmateName: _nodeShape.shaclmateName
|
|
1477
|
-
.map((item) => item.toString())
|
|
1478
|
-
.extract(),
|
|
1479
|
-
});
|
|
1480
|
-
})(NodeShape || (NodeShape = {}));
|
|
1481
|
-
export var Ontology;
|
|
1482
|
-
(function (Ontology) {
|
|
1483
|
-
Ontology.create = (parameters) => $sequenceRecord({
|
|
1484
|
-
$identifier: $convertToIdentifierProperty(parameters?.$identifier),
|
|
1485
|
-
comment: $convertToMaybe($identityConversionFunction)(parameters?.comment).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.comment.type, value)),
|
|
1486
|
-
label: $convertToMaybe($identityConversionFunction)(parameters?.label).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.label.type, value)),
|
|
1487
|
-
})
|
|
1488
|
-
.map((properties) => ({ ...properties, $type: "Ontology" }))
|
|
1489
|
-
.map((object) => $monkeyPatchObject(object, { $toString: Ontology.$toString }));
|
|
1490
|
-
function createUnsafe(parameters) {
|
|
1491
|
-
return Ontology.create(parameters).unsafeCoerce();
|
|
1492
|
-
}
|
|
1493
|
-
Ontology.createUnsafe = createUnsafe;
|
|
1494
|
-
Ontology._fromRdfResource = ($resource, _$options) => (!_$options.ignoreRdfType
|
|
1495
|
-
? $ensureRdfResourceType($resource, [Ontology.schema.fromRdfType], {
|
|
1496
|
-
graph: _$options.graph,
|
|
1497
|
-
})
|
|
1498
|
-
: Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
|
|
1499
|
-
$identifier: $identifierFromRdfResourceValues(new Resource.Value({
|
|
1500
|
-
dataFactory: dataFactory,
|
|
1501
|
-
focusResource: $resource,
|
|
1502
|
-
propertyPath: $RdfVocabularies.rdf.subject,
|
|
1503
|
-
term: $resource.identifier,
|
|
1504
|
-
}).toValues(), {
|
|
1505
|
-
context: _$options.context,
|
|
1506
|
-
graph: _$options.graph,
|
|
1507
|
-
focusResource: $resource,
|
|
1508
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1509
|
-
propertyPath: $RdfVocabularies.rdf.subject,
|
|
1510
|
-
schema: Ontology.schema.properties.$identifier.type,
|
|
1511
|
-
}).chain((values) => values.head()),
|
|
1512
|
-
comment: $shaclPropertyFromRdf({
|
|
1513
|
-
context: _$options.context,
|
|
1514
|
-
graph: _$options.graph,
|
|
1515
|
-
focusResource: $resource,
|
|
1516
|
-
ignoreRdfType: true,
|
|
1517
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1518
|
-
propertySchema: NodeShape.schema.properties.comment,
|
|
1519
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1520
|
-
}),
|
|
1521
|
-
label: $shaclPropertyFromRdf({
|
|
1522
|
-
context: _$options.context,
|
|
1523
|
-
graph: _$options.graph,
|
|
1524
|
-
focusResource: $resource,
|
|
1525
|
-
ignoreRdfType: true,
|
|
1526
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1527
|
-
propertySchema: NodeShape.schema.properties.label,
|
|
1528
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1529
|
-
}),
|
|
1530
|
-
}).chain((properties) => Ontology.create(properties)));
|
|
1531
|
-
Ontology.fromRdfResource = $wrap_FromRdfResourceFunction(Ontology._fromRdfResource);
|
|
1532
|
-
Ontology.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
|
|
1533
|
-
.toResource()
|
|
1534
|
-
.chain((resource) => Ontology.fromRdfResource(resource, options)));
|
|
1535
|
-
let Identifier;
|
|
1536
|
-
(function (Identifier) {
|
|
1537
|
-
Identifier.parse = $parseIdentifier;
|
|
1538
|
-
Identifier.stringify = NTriplesTerm.stringify;
|
|
1539
|
-
})(Identifier = Ontology.Identifier || (Ontology.Identifier = {}));
|
|
1540
|
-
function isOntology(object) {
|
|
1541
|
-
return object.$type === "Ontology";
|
|
1542
|
-
}
|
|
1543
|
-
Ontology.isOntology = isOntology;
|
|
1544
|
-
Ontology.schema = {
|
|
1545
|
-
fromRdfType: dataFactory.namedNode("http://www.w3.org/2002/07/owl#Ontology"),
|
|
1546
|
-
properties: {
|
|
1547
|
-
$identifier: {
|
|
1548
|
-
kind: "Identifier",
|
|
1549
|
-
type: { kind: "Identifier" },
|
|
1550
|
-
},
|
|
1551
|
-
comment: {
|
|
1552
|
-
kind: "Shacl",
|
|
1553
|
-
path: dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#comment"),
|
|
1554
|
-
type: {
|
|
1555
|
-
kind: "Option",
|
|
1556
|
-
itemType: { kind: "String" },
|
|
1557
|
-
},
|
|
1558
|
-
},
|
|
1559
|
-
label: {
|
|
1560
|
-
kind: "Shacl",
|
|
1561
|
-
path: dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#label"),
|
|
1562
|
-
type: {
|
|
1563
|
-
kind: "Option",
|
|
1564
|
-
itemType: { kind: "String" },
|
|
1565
|
-
},
|
|
1566
|
-
},
|
|
1567
|
-
},
|
|
1568
|
-
};
|
|
1569
|
-
Ontology._toRdfResource = (parameters) => {
|
|
1570
|
-
if (!parameters.ignoreRdfType) {
|
|
1571
|
-
parameters.resource.add($RdfVocabularies.rdf.type, dataFactory.namedNode("http://www.w3.org/2002/07/owl#Ontology"), parameters.graph);
|
|
1572
|
-
}
|
|
1573
|
-
parameters.resource.add(NodeShape.schema.properties.comment.path, parameters.object.comment
|
|
1574
|
-
.toList()
|
|
1575
|
-
.flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
|
|
1576
|
-
parameters.resource.add(NodeShape.schema.properties.label.path, parameters.object.label
|
|
1577
|
-
.toList()
|
|
1578
|
-
.flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
|
|
1579
|
-
return parameters.resource;
|
|
1580
|
-
};
|
|
1581
|
-
Ontology.toRdfResource = $wrap_ToRdfResourceFunction(Ontology._toRdfResource);
|
|
1582
|
-
Ontology.$toString = (_ontology) => `Ontology(${JSON.stringify(Ontology.toStringRecord(_ontology))})`;
|
|
1583
|
-
Ontology.toStringRecord = (_ontology) => $compactRecord({
|
|
1584
|
-
$identifier: _ontology.$identifier().toString(),
|
|
1585
|
-
label: _ontology.label.map((item) => item.toString()).extract(),
|
|
1586
|
-
});
|
|
1587
|
-
})(Ontology || (Ontology = {}));
|
|
1588
|
-
export var PropertyGroup;
|
|
1589
|
-
(function (PropertyGroup) {
|
|
1590
|
-
PropertyGroup.create = (parameters) => $sequenceRecord({
|
|
1591
|
-
$identifier: $convertToIdentifierProperty(parameters?.$identifier),
|
|
1592
|
-
comment: $convertToMaybe($identityConversionFunction)(parameters?.comment).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.comment.type, value)),
|
|
1593
|
-
label: $convertToMaybe($identityConversionFunction)(parameters?.label).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.label.type, value)),
|
|
1594
|
-
})
|
|
1595
|
-
.map((properties) => ({ ...properties, $type: "PropertyGroup" }))
|
|
1596
|
-
.map((object) => $monkeyPatchObject(object, { $toString: PropertyGroup.$toString }));
|
|
1597
|
-
function createUnsafe(parameters) {
|
|
1598
|
-
return PropertyGroup.create(parameters).unsafeCoerce();
|
|
1599
|
-
}
|
|
1600
|
-
PropertyGroup.createUnsafe = createUnsafe;
|
|
1601
|
-
PropertyGroup._fromRdfResource = ($resource, _$options) => (!_$options.ignoreRdfType
|
|
1602
|
-
? $ensureRdfResourceType($resource, [PropertyGroup.schema.fromRdfType], {
|
|
1603
|
-
graph: _$options.graph,
|
|
1604
|
-
})
|
|
1605
|
-
: Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
|
|
1606
|
-
$identifier: $identifierFromRdfResourceValues(new Resource.Value({
|
|
1607
|
-
dataFactory: dataFactory,
|
|
1608
|
-
focusResource: $resource,
|
|
1609
|
-
propertyPath: $RdfVocabularies.rdf.subject,
|
|
1610
|
-
term: $resource.identifier,
|
|
1611
|
-
}).toValues(), {
|
|
1612
|
-
context: _$options.context,
|
|
1613
|
-
graph: _$options.graph,
|
|
1614
|
-
focusResource: $resource,
|
|
1615
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1616
|
-
propertyPath: $RdfVocabularies.rdf.subject,
|
|
1617
|
-
schema: PropertyGroup.schema.properties.$identifier.type,
|
|
1618
|
-
}).chain((values) => values.head()),
|
|
1619
|
-
comment: $shaclPropertyFromRdf({
|
|
1620
|
-
context: _$options.context,
|
|
1621
|
-
graph: _$options.graph,
|
|
1622
|
-
focusResource: $resource,
|
|
1623
|
-
ignoreRdfType: true,
|
|
1624
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1625
|
-
propertySchema: NodeShape.schema.properties.comment,
|
|
1626
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1627
|
-
}),
|
|
1628
|
-
label: $shaclPropertyFromRdf({
|
|
1629
|
-
context: _$options.context,
|
|
1630
|
-
graph: _$options.graph,
|
|
1631
|
-
focusResource: $resource,
|
|
1632
|
-
ignoreRdfType: true,
|
|
1633
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1634
|
-
propertySchema: NodeShape.schema.properties.label,
|
|
1635
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1636
|
-
}),
|
|
1637
|
-
}).chain((properties) => PropertyGroup.create(properties)));
|
|
1638
|
-
PropertyGroup.fromRdfResource = $wrap_FromRdfResourceFunction(PropertyGroup._fromRdfResource);
|
|
1639
|
-
PropertyGroup.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
|
|
1640
|
-
.toResource()
|
|
1641
|
-
.chain((resource) => PropertyGroup.fromRdfResource(resource, options)));
|
|
1642
|
-
let Identifier;
|
|
1643
|
-
(function (Identifier) {
|
|
1644
|
-
Identifier.parse = $parseIdentifier;
|
|
1645
|
-
Identifier.stringify = NTriplesTerm.stringify;
|
|
1646
|
-
})(Identifier = PropertyGroup.Identifier || (PropertyGroup.Identifier = {}));
|
|
1647
|
-
function isPropertyGroup(object) {
|
|
1648
|
-
return object.$type === "PropertyGroup";
|
|
1649
|
-
}
|
|
1650
|
-
PropertyGroup.isPropertyGroup = isPropertyGroup;
|
|
1651
|
-
PropertyGroup.schema = {
|
|
1652
|
-
fromRdfType: dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyGroup"),
|
|
1653
|
-
properties: {
|
|
1654
|
-
$identifier: {
|
|
1655
|
-
kind: "Identifier",
|
|
1656
|
-
type: { kind: "Identifier" },
|
|
1657
|
-
},
|
|
1658
|
-
comment: {
|
|
1659
|
-
kind: "Shacl",
|
|
1660
|
-
path: dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#comment"),
|
|
1661
|
-
type: {
|
|
1662
|
-
kind: "Option",
|
|
1663
|
-
itemType: { kind: "String" },
|
|
1664
|
-
},
|
|
1665
|
-
},
|
|
1666
|
-
label: {
|
|
1667
|
-
kind: "Shacl",
|
|
1668
|
-
path: dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#label"),
|
|
1669
|
-
type: {
|
|
1670
|
-
kind: "Option",
|
|
1671
|
-
itemType: { kind: "String" },
|
|
1672
|
-
},
|
|
1673
|
-
},
|
|
1674
|
-
},
|
|
1675
|
-
};
|
|
1676
|
-
PropertyGroup._toRdfResource = (parameters) => {
|
|
1677
|
-
if (!parameters.ignoreRdfType) {
|
|
1678
|
-
parameters.resource.add($RdfVocabularies.rdf.type, dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyGroup"), parameters.graph);
|
|
1679
|
-
}
|
|
1680
|
-
parameters.resource.add(NodeShape.schema.properties.comment.path, parameters.object.comment
|
|
1681
|
-
.toList()
|
|
1682
|
-
.flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
|
|
1683
|
-
parameters.resource.add(NodeShape.schema.properties.label.path, parameters.object.label
|
|
1684
|
-
.toList()
|
|
1685
|
-
.flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
|
|
1686
|
-
return parameters.resource;
|
|
1687
|
-
};
|
|
1688
|
-
PropertyGroup.toRdfResource = $wrap_ToRdfResourceFunction(PropertyGroup._toRdfResource);
|
|
1689
|
-
PropertyGroup.$toString = (_propertyGroup) => `PropertyGroup(${JSON.stringify(PropertyGroup.toStringRecord(_propertyGroup))})`;
|
|
1690
|
-
PropertyGroup.toStringRecord = (_propertyGroup) => $compactRecord({
|
|
1691
|
-
$identifier: _propertyGroup.$identifier().toString(),
|
|
1692
|
-
label: _propertyGroup.label.map((item) => item.toString()).extract(),
|
|
1693
|
-
});
|
|
1694
|
-
})(PropertyGroup || (PropertyGroup = {}));
|
|
1695
|
-
export var PropertyShape;
|
|
1696
|
-
(function (PropertyShape) {
|
|
1697
|
-
PropertyShape.create = (parameters) => $sequenceRecord({
|
|
1698
|
-
$identifier: $convertToIdentifierProperty(parameters.$identifier),
|
|
1699
|
-
and: $convertToMaybe($convertToList($convertToIdentifier, true))(parameters.and).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.and.type, value)),
|
|
1700
|
-
classes: $convertToScalarSet(($convertToIri), true)(parameters.classes).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.classes.type, value)),
|
|
1701
|
-
comment: $convertToMaybe($identityConversionFunction)(parameters.comment).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.comment.type, value)),
|
|
1702
|
-
datatype: $convertToMaybe(($convertToIri))(parameters.datatype).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.datatype.type, value)),
|
|
1703
|
-
deactivated: $convertToMaybe($identityConversionFunction)(parameters.deactivated).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.deactivated.type, value)),
|
|
1704
|
-
defaultValue: $convertToMaybe($identityConversionFunction)(parameters.defaultValue).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.defaultValue.type, value)),
|
|
1705
|
-
description: $convertToMaybe($identityConversionFunction)(parameters.description).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.description.type, value)),
|
|
1706
|
-
disjoint: $convertToScalarSet(($convertToIri), true)(parameters.disjoint).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.disjoint.type, value)),
|
|
1707
|
-
display: $convertWithDefaultValue($identityConversionFunction, false)(parameters.display),
|
|
1708
|
-
equals: $convertToScalarSet(($convertToIri), true)(parameters.equals).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.equals.type, value)),
|
|
1709
|
-
flags: $convertToMaybe($identityConversionFunction)(parameters.flags).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.flags.type, value)),
|
|
1710
|
-
groups: $convertToScalarSet($convertToIdentifier, true)(parameters.groups).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.groups.type, value)),
|
|
1711
|
-
hasValues: $convertToScalarSet($identityConversionFunction, true)(parameters.hasValues).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.hasValues.type, value)),
|
|
1712
|
-
ignore: $convertWithDefaultValue($identityConversionFunction, false)(parameters.ignore),
|
|
1713
|
-
in_: $convertToMaybe($convertToList($identityConversionFunction, true))(parameters.in_).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.in_.type, value)),
|
|
1714
|
-
isDefinedBy: $convertToMaybe($convertToIdentifier)(parameters.isDefinedBy).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.isDefinedBy.type, value)),
|
|
1715
|
-
label: $convertToMaybe($identityConversionFunction)(parameters.label).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.label.type, value)),
|
|
1716
|
-
languageIn: $convertToMaybe($convertToList($identityConversionFunction, true))(parameters.languageIn).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.languageIn.type, value)),
|
|
1717
|
-
lessThan: $convertToScalarSet(($convertToIri), true)(parameters.lessThan).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.lessThan.type, value)),
|
|
1718
|
-
lessThanOrEquals: $convertToScalarSet(($convertToIri), true)(parameters.lessThanOrEquals).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.lessThanOrEquals.type, value)),
|
|
1719
|
-
maxCount: $convertToMaybe($identityConversionFunction)(parameters.maxCount).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.maxCount.type, value)),
|
|
1720
|
-
maxExclusive: $convertToMaybe($convertToLiteral)(parameters.maxExclusive).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxExclusive.type, value)),
|
|
1721
|
-
maxInclusive: $convertToMaybe($convertToLiteral)(parameters.maxInclusive).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxInclusive.type, value)),
|
|
1722
|
-
maxLength: $convertToMaybe($identityConversionFunction)(parameters.maxLength).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxLength.type, value)),
|
|
1723
|
-
message: $convertToMaybe($identityConversionFunction)(parameters.message).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.message.type, value)),
|
|
1724
|
-
minCount: $convertToMaybe($identityConversionFunction)(parameters.minCount).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.minCount.type, value)),
|
|
1725
|
-
minExclusive: $convertToMaybe($convertToLiteral)(parameters.minExclusive).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minExclusive.type, value)),
|
|
1726
|
-
minInclusive: $convertToMaybe($convertToLiteral)(parameters.minInclusive).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minInclusive.type, value)),
|
|
1727
|
-
minLength: $convertToMaybe($identityConversionFunction)(parameters.minLength).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minLength.type, value)),
|
|
1728
|
-
mutable: $convertToMaybe($identityConversionFunction)(parameters.mutable).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.mutable.type, value)),
|
|
1729
|
-
name: $convertToMaybe($identityConversionFunction)(parameters.name).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.name.type, value)),
|
|
1730
|
-
node: $convertToMaybe($convertToIdentifier)(parameters.node).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.node.type, value)),
|
|
1731
|
-
nodeKind: $convertToMaybe(($convertToIri))(parameters.nodeKind).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.nodeKind.type, value)),
|
|
1732
|
-
not: $convertToScalarSet($convertToIdentifier, true)(parameters.not).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.not.type, value)),
|
|
1733
|
-
or: $convertToMaybe($convertToList($convertToIdentifier, true))(parameters.or).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.or.type, value)),
|
|
1734
|
-
order: $convertToMaybe($identityConversionFunction)(parameters.order).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.order.type, value)),
|
|
1735
|
-
path: Either.of(parameters.path),
|
|
1736
|
-
pattern: $convertToMaybe($identityConversionFunction)(parameters.pattern).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.pattern.type, value)),
|
|
1737
|
-
qualifiedMaxCount: $convertToMaybe($identityConversionFunction)(parameters.qualifiedMaxCount).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.qualifiedMaxCount.type, value)),
|
|
1738
|
-
qualifiedMinCount: $convertToMaybe($identityConversionFunction)(parameters.qualifiedMinCount).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.qualifiedMinCount.type, value)),
|
|
1739
|
-
qualifiedValueShape: $convertToMaybe($convertToIdentifier)(parameters.qualifiedValueShape).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.qualifiedValueShape.type, value)),
|
|
1740
|
-
qualifiedValueShapesDisjoint: $convertToMaybe($identityConversionFunction)(parameters.qualifiedValueShapesDisjoint).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.qualifiedValueShapesDisjoint.type, value)),
|
|
1741
|
-
resolve: $convertToMaybe($convertToIdentifier)(parameters.resolve).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.resolve.type, value)),
|
|
1742
|
-
severity: $convertToMaybe(($convertToIri))(parameters.severity).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.severity.type, value)),
|
|
1743
|
-
shaclmateName: $convertToMaybe($identityConversionFunction)(parameters.shaclmateName).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.shaclmateName.type, value)),
|
|
1744
|
-
targetClasses: $convertToScalarSet(($convertToIri), true)(parameters.targetClasses).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.targetClasses.type, value)),
|
|
1745
|
-
targetNodes: $convertToScalarSet($identityConversionFunction, true)(parameters.targetNodes).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.targetNodes.type, value)),
|
|
1746
|
-
targetObjectsOf: $convertToScalarSet(($convertToIri), true)(parameters.targetObjectsOf).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.targetObjectsOf.type, value)),
|
|
1747
|
-
targetSubjectsOf: $convertToScalarSet(($convertToIri), true)(parameters.targetSubjectsOf).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.targetSubjectsOf.type, value)),
|
|
1748
|
-
uniqueLang: $convertToMaybe($identityConversionFunction)(parameters.uniqueLang).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.uniqueLang.type, value)),
|
|
1749
|
-
xone: $convertToMaybe($convertToList($convertToIdentifier, true))(parameters.xone).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.xone.type, value)),
|
|
1750
|
-
})
|
|
1751
|
-
.map((properties) => ({ ...properties, $type: "PropertyShape" }))
|
|
1752
|
-
.map((object) => $monkeyPatchObject(object, { $toString: PropertyShape.$toString }));
|
|
1753
|
-
function createUnsafe(parameters) {
|
|
1754
|
-
return PropertyShape.create(parameters).unsafeCoerce();
|
|
1755
|
-
}
|
|
1756
|
-
PropertyShape.createUnsafe = createUnsafe;
|
|
1757
|
-
PropertyShape._fromRdfResource = ($resource, _$options) => (!_$options.ignoreRdfType
|
|
1758
|
-
? $ensureRdfResourceType($resource, [PropertyShape.schema.fromRdfType], {
|
|
1759
|
-
graph: _$options.graph,
|
|
1760
|
-
})
|
|
1761
|
-
: Right(true)).chain((_rdfTypeCheck) => $sequenceRecord({
|
|
1762
|
-
$identifier: $identifierFromRdfResourceValues(new Resource.Value({
|
|
1763
|
-
dataFactory: dataFactory,
|
|
1764
|
-
focusResource: $resource,
|
|
1765
|
-
propertyPath: $RdfVocabularies.rdf.subject,
|
|
1766
|
-
term: $resource.identifier,
|
|
1767
|
-
}).toValues(), {
|
|
1768
|
-
context: _$options.context,
|
|
1769
|
-
graph: _$options.graph,
|
|
1770
|
-
focusResource: $resource,
|
|
1771
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1772
|
-
propertyPath: $RdfVocabularies.rdf.subject,
|
|
1773
|
-
schema: PropertyShape.schema.properties.$identifier.type,
|
|
1774
|
-
}).chain((values) => values.head()),
|
|
1775
|
-
and: $shaclPropertyFromRdf({
|
|
1776
|
-
context: _$options.context,
|
|
1777
|
-
graph: _$options.graph,
|
|
1778
|
-
focusResource: $resource,
|
|
1779
|
-
ignoreRdfType: true,
|
|
1780
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1781
|
-
propertySchema: NodeShape.schema.properties.and,
|
|
1782
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues($identifierFromRdfResourceValues)),
|
|
1783
|
-
}),
|
|
1784
|
-
classes: $shaclPropertyFromRdf({
|
|
1785
|
-
context: _$options.context,
|
|
1786
|
-
graph: _$options.graph,
|
|
1787
|
-
focusResource: $resource,
|
|
1788
|
-
ignoreRdfType: true,
|
|
1789
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1790
|
-
propertySchema: NodeShape.schema.properties.classes,
|
|
1791
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1792
|
-
}),
|
|
1793
|
-
comment: $shaclPropertyFromRdf({
|
|
1794
|
-
context: _$options.context,
|
|
1795
|
-
graph: _$options.graph,
|
|
1796
|
-
focusResource: $resource,
|
|
1797
|
-
ignoreRdfType: true,
|
|
1798
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1799
|
-
propertySchema: NodeShape.schema.properties.comment,
|
|
1800
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1801
|
-
}),
|
|
1802
|
-
datatype: $shaclPropertyFromRdf({
|
|
1803
|
-
context: _$options.context,
|
|
1804
|
-
graph: _$options.graph,
|
|
1805
|
-
focusResource: $resource,
|
|
1806
|
-
ignoreRdfType: true,
|
|
1807
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1808
|
-
propertySchema: NodeShape.schema.properties.datatype,
|
|
1809
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1810
|
-
}),
|
|
1811
|
-
deactivated: $shaclPropertyFromRdf({
|
|
1812
|
-
context: _$options.context,
|
|
1813
|
-
graph: _$options.graph,
|
|
1814
|
-
focusResource: $resource,
|
|
1815
|
-
ignoreRdfType: true,
|
|
1816
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1817
|
-
propertySchema: NodeShape.schema.properties.deactivated,
|
|
1818
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($booleanFromRdfResourceValues)),
|
|
1819
|
-
}),
|
|
1820
|
-
defaultValue: $shaclPropertyFromRdf({
|
|
1821
|
-
context: _$options.context,
|
|
1822
|
-
graph: _$options.graph,
|
|
1823
|
-
focusResource: $resource,
|
|
1824
|
-
ignoreRdfType: true,
|
|
1825
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1826
|
-
propertySchema: PropertyShape.schema.properties.defaultValue,
|
|
1827
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($termFromRdfResourceValues)),
|
|
1828
|
-
}),
|
|
1829
|
-
description: $shaclPropertyFromRdf({
|
|
1830
|
-
context: _$options.context,
|
|
1831
|
-
graph: _$options.graph,
|
|
1832
|
-
focusResource: $resource,
|
|
1833
|
-
ignoreRdfType: true,
|
|
1834
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1835
|
-
propertySchema: PropertyShape.schema.properties.description,
|
|
1836
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1837
|
-
}),
|
|
1838
|
-
disjoint: $shaclPropertyFromRdf({
|
|
1839
|
-
context: _$options.context,
|
|
1840
|
-
graph: _$options.graph,
|
|
1841
|
-
focusResource: $resource,
|
|
1842
|
-
ignoreRdfType: true,
|
|
1843
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1844
|
-
propertySchema: PropertyShape.schema.properties.disjoint,
|
|
1845
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1846
|
-
}),
|
|
1847
|
-
display: $shaclPropertyFromRdf({
|
|
1848
|
-
context: _$options.context,
|
|
1849
|
-
graph: _$options.graph,
|
|
1850
|
-
focusResource: $resource,
|
|
1851
|
-
ignoreRdfType: true,
|
|
1852
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1853
|
-
propertySchema: PropertyShape.schema.properties.display,
|
|
1854
|
-
typeFromRdfResourceValues: $defaultValueFromRdfResourceValues(($booleanFromRdfResourceValues)),
|
|
1855
|
-
}),
|
|
1856
|
-
equals: $shaclPropertyFromRdf({
|
|
1857
|
-
context: _$options.context,
|
|
1858
|
-
graph: _$options.graph,
|
|
1859
|
-
focusResource: $resource,
|
|
1860
|
-
ignoreRdfType: true,
|
|
1861
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1862
|
-
propertySchema: PropertyShape.schema.properties.equals,
|
|
1863
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1864
|
-
}),
|
|
1865
|
-
flags: $shaclPropertyFromRdf({
|
|
1866
|
-
context: _$options.context,
|
|
1867
|
-
graph: _$options.graph,
|
|
1868
|
-
focusResource: $resource,
|
|
1869
|
-
ignoreRdfType: true,
|
|
1870
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1871
|
-
propertySchema: NodeShape.schema.properties.flags,
|
|
1872
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1873
|
-
}),
|
|
1874
|
-
groups: $shaclPropertyFromRdf({
|
|
1875
|
-
context: _$options.context,
|
|
1876
|
-
graph: _$options.graph,
|
|
1877
|
-
focusResource: $resource,
|
|
1878
|
-
ignoreRdfType: true,
|
|
1879
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1880
|
-
propertySchema: PropertyShape.schema.properties.groups,
|
|
1881
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
1882
|
-
}),
|
|
1883
|
-
hasValues: $shaclPropertyFromRdf({
|
|
1884
|
-
context: _$options.context,
|
|
1885
|
-
graph: _$options.graph,
|
|
1886
|
-
focusResource: $resource,
|
|
1887
|
-
ignoreRdfType: true,
|
|
1888
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1889
|
-
propertySchema: NodeShape.schema.properties.hasValues,
|
|
1890
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues(($termFromRdfResourceValues)),
|
|
1891
|
-
}),
|
|
1892
|
-
ignore: $shaclPropertyFromRdf({
|
|
1893
|
-
context: _$options.context,
|
|
1894
|
-
graph: _$options.graph,
|
|
1895
|
-
focusResource: $resource,
|
|
1896
|
-
ignoreRdfType: true,
|
|
1897
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1898
|
-
propertySchema: NodeShape.schema.properties.ignore,
|
|
1899
|
-
typeFromRdfResourceValues: $defaultValueFromRdfResourceValues(($booleanFromRdfResourceValues)),
|
|
1900
|
-
}),
|
|
1901
|
-
in_: $shaclPropertyFromRdf({
|
|
1902
|
-
context: _$options.context,
|
|
1903
|
-
graph: _$options.graph,
|
|
1904
|
-
focusResource: $resource,
|
|
1905
|
-
ignoreRdfType: true,
|
|
1906
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1907
|
-
propertySchema: NodeShape.schema.properties.in_,
|
|
1908
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues(($termFromRdfResourceValues))),
|
|
1909
|
-
}),
|
|
1910
|
-
isDefinedBy: $shaclPropertyFromRdf({
|
|
1911
|
-
context: _$options.context,
|
|
1912
|
-
graph: _$options.graph,
|
|
1913
|
-
focusResource: $resource,
|
|
1914
|
-
ignoreRdfType: true,
|
|
1915
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1916
|
-
propertySchema: NodeShape.schema.properties.isDefinedBy,
|
|
1917
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
1918
|
-
}),
|
|
1919
|
-
label: $shaclPropertyFromRdf({
|
|
1920
|
-
context: _$options.context,
|
|
1921
|
-
graph: _$options.graph,
|
|
1922
|
-
focusResource: $resource,
|
|
1923
|
-
ignoreRdfType: true,
|
|
1924
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1925
|
-
propertySchema: NodeShape.schema.properties.label,
|
|
1926
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1927
|
-
}),
|
|
1928
|
-
languageIn: $shaclPropertyFromRdf({
|
|
1929
|
-
context: _$options.context,
|
|
1930
|
-
graph: _$options.graph,
|
|
1931
|
-
focusResource: $resource,
|
|
1932
|
-
ignoreRdfType: true,
|
|
1933
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1934
|
-
propertySchema: NodeShape.schema.properties.languageIn,
|
|
1935
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues(($stringFromRdfResourceValues))),
|
|
1936
|
-
}),
|
|
1937
|
-
lessThan: $shaclPropertyFromRdf({
|
|
1938
|
-
context: _$options.context,
|
|
1939
|
-
graph: _$options.graph,
|
|
1940
|
-
focusResource: $resource,
|
|
1941
|
-
ignoreRdfType: true,
|
|
1942
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1943
|
-
propertySchema: PropertyShape.schema.properties.lessThan,
|
|
1944
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1945
|
-
}),
|
|
1946
|
-
lessThanOrEquals: $shaclPropertyFromRdf({
|
|
1947
|
-
context: _$options.context,
|
|
1948
|
-
graph: _$options.graph,
|
|
1949
|
-
focusResource: $resource,
|
|
1950
|
-
ignoreRdfType: true,
|
|
1951
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1952
|
-
propertySchema: PropertyShape.schema.properties.lessThanOrEquals,
|
|
1953
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
1954
|
-
}),
|
|
1955
|
-
maxCount: $shaclPropertyFromRdf({
|
|
1956
|
-
context: _$options.context,
|
|
1957
|
-
graph: _$options.graph,
|
|
1958
|
-
focusResource: $resource,
|
|
1959
|
-
ignoreRdfType: true,
|
|
1960
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1961
|
-
propertySchema: PropertyShape.schema.properties.maxCount,
|
|
1962
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($bigIntFromRdfResourceValues)),
|
|
1963
|
-
}),
|
|
1964
|
-
maxExclusive: $shaclPropertyFromRdf({
|
|
1965
|
-
context: _$options.context,
|
|
1966
|
-
graph: _$options.graph,
|
|
1967
|
-
focusResource: $resource,
|
|
1968
|
-
ignoreRdfType: true,
|
|
1969
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1970
|
-
propertySchema: NodeShape.schema.properties.maxExclusive,
|
|
1971
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($literalFromRdfResourceValues),
|
|
1972
|
-
}),
|
|
1973
|
-
maxInclusive: $shaclPropertyFromRdf({
|
|
1974
|
-
context: _$options.context,
|
|
1975
|
-
graph: _$options.graph,
|
|
1976
|
-
focusResource: $resource,
|
|
1977
|
-
ignoreRdfType: true,
|
|
1978
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1979
|
-
propertySchema: NodeShape.schema.properties.maxInclusive,
|
|
1980
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($literalFromRdfResourceValues),
|
|
1981
|
-
}),
|
|
1982
|
-
maxLength: $shaclPropertyFromRdf({
|
|
1983
|
-
context: _$options.context,
|
|
1984
|
-
graph: _$options.graph,
|
|
1985
|
-
focusResource: $resource,
|
|
1986
|
-
ignoreRdfType: true,
|
|
1987
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1988
|
-
propertySchema: NodeShape.schema.properties.maxLength,
|
|
1989
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($bigIntFromRdfResourceValues)),
|
|
1990
|
-
}),
|
|
1991
|
-
message: $shaclPropertyFromRdf({
|
|
1992
|
-
context: _$options.context,
|
|
1993
|
-
graph: _$options.graph,
|
|
1994
|
-
focusResource: $resource,
|
|
1995
|
-
ignoreRdfType: true,
|
|
1996
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
1997
|
-
propertySchema: NodeShape.schema.properties.message,
|
|
1998
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
1999
|
-
}),
|
|
2000
|
-
minCount: $shaclPropertyFromRdf({
|
|
2001
|
-
context: _$options.context,
|
|
2002
|
-
graph: _$options.graph,
|
|
2003
|
-
focusResource: $resource,
|
|
2004
|
-
ignoreRdfType: true,
|
|
2005
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2006
|
-
propertySchema: PropertyShape.schema.properties.minCount,
|
|
2007
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($bigIntFromRdfResourceValues)),
|
|
2008
|
-
}),
|
|
2009
|
-
minExclusive: $shaclPropertyFromRdf({
|
|
2010
|
-
context: _$options.context,
|
|
2011
|
-
graph: _$options.graph,
|
|
2012
|
-
focusResource: $resource,
|
|
2013
|
-
ignoreRdfType: true,
|
|
2014
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2015
|
-
propertySchema: NodeShape.schema.properties.minExclusive,
|
|
2016
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($literalFromRdfResourceValues),
|
|
2017
|
-
}),
|
|
2018
|
-
minInclusive: $shaclPropertyFromRdf({
|
|
2019
|
-
context: _$options.context,
|
|
2020
|
-
graph: _$options.graph,
|
|
2021
|
-
focusResource: $resource,
|
|
2022
|
-
ignoreRdfType: true,
|
|
2023
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2024
|
-
propertySchema: NodeShape.schema.properties.minInclusive,
|
|
2025
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($literalFromRdfResourceValues),
|
|
2026
|
-
}),
|
|
2027
|
-
minLength: $shaclPropertyFromRdf({
|
|
2028
|
-
context: _$options.context,
|
|
2029
|
-
graph: _$options.graph,
|
|
2030
|
-
focusResource: $resource,
|
|
2031
|
-
ignoreRdfType: true,
|
|
2032
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2033
|
-
propertySchema: NodeShape.schema.properties.minLength,
|
|
2034
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($bigIntFromRdfResourceValues)),
|
|
2035
|
-
}),
|
|
2036
|
-
mutable: $shaclPropertyFromRdf({
|
|
2037
|
-
context: _$options.context,
|
|
2038
|
-
graph: _$options.graph,
|
|
2039
|
-
focusResource: $resource,
|
|
2040
|
-
ignoreRdfType: true,
|
|
2041
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2042
|
-
propertySchema: NodeShape.schema.properties.mutable,
|
|
2043
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($booleanFromRdfResourceValues)),
|
|
2044
|
-
}),
|
|
2045
|
-
name: $shaclPropertyFromRdf({
|
|
2046
|
-
context: _$options.context,
|
|
2047
|
-
graph: _$options.graph,
|
|
2048
|
-
focusResource: $resource,
|
|
2049
|
-
ignoreRdfType: true,
|
|
2050
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2051
|
-
propertySchema: PropertyShape.schema.properties.name,
|
|
2052
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
2053
|
-
}),
|
|
2054
|
-
node: $shaclPropertyFromRdf({
|
|
2055
|
-
context: _$options.context,
|
|
2056
|
-
graph: _$options.graph,
|
|
2057
|
-
focusResource: $resource,
|
|
2058
|
-
ignoreRdfType: true,
|
|
2059
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2060
|
-
propertySchema: NodeShape.schema.properties.node,
|
|
2061
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
2062
|
-
}),
|
|
2063
|
-
nodeKind: $shaclPropertyFromRdf({
|
|
2064
|
-
context: _$options.context,
|
|
2065
|
-
graph: _$options.graph,
|
|
2066
|
-
focusResource: $resource,
|
|
2067
|
-
ignoreRdfType: true,
|
|
2068
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2069
|
-
propertySchema: NodeShape.schema.properties.nodeKind,
|
|
2070
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
2071
|
-
}),
|
|
2072
|
-
not: $shaclPropertyFromRdf({
|
|
2073
|
-
context: _$options.context,
|
|
2074
|
-
graph: _$options.graph,
|
|
2075
|
-
focusResource: $resource,
|
|
2076
|
-
ignoreRdfType: true,
|
|
2077
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2078
|
-
propertySchema: NodeShape.schema.properties.not,
|
|
2079
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
2080
|
-
}),
|
|
2081
|
-
or: $shaclPropertyFromRdf({
|
|
2082
|
-
context: _$options.context,
|
|
2083
|
-
graph: _$options.graph,
|
|
2084
|
-
focusResource: $resource,
|
|
2085
|
-
ignoreRdfType: true,
|
|
2086
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2087
|
-
propertySchema: NodeShape.schema.properties.or,
|
|
2088
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues($identifierFromRdfResourceValues)),
|
|
2089
|
-
}),
|
|
2090
|
-
order: $shaclPropertyFromRdf({
|
|
2091
|
-
context: _$options.context,
|
|
2092
|
-
graph: _$options.graph,
|
|
2093
|
-
focusResource: $resource,
|
|
2094
|
-
ignoreRdfType: true,
|
|
2095
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2096
|
-
propertySchema: PropertyShape.schema.properties.order,
|
|
2097
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($floatFromRdfResourceValues)),
|
|
2098
|
-
}),
|
|
2099
|
-
path: $shaclPropertyFromRdf({
|
|
2100
|
-
context: _$options.context,
|
|
2101
|
-
graph: _$options.graph,
|
|
2102
|
-
focusResource: $resource,
|
|
2103
|
-
ignoreRdfType: true,
|
|
2104
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2105
|
-
propertySchema: PropertyShape.schema.properties.path,
|
|
2106
|
-
typeFromRdfResourceValues: $PropertyPath.fromRdfResourceValues,
|
|
2107
|
-
}),
|
|
2108
|
-
pattern: $shaclPropertyFromRdf({
|
|
2109
|
-
context: _$options.context,
|
|
2110
|
-
graph: _$options.graph,
|
|
2111
|
-
focusResource: $resource,
|
|
2112
|
-
ignoreRdfType: true,
|
|
2113
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2114
|
-
propertySchema: NodeShape.schema.properties.pattern,
|
|
2115
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
2116
|
-
}),
|
|
2117
|
-
qualifiedMaxCount: $shaclPropertyFromRdf({
|
|
2118
|
-
context: _$options.context,
|
|
2119
|
-
graph: _$options.graph,
|
|
2120
|
-
focusResource: $resource,
|
|
2121
|
-
ignoreRdfType: true,
|
|
2122
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2123
|
-
propertySchema: PropertyShape.schema.properties.qualifiedMaxCount,
|
|
2124
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($bigIntFromRdfResourceValues)),
|
|
2125
|
-
}),
|
|
2126
|
-
qualifiedMinCount: $shaclPropertyFromRdf({
|
|
2127
|
-
context: _$options.context,
|
|
2128
|
-
graph: _$options.graph,
|
|
2129
|
-
focusResource: $resource,
|
|
2130
|
-
ignoreRdfType: true,
|
|
2131
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2132
|
-
propertySchema: PropertyShape.schema.properties.qualifiedMinCount,
|
|
2133
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($bigIntFromRdfResourceValues)),
|
|
2134
|
-
}),
|
|
2135
|
-
qualifiedValueShape: $shaclPropertyFromRdf({
|
|
2136
|
-
context: _$options.context,
|
|
2137
|
-
graph: _$options.graph,
|
|
2138
|
-
focusResource: $resource,
|
|
2139
|
-
ignoreRdfType: true,
|
|
2140
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2141
|
-
propertySchema: PropertyShape.schema.properties.qualifiedValueShape,
|
|
2142
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
2143
|
-
}),
|
|
2144
|
-
qualifiedValueShapesDisjoint: $shaclPropertyFromRdf({
|
|
2145
|
-
context: _$options.context,
|
|
2146
|
-
graph: _$options.graph,
|
|
2147
|
-
focusResource: $resource,
|
|
2148
|
-
ignoreRdfType: true,
|
|
2149
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2150
|
-
propertySchema: PropertyShape.schema.properties.qualifiedValueShapesDisjoint,
|
|
2151
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($booleanFromRdfResourceValues)),
|
|
2152
|
-
}),
|
|
2153
|
-
resolve: $shaclPropertyFromRdf({
|
|
2154
|
-
context: _$options.context,
|
|
2155
|
-
graph: _$options.graph,
|
|
2156
|
-
focusResource: $resource,
|
|
2157
|
-
ignoreRdfType: true,
|
|
2158
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2159
|
-
propertySchema: PropertyShape.schema.properties.resolve,
|
|
2160
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($identifierFromRdfResourceValues),
|
|
2161
|
-
}),
|
|
2162
|
-
severity: $shaclPropertyFromRdf({
|
|
2163
|
-
context: _$options.context,
|
|
2164
|
-
graph: _$options.graph,
|
|
2165
|
-
focusResource: $resource,
|
|
2166
|
-
ignoreRdfType: true,
|
|
2167
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2168
|
-
propertySchema: NodeShape.schema.properties.severity,
|
|
2169
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
2170
|
-
}),
|
|
2171
|
-
shaclmateName: $shaclPropertyFromRdf({
|
|
2172
|
-
context: _$options.context,
|
|
2173
|
-
graph: _$options.graph,
|
|
2174
|
-
focusResource: $resource,
|
|
2175
|
-
ignoreRdfType: true,
|
|
2176
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2177
|
-
propertySchema: NodeShape.schema.properties.shaclmateName,
|
|
2178
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($stringFromRdfResourceValues)),
|
|
2179
|
-
}),
|
|
2180
|
-
targetClasses: $shaclPropertyFromRdf({
|
|
2181
|
-
context: _$options.context,
|
|
2182
|
-
graph: _$options.graph,
|
|
2183
|
-
focusResource: $resource,
|
|
2184
|
-
ignoreRdfType: true,
|
|
2185
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2186
|
-
propertySchema: NodeShape.schema.properties.targetClasses,
|
|
2187
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
2188
|
-
}),
|
|
2189
|
-
targetNodes: $shaclPropertyFromRdf({
|
|
2190
|
-
context: _$options.context,
|
|
2191
|
-
graph: _$options.graph,
|
|
2192
|
-
focusResource: $resource,
|
|
2193
|
-
ignoreRdfType: true,
|
|
2194
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2195
|
-
propertySchema: NodeShape.schema.properties.targetNodes,
|
|
2196
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues(($termFromRdfResourceValues)),
|
|
2197
|
-
}),
|
|
2198
|
-
targetObjectsOf: $shaclPropertyFromRdf({
|
|
2199
|
-
context: _$options.context,
|
|
2200
|
-
graph: _$options.graph,
|
|
2201
|
-
focusResource: $resource,
|
|
2202
|
-
ignoreRdfType: true,
|
|
2203
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2204
|
-
propertySchema: NodeShape.schema.properties.targetObjectsOf,
|
|
2205
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
2206
|
-
}),
|
|
2207
|
-
targetSubjectsOf: $shaclPropertyFromRdf({
|
|
2208
|
-
context: _$options.context,
|
|
2209
|
-
graph: _$options.graph,
|
|
2210
|
-
focusResource: $resource,
|
|
2211
|
-
ignoreRdfType: true,
|
|
2212
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2213
|
-
propertySchema: NodeShape.schema.properties.targetSubjectsOf,
|
|
2214
|
-
typeFromRdfResourceValues: $setFromRdfResourceValues(($iriFromRdfResourceValues)),
|
|
2215
|
-
}),
|
|
2216
|
-
uniqueLang: $shaclPropertyFromRdf({
|
|
2217
|
-
context: _$options.context,
|
|
2218
|
-
graph: _$options.graph,
|
|
2219
|
-
focusResource: $resource,
|
|
2220
|
-
ignoreRdfType: true,
|
|
2221
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2222
|
-
propertySchema: PropertyShape.schema.properties.uniqueLang,
|
|
2223
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues(($booleanFromRdfResourceValues)),
|
|
2224
|
-
}),
|
|
2225
|
-
xone: $shaclPropertyFromRdf({
|
|
2226
|
-
context: _$options.context,
|
|
2227
|
-
graph: _$options.graph,
|
|
2228
|
-
focusResource: $resource,
|
|
2229
|
-
ignoreRdfType: true,
|
|
2230
|
-
preferredLanguages: _$options.preferredLanguages,
|
|
2231
|
-
propertySchema: NodeShape.schema.properties.xone,
|
|
2232
|
-
typeFromRdfResourceValues: $maybeFromRdfResourceValues($listFromRdfResourceValues($identifierFromRdfResourceValues)),
|
|
2233
|
-
}),
|
|
2234
|
-
}).chain((properties) => PropertyShape.create(properties)));
|
|
2235
|
-
PropertyShape.fromRdfResource = $wrap_FromRdfResourceFunction(PropertyShape._fromRdfResource);
|
|
2236
|
-
PropertyShape.fromRdfResourceValues = (values, options) => values.chainMap((value) => value
|
|
2237
|
-
.toResource()
|
|
2238
|
-
.chain((resource) => PropertyShape.fromRdfResource(resource, options)));
|
|
2239
|
-
let Identifier;
|
|
2240
|
-
(function (Identifier) {
|
|
2241
|
-
Identifier.parse = $parseIdentifier;
|
|
2242
|
-
Identifier.stringify = NTriplesTerm.stringify;
|
|
2243
|
-
})(Identifier = PropertyShape.Identifier || (PropertyShape.Identifier = {}));
|
|
2244
|
-
function isPropertyShape(object) {
|
|
2245
|
-
return object.$type === "PropertyShape";
|
|
2246
|
-
}
|
|
2247
|
-
PropertyShape.isPropertyShape = isPropertyShape;
|
|
2248
|
-
PropertyShape.schema = {
|
|
2249
|
-
fromRdfType: dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyShape"),
|
|
2250
|
-
properties: {
|
|
2251
|
-
$identifier: {
|
|
2252
|
-
kind: "Identifier",
|
|
2253
|
-
type: { kind: "Identifier" },
|
|
2254
|
-
},
|
|
2255
|
-
and: {
|
|
2256
|
-
kind: "Shacl",
|
|
2257
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#and"),
|
|
2258
|
-
type: {
|
|
2259
|
-
kind: "Option",
|
|
2260
|
-
itemType: {
|
|
2261
|
-
kind: "List",
|
|
2262
|
-
itemType: { kind: "Identifier" },
|
|
2263
|
-
},
|
|
2264
|
-
},
|
|
2265
|
-
},
|
|
2266
|
-
classes: {
|
|
2267
|
-
kind: "Shacl",
|
|
2268
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#class"),
|
|
2269
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
2270
|
-
},
|
|
2271
|
-
comment: {
|
|
2272
|
-
kind: "Shacl",
|
|
2273
|
-
path: dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#comment"),
|
|
2274
|
-
type: {
|
|
2275
|
-
kind: "Option",
|
|
2276
|
-
itemType: { kind: "String" },
|
|
2277
|
-
},
|
|
2278
|
-
},
|
|
2279
|
-
datatype: {
|
|
2280
|
-
kind: "Shacl",
|
|
2281
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#datatype"),
|
|
2282
|
-
type: { kind: "Option", itemType: { kind: "Iri" } },
|
|
2283
|
-
},
|
|
2284
|
-
deactivated: {
|
|
2285
|
-
kind: "Shacl",
|
|
2286
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#deactivated"),
|
|
2287
|
-
type: {
|
|
2288
|
-
kind: "Option",
|
|
2289
|
-
itemType: { kind: "Boolean" },
|
|
2290
|
-
},
|
|
2291
|
-
},
|
|
2292
|
-
defaultValue: {
|
|
2293
|
-
kind: "Shacl",
|
|
2294
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#defaultValue"),
|
|
2295
|
-
type: {
|
|
2296
|
-
kind: "Option",
|
|
2297
|
-
itemType: { kind: "Term", types: ["NamedNode", "Literal"] },
|
|
2298
|
-
},
|
|
2299
|
-
},
|
|
2300
|
-
description: {
|
|
2301
|
-
kind: "Shacl",
|
|
2302
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#description"),
|
|
2303
|
-
type: {
|
|
2304
|
-
kind: "Option",
|
|
2305
|
-
itemType: { kind: "String" },
|
|
2306
|
-
},
|
|
2307
|
-
},
|
|
2308
|
-
disjoint: {
|
|
2309
|
-
kind: "Shacl",
|
|
2310
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#disjoint"),
|
|
2311
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
2312
|
-
},
|
|
2313
|
-
display: {
|
|
2314
|
-
kind: "Shacl",
|
|
2315
|
-
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#display"),
|
|
2316
|
-
type: {
|
|
2317
|
-
kind: "DefaultValue",
|
|
2318
|
-
itemType: { kind: "Boolean" },
|
|
2319
|
-
defaultValue: dataFactory.literal("false", $RdfVocabularies.xsd.boolean),
|
|
2320
|
-
},
|
|
2321
|
-
},
|
|
2322
|
-
equals: {
|
|
2323
|
-
kind: "Shacl",
|
|
2324
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#equals"),
|
|
2325
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
2326
|
-
},
|
|
2327
|
-
flags: {
|
|
2328
|
-
kind: "Shacl",
|
|
2329
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#flags"),
|
|
2330
|
-
type: {
|
|
2331
|
-
kind: "Option",
|
|
2332
|
-
itemType: { kind: "String" },
|
|
2333
|
-
},
|
|
2334
|
-
},
|
|
2335
|
-
groups: {
|
|
2336
|
-
kind: "Shacl",
|
|
2337
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#group"),
|
|
2338
|
-
type: {
|
|
2339
|
-
kind: "Set",
|
|
2340
|
-
itemType: { kind: "Identifier" },
|
|
2341
|
-
},
|
|
2342
|
-
},
|
|
2343
|
-
hasValues: {
|
|
2344
|
-
kind: "Shacl",
|
|
2345
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#hasValue"),
|
|
2346
|
-
type: {
|
|
2347
|
-
kind: "Set",
|
|
2348
|
-
itemType: { kind: "Term", types: ["NamedNode", "Literal"] },
|
|
2349
|
-
},
|
|
2350
|
-
},
|
|
2351
|
-
ignore: {
|
|
2352
|
-
kind: "Shacl",
|
|
2353
|
-
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#ignore"),
|
|
2354
|
-
type: {
|
|
2355
|
-
kind: "DefaultValue",
|
|
2356
|
-
itemType: { kind: "Boolean" },
|
|
2357
|
-
defaultValue: dataFactory.literal("false", $RdfVocabularies.xsd.boolean),
|
|
2358
|
-
},
|
|
2359
|
-
},
|
|
2360
|
-
in_: {
|
|
2361
|
-
kind: "Shacl",
|
|
2362
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#in"),
|
|
2363
|
-
type: {
|
|
2364
|
-
kind: "Option",
|
|
2365
|
-
itemType: {
|
|
2366
|
-
kind: "List",
|
|
2367
|
-
itemType: {
|
|
2368
|
-
kind: "Term",
|
|
2369
|
-
types: ["NamedNode", "Literal"],
|
|
2370
|
-
},
|
|
2371
|
-
},
|
|
2372
|
-
},
|
|
2373
|
-
},
|
|
2374
|
-
isDefinedBy: {
|
|
2375
|
-
kind: "Shacl",
|
|
2376
|
-
path: dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#isDefinedBy"),
|
|
2377
|
-
type: {
|
|
2378
|
-
kind: "Option",
|
|
2379
|
-
itemType: { kind: "Identifier" },
|
|
2380
|
-
},
|
|
2381
|
-
},
|
|
2382
|
-
label: {
|
|
2383
|
-
kind: "Shacl",
|
|
2384
|
-
path: dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#label"),
|
|
2385
|
-
type: {
|
|
2386
|
-
kind: "Option",
|
|
2387
|
-
itemType: { kind: "String" },
|
|
2388
|
-
},
|
|
2389
|
-
},
|
|
2390
|
-
languageIn: {
|
|
2391
|
-
kind: "Shacl",
|
|
2392
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#languageIn"),
|
|
2393
|
-
type: {
|
|
2394
|
-
kind: "Option",
|
|
2395
|
-
itemType: {
|
|
2396
|
-
kind: "List",
|
|
2397
|
-
itemType: { kind: "String" },
|
|
2398
|
-
},
|
|
2399
|
-
},
|
|
2400
|
-
},
|
|
2401
|
-
lessThan: {
|
|
2402
|
-
kind: "Shacl",
|
|
2403
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#lessThan"),
|
|
2404
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
2405
|
-
},
|
|
2406
|
-
lessThanOrEquals: {
|
|
2407
|
-
kind: "Shacl",
|
|
2408
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#lessThanOrEquals"),
|
|
2409
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
2410
|
-
},
|
|
2411
|
-
maxCount: {
|
|
2412
|
-
kind: "Shacl",
|
|
2413
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxCount"),
|
|
2414
|
-
type: {
|
|
2415
|
-
kind: "Option",
|
|
2416
|
-
itemType: { kind: "BigInt" },
|
|
2417
|
-
},
|
|
2418
|
-
},
|
|
2419
|
-
maxExclusive: {
|
|
2420
|
-
kind: "Shacl",
|
|
2421
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxExclusive"),
|
|
2422
|
-
type: {
|
|
2423
|
-
kind: "Option",
|
|
2424
|
-
itemType: { kind: "Literal" },
|
|
2425
|
-
},
|
|
2426
|
-
},
|
|
2427
|
-
maxInclusive: {
|
|
2428
|
-
kind: "Shacl",
|
|
2429
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxInclusive"),
|
|
2430
|
-
type: {
|
|
2431
|
-
kind: "Option",
|
|
2432
|
-
itemType: { kind: "Literal" },
|
|
2433
|
-
},
|
|
2434
|
-
},
|
|
2435
|
-
maxLength: {
|
|
2436
|
-
kind: "Shacl",
|
|
2437
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxLength"),
|
|
2438
|
-
type: {
|
|
2439
|
-
kind: "Option",
|
|
2440
|
-
itemType: { kind: "BigInt" },
|
|
2441
|
-
},
|
|
2442
|
-
},
|
|
2443
|
-
message: {
|
|
2444
|
-
kind: "Shacl",
|
|
2445
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#message"),
|
|
2446
|
-
type: {
|
|
2447
|
-
kind: "Option",
|
|
2448
|
-
itemType: { kind: "String" },
|
|
2449
|
-
},
|
|
2450
|
-
},
|
|
2451
|
-
minCount: {
|
|
2452
|
-
kind: "Shacl",
|
|
2453
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minCount"),
|
|
2454
|
-
type: {
|
|
2455
|
-
kind: "Option",
|
|
2456
|
-
itemType: { kind: "BigInt" },
|
|
2457
|
-
},
|
|
2458
|
-
},
|
|
2459
|
-
minExclusive: {
|
|
2460
|
-
kind: "Shacl",
|
|
2461
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minExclusive"),
|
|
2462
|
-
type: {
|
|
2463
|
-
kind: "Option",
|
|
2464
|
-
itemType: { kind: "Literal" },
|
|
2465
|
-
},
|
|
2466
|
-
},
|
|
2467
|
-
minInclusive: {
|
|
2468
|
-
kind: "Shacl",
|
|
2469
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minInclusive"),
|
|
2470
|
-
type: {
|
|
2471
|
-
kind: "Option",
|
|
2472
|
-
itemType: { kind: "Literal" },
|
|
2473
|
-
},
|
|
2474
|
-
},
|
|
2475
|
-
minLength: {
|
|
2476
|
-
kind: "Shacl",
|
|
2477
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minLength"),
|
|
2478
|
-
type: {
|
|
2479
|
-
kind: "Option",
|
|
2480
|
-
itemType: { kind: "BigInt" },
|
|
2481
|
-
},
|
|
2482
|
-
},
|
|
2483
|
-
mutable: {
|
|
2484
|
-
kind: "Shacl",
|
|
2485
|
-
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#mutable"),
|
|
2486
|
-
type: {
|
|
2487
|
-
kind: "Option",
|
|
2488
|
-
itemType: { kind: "Boolean" },
|
|
2489
|
-
},
|
|
2490
|
-
},
|
|
2491
|
-
name: {
|
|
2492
|
-
kind: "Shacl",
|
|
2493
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#name"),
|
|
2494
|
-
type: {
|
|
2495
|
-
kind: "Option",
|
|
2496
|
-
itemType: { kind: "String" },
|
|
2497
|
-
},
|
|
2498
|
-
},
|
|
2499
|
-
node: {
|
|
2500
|
-
kind: "Shacl",
|
|
2501
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#node"),
|
|
2502
|
-
type: {
|
|
2503
|
-
kind: "Option",
|
|
2504
|
-
itemType: { kind: "Identifier" },
|
|
2505
|
-
},
|
|
2506
|
-
},
|
|
2507
|
-
nodeKind: {
|
|
2508
|
-
kind: "Shacl",
|
|
2509
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#nodeKind"),
|
|
2510
|
-
type: {
|
|
2511
|
-
kind: "Option",
|
|
2512
|
-
itemType: {
|
|
2513
|
-
kind: "Iri",
|
|
2514
|
-
in: [
|
|
2515
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#BlankNode"),
|
|
2516
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#BlankNodeOrIRI"),
|
|
2517
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#BlankNodeOrLiteral"),
|
|
2518
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#IRI"),
|
|
2519
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#IRIOrLiteral"),
|
|
2520
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#Literal"),
|
|
2521
|
-
],
|
|
2522
|
-
},
|
|
2523
|
-
},
|
|
2524
|
-
},
|
|
2525
|
-
not: {
|
|
2526
|
-
kind: "Shacl",
|
|
2527
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#not"),
|
|
2528
|
-
type: {
|
|
2529
|
-
kind: "Set",
|
|
2530
|
-
itemType: { kind: "Identifier" },
|
|
2531
|
-
},
|
|
2532
|
-
},
|
|
2533
|
-
or: {
|
|
2534
|
-
kind: "Shacl",
|
|
2535
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#or"),
|
|
2536
|
-
type: {
|
|
2537
|
-
kind: "Option",
|
|
2538
|
-
itemType: {
|
|
2539
|
-
kind: "List",
|
|
2540
|
-
itemType: { kind: "Identifier" },
|
|
2541
|
-
},
|
|
2542
|
-
},
|
|
2543
|
-
},
|
|
2544
|
-
order: {
|
|
2545
|
-
kind: "Shacl",
|
|
2546
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#order"),
|
|
2547
|
-
type: { kind: "Option", itemType: { kind: "Float" } },
|
|
2548
|
-
},
|
|
2549
|
-
path: {
|
|
2550
|
-
kind: "Shacl",
|
|
2551
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#path"),
|
|
2552
|
-
get type() {
|
|
2553
|
-
return $PropertyPath.schema;
|
|
2554
|
-
},
|
|
2555
|
-
},
|
|
2556
|
-
pattern: {
|
|
2557
|
-
kind: "Shacl",
|
|
2558
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#pattern"),
|
|
2559
|
-
type: {
|
|
2560
|
-
kind: "Option",
|
|
2561
|
-
itemType: { kind: "String" },
|
|
2562
|
-
},
|
|
2563
|
-
},
|
|
2564
|
-
qualifiedMaxCount: {
|
|
2565
|
-
kind: "Shacl",
|
|
2566
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#qualifiedMaxCount"),
|
|
2567
|
-
type: {
|
|
2568
|
-
kind: "Option",
|
|
2569
|
-
itemType: { kind: "BigInt" },
|
|
2570
|
-
},
|
|
2571
|
-
},
|
|
2572
|
-
qualifiedMinCount: {
|
|
2573
|
-
kind: "Shacl",
|
|
2574
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#qualifiedMinCount"),
|
|
2575
|
-
type: {
|
|
2576
|
-
kind: "Option",
|
|
2577
|
-
itemType: { kind: "BigInt" },
|
|
2578
|
-
},
|
|
2579
|
-
},
|
|
2580
|
-
qualifiedValueShape: {
|
|
2581
|
-
kind: "Shacl",
|
|
2582
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#qualifiedValueShape"),
|
|
2583
|
-
type: {
|
|
2584
|
-
kind: "Option",
|
|
2585
|
-
itemType: { kind: "Identifier" },
|
|
2586
|
-
},
|
|
2587
|
-
},
|
|
2588
|
-
qualifiedValueShapesDisjoint: {
|
|
2589
|
-
kind: "Shacl",
|
|
2590
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#qualifiedValueShapesDisjoint"),
|
|
2591
|
-
type: {
|
|
2592
|
-
kind: "Option",
|
|
2593
|
-
itemType: { kind: "Boolean" },
|
|
2594
|
-
},
|
|
2595
|
-
},
|
|
2596
|
-
resolve: {
|
|
2597
|
-
kind: "Shacl",
|
|
2598
|
-
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#resolve"),
|
|
2599
|
-
type: {
|
|
2600
|
-
kind: "Option",
|
|
2601
|
-
itemType: { kind: "Identifier" },
|
|
2602
|
-
},
|
|
2603
|
-
},
|
|
2604
|
-
severity: {
|
|
2605
|
-
kind: "Shacl",
|
|
2606
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#severity"),
|
|
2607
|
-
type: {
|
|
2608
|
-
kind: "Option",
|
|
2609
|
-
itemType: {
|
|
2610
|
-
kind: "Iri",
|
|
2611
|
-
in: [
|
|
2612
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#Info"),
|
|
2613
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#Warning"),
|
|
2614
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#Violation"),
|
|
2615
|
-
],
|
|
2616
|
-
},
|
|
2617
|
-
},
|
|
2618
|
-
},
|
|
2619
|
-
shaclmateName: {
|
|
2620
|
-
kind: "Shacl",
|
|
2621
|
-
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#name"),
|
|
2622
|
-
type: {
|
|
2623
|
-
kind: "Option",
|
|
2624
|
-
itemType: { kind: "String" },
|
|
2625
|
-
},
|
|
2626
|
-
},
|
|
2627
|
-
targetClasses: {
|
|
2628
|
-
kind: "Shacl",
|
|
2629
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetClass"),
|
|
2630
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
2631
|
-
},
|
|
2632
|
-
targetNodes: {
|
|
2633
|
-
kind: "Shacl",
|
|
2634
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetNode"),
|
|
2635
|
-
type: {
|
|
2636
|
-
kind: "Set",
|
|
2637
|
-
itemType: { kind: "Term", types: ["NamedNode", "Literal"] },
|
|
2638
|
-
},
|
|
2639
|
-
},
|
|
2640
|
-
targetObjectsOf: {
|
|
2641
|
-
kind: "Shacl",
|
|
2642
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetObjectsOf"),
|
|
2643
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
2644
|
-
},
|
|
2645
|
-
targetSubjectsOf: {
|
|
2646
|
-
kind: "Shacl",
|
|
2647
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetSubjectsOf"),
|
|
2648
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
2649
|
-
},
|
|
2650
|
-
uniqueLang: {
|
|
2651
|
-
kind: "Shacl",
|
|
2652
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#uniqueLang"),
|
|
2653
|
-
type: {
|
|
2654
|
-
kind: "Option",
|
|
2655
|
-
itemType: { kind: "Boolean" },
|
|
2656
|
-
},
|
|
2657
|
-
},
|
|
2658
|
-
xone: {
|
|
2659
|
-
kind: "Shacl",
|
|
2660
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#xone"),
|
|
2661
|
-
type: {
|
|
2662
|
-
kind: "Option",
|
|
2663
|
-
itemType: {
|
|
2664
|
-
kind: "List",
|
|
2665
|
-
itemType: { kind: "Identifier" },
|
|
2666
|
-
},
|
|
2667
|
-
},
|
|
2668
|
-
},
|
|
2669
|
-
},
|
|
2670
|
-
};
|
|
2671
|
-
PropertyShape._toRdfResource = (parameters) => {
|
|
2672
|
-
if (!parameters.ignoreRdfType) {
|
|
2673
|
-
parameters.resource.add($RdfVocabularies.rdf.type, dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyShape"), parameters.graph);
|
|
2674
|
-
}
|
|
2675
|
-
parameters.resource.add(NodeShape.schema.properties.and.path, parameters.object.and.toList().flatMap((value) => [
|
|
2676
|
-
value.length > 0
|
|
2677
|
-
? value.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
|
|
2678
|
-
if (itemIndex === 0) {
|
|
2679
|
-
currentSubListResource = listResource;
|
|
2680
|
-
}
|
|
2681
|
-
else {
|
|
2682
|
-
const newSubListResource = parameters.resourceSet.resource((() => dataFactory.blankNode())());
|
|
2683
|
-
currentSubListResource.add($RdfVocabularies.rdf.rest, newSubListResource.identifier, parameters.graph);
|
|
2684
|
-
currentSubListResource = newSubListResource;
|
|
2685
|
-
}
|
|
2686
|
-
currentSubListResource.add($RdfVocabularies.rdf.first, [item], parameters.graph);
|
|
2687
|
-
if (itemIndex + 1 === list.length) {
|
|
2688
|
-
currentSubListResource.add($RdfVocabularies.rdf.rest, $RdfVocabularies.rdf.nil, parameters.graph);
|
|
2689
|
-
}
|
|
2690
|
-
return { currentSubListResource, listResource };
|
|
2691
|
-
}, {
|
|
2692
|
-
currentSubListResource: null,
|
|
2693
|
-
listResource: parameters.resourceSet.resource((() => dataFactory.blankNode())()),
|
|
2694
|
-
}).listResource.identifier
|
|
2695
|
-
: $RdfVocabularies.rdf.nil,
|
|
2696
|
-
]), parameters.graph);
|
|
2697
|
-
parameters.resource.add(NodeShape.schema.properties.classes.path, parameters.object.classes.flatMap((item) => [item]), parameters.graph);
|
|
2698
|
-
parameters.resource.add(NodeShape.schema.properties.comment.path, parameters.object.comment
|
|
2699
|
-
.toList()
|
|
2700
|
-
.flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
|
|
2701
|
-
parameters.resource.add(NodeShape.schema.properties.datatype.path, parameters.object.datatype.toList(), parameters.graph);
|
|
2702
|
-
parameters.resource.add(NodeShape.schema.properties.deactivated.path, parameters.object.deactivated
|
|
2703
|
-
.toList()
|
|
2704
|
-
.flatMap((value) => [
|
|
2705
|
-
$literalFactory.boolean(value, $RdfVocabularies.xsd.boolean),
|
|
2706
|
-
]), parameters.graph);
|
|
2707
|
-
parameters.resource.add(PropertyShape.schema.properties.defaultValue.path, parameters.object.defaultValue.toList(), parameters.graph);
|
|
2708
|
-
parameters.resource.add(PropertyShape.schema.properties.description.path, parameters.object.description
|
|
2709
|
-
.toList()
|
|
2710
|
-
.flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
|
|
2711
|
-
parameters.resource.add(PropertyShape.schema.properties.disjoint.path, parameters.object.disjoint.flatMap((item) => [item]), parameters.graph);
|
|
2712
|
-
parameters.resource.add(PropertyShape.schema.properties.display.path, $strictEquals(parameters.object.display, false).isLeft()
|
|
2713
|
-
? [
|
|
2714
|
-
$literalFactory.boolean(parameters.object.display, $RdfVocabularies.xsd.boolean),
|
|
2715
|
-
]
|
|
2716
|
-
: [], parameters.graph);
|
|
2717
|
-
parameters.resource.add(PropertyShape.schema.properties.equals.path, parameters.object.equals.flatMap((item) => [item]), parameters.graph);
|
|
2718
|
-
parameters.resource.add(NodeShape.schema.properties.flags.path, parameters.object.flags
|
|
2719
|
-
.toList()
|
|
2720
|
-
.flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
|
|
2721
|
-
parameters.resource.add(PropertyShape.schema.properties.groups.path, parameters.object.groups.flatMap((item) => [item]), parameters.graph);
|
|
2722
|
-
parameters.resource.add(NodeShape.schema.properties.hasValues.path, parameters.object.hasValues.flatMap((item) => [item]), parameters.graph);
|
|
2723
|
-
parameters.resource.add(NodeShape.schema.properties.ignore.path, $strictEquals(parameters.object.ignore, false).isLeft()
|
|
2724
|
-
? [
|
|
2725
|
-
$literalFactory.boolean(parameters.object.ignore, $RdfVocabularies.xsd.boolean),
|
|
2726
|
-
]
|
|
2727
|
-
: [], parameters.graph);
|
|
2728
|
-
parameters.resource.add(NodeShape.schema.properties.in_.path, parameters.object.in_.toList().flatMap((value) => [
|
|
2729
|
-
value.length > 0
|
|
2730
|
-
? value.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
|
|
2731
|
-
if (itemIndex === 0) {
|
|
2732
|
-
currentSubListResource = listResource;
|
|
2733
|
-
}
|
|
2734
|
-
else {
|
|
2735
|
-
const newSubListResource = parameters.resourceSet.resource((() => dataFactory.blankNode())());
|
|
2736
|
-
currentSubListResource.add($RdfVocabularies.rdf.rest, newSubListResource.identifier, parameters.graph);
|
|
2737
|
-
currentSubListResource = newSubListResource;
|
|
2738
|
-
}
|
|
2739
|
-
currentSubListResource.add($RdfVocabularies.rdf.first, [item], parameters.graph);
|
|
2740
|
-
if (itemIndex + 1 === list.length) {
|
|
2741
|
-
currentSubListResource.add($RdfVocabularies.rdf.rest, $RdfVocabularies.rdf.nil, parameters.graph);
|
|
2742
|
-
}
|
|
2743
|
-
return { currentSubListResource, listResource };
|
|
2744
|
-
}, {
|
|
2745
|
-
currentSubListResource: null,
|
|
2746
|
-
listResource: parameters.resourceSet.resource((() => dataFactory.blankNode())()),
|
|
2747
|
-
}).listResource.identifier
|
|
2748
|
-
: $RdfVocabularies.rdf.nil,
|
|
2749
|
-
]), parameters.graph);
|
|
2750
|
-
parameters.resource.add(NodeShape.schema.properties.isDefinedBy.path, parameters.object.isDefinedBy.toList(), parameters.graph);
|
|
2751
|
-
parameters.resource.add(NodeShape.schema.properties.label.path, parameters.object.label
|
|
2752
|
-
.toList()
|
|
2753
|
-
.flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
|
|
2754
|
-
parameters.resource.add(NodeShape.schema.properties.languageIn.path, parameters.object.languageIn.toList().flatMap((value) => [
|
|
2755
|
-
value.length > 0
|
|
2756
|
-
? value.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
|
|
2757
|
-
if (itemIndex === 0) {
|
|
2758
|
-
currentSubListResource = listResource;
|
|
2759
|
-
}
|
|
2760
|
-
else {
|
|
2761
|
-
const newSubListResource = parameters.resourceSet.resource((() => dataFactory.blankNode())());
|
|
2762
|
-
currentSubListResource.add($RdfVocabularies.rdf.rest, newSubListResource.identifier, parameters.graph);
|
|
2763
|
-
currentSubListResource = newSubListResource;
|
|
2764
|
-
}
|
|
2765
|
-
currentSubListResource.add($RdfVocabularies.rdf.first, [$literalFactory.string(item)], parameters.graph);
|
|
2766
|
-
if (itemIndex + 1 === list.length) {
|
|
2767
|
-
currentSubListResource.add($RdfVocabularies.rdf.rest, $RdfVocabularies.rdf.nil, parameters.graph);
|
|
2768
|
-
}
|
|
2769
|
-
return { currentSubListResource, listResource };
|
|
2770
|
-
}, {
|
|
2771
|
-
currentSubListResource: null,
|
|
2772
|
-
listResource: parameters.resourceSet.resource((() => dataFactory.blankNode())()),
|
|
2773
|
-
}).listResource.identifier
|
|
2774
|
-
: $RdfVocabularies.rdf.nil,
|
|
2775
|
-
]), parameters.graph);
|
|
2776
|
-
parameters.resource.add(PropertyShape.schema.properties.lessThan.path, parameters.object.lessThan.flatMap((item) => [item]), parameters.graph);
|
|
2777
|
-
parameters.resource.add(PropertyShape.schema.properties.lessThanOrEquals.path, parameters.object.lessThanOrEquals.flatMap((item) => [item]), parameters.graph);
|
|
2778
|
-
parameters.resource.add(PropertyShape.schema.properties.maxCount.path, parameters.object.maxCount
|
|
2779
|
-
.toList()
|
|
2780
|
-
.flatMap((value) => [
|
|
2781
|
-
$literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
|
|
2782
|
-
]), parameters.graph);
|
|
2783
|
-
parameters.resource.add(NodeShape.schema.properties.maxExclusive.path, parameters.object.maxExclusive.toList(), parameters.graph);
|
|
2784
|
-
parameters.resource.add(NodeShape.schema.properties.maxInclusive.path, parameters.object.maxInclusive.toList(), parameters.graph);
|
|
2785
|
-
parameters.resource.add(NodeShape.schema.properties.maxLength.path, parameters.object.maxLength
|
|
2786
|
-
.toList()
|
|
2787
|
-
.flatMap((value) => [
|
|
2788
|
-
$literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
|
|
2789
|
-
]), parameters.graph);
|
|
2790
|
-
parameters.resource.add(NodeShape.schema.properties.message.path, parameters.object.message
|
|
2791
|
-
.toList()
|
|
2792
|
-
.flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
|
|
2793
|
-
parameters.resource.add(PropertyShape.schema.properties.minCount.path, parameters.object.minCount
|
|
2794
|
-
.toList()
|
|
2795
|
-
.flatMap((value) => [
|
|
2796
|
-
$literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
|
|
2797
|
-
]), parameters.graph);
|
|
2798
|
-
parameters.resource.add(NodeShape.schema.properties.minExclusive.path, parameters.object.minExclusive.toList(), parameters.graph);
|
|
2799
|
-
parameters.resource.add(NodeShape.schema.properties.minInclusive.path, parameters.object.minInclusive.toList(), parameters.graph);
|
|
2800
|
-
parameters.resource.add(NodeShape.schema.properties.minLength.path, parameters.object.minLength
|
|
2801
|
-
.toList()
|
|
2802
|
-
.flatMap((value) => [
|
|
2803
|
-
$literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
|
|
2804
|
-
]), parameters.graph);
|
|
2805
|
-
parameters.resource.add(NodeShape.schema.properties.mutable.path, parameters.object.mutable
|
|
2806
|
-
.toList()
|
|
2807
|
-
.flatMap((value) => [
|
|
2808
|
-
$literalFactory.boolean(value, $RdfVocabularies.xsd.boolean),
|
|
2809
|
-
]), parameters.graph);
|
|
2810
|
-
parameters.resource.add(PropertyShape.schema.properties.name.path, parameters.object.name
|
|
2811
|
-
.toList()
|
|
2812
|
-
.flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
|
|
2813
|
-
parameters.resource.add(NodeShape.schema.properties.node.path, parameters.object.node.toList(), parameters.graph);
|
|
2814
|
-
parameters.resource.add(NodeShape.schema.properties.nodeKind.path, parameters.object.nodeKind.toList(), parameters.graph);
|
|
2815
|
-
parameters.resource.add(NodeShape.schema.properties.not.path, parameters.object.not.flatMap((item) => [item]), parameters.graph);
|
|
2816
|
-
parameters.resource.add(NodeShape.schema.properties.or.path, parameters.object.or.toList().flatMap((value) => [
|
|
2817
|
-
value.length > 0
|
|
2818
|
-
? value.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
|
|
2819
|
-
if (itemIndex === 0) {
|
|
2820
|
-
currentSubListResource = listResource;
|
|
2821
|
-
}
|
|
2822
|
-
else {
|
|
2823
|
-
const newSubListResource = parameters.resourceSet.resource((() => dataFactory.blankNode())());
|
|
2824
|
-
currentSubListResource.add($RdfVocabularies.rdf.rest, newSubListResource.identifier, parameters.graph);
|
|
2825
|
-
currentSubListResource = newSubListResource;
|
|
2826
|
-
}
|
|
2827
|
-
currentSubListResource.add($RdfVocabularies.rdf.first, [item], parameters.graph);
|
|
2828
|
-
if (itemIndex + 1 === list.length) {
|
|
2829
|
-
currentSubListResource.add($RdfVocabularies.rdf.rest, $RdfVocabularies.rdf.nil, parameters.graph);
|
|
2830
|
-
}
|
|
2831
|
-
return { currentSubListResource, listResource };
|
|
2832
|
-
}, {
|
|
2833
|
-
currentSubListResource: null,
|
|
2834
|
-
listResource: parameters.resourceSet.resource((() => dataFactory.blankNode())()),
|
|
2835
|
-
}).listResource.identifier
|
|
2836
|
-
: $RdfVocabularies.rdf.nil,
|
|
2837
|
-
]), parameters.graph);
|
|
2838
|
-
parameters.resource.add(PropertyShape.schema.properties.order.path, parameters.object.order
|
|
2839
|
-
.toList()
|
|
2840
|
-
.flatMap((value) => [
|
|
2841
|
-
$literalFactory.number(value, $RdfVocabularies.xsd.double),
|
|
2842
|
-
]), parameters.graph);
|
|
2843
|
-
parameters.resource.add(PropertyShape.schema.properties.path.path, [
|
|
2844
|
-
$PropertyPath.toRdfResource(parameters.object.path, {
|
|
2845
|
-
graph: parameters.graph,
|
|
2846
|
-
resourceSet: parameters.resourceSet,
|
|
2847
|
-
}).identifier,
|
|
2848
|
-
], parameters.graph);
|
|
2849
|
-
parameters.resource.add(NodeShape.schema.properties.pattern.path, parameters.object.pattern
|
|
2850
|
-
.toList()
|
|
2851
|
-
.flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
|
|
2852
|
-
parameters.resource.add(PropertyShape.schema.properties.qualifiedMaxCount.path, parameters.object.qualifiedMaxCount
|
|
2853
|
-
.toList()
|
|
2854
|
-
.flatMap((value) => [
|
|
2855
|
-
$literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
|
|
2856
|
-
]), parameters.graph);
|
|
2857
|
-
parameters.resource.add(PropertyShape.schema.properties.qualifiedMinCount.path, parameters.object.qualifiedMinCount
|
|
2858
|
-
.toList()
|
|
2859
|
-
.flatMap((value) => [
|
|
2860
|
-
$literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
|
|
2861
|
-
]), parameters.graph);
|
|
2862
|
-
parameters.resource.add(PropertyShape.schema.properties.qualifiedValueShape.path, parameters.object.qualifiedValueShape.toList(), parameters.graph);
|
|
2863
|
-
parameters.resource.add(PropertyShape.schema.properties.qualifiedValueShapesDisjoint.path, parameters.object.qualifiedValueShapesDisjoint
|
|
2864
|
-
.toList()
|
|
2865
|
-
.flatMap((value) => [
|
|
2866
|
-
$literalFactory.boolean(value, $RdfVocabularies.xsd.boolean),
|
|
2867
|
-
]), parameters.graph);
|
|
2868
|
-
parameters.resource.add(PropertyShape.schema.properties.resolve.path, parameters.object.resolve.toList(), parameters.graph);
|
|
2869
|
-
parameters.resource.add(NodeShape.schema.properties.severity.path, parameters.object.severity.toList(), parameters.graph);
|
|
2870
|
-
parameters.resource.add(NodeShape.schema.properties.shaclmateName.path, parameters.object.shaclmateName
|
|
2871
|
-
.toList()
|
|
2872
|
-
.flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
|
|
2873
|
-
parameters.resource.add(NodeShape.schema.properties.targetClasses.path, parameters.object.targetClasses.flatMap((item) => [item]), parameters.graph);
|
|
2874
|
-
parameters.resource.add(NodeShape.schema.properties.targetNodes.path, parameters.object.targetNodes.flatMap((item) => [item]), parameters.graph);
|
|
2875
|
-
parameters.resource.add(NodeShape.schema.properties.targetObjectsOf.path, parameters.object.targetObjectsOf.flatMap((item) => [item]), parameters.graph);
|
|
2876
|
-
parameters.resource.add(NodeShape.schema.properties.targetSubjectsOf.path, parameters.object.targetSubjectsOf.flatMap((item) => [item]), parameters.graph);
|
|
2877
|
-
parameters.resource.add(PropertyShape.schema.properties.uniqueLang.path, parameters.object.uniqueLang
|
|
2878
|
-
.toList()
|
|
2879
|
-
.flatMap((value) => [
|
|
2880
|
-
$literalFactory.boolean(value, $RdfVocabularies.xsd.boolean),
|
|
2881
|
-
]), parameters.graph);
|
|
2882
|
-
parameters.resource.add(NodeShape.schema.properties.xone.path, parameters.object.xone.toList().flatMap((value) => [
|
|
2883
|
-
value.length > 0
|
|
2884
|
-
? value.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
|
|
2885
|
-
if (itemIndex === 0) {
|
|
2886
|
-
currentSubListResource = listResource;
|
|
2887
|
-
}
|
|
2888
|
-
else {
|
|
2889
|
-
const newSubListResource = parameters.resourceSet.resource((() => dataFactory.blankNode())());
|
|
2890
|
-
currentSubListResource.add($RdfVocabularies.rdf.rest, newSubListResource.identifier, parameters.graph);
|
|
2891
|
-
currentSubListResource = newSubListResource;
|
|
2892
|
-
}
|
|
2893
|
-
currentSubListResource.add($RdfVocabularies.rdf.first, [item], parameters.graph);
|
|
2894
|
-
if (itemIndex + 1 === list.length) {
|
|
2895
|
-
currentSubListResource.add($RdfVocabularies.rdf.rest, $RdfVocabularies.rdf.nil, parameters.graph);
|
|
2896
|
-
}
|
|
2897
|
-
return { currentSubListResource, listResource };
|
|
2898
|
-
}, {
|
|
2899
|
-
currentSubListResource: null,
|
|
2900
|
-
listResource: parameters.resourceSet.resource((() => dataFactory.blankNode())()),
|
|
2901
|
-
}).listResource.identifier
|
|
2902
|
-
: $RdfVocabularies.rdf.nil,
|
|
2903
|
-
]), parameters.graph);
|
|
2904
|
-
return parameters.resource;
|
|
2905
|
-
};
|
|
2906
|
-
PropertyShape.toRdfResource = $wrap_ToRdfResourceFunction(PropertyShape._toRdfResource);
|
|
2907
|
-
PropertyShape.$toString = (_propertyShape) => `PropertyShape(${JSON.stringify(PropertyShape.toStringRecord(_propertyShape))})`;
|
|
2908
|
-
PropertyShape.toStringRecord = (_propertyShape) => $compactRecord({
|
|
2909
|
-
$identifier: _propertyShape.$identifier().toString(),
|
|
2910
|
-
label: _propertyShape.label.map((item) => item.toString()).extract(),
|
|
2911
|
-
name: _propertyShape.name.map((item) => item.toString()).extract(),
|
|
2912
|
-
path: $PropertyPath.$toString(_propertyShape.path),
|
|
2913
|
-
shaclmateName: _propertyShape.shaclmateName
|
|
2914
|
-
.map((item) => item.toString())
|
|
2915
|
-
.extract(),
|
|
2916
|
-
});
|
|
2917
|
-
})(PropertyShape || (PropertyShape = {}));
|
|
2918
|
-
export var Shape;
|
|
2919
|
-
(function (Shape) {
|
|
2920
|
-
Shape.$toString = (value) => {
|
|
2921
|
-
if (NodeShape.isNodeShape(value)) {
|
|
2922
|
-
return NodeShape.$toString(value);
|
|
2923
|
-
}
|
|
2924
|
-
if (PropertyShape.isPropertyShape(value)) {
|
|
2925
|
-
return PropertyShape.$toString(value);
|
|
2926
|
-
}
|
|
2927
|
-
throw new Error("unable to serialize to string");
|
|
2928
|
-
};
|
|
2929
|
-
Shape.fromRdfResource = (resource, options) => NodeShape.fromRdfResource(resource, {
|
|
2930
|
-
...options,
|
|
2931
|
-
ignoreRdfType: false,
|
|
2932
|
-
}).altLazy(() => PropertyShape.fromRdfResource(resource, {
|
|
2933
|
-
...options,
|
|
2934
|
-
ignoreRdfType: false,
|
|
2935
|
-
}));
|
|
2936
|
-
Shape.fromRdfResourceValues = ((values, options) => values.chainMap((value) => {
|
|
2937
|
-
const valueAsValues = value.toValues();
|
|
2938
|
-
return NodeShape.fromRdfResourceValues(valueAsValues, {
|
|
2939
|
-
...options,
|
|
2940
|
-
schema: options.schema.members["NodeShape"].type,
|
|
2941
|
-
})
|
|
2942
|
-
.altLazy(() => PropertyShape.fromRdfResourceValues(valueAsValues, {
|
|
2943
|
-
...options,
|
|
2944
|
-
schema: options.schema.members["PropertyShape"].type,
|
|
2945
|
-
}))
|
|
2946
|
-
.chain((values) => values.head());
|
|
2947
|
-
}));
|
|
2948
|
-
let Identifier;
|
|
2949
|
-
(function (Identifier) {
|
|
2950
|
-
Identifier.parse = $parseIdentifier;
|
|
2951
|
-
Identifier.stringify = NTriplesTerm.stringify;
|
|
2952
|
-
})(Identifier = Shape.Identifier || (Shape.Identifier = {}));
|
|
2953
|
-
function isShape(object) {
|
|
2954
|
-
return (NodeShape.isNodeShape(object) || PropertyShape.isPropertyShape(object));
|
|
2955
|
-
}
|
|
2956
|
-
Shape.isShape = isShape;
|
|
2957
|
-
Shape.schema = {
|
|
2958
|
-
kind: "ObjectUnion",
|
|
2959
|
-
members: {
|
|
2960
|
-
NodeShape: { discriminantValues: ["NodeShape"], type: NodeShape.schema },
|
|
2961
|
-
PropertyShape: {
|
|
2962
|
-
discriminantValues: ["PropertyShape"],
|
|
2963
|
-
type: PropertyShape.schema,
|
|
2964
|
-
},
|
|
2965
|
-
},
|
|
2966
|
-
properties: {
|
|
2967
|
-
and: {
|
|
2968
|
-
kind: "Shacl",
|
|
2969
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#and"),
|
|
2970
|
-
type: {
|
|
2971
|
-
kind: "Option",
|
|
2972
|
-
itemType: {
|
|
2973
|
-
kind: "List",
|
|
2974
|
-
itemType: { kind: "Identifier" },
|
|
2975
|
-
},
|
|
2976
|
-
},
|
|
2977
|
-
},
|
|
2978
|
-
classes: {
|
|
2979
|
-
kind: "Shacl",
|
|
2980
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#class"),
|
|
2981
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
2982
|
-
},
|
|
2983
|
-
comment: {
|
|
2984
|
-
kind: "Shacl",
|
|
2985
|
-
path: dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#comment"),
|
|
2986
|
-
type: {
|
|
2987
|
-
kind: "Option",
|
|
2988
|
-
itemType: { kind: "String" },
|
|
2989
|
-
},
|
|
2990
|
-
},
|
|
2991
|
-
datatype: {
|
|
2992
|
-
kind: "Shacl",
|
|
2993
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#datatype"),
|
|
2994
|
-
type: { kind: "Option", itemType: { kind: "Iri" } },
|
|
2995
|
-
},
|
|
2996
|
-
deactivated: {
|
|
2997
|
-
kind: "Shacl",
|
|
2998
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#deactivated"),
|
|
2999
|
-
type: {
|
|
3000
|
-
kind: "Option",
|
|
3001
|
-
itemType: { kind: "Boolean" },
|
|
3002
|
-
},
|
|
3003
|
-
},
|
|
3004
|
-
flags: {
|
|
3005
|
-
kind: "Shacl",
|
|
3006
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#flags"),
|
|
3007
|
-
type: {
|
|
3008
|
-
kind: "Option",
|
|
3009
|
-
itemType: { kind: "String" },
|
|
3010
|
-
},
|
|
3011
|
-
},
|
|
3012
|
-
hasValues: {
|
|
3013
|
-
kind: "Shacl",
|
|
3014
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#hasValue"),
|
|
3015
|
-
type: {
|
|
3016
|
-
kind: "Set",
|
|
3017
|
-
itemType: { kind: "Term", types: ["NamedNode", "Literal"] },
|
|
3018
|
-
},
|
|
3019
|
-
},
|
|
3020
|
-
ignore: {
|
|
3021
|
-
kind: "Shacl",
|
|
3022
|
-
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#ignore"),
|
|
3023
|
-
type: {
|
|
3024
|
-
kind: "DefaultValue",
|
|
3025
|
-
itemType: { kind: "Boolean" },
|
|
3026
|
-
defaultValue: dataFactory.literal("false", $RdfVocabularies.xsd.boolean),
|
|
3027
|
-
},
|
|
3028
|
-
},
|
|
3029
|
-
in_: {
|
|
3030
|
-
kind: "Shacl",
|
|
3031
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#in"),
|
|
3032
|
-
type: {
|
|
3033
|
-
kind: "Option",
|
|
3034
|
-
itemType: {
|
|
3035
|
-
kind: "List",
|
|
3036
|
-
itemType: {
|
|
3037
|
-
kind: "Term",
|
|
3038
|
-
types: ["NamedNode", "Literal"],
|
|
3039
|
-
},
|
|
3040
|
-
},
|
|
3041
|
-
},
|
|
3042
|
-
},
|
|
3043
|
-
isDefinedBy: {
|
|
3044
|
-
kind: "Shacl",
|
|
3045
|
-
path: dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#isDefinedBy"),
|
|
3046
|
-
type: {
|
|
3047
|
-
kind: "Option",
|
|
3048
|
-
itemType: { kind: "Identifier" },
|
|
3049
|
-
},
|
|
3050
|
-
},
|
|
3051
|
-
label: {
|
|
3052
|
-
kind: "Shacl",
|
|
3053
|
-
path: dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#label"),
|
|
3054
|
-
type: {
|
|
3055
|
-
kind: "Option",
|
|
3056
|
-
itemType: { kind: "String" },
|
|
3057
|
-
},
|
|
3058
|
-
},
|
|
3059
|
-
languageIn: {
|
|
3060
|
-
kind: "Shacl",
|
|
3061
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#languageIn"),
|
|
3062
|
-
type: {
|
|
3063
|
-
kind: "Option",
|
|
3064
|
-
itemType: {
|
|
3065
|
-
kind: "List",
|
|
3066
|
-
itemType: { kind: "String" },
|
|
3067
|
-
},
|
|
3068
|
-
},
|
|
3069
|
-
},
|
|
3070
|
-
maxExclusive: {
|
|
3071
|
-
kind: "Shacl",
|
|
3072
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxExclusive"),
|
|
3073
|
-
type: {
|
|
3074
|
-
kind: "Option",
|
|
3075
|
-
itemType: { kind: "Literal" },
|
|
3076
|
-
},
|
|
3077
|
-
},
|
|
3078
|
-
maxInclusive: {
|
|
3079
|
-
kind: "Shacl",
|
|
3080
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxInclusive"),
|
|
3081
|
-
type: {
|
|
3082
|
-
kind: "Option",
|
|
3083
|
-
itemType: { kind: "Literal" },
|
|
3084
|
-
},
|
|
3085
|
-
},
|
|
3086
|
-
maxLength: {
|
|
3087
|
-
kind: "Shacl",
|
|
3088
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#maxLength"),
|
|
3089
|
-
type: {
|
|
3090
|
-
kind: "Option",
|
|
3091
|
-
itemType: { kind: "BigInt" },
|
|
3092
|
-
},
|
|
3093
|
-
},
|
|
3094
|
-
message: {
|
|
3095
|
-
kind: "Shacl",
|
|
3096
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#message"),
|
|
3097
|
-
type: {
|
|
3098
|
-
kind: "Option",
|
|
3099
|
-
itemType: { kind: "String" },
|
|
3100
|
-
},
|
|
3101
|
-
},
|
|
3102
|
-
minExclusive: {
|
|
3103
|
-
kind: "Shacl",
|
|
3104
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minExclusive"),
|
|
3105
|
-
type: {
|
|
3106
|
-
kind: "Option",
|
|
3107
|
-
itemType: { kind: "Literal" },
|
|
3108
|
-
},
|
|
3109
|
-
},
|
|
3110
|
-
minInclusive: {
|
|
3111
|
-
kind: "Shacl",
|
|
3112
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minInclusive"),
|
|
3113
|
-
type: {
|
|
3114
|
-
kind: "Option",
|
|
3115
|
-
itemType: { kind: "Literal" },
|
|
3116
|
-
},
|
|
3117
|
-
},
|
|
3118
|
-
minLength: {
|
|
3119
|
-
kind: "Shacl",
|
|
3120
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#minLength"),
|
|
3121
|
-
type: {
|
|
3122
|
-
kind: "Option",
|
|
3123
|
-
itemType: { kind: "BigInt" },
|
|
3124
|
-
},
|
|
3125
|
-
},
|
|
3126
|
-
mutable: {
|
|
3127
|
-
kind: "Shacl",
|
|
3128
|
-
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#mutable"),
|
|
3129
|
-
type: {
|
|
3130
|
-
kind: "Option",
|
|
3131
|
-
itemType: { kind: "Boolean" },
|
|
3132
|
-
},
|
|
3133
|
-
},
|
|
3134
|
-
node: {
|
|
3135
|
-
kind: "Shacl",
|
|
3136
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#node"),
|
|
3137
|
-
type: {
|
|
3138
|
-
kind: "Option",
|
|
3139
|
-
itemType: { kind: "Identifier" },
|
|
3140
|
-
},
|
|
3141
|
-
},
|
|
3142
|
-
nodeKind: {
|
|
3143
|
-
kind: "Shacl",
|
|
3144
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#nodeKind"),
|
|
3145
|
-
type: {
|
|
3146
|
-
kind: "Option",
|
|
3147
|
-
itemType: {
|
|
3148
|
-
kind: "Iri",
|
|
3149
|
-
in: [
|
|
3150
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#BlankNode"),
|
|
3151
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#BlankNodeOrIRI"),
|
|
3152
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#BlankNodeOrLiteral"),
|
|
3153
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#IRI"),
|
|
3154
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#IRIOrLiteral"),
|
|
3155
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#Literal"),
|
|
3156
|
-
],
|
|
3157
|
-
},
|
|
3158
|
-
},
|
|
3159
|
-
},
|
|
3160
|
-
not: {
|
|
3161
|
-
kind: "Shacl",
|
|
3162
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#not"),
|
|
3163
|
-
type: {
|
|
3164
|
-
kind: "Set",
|
|
3165
|
-
itemType: { kind: "Identifier" },
|
|
3166
|
-
},
|
|
3167
|
-
},
|
|
3168
|
-
or: {
|
|
3169
|
-
kind: "Shacl",
|
|
3170
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#or"),
|
|
3171
|
-
type: {
|
|
3172
|
-
kind: "Option",
|
|
3173
|
-
itemType: {
|
|
3174
|
-
kind: "List",
|
|
3175
|
-
itemType: { kind: "Identifier" },
|
|
3176
|
-
},
|
|
3177
|
-
},
|
|
3178
|
-
},
|
|
3179
|
-
pattern: {
|
|
3180
|
-
kind: "Shacl",
|
|
3181
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#pattern"),
|
|
3182
|
-
type: {
|
|
3183
|
-
kind: "Option",
|
|
3184
|
-
itemType: { kind: "String" },
|
|
3185
|
-
},
|
|
3186
|
-
},
|
|
3187
|
-
severity: {
|
|
3188
|
-
kind: "Shacl",
|
|
3189
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#severity"),
|
|
3190
|
-
type: {
|
|
3191
|
-
kind: "Option",
|
|
3192
|
-
itemType: {
|
|
3193
|
-
kind: "Iri",
|
|
3194
|
-
in: [
|
|
3195
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#Info"),
|
|
3196
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#Warning"),
|
|
3197
|
-
dataFactory.namedNode("http://www.w3.org/ns/shacl#Violation"),
|
|
3198
|
-
],
|
|
3199
|
-
},
|
|
3200
|
-
},
|
|
3201
|
-
},
|
|
3202
|
-
shaclmateName: {
|
|
3203
|
-
kind: "Shacl",
|
|
3204
|
-
path: dataFactory.namedNode("http://purl.org/shaclmate/ontology#name"),
|
|
3205
|
-
type: {
|
|
3206
|
-
kind: "Option",
|
|
3207
|
-
itemType: { kind: "String" },
|
|
3208
|
-
},
|
|
3209
|
-
},
|
|
3210
|
-
targetClasses: {
|
|
3211
|
-
kind: "Shacl",
|
|
3212
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetClass"),
|
|
3213
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
3214
|
-
},
|
|
3215
|
-
targetNodes: {
|
|
3216
|
-
kind: "Shacl",
|
|
3217
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetNode"),
|
|
3218
|
-
type: {
|
|
3219
|
-
kind: "Set",
|
|
3220
|
-
itemType: { kind: "Term", types: ["NamedNode", "Literal"] },
|
|
3221
|
-
},
|
|
3222
|
-
},
|
|
3223
|
-
targetObjectsOf: {
|
|
3224
|
-
kind: "Shacl",
|
|
3225
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetObjectsOf"),
|
|
3226
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
3227
|
-
},
|
|
3228
|
-
targetSubjectsOf: {
|
|
3229
|
-
kind: "Shacl",
|
|
3230
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#targetSubjectsOf"),
|
|
3231
|
-
type: { kind: "Set", itemType: { kind: "Iri" } },
|
|
3232
|
-
},
|
|
3233
|
-
xone: {
|
|
3234
|
-
kind: "Shacl",
|
|
3235
|
-
path: dataFactory.namedNode("http://www.w3.org/ns/shacl#xone"),
|
|
3236
|
-
type: {
|
|
3237
|
-
kind: "Option",
|
|
3238
|
-
itemType: {
|
|
3239
|
-
kind: "List",
|
|
3240
|
-
itemType: { kind: "Identifier" },
|
|
3241
|
-
},
|
|
3242
|
-
},
|
|
3243
|
-
},
|
|
3244
|
-
},
|
|
3245
|
-
};
|
|
3246
|
-
Shape.toRdfResource = (object, options) => {
|
|
3247
|
-
if (NodeShape.isNodeShape(object)) {
|
|
3248
|
-
return NodeShape.toRdfResource(object, options);
|
|
3249
|
-
}
|
|
3250
|
-
if (PropertyShape.isPropertyShape(object)) {
|
|
3251
|
-
return PropertyShape.toRdfResource(object, options);
|
|
3252
|
-
}
|
|
3253
|
-
throw new Error("unrecognized type");
|
|
3254
|
-
};
|
|
3255
|
-
Shape.toRdfResourceValues = ((value, _options) => {
|
|
3256
|
-
if (NodeShape.isNodeShape(value)) {
|
|
3257
|
-
return [
|
|
3258
|
-
NodeShape.toRdfResource(value, {
|
|
3259
|
-
graph: _options.graph,
|
|
3260
|
-
resourceSet: _options.resourceSet,
|
|
3261
|
-
}).identifier,
|
|
3262
|
-
];
|
|
3263
|
-
}
|
|
3264
|
-
if (PropertyShape.isPropertyShape(value)) {
|
|
3265
|
-
return [
|
|
3266
|
-
PropertyShape.toRdfResource(value, {
|
|
3267
|
-
graph: _options.graph,
|
|
3268
|
-
resourceSet: _options.resourceSet,
|
|
3269
|
-
}).identifier,
|
|
3270
|
-
];
|
|
3271
|
-
}
|
|
3272
|
-
throw new Error("unable to serialize to RDF");
|
|
3273
|
-
});
|
|
3274
|
-
})(Shape || (Shape = {}));
|
|
3275
|
-
export var $Object;
|
|
3276
|
-
(function ($Object) {
|
|
3277
|
-
$Object.$toString = (value) => {
|
|
3278
|
-
if (NodeShape.isNodeShape(value)) {
|
|
3279
|
-
return NodeShape.$toString(value);
|
|
3280
|
-
}
|
|
3281
|
-
if (Ontology.isOntology(value)) {
|
|
3282
|
-
return Ontology.$toString(value);
|
|
3283
|
-
}
|
|
3284
|
-
if (PropertyGroup.isPropertyGroup(value)) {
|
|
3285
|
-
return PropertyGroup.$toString(value);
|
|
3286
|
-
}
|
|
3287
|
-
if (PropertyShape.isPropertyShape(value)) {
|
|
3288
|
-
return PropertyShape.$toString(value);
|
|
3289
|
-
}
|
|
3290
|
-
throw new Error("unable to serialize to string");
|
|
3291
|
-
};
|
|
3292
|
-
$Object.fromRdfResource = (resource, options) => NodeShape.fromRdfResource(resource, {
|
|
3293
|
-
...options,
|
|
3294
|
-
ignoreRdfType: false,
|
|
3295
|
-
})
|
|
3296
|
-
.altLazy(() => Ontology.fromRdfResource(resource, {
|
|
3297
|
-
...options,
|
|
3298
|
-
ignoreRdfType: false,
|
|
3299
|
-
}))
|
|
3300
|
-
.altLazy(() => PropertyGroup.fromRdfResource(resource, {
|
|
3301
|
-
...options,
|
|
3302
|
-
ignoreRdfType: false,
|
|
3303
|
-
}))
|
|
3304
|
-
.altLazy(() => PropertyShape.fromRdfResource(resource, {
|
|
3305
|
-
...options,
|
|
3306
|
-
ignoreRdfType: false,
|
|
3307
|
-
}));
|
|
3308
|
-
$Object.fromRdfResourceValues = ((values, options) => values.chainMap((value) => {
|
|
3309
|
-
const valueAsValues = value.toValues();
|
|
3310
|
-
return NodeShape.fromRdfResourceValues(valueAsValues, {
|
|
3311
|
-
...options,
|
|
3312
|
-
schema: options.schema.members["NodeShape"].type,
|
|
3313
|
-
})
|
|
3314
|
-
.altLazy(() => Ontology.fromRdfResourceValues(valueAsValues, {
|
|
3315
|
-
...options,
|
|
3316
|
-
schema: options.schema.members["Ontology"].type,
|
|
3317
|
-
}))
|
|
3318
|
-
.altLazy(() => PropertyGroup.fromRdfResourceValues(valueAsValues, {
|
|
3319
|
-
...options,
|
|
3320
|
-
schema: options.schema.members["PropertyGroup"].type,
|
|
3321
|
-
}))
|
|
3322
|
-
.altLazy(() => PropertyShape.fromRdfResourceValues(valueAsValues, {
|
|
3323
|
-
...options,
|
|
3324
|
-
schema: options.schema.members["PropertyShape"].type,
|
|
3325
|
-
}))
|
|
3326
|
-
.chain((values) => values.head());
|
|
3327
|
-
}));
|
|
3328
|
-
let Identifier;
|
|
3329
|
-
(function (Identifier) {
|
|
3330
|
-
Identifier.parse = $parseIdentifier;
|
|
3331
|
-
Identifier.stringify = NTriplesTerm.stringify;
|
|
3332
|
-
})(Identifier = $Object.Identifier || ($Object.Identifier = {}));
|
|
3333
|
-
$Object.schema = {
|
|
3334
|
-
kind: "ObjectUnion",
|
|
3335
|
-
members: {
|
|
3336
|
-
NodeShape: { discriminantValues: ["NodeShape"], type: NodeShape.schema },
|
|
3337
|
-
Ontology: { discriminantValues: ["Ontology"], type: Ontology.schema },
|
|
3338
|
-
PropertyGroup: {
|
|
3339
|
-
discriminantValues: ["PropertyGroup"],
|
|
3340
|
-
type: PropertyGroup.schema,
|
|
3341
|
-
},
|
|
3342
|
-
PropertyShape: {
|
|
3343
|
-
discriminantValues: ["PropertyShape"],
|
|
3344
|
-
type: PropertyShape.schema,
|
|
3345
|
-
},
|
|
3346
|
-
},
|
|
3347
|
-
properties: {
|
|
3348
|
-
comment: {
|
|
3349
|
-
kind: "Shacl",
|
|
3350
|
-
path: dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#comment"),
|
|
3351
|
-
type: {
|
|
3352
|
-
kind: "Option",
|
|
3353
|
-
itemType: { kind: "String" },
|
|
3354
|
-
},
|
|
3355
|
-
},
|
|
3356
|
-
label: {
|
|
3357
|
-
kind: "Shacl",
|
|
3358
|
-
path: dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#label"),
|
|
3359
|
-
type: {
|
|
3360
|
-
kind: "Option",
|
|
3361
|
-
itemType: { kind: "String" },
|
|
3362
|
-
},
|
|
3363
|
-
},
|
|
3364
|
-
},
|
|
3365
|
-
};
|
|
3366
|
-
$Object.toRdfResource = (object, options) => {
|
|
3367
|
-
if (NodeShape.isNodeShape(object)) {
|
|
3368
|
-
return NodeShape.toRdfResource(object, options);
|
|
3369
|
-
}
|
|
3370
|
-
if (Ontology.isOntology(object)) {
|
|
3371
|
-
return Ontology.toRdfResource(object, options);
|
|
3372
|
-
}
|
|
3373
|
-
if (PropertyGroup.isPropertyGroup(object)) {
|
|
3374
|
-
return PropertyGroup.toRdfResource(object, options);
|
|
3375
|
-
}
|
|
3376
|
-
if (PropertyShape.isPropertyShape(object)) {
|
|
3377
|
-
return PropertyShape.toRdfResource(object, options);
|
|
3378
|
-
}
|
|
3379
|
-
throw new Error("unrecognized type");
|
|
3380
|
-
};
|
|
3381
|
-
$Object.toRdfResourceValues = ((value, _options) => {
|
|
3382
|
-
if (NodeShape.isNodeShape(value)) {
|
|
3383
|
-
return [
|
|
3384
|
-
NodeShape.toRdfResource(value, {
|
|
3385
|
-
graph: _options.graph,
|
|
3386
|
-
resourceSet: _options.resourceSet,
|
|
3387
|
-
}).identifier,
|
|
3388
|
-
];
|
|
3389
|
-
}
|
|
3390
|
-
if (Ontology.isOntology(value)) {
|
|
3391
|
-
return [
|
|
3392
|
-
Ontology.toRdfResource(value, {
|
|
3393
|
-
graph: _options.graph,
|
|
3394
|
-
resourceSet: _options.resourceSet,
|
|
3395
|
-
}).identifier,
|
|
3396
|
-
];
|
|
3397
|
-
}
|
|
3398
|
-
if (PropertyGroup.isPropertyGroup(value)) {
|
|
3399
|
-
return [
|
|
3400
|
-
PropertyGroup.toRdfResource(value, {
|
|
3401
|
-
graph: _options.graph,
|
|
3402
|
-
resourceSet: _options.resourceSet,
|
|
3403
|
-
}).identifier,
|
|
3404
|
-
];
|
|
3405
|
-
}
|
|
3406
|
-
if (PropertyShape.isPropertyShape(value)) {
|
|
3407
|
-
return [
|
|
3408
|
-
PropertyShape.toRdfResource(value, {
|
|
3409
|
-
graph: _options.graph,
|
|
3410
|
-
resourceSet: _options.resourceSet,
|
|
3411
|
-
}).identifier,
|
|
3412
|
-
];
|
|
3413
|
-
}
|
|
3414
|
-
throw new Error("unable to serialize to RDF");
|
|
3415
|
-
});
|
|
3416
|
-
})($Object || ($Object = {}));
|
|
3417
|
-
//# sourceMappingURL=generated.js.map
|