|
| 1 | +@prefix dcterms: <http://purl.org/dc/terms/> . |
| 2 | +@prefix observable: <https://ontology.unifiedcyberontology.org/uco/observable/> . |
1 | 3 | @prefix owl: <http://www.w3.org/2002/07/owl#> .
|
2 | 4 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
3 | 5 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
4 | 6 | @prefix sh: <http://www.w3.org/ns/shacl#> .
|
| 7 | +@prefix skos: <http://www.w3.org/2004/02/skos/core#> . |
| 8 | +@prefix types: <https://ontology.unifiedcyberontology.org/uco/types/> . |
| 9 | +@prefix vocabulary1: <https://ontology.unifiedcyberontology.org/uco/vocabulary/> . |
5 | 10 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
6 | 11 |
|
7 | 12 | []
|
8 | 13 | a sh:ValidationReport ;
|
9 |
| - sh:conforms "true"^^xsd:boolean ; |
| 14 | + sh:conforms "false"^^xsd:boolean ; |
| 15 | + sh:result |
| 16 | + [ |
| 17 | + a sh:ValidationResult ; |
| 18 | + sh:focusNode "image/jpg" ; |
| 19 | + sh:resultMessage "The used mimeType value is not a concept with a skos:notation. Some consumers of this data expect a string with the MIME 'type/subtype' format to be supplied with skos:notation. Please either add the skos:notation to your input graph or incorporate the UCO MIME Taxonomy."@en ; |
| 20 | + sh:resultPath skos:notation ; |
| 21 | + sh:resultSeverity sh:Warning ; |
| 22 | + sh:sourceConstraintComponent sh:MinCountConstraintComponent ; |
| 23 | + sh:sourceShape observable:mimeType-notation ; |
| 24 | + ] , |
| 25 | + [ |
| 26 | + a sh:ValidationResult ; |
| 27 | + sh:focusNode [ |
| 28 | + a observable:ContentDataFacet ; |
| 29 | + observable:byteOrder "Big-endian"^^vocabulary1:EndiannessTypeVocab ; |
| 30 | + observable:dataPayload "<base 64 encoded data of the file>" ; |
| 31 | + observable:hash [ |
| 32 | + a types:Hash ; |
| 33 | + types:hashMethod "SHA256"^^vocabulary1:HashNameVocab ; |
| 34 | + types:hashValue "6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b"^^xsd:hexBinary ; |
| 35 | + ] ; |
| 36 | + observable:magicNumber "/9j/ww==" ; |
| 37 | + observable:mimeType "image/jpg" ; |
| 38 | + observable:sizeInBytes "35000"^^xsd:integer ; |
| 39 | + ] ; |
| 40 | + sh:resultMessage "Value does not have class dcterms:FileFormat" ; |
| 41 | + sh:resultPath observable:mimeType ; |
| 42 | + sh:resultSeverity sh:Violation ; |
| 43 | + sh:sourceConstraintComponent sh:ClassConstraintComponent ; |
| 44 | + sh:sourceShape [ |
| 45 | + sh:class dcterms:FileFormat ; |
| 46 | + sh:nodeKind sh:IRI ; |
| 47 | + sh:path observable:mimeType ; |
| 48 | + ] ; |
| 49 | + sh:value "image/jpg" ; |
| 50 | + ] , |
| 51 | + [ |
| 52 | + a sh:ValidationResult ; |
| 53 | + sh:focusNode [ |
| 54 | + a observable:ContentDataFacet ; |
| 55 | + observable:byteOrder "Big-endian"^^vocabulary1:EndiannessTypeVocab ; |
| 56 | + observable:dataPayload "<base 64 encoded data of the file>" ; |
| 57 | + observable:hash [ |
| 58 | + a types:Hash ; |
| 59 | + types:hashMethod "SHA256"^^vocabulary1:HashNameVocab ; |
| 60 | + types:hashValue "6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b"^^xsd:hexBinary ; |
| 61 | + ] ; |
| 62 | + observable:magicNumber "/9j/ww==" ; |
| 63 | + observable:mimeType "image/jpg" ; |
| 64 | + observable:sizeInBytes "35000"^^xsd:integer ; |
| 65 | + ] ; |
| 66 | + sh:resultMessage "Value is not an instance of types:MIMEFormat or one of its subclasses. Please consider using a value having type types:IANAMediaType or types:NonIANAMediaType."@en ; |
| 67 | + sh:resultPath observable:mimeType ; |
| 68 | + sh:resultSeverity sh:Info ; |
| 69 | + sh:sourceConstraintComponent sh:ClassConstraintComponent ; |
| 70 | + sh:sourceShape observable:mimeType-class-types-MIMEFormat ; |
| 71 | + sh:value "image/jpg" ; |
| 72 | + ] , |
| 73 | + [ |
| 74 | + a sh:ValidationResult ; |
| 75 | + sh:focusNode [ |
| 76 | + a observable:ContentDataFacet ; |
| 77 | + observable:byteOrder "Big-endian"^^vocabulary1:EndiannessTypeVocab ; |
| 78 | + observable:dataPayload "<base 64 encoded data of the file>" ; |
| 79 | + observable:hash [ |
| 80 | + a types:Hash ; |
| 81 | + types:hashMethod "SHA256"^^vocabulary1:HashNameVocab ; |
| 82 | + types:hashValue "6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b"^^xsd:hexBinary ; |
| 83 | + ] ; |
| 84 | + observable:magicNumber "/9j/ww==" ; |
| 85 | + observable:mimeType "image/jpg" ; |
| 86 | + observable:sizeInBytes "35000"^^xsd:integer ; |
| 87 | + ] ; |
| 88 | + sh:resultMessage "Value is not of Node Kind sh:IRI" ; |
| 89 | + sh:resultPath observable:mimeType ; |
| 90 | + sh:resultSeverity sh:Violation ; |
| 91 | + sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; |
| 92 | + sh:sourceShape [ |
| 93 | + sh:class dcterms:FileFormat ; |
| 94 | + sh:nodeKind sh:IRI ; |
| 95 | + sh:path observable:mimeType ; |
| 96 | + ] ; |
| 97 | + sh:value "image/jpg" ; |
| 98 | + ] |
| 99 | + ; |
10 | 100 | .
|
11 | 101 |
|
0 commit comments