Ontology Version: 2.2.0

cacontology-sextortion:ComplianceDurationValidationShape leaf node


URI

https://cacontology.projectvic.org/sextortion#ComplianceDurationValidationShape

Label

Compliance Duration Validation Shape

Description

Validates compliance duration consistency.

Shape Properties

Instances of cacontology-sextortion:ComplianceResponse can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

Implementation

@prefix cacontology-sextortion: <https://cacontology.projectvic.org/sextortion#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-sextortion:ComplianceDurationValidationShape a sh:NodeShape ;
    rdfs:label "Compliance Duration Validation Shape"@en ;
    rdfs:comment "Validates compliance duration consistency."@en ;
    sh:sparql [ sh:message "Immediate compliance should have short duration."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-sextortion:complianceLevel "immediate" ;
                      cacontology-sextortion:complianceDuration ?duration .
                FILTER (?duration > 7.0)
            }
        """ ] ;
    sh:targetClass cacontology-sextortion:ComplianceResponse .