Ontology Version: 3.1.0

cacontology-infrastructure-shapes:EffectiveTakedownRule leaf node


URI

https://cacontology.projectvic.org/infrastructure/shapes#EffectiveTakedownRule

Label

Effective Takedown Rule

Description

Advanced gUFO business rule: Highly effective takedowns should have high completeness and fast speed.

Implementation

@prefix cacontology-infrastructure: <https://cacontology.projectvic.org/infrastructure#> .
@prefix cacontology-infrastructure-shapes: <https://cacontology.projectvic.org/infrastructure/shapes#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-infrastructure-shapes:EffectiveTakedownRule a sh:NodeShape ;
    rdfs:label "Effective Takedown Rule"@en ;
    rdfs:comment "Advanced gUFO business rule: Highly effective takedowns should have high completeness and fast speed."@en ;
    sh:sparql [ sh:message "Highly effective takedowns must have high completeness and appropriate speed (gUFO business rule)."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-infrastructure:hasTakedownEffectiveness ?effectiveness .
                FILTER (?effectiveness >= 0.9)
                {
                    FILTER NOT EXISTS {
                        $this cacontology-infrastructure:hasTakedownCompleteness ?completeness .
                        FILTER (?completeness >= 0.8)
                    }
                } UNION {
                    FILTER NOT EXISTS {
                        $this cacontology-infrastructure:hasTakedownSpeed ?speed .
                        FILTER (?speed IN ("fast", "rapid", "instantaneous"))
                    }
                }
            }
        """ ] ;
    sh:targetClass cacontology-infrastructure:InfrastructureTakedown .