From accf66c38316653db327451d43ee1bf2e38f2706 Mon Sep 17 00:00:00 2001 From: Alex Nelson Date: Fri, 21 Feb 2025 12:49:35 -0500 Subject: [PATCH] Regenerate Make-managed files References: * https://github.com/ucoProject/UCO/issues/629 Signed-off-by: Alex Nelson --- .../Oresteia_validation-unstable-2.0.0.ttl | 169 +++++- .../Oresteia/Oresteia_validation-unstable.ttl | 166 +++++- ...orensic_path_validation-unstable-2.0.0.ttl | 417 +++++++++++++- ...ctor_forensic_path_validation-unstable.ttl | 410 +++++++++++++- .../exif_data_validation-unstable-2.0.0.ttl | 85 ++- .../exif_data_validation-unstable.ttl | 84 ++- .../file/file_validation-unstable-2.0.0.ttl | 471 +++++++++++++++- .../file/file_validation-unstable.ttl | 462 ++++++++++++++- ...ltipart_file_validation-unstable-2.0.0.ttl | 319 ++++++++++- .../multipart_file_validation-unstable.ttl | 315 ++++++++++- ...k_connection_validation-unstable-2.0.0.ttl | 50 +- ...network_connection_validation-unstable.ttl | 49 +- .../partitions_validation-unstable-2.0.0.ttl | 349 +++++++++++- .../partitions_validation-unstable.ttl | 346 +++++++++++- .../raw_data_validation-unstable-2.0.0.ttl | 50 +- .../raw_data/raw_data_validation-unstable.ttl | 49 +- ...tructed_file_validation-unstable-2.0.0.ttl | 468 ++++++++++++++- ...reconstructed_file_validation-unstable.ttl | 463 ++++++++++++++- ...coverability_validation-unstable-2.0.0.ttl | 531 +++++++++++++++++- .../recoverability_validation-unstable.ttl | 531 +++++++++++++++++- ...ear_phishing_validation-unstable-2.0.0.ttl | 136 ++++- .../spear_phishing_validation-unstable.ttl | 133 ++++- 22 files changed, 6015 insertions(+), 38 deletions(-) diff --git a/examples/illustrations/Oresteia/Oresteia_validation-unstable-2.0.0.ttl b/examples/illustrations/Oresteia/Oresteia_validation-unstable-2.0.0.ttl index 62d020f8..d634bb02 100644 --- a/examples/illustrations/Oresteia/Oresteia_validation-unstable-2.0.0.ttl +++ b/examples/illustrations/Oresteia/Oresteia_validation-unstable-2.0.0.ttl @@ -3,23 +3,33 @@ @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix types: . @prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; + sh:conforms "false"^^xsd:boolean ; sh:result [ a sh:ValidationResult ; sh:focusNode ; - sh:resultMessage "Value is outside the default vocabulary AccountTypeVocab." ; + sh:resultMessage "Value is not member of the vocabulary AccountTypeVocab." ; sh:resultPath observable:accountType ; sh:resultSeverity sh:Info ; - sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceConstraintComponent sh:InConstraintComponent ; sh:sourceShape [ - sh:datatype vocabulary:AccountTypeVocab ; - sh:message "Value is outside the default vocabulary AccountTypeVocab." ; + sh:in ( + "ldap" + "nis" + "openid" + "radius" + "tacacs" + "unix" + "windows_domain" + "windows_local" + ) ; + sh:message "Value is not member of the vocabulary AccountTypeVocab." ; sh:path observable:accountType ; sh:severity sh:Info ; ] ; @@ -28,17 +38,158 @@ [ a sh:ValidationResult ; sh:focusNode ; - sh:resultMessage "Value is outside the default vocabulary AccountTypeVocab." ; + sh:resultMessage "Value is not member of the vocabulary AccountTypeVocab." ; sh:resultPath observable:accountType ; sh:resultSeverity sh:Info ; - sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceConstraintComponent sh:InConstraintComponent ; sh:sourceShape [ - sh:datatype vocabulary:AccountTypeVocab ; - sh:message "Value is outside the default vocabulary AccountTypeVocab." ; + sh:in ( + "ldap" + "nis" + "openid" + "radius" + "tacacs" + "unix" + "windows_domain" + "windows_local" + ) ; + sh:message "Value is not member of the vocabulary AccountTypeVocab." ; sh:path observable:accountType ; sh:severity sh:Info ; ] ; sh:value "Phone" ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; ] ; . diff --git a/examples/illustrations/Oresteia/Oresteia_validation-unstable.ttl b/examples/illustrations/Oresteia/Oresteia_validation-unstable.ttl index 62d020f8..a8d46aa4 100644 --- a/examples/illustrations/Oresteia/Oresteia_validation-unstable.ttl +++ b/examples/illustrations/Oresteia/Oresteia_validation-unstable.ttl @@ -3,23 +3,33 @@ @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix types: . @prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; + sh:conforms "false"^^xsd:boolean ; sh:result [ a sh:ValidationResult ; sh:focusNode ; - sh:resultMessage "Value is outside the default vocabulary AccountTypeVocab." ; + sh:resultMessage "Value is not member of the vocabulary AccountTypeVocab." ; sh:resultPath observable:accountType ; sh:resultSeverity sh:Info ; - sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceConstraintComponent sh:InConstraintComponent ; sh:sourceShape [ - sh:datatype vocabulary:AccountTypeVocab ; - sh:message "Value is outside the default vocabulary AccountTypeVocab." ; + sh:in ( + "ldap" + "nis" + "openid" + "radius" + "tacacs" + "unix" + "windows_domain" + "windows_local" + ) ; + sh:message "Value is not member of the vocabulary AccountTypeVocab." ; sh:path observable:accountType ; sh:severity sh:Info ; ] ; @@ -28,17 +38,155 @@ [ a sh:ValidationResult ; sh:focusNode ; - sh:resultMessage "Value is outside the default vocabulary AccountTypeVocab." ; + sh:resultMessage "Value is not member of the vocabulary AccountTypeVocab." ; sh:resultPath observable:accountType ; sh:resultSeverity sh:Info ; - sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceConstraintComponent sh:InConstraintComponent ; sh:sourceShape [ - sh:datatype vocabulary:AccountTypeVocab ; - sh:message "Value is outside the default vocabulary AccountTypeVocab." ; + sh:in ( + "ldap" + "nis" + "openid" + "radius" + "tacacs" + "unix" + "windows_domain" + "windows_local" + ) ; + sh:message "Value is not member of the vocabulary AccountTypeVocab." ; sh:path observable:accountType ; sh:severity sh:Info ; ] ; sh:value "Phone" ; + ] , + [ + 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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; ] ; . diff --git a/examples/illustrations/bulk_extractor_forensic_path/bulk_extractor_forensic_path_validation-unstable-2.0.0.ttl b/examples/illustrations/bulk_extractor_forensic_path/bulk_extractor_forensic_path_validation-unstable-2.0.0.ttl index 33496ff0..0fcc65d3 100644 --- a/examples/illustrations/bulk_extractor_forensic_path/bulk_extractor_forensic_path_validation-unstable-2.0.0.ttl +++ b/examples/illustrations/bulk_extractor_forensic_path/bulk_extractor_forensic_path_validation-unstable-2.0.0.ttl @@ -1,11 +1,426 @@ +@prefix observable: . @prefix owl: . @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix types: . +@prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; + sh:conforms "false"^^xsd:boolean ; + sh:result + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:byteOrder ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:byteOrder ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:byteOrder ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] + ; . diff --git a/examples/illustrations/bulk_extractor_forensic_path/bulk_extractor_forensic_path_validation-unstable.ttl b/examples/illustrations/bulk_extractor_forensic_path/bulk_extractor_forensic_path_validation-unstable.ttl index 33496ff0..2b62c484 100644 --- a/examples/illustrations/bulk_extractor_forensic_path/bulk_extractor_forensic_path_validation-unstable.ttl +++ b/examples/illustrations/bulk_extractor_forensic_path/bulk_extractor_forensic_path_validation-unstable.ttl @@ -1,11 +1,419 @@ +@prefix observable: . @prefix owl: . @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix types: . +@prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; + sh:conforms "false"^^xsd:boolean ; + sh:result + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:byteOrder ; + 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 observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:byteOrder ; + sh:severity sh:Warning ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:byteOrder ; + 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 observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:byteOrder ; + sh:severity sh:Warning ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:byteOrder ; + 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 observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:byteOrder ; + sh:severity sh:Warning ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + 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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] + ; . diff --git a/examples/illustrations/exif_data/exif_data_validation-unstable-2.0.0.ttl b/examples/illustrations/exif_data/exif_data_validation-unstable-2.0.0.ttl index 33496ff0..35bb0a76 100644 --- a/examples/illustrations/exif_data/exif_data_validation-unstable-2.0.0.ttl +++ b/examples/illustrations/exif_data/exif_data_validation-unstable-2.0.0.ttl @@ -1,11 +1,94 @@ +@prefix observable: . @prefix owl: . @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix types: . +@prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; + sh:conforms "false"^^xsd:boolean ; + sh:result + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:byteOrder ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] + ; . diff --git a/examples/illustrations/exif_data/exif_data_validation-unstable.ttl b/examples/illustrations/exif_data/exif_data_validation-unstable.ttl index 33496ff0..244c1ee1 100644 --- a/examples/illustrations/exif_data/exif_data_validation-unstable.ttl +++ b/examples/illustrations/exif_data/exif_data_validation-unstable.ttl @@ -1,11 +1,93 @@ +@prefix observable: . @prefix owl: . @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix types: . +@prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; + sh:conforms "false"^^xsd:boolean ; + sh:result + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:byteOrder ; + 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 observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:byteOrder ; + sh:severity sh:Warning ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + 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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] + ; . diff --git a/examples/illustrations/file/file_validation-unstable-2.0.0.ttl b/examples/illustrations/file/file_validation-unstable-2.0.0.ttl index 33496ff0..eeeae171 100644 --- a/examples/illustrations/file/file_validation-unstable-2.0.0.ttl +++ b/examples/illustrations/file/file_validation-unstable-2.0.0.ttl @@ -1,11 +1,480 @@ +@prefix observable: . @prefix owl: . @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix types: . +@prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; + sh:conforms "false"^^xsd:boolean ; + sh:result + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:byteOrder ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:byteOrder ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "MD5"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "MD5"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] + ; . diff --git a/examples/illustrations/file/file_validation-unstable.ttl b/examples/illustrations/file/file_validation-unstable.ttl index 33496ff0..9687c45e 100644 --- a/examples/illustrations/file/file_validation-unstable.ttl +++ b/examples/illustrations/file/file_validation-unstable.ttl @@ -1,11 +1,471 @@ +@prefix observable: . @prefix owl: . @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix types: . +@prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; + sh:conforms "false"^^xsd:boolean ; + sh:result + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:byteOrder ; + 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 observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:byteOrder ; + sh:severity sh:Warning ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:byteOrder ; + 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 observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:byteOrder ; + sh:severity sh:Warning ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + 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 "MD5"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "MD5"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] + ; . diff --git a/examples/illustrations/multipart_file/multipart_file_validation-unstable-2.0.0.ttl b/examples/illustrations/multipart_file/multipart_file_validation-unstable-2.0.0.ttl index 33496ff0..ed2c3bdf 100644 --- a/examples/illustrations/multipart_file/multipart_file_validation-unstable-2.0.0.ttl +++ b/examples/illustrations/multipart_file/multipart_file_validation-unstable-2.0.0.ttl @@ -1,11 +1,328 @@ +@prefix observable: . @prefix owl: . @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix types: . +@prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; + sh:conforms "false"^^xsd:boolean ; + sh:result + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:byteOrder ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:byteOrder ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:byteOrder ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:byteOrder ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] + ; . diff --git a/examples/illustrations/multipart_file/multipart_file_validation-unstable.ttl b/examples/illustrations/multipart_file/multipart_file_validation-unstable.ttl index 33496ff0..eb56e380 100644 --- a/examples/illustrations/multipart_file/multipart_file_validation-unstable.ttl +++ b/examples/illustrations/multipart_file/multipart_file_validation-unstable.ttl @@ -1,11 +1,324 @@ +@prefix observable: . @prefix owl: . @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix types: . +@prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; + sh:conforms "false"^^xsd:boolean ; + sh:result + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:byteOrder ; + 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 observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:byteOrder ; + sh:severity sh:Warning ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:byteOrder ; + 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 observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:byteOrder ; + sh:severity sh:Warning ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:byteOrder ; + 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 observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:byteOrder ; + sh:severity sh:Warning ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:byteOrder ; + 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 observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:byteOrder ; + sh:severity sh:Warning ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + 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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] + ; . diff --git a/examples/illustrations/network_connection/network_connection_validation-unstable-2.0.0.ttl b/examples/illustrations/network_connection/network_connection_validation-unstable-2.0.0.ttl index 33496ff0..3e97c4c8 100644 --- a/examples/illustrations/network_connection/network_connection_validation-unstable-2.0.0.ttl +++ b/examples/illustrations/network_connection/network_connection_validation-unstable-2.0.0.ttl @@ -2,10 +2,58 @@ @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix types: . +@prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; + sh:conforms "false"^^xsd:boolean ; + sh:result + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "MD5"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "MD5"^^vocabulary:HashNameVocab ; + ] + ; . diff --git a/examples/illustrations/network_connection/network_connection_validation-unstable.ttl b/examples/illustrations/network_connection/network_connection_validation-unstable.ttl index 33496ff0..6386e474 100644 --- a/examples/illustrations/network_connection/network_connection_validation-unstable.ttl +++ b/examples/illustrations/network_connection/network_connection_validation-unstable.ttl @@ -2,10 +2,57 @@ @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix types: . +@prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; + sh:conforms "false"^^xsd:boolean ; + sh:result + [ + 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 "MD5"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "MD5"^^vocabulary:HashNameVocab ; + ] + ; . diff --git a/examples/illustrations/partitions/partitions_validation-unstable-2.0.0.ttl b/examples/illustrations/partitions/partitions_validation-unstable-2.0.0.ttl index 33496ff0..109dcb42 100644 --- a/examples/illustrations/partitions/partitions_validation-unstable-2.0.0.ttl +++ b/examples/illustrations/partitions/partitions_validation-unstable-2.0.0.ttl @@ -1,11 +1,358 @@ +@prefix observable: . @prefix owl: . @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix types: . +@prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; + sh:conforms "false"^^xsd:boolean ; + sh:result + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "MD5"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "MD5"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA1"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA1"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:contentRecoveredStatus ; + ] ; + sh:value "overwritten"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:metadataRecoveredStatus ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:nameRecoveredStatus ; + ] ; + sh:value "partially recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "overwritten"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "partially recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:contentRecoveredStatus ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:metadataRecoveredStatus ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:nameRecoveredStatus ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] + ; . diff --git a/examples/illustrations/partitions/partitions_validation-unstable.ttl b/examples/illustrations/partitions/partitions_validation-unstable.ttl index 33496ff0..3c702c20 100644 --- a/examples/illustrations/partitions/partitions_validation-unstable.ttl +++ b/examples/illustrations/partitions/partitions_validation-unstable.ttl @@ -1,11 +1,355 @@ +@prefix observable: . @prefix owl: . @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix types: . +@prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; + sh:conforms "false"^^xsd:boolean ; + sh:result + [ + 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 "MD5"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "MD5"^^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 "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + 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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:contentRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:contentRecoveredStatus ; + 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 observable:contentRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "overwritten"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:metadataRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:metadataRecoveredStatus ; + 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 observable:metadataRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:nameRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:nameRecoveredStatus ; + 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 observable:nameRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "partially recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "overwritten"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "partially recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:contentRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:contentRecoveredStatus ; + 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 observable:contentRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:metadataRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:metadataRecoveredStatus ; + 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 observable:metadataRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:nameRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:nameRecoveredStatus ; + 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 observable:nameRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] + ; . diff --git a/examples/illustrations/raw_data/raw_data_validation-unstable-2.0.0.ttl b/examples/illustrations/raw_data/raw_data_validation-unstable-2.0.0.ttl index 33496ff0..90e5a240 100644 --- a/examples/illustrations/raw_data/raw_data_validation-unstable-2.0.0.ttl +++ b/examples/illustrations/raw_data/raw_data_validation-unstable-2.0.0.ttl @@ -2,10 +2,58 @@ @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix types: . +@prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; + sh:conforms "false"^^xsd:boolean ; + sh:result + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "MD5"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "MD5"^^vocabulary:HashNameVocab ; + ] + ; . diff --git a/examples/illustrations/raw_data/raw_data_validation-unstable.ttl b/examples/illustrations/raw_data/raw_data_validation-unstable.ttl index 33496ff0..5835ef81 100644 --- a/examples/illustrations/raw_data/raw_data_validation-unstable.ttl +++ b/examples/illustrations/raw_data/raw_data_validation-unstable.ttl @@ -2,10 +2,57 @@ @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix types: . +@prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; + sh:conforms "false"^^xsd:boolean ; + sh:result + [ + 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 "MD5"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "MD5"^^vocabulary:HashNameVocab ; + ] + ; . diff --git a/examples/illustrations/reconstructed_file/reconstructed_file_validation-unstable-2.0.0.ttl b/examples/illustrations/reconstructed_file/reconstructed_file_validation-unstable-2.0.0.ttl index 33496ff0..536ef065 100644 --- a/examples/illustrations/reconstructed_file/reconstructed_file_validation-unstable-2.0.0.ttl +++ b/examples/illustrations/reconstructed_file/reconstructed_file_validation-unstable-2.0.0.ttl @@ -1,11 +1,477 @@ +@prefix observable: . @prefix owl: . @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix types: . +@prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; + sh:conforms "false"^^xsd:boolean ; + sh:result + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:byteOrder ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:byteOrder ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:byteOrder ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:byteOrder ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:contentRecoveredStatus ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:metadataRecoveredStatus ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:nameRecoveredStatus ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] + ; . diff --git a/examples/illustrations/reconstructed_file/reconstructed_file_validation-unstable.ttl b/examples/illustrations/reconstructed_file/reconstructed_file_validation-unstable.ttl index 33496ff0..4bfe200e 100644 --- a/examples/illustrations/reconstructed_file/reconstructed_file_validation-unstable.ttl +++ b/examples/illustrations/reconstructed_file/reconstructed_file_validation-unstable.ttl @@ -1,11 +1,472 @@ +@prefix observable: . @prefix owl: . @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix types: . +@prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; + sh:conforms "false"^^xsd:boolean ; + sh:result + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:byteOrder ; + 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 observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:byteOrder ; + sh:severity sh:Warning ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:byteOrder ; + 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 observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:byteOrder ; + sh:severity sh:Warning ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:byteOrder ; + 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 observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:byteOrder ; + sh:severity sh:Warning ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:byteOrder ; + 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 observable:byteOrder should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:byteOrder ; + sh:severity sh:Warning ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:resultPath observable:byteOrder ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "Big-endian" + "Little-endian" + "Middle-endian" + ) ; + sh:message "Value is not member of the vocabulary EndiannessTypeVocab." ; + sh:path observable:byteOrder ; + sh:severity sh:Info ; + ] ; + sh:value "Big-endian"^^vocabulary:EndiannessTypeVocab ; + ] , + [ + 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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:contentRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:contentRecoveredStatus ; + 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 observable:contentRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:metadataRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:metadataRecoveredStatus ; + 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 observable:metadataRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:nameRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:nameRecoveredStatus ; + 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 observable:nameRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] + ; . diff --git a/examples/illustrations/recoverability/recoverability_validation-unstable-2.0.0.ttl b/examples/illustrations/recoverability/recoverability_validation-unstable-2.0.0.ttl index 33496ff0..9260099a 100644 --- a/examples/illustrations/recoverability/recoverability_validation-unstable-2.0.0.ttl +++ b/examples/illustrations/recoverability/recoverability_validation-unstable-2.0.0.ttl @@ -1,11 +1,540 @@ +@prefix observable: . @prefix owl: . @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; + sh:conforms "false"^^xsd:boolean ; + sh:result + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:contentRecoveredStatus ; + ] ; + sh:value "partially recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:metadataRecoveredStatus ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:nameRecoveredStatus ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "partially recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:contentRecoveredStatus ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:metadataRecoveredStatus ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:nameRecoveredStatus ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:contentRecoveredStatus ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:metadataRecoveredStatus ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:nameRecoveredStatus ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:contentRecoveredStatus ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:metadataRecoveredStatus ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:nameRecoveredStatus ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:contentRecoveredStatus ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:metadataRecoveredStatus ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path observable:nameRecoveredStatus ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] + ; . diff --git a/examples/illustrations/recoverability/recoverability_validation-unstable.ttl b/examples/illustrations/recoverability/recoverability_validation-unstable.ttl index 33496ff0..3a16e309 100644 --- a/examples/illustrations/recoverability/recoverability_validation-unstable.ttl +++ b/examples/illustrations/recoverability/recoverability_validation-unstable.ttl @@ -1,11 +1,540 @@ +@prefix observable: . @prefix owl: . @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; + sh:conforms "false"^^xsd:boolean ; + sh:result + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:contentRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:contentRecoveredStatus ; + 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 observable:contentRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "partially recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:metadataRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:metadataRecoveredStatus ; + 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 observable:metadataRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:nameRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:nameRecoveredStatus ; + 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 observable:nameRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "partially recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:contentRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:contentRecoveredStatus ; + 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 observable:contentRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:metadataRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:metadataRecoveredStatus ; + 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 observable:metadataRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:nameRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:nameRecoveredStatus ; + 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 observable:nameRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:contentRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:contentRecoveredStatus ; + 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 observable:contentRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:metadataRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:metadataRecoveredStatus ; + 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 observable:metadataRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:nameRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:nameRecoveredStatus ; + 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 observable:nameRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:contentRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:contentRecoveredStatus ; + 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 observable:contentRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:metadataRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:metadataRecoveredStatus ; + 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 observable:metadataRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:nameRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:nameRecoveredStatus ; + 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 observable:nameRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "unknown"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:contentRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:contentRecoveredStatus ; + 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 observable:contentRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:metadataRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:metadataRecoveredStatus ; + 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 observable:metadataRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "As of UCO 1.4.0, the datatype to use for observable:nameRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:resultPath observable:nameRecoveredStatus ; + 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 observable:nameRecoveredStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Warning ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:contentRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:contentRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:metadataRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:metadataRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:resultPath observable:nameRecoveredStatus ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "recovered" + "partially recovered" + "overwritten" + "unknown" + ) ; + sh:message "Value is not member of the vocabulary RecoveredObjectStatusVocab." ; + sh:path observable:nameRecoveredStatus ; + sh:severity sh:Info ; + ] ; + sh:value "recovered"^^vocabulary:RecoveredObjectStatusVocab ; + ] + ; . diff --git a/examples/illustrations/spear_phishing/spear_phishing_validation-unstable-2.0.0.ttl b/examples/illustrations/spear_phishing/spear_phishing_validation-unstable-2.0.0.ttl index 13031562..5f202e58 100644 --- a/examples/illustrations/spear_phishing/spear_phishing_validation-unstable-2.0.0.ttl +++ b/examples/illustrations/spear_phishing/spear_phishing_validation-unstable-2.0.0.ttl @@ -3,12 +3,14 @@ @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix types: . @prefix unmapped: . +@prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; + sh:conforms "false"^^xsd:boolean ; sh:result [ a sh:ValidationResult ; @@ -624,6 +626,138 @@ sh:resultSeverity sh:Info ; sh:sourceConstraintComponent sh:MaxCountConstraintComponent ; sh:sourceShape ep:designatedBy-shape ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ep:hash-73b67dae-7bc7-5388-978d-9f9f98aa4057 ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ep:hash-73b67dae-7bc7-5388-978d-9f9f98aa4057 ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ep:hash-9d18e157-42d0-56bb-af67-db152b71107d ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "MD5"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ep:hash-9d18e157-42d0-56bb-af67-db152b71107d ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "MD5"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ep:hash-bffe8332-c441-58f8-aa60-5dc0915e322a ; + sh:resultMessage "Value is not Literal with datatype xsd:string" ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:minCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path types:hashMethod ; + ] ; + sh:value "SHA1"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ep:hash-bffe8332-c441-58f8-aa60-5dc0915e322a ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA1"^^vocabulary:HashNameVocab ; ] ; . diff --git a/examples/illustrations/spear_phishing/spear_phishing_validation-unstable.ttl b/examples/illustrations/spear_phishing/spear_phishing_validation-unstable.ttl index 13031562..3cb1b312 100644 --- a/examples/illustrations/spear_phishing/spear_phishing_validation-unstable.ttl +++ b/examples/illustrations/spear_phishing/spear_phishing_validation-unstable.ttl @@ -3,12 +3,14 @@ @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix types: . @prefix unmapped: . +@prefix vocabulary: . @prefix xsd: . [] a sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; + sh:conforms "false"^^xsd:boolean ; sh:result [ a sh:ValidationResult ; @@ -624,6 +626,135 @@ sh:resultSeverity sh:Info ; sh:sourceConstraintComponent sh:MaxCountConstraintComponent ; sh:sourceShape ep:designatedBy-shape ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ep:hash-73b67dae-7bc7-5388-978d-9f9f98aa4057 ; + 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 "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ep:hash-73b67dae-7bc7-5388-978d-9f9f98aa4057 ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA256"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ep:hash-9d18e157-42d0-56bb-af67-db152b71107d ; + 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 "MD5"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ep:hash-9d18e157-42d0-56bb-af67-db152b71107d ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "MD5"^^vocabulary:HashNameVocab ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ep:hash-bffe8332-c441-58f8-aa60-5dc0915e322a ; + 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 ep:hash-bffe8332-c441-58f8-aa60-5dc0915e322a ; + sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ; + sh:resultPath types:hashMethod ; + sh:resultSeverity sh:Info ; + sh:sourceConstraintComponent sh:InConstraintComponent ; + sh:sourceShape [ + sh:in ( + "MD5" + "MD6" + "SHA1" + "SHA224" + "SHA256" + "SHA3-224" + "SHA3-256" + "SHA3-384" + "SHA3-512" + "SHA384" + "SHA512" + "SSDEEP" + ) ; + sh:message "Value is not member of the vocabulary HashNameVocab." ; + sh:path types:hashMethod ; + sh:severity sh:Info ; + ] ; + sh:value "SHA1"^^vocabulary:HashNameVocab ; ] ; .