Ontology Version: 2.2.0

cacontology-physical-shapes:ThoroughSearchRule leaf node


URI

https://cacontology.projectvic.org/physical-evidence/shapes#ThoroughSearchRule

Label

Thorough Search Rule

Description

Advanced gUFO business rule: Comprehensive searches should have high efficiency and completeness.

Implementation

@prefix cacontology-physical-shapes: <https://cacontology.projectvic.org/physical-evidence/shapes#> .
@prefix cacontology-physical1: <https://cacontology.projectvic.org/physical-evidence#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-physical-shapes:ThoroughSearchRule a sh:NodeShape ;
    rdfs:label "Thorough Search Rule"@en ;
    rdfs:comment "Advanced gUFO business rule: Comprehensive searches should have high efficiency and completeness."@en ;
    sh:sparql [ sh:message "Comprehensive or exhaustive searches must have high efficiency and completeness ratings (gUFO business rule)."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-physical:hasSearchThoroughness ?thoroughness .
                FILTER (?thoroughness IN ("comprehensive", "exhaustive"))
                {
                    FILTER NOT EXISTS {
                        $this cacontology-physical:hasSearchEfficiency ?efficiency .
                        FILTER (?efficiency >= 0.7)
                    }
                } UNION {
                    FILTER NOT EXISTS {
                        $this cacontology-physical:hasSearchCompleteness ?completeness .
                        FILTER (?completeness >= 0.8)
                    }
                }
            }
        """ ] ;
    sh:targetClass cacontology-physical1:PhysicalSearch .