From 6d385ba7834cf71360e6bea206ce1fb0b6a2c006 Mon Sep 17 00:00:00 2001 From: Alex Nelson Date: Mon, 12 Aug 2024 23:01:58 -0400 Subject: [PATCH] Regenerate Make-managed files References: * https://github.com/ucoProject/UCO/issues/629 Signed-off-by: Alex Nelson --- tests/examples/hash_PASS_validation.ttl | 70 ++++++++++ tests/examples/hash_XFAIL_validation.ttl | 157 +++-------------------- 2 files changed, 86 insertions(+), 141 deletions(-) diff --git a/tests/examples/hash_PASS_validation.ttl b/tests/examples/hash_PASS_validation.ttl index 33496ff0..56044fea 100644 --- a/tests/examples/hash_PASS_validation.ttl +++ b/tests/examples/hash_PASS_validation.ttl @@ -2,10 +2,80 @@ @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix types: . +@prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; sh:conforms "true"^^xsd:boolean ; + sh:result + [ + a sh:ValidationResult ; + sh:focusNode "1"^^xsd:integer ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape types:hashMethod-objects-in-shape ; + sh:value "1"^^xsd:integer ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode "CUSTOM_hash" ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape types:hashMethod-objects-in-shape ; + sh:value "CUSTOM_hash" ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode "SHA-1" ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape types:hashMethod-objects-in-shape ; + sh:value "SHA-1" ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode "SHA1"^^vocabulary:HashNameVocab ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape types:hashMethod-objects-in-shape ; + sh:value "SHA1"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for types:hashMethod should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Warning ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:message "As of UCO 1.4.0, the datatype to use for types:hashMethod should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path types:hashMethod ; + sh:severity sh:Warning ; + ] ; + sh:value "SHA1"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for types:hashMethod should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Warning ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:message "As of UCO 1.4.0, the datatype to use for types:hashMethod should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path types:hashMethod ; + sh:severity sh:Warning ; + ] ; + sh:value "1"^^xsd:integer ; + ] + ; . diff --git a/tests/examples/hash_XFAIL_validation.ttl b/tests/examples/hash_XFAIL_validation.ttl index e05552df..48cc07e1 100644 --- a/tests/examples/hash_XFAIL_validation.ttl +++ b/tests/examples/hash_XFAIL_validation.ttl @@ -3,151 +3,26 @@ @prefix rdfs: . @prefix sh: . @prefix types: . -@prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; sh:conforms "false"^^xsd:boolean ; - sh:result - [ - a sh:ValidationResult ; - sh:focusNode ; - sh:resultMessage "Value is outside the default vocabulary HashNameVocab." ; - sh:resultPath types:hashMethod ; - sh:resultSeverity sh:Info ; - sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; - sh:sourceShape [ - sh:datatype vocabulary:HashNameVocab ; - sh:message "Value is outside the default vocabulary HashNameVocab." ; - sh:path types:hashMethod ; - sh:severity sh:Info ; - ] ; - sh:value "CUSTOM_hash" ; - ] , - [ - a sh:ValidationResult ; - sh:focusNode ; - sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; - sh:resultPath types:hashMethod ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:OrConstraintComponent ; - sh:sourceShape [ - sh:message "Value is not member of the vocabulary HashNameVocab." ; - sh:or ( - [ - sh:datatype vocabulary:HashNameVocab ; - sh:in ( - "MD5"^^vocabulary:HashNameVocab - "MD6"^^vocabulary:HashNameVocab - "SHA1"^^vocabulary:HashNameVocab - "SHA224"^^vocabulary:HashNameVocab - "SHA256"^^vocabulary:HashNameVocab - "SHA3-224"^^vocabulary:HashNameVocab - "SHA3-256"^^vocabulary:HashNameVocab - "SHA3-384"^^vocabulary:HashNameVocab - "SHA3-512"^^vocabulary:HashNameVocab - "SHA384"^^vocabulary:HashNameVocab - "SHA512"^^vocabulary:HashNameVocab - "SSDEEP"^^vocabulary:HashNameVocab - ) ; - ] - [ - sh:datatype xsd:string ; - ] - ) ; - sh:path types:hashMethod ; - ] ; - sh:value "SHA-1"^^vocabulary:HashNameVocab ; - ] , - [ - a sh:ValidationResult ; - sh:focusNode ; - sh:resultMessage "Value is outside the default vocabulary HashNameVocab." ; - sh:resultPath types:hashMethod ; - sh:resultSeverity sh:Info ; - sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; - sh:sourceShape [ - sh:datatype vocabulary:HashNameVocab ; - sh:message "Value is outside the default vocabulary HashNameVocab." ; - sh:path types:hashMethod ; - sh:severity sh:Info ; - ] ; - sh:value "SHA1" ; - ] , - [ - a sh:ValidationResult ; - sh:focusNode ; - sh:resultMessage 'Node Literal("1", datatype=xsd:integer) does not conform to one or more shapes in [ sh:datatype vocabulary:HashNameVocab ] , [ sh:datatype xsd:string ]' ; - sh:resultPath types:hashMethod ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:OrConstraintComponent ; - sh:sourceShape [ - sh:maxCount "1"^^xsd:integer ; - sh:minCount "1"^^xsd:integer ; - sh:nodeKind sh:Literal ; - sh:or ( - [ - sh:datatype vocabulary:HashNameVocab ; - ] - [ - sh:datatype xsd:string ; - ] - ) ; - sh:path types:hashMethod ; - ] ; - sh:value "1"^^xsd:integer ; - ] , - [ - a sh:ValidationResult ; - sh:focusNode ; - sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; - sh:resultPath types:hashMethod ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:OrConstraintComponent ; - sh:sourceShape [ - sh:message "Value is not member of the vocabulary HashNameVocab." ; - sh:or ( - [ - sh:datatype vocabulary:HashNameVocab ; - sh:in ( - "MD5"^^vocabulary:HashNameVocab - "MD6"^^vocabulary:HashNameVocab - "SHA1"^^vocabulary:HashNameVocab - "SHA224"^^vocabulary:HashNameVocab - "SHA256"^^vocabulary:HashNameVocab - "SHA3-224"^^vocabulary:HashNameVocab - "SHA3-256"^^vocabulary:HashNameVocab - "SHA3-384"^^vocabulary:HashNameVocab - "SHA3-512"^^vocabulary:HashNameVocab - "SHA384"^^vocabulary:HashNameVocab - "SHA512"^^vocabulary:HashNameVocab - "SSDEEP"^^vocabulary:HashNameVocab - ) ; - ] - [ - sh:datatype xsd:string ; - ] - ) ; - sh:path types:hashMethod ; - ] ; - sh:value "1"^^xsd:integer ; - ] , - [ - a sh:ValidationResult ; - sh:focusNode ; - sh:resultMessage "Value is outside the default vocabulary HashNameVocab." ; - sh:resultPath types:hashMethod ; - sh:resultSeverity sh:Info ; - sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; - sh:sourceShape [ - sh:datatype vocabulary:HashNameVocab ; - sh:message "Value is outside the default vocabulary HashNameVocab." ; - sh:path types:hashMethod ; - sh:severity sh:Info ; - ] ; - sh:value "1"^^xsd:integer ; - ] - ; + sh:result [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:hexBinary" ; + sh:resultPath types:hashValue ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:hexBinary ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashValue ; + ] ; + sh:value "da39a3ee5e6b4b0d3255bfef95601890afd80709" ; + ] ; .