Ontology Version: 2.2.0

hotline:HotlineOrganizationShape leaf node


URI

https://cacontology.projectvic.org/hotlines/core#HotlineOrganizationShape

Label

Hotline Organization Shape

Description

SHACL shape for hotline organizations with gUFO Organization validation.

Target Classes (1)

Shape Properties

Instances of hotline:HotlineOrganization can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

Implementation

@prefix gufo: <http://purl.org/nemo/gufo#> .
@prefix hotline: <https://cacontology.projectvic.org/hotlines/core#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix uco-core: <https://ontology.unifiedcyberontology.org/uco/core/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
hotline:HotlineOrganizationShape a sh:NodeShape ;
    rdfs:label "Hotline Organization Shape"@en ;
    rdfs:comment "SHACL shape for hotline organizations with gUFO Organization validation."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:message "Hotline organizations must have a name"@en ;
            sh:minCount 1 ;
            sh:path uco-core:name ],
        [ sh:hasValue gufo:Organization ;
            sh:message "Hotline organizations must be instances of gUFO Organization"@en ;
            sh:path rdf:type ] ;
    sh:rule [ a sh:SPARQLRule ;
            sh:construct """
            INSERT { $this a hotline:OrganizationalError . }
            WHERE {
                $this a hotline:HotlineOrganization .
                FILTER NOT EXISTS { 
                    $this hotline:hasCapability ?capability .
                }
            }
        """ ;
            sh:message "Hotline organizations must demonstrate operational capabilities"@en ;
            sh:prefixes hotline: ;
            sh:severity sh:Violation ] ;
    sh:targetClass hotline:HotlineOrganization .