@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 partner: <https://secorolab.github.io/metamodels/website/partner#> .

sh_sec:PartnerShape
    a sh:NodeShape ;
    sh:targetClass partner:Partner ;
    sh:closed false ;

    sh:property [
        sh:path     partner:name ;
        sh:datatype xsd:string ;
        sh:minCount 1 ;
        sh:maxCount 1 ;
        sh:severity sh:Violation ;
        sh:message  "Partner must have a name." ;
    ] ;

    sh:property [
        sh:path     partner:description ;
        sh:datatype xsd:string ;
        sh:maxCount 1 ;
        sh:severity sh:Warning ;
        sh:message  "Partner should have a description." ;
    ] ;

    sh:property [
        sh:path     partner:url ;
        sh:nodeKind sh:IRI ;
        sh:maxCount 1 ;
        sh:severity sh:Warning ;
        sh:message  "Partner should have a URL." ;
    ] ;

.
