@prefix sh:     <http://www.w3.org/ns/shacl#> .
@prefix xsd:    <http://www.w3.org/2001/XMLSchema#> .
@prefix sh_sec: <https://secorolab.github.io/metamodels/website/> .
@prefix image:  <https://secorolab.github.io/metamodels/website/image#> .

sh_sec:ImageShape
    a sh:NodeShape ;
    sh:targetClass image:Image ;
    sh:closed false ;

    sh:property [
        sh:path     image:url ;
        sh:nodeKind sh:IRI ;
        sh:minCount 1 ;
        sh:maxCount 1 ;
        sh:severity sh:Violation ;
        sh:message  "Image must have exactly one URL." ;
    ] ;

    sh:property [
        sh:path     image:caption ;
        sh:datatype xsd:string ;
        sh:maxCount 1 ;
    ] ;

    sh:property [
        sh:path     image:copyright ;
        sh:datatype xsd:string ;
        sh:maxCount 1 ;
    ] ;
.
