Ontology Version: 3.0.0

hotline:ReporterRoleShape leaf node


URI

https://cacontology.projectvic.org/hotlines#ReporterRoleShape

Label

Reporter Role Shape

Description

Enhanced SHACL shape for reporter roles with anti-rigid gUFO Role validation.

Target Classes (1)

Shape Properties

Instances of hotline:ReporterRole can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

hotline:ReporterRole
hotline:isAnonymous 1 xsd:boolean
hotline:roleAssignmentTime 1 xsd:dateTime
cac-core:Role
cacontology-infrastructure:hasRoleBeginPoint 1 xsd:dateTimeStamp
cacontology-infrastructure:hasRoleEndPoint 1 xsd:dateTimeStamp
cacontology-multi:hasRoleBeginPoint 1 xsd:dateTimeStamp
cacontology-multi:hasRoleEndPoint 1 xsd:dateTimeStamp
cacontology-partnerships:hasRoleBeginPoint 1 xsd:dateTimeStamp
cacontology-partnerships:hasRoleEndPoint 1 xsd:dateTimeStamp
cacontology-physical:hasRoleBeginPoint 1 xsd:dateTimeStamp
cacontology-physical:hasRoleEndPoint 1 xsd:dateTimeStamp
cacontology-production:hasRoleBeginPoint 0 1 xsd:dateTimeStamp
cacontology-production:hasRoleEndPoint 0 1 xsd:dateTimeStamp
cacontology:hasRoleBeginPoint 1 xsd:dateTimeStamp
cacontology:hasRoleEndPoint 1 xsd:dateTimeStamp
0 cacontology:CACInvestigation

Implementation

@prefix hotline: <https://cacontology.projectvic.org/hotlines#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
hotline:ReporterRoleShape a sh:NodeShape ;
    rdfs:label "Reporter Role Shape"@en ;
    rdfs:comment "Enhanced SHACL shape for reporter roles with anti-rigid gUFO Role validation."@en ;
    sh:property [ sh:datatype xsd:boolean ;
            sh:message "A reporter role must specify whether it is anonymous"@en ;
            sh:minCount 1 ;
            sh:path hotline:isAnonymous ],
        [ sh:datatype xsd:dateTime ;
            sh:message "Reporter roles must have assignment timestamps"@en ;
            sh:minCount 1 ;
            sh:path hotline:roleAssignmentTime ] ;
    sh:rule [ a sh:SPARQLRule ;
            sh:construct """
            INSERT { $this a hotline:AntiRigidityError . }
            WHERE {
                $this a hotline:ReporterRole .
                FILTER NOT EXISTS { 
                    $this hotline:roleAssignmentTime ?start .
                    OPTIONAL { $this hotline:roleEndTime ?end . }
                }
            }
        """ ;
            sh:message "Reporter roles must demonstrate anti-rigidity (can be gained/lost)"@en ;
            sh:prefixes hotline: ;
            sh:severity sh:Violation ] ;
    sh:targetClass hotline:ReporterRole .