Ontology Version: 2.2.0

cacontology-institutional:DonorManipulationBusinessRule leaf node


URI

https://cacontology.projectvic.org/institutional-exploitation#DonorManipulationBusinessRule

Label

DonorManipulationBusinessRule

Shape Properties

Instances of cacontology-institutional:DonorManipulation can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-institutional:DonorManipulation
cacontology-institutional:donorCount 1 1 xsd:nonNegativeInteger
cacontology-institutional:manipulationTactics 1 xsd:string

Implementation

@prefix cacontology-institutional: <https://cacontology.projectvic.org/institutional-exploitation#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-institutional:DonorManipulationBusinessRule a sh:NodeShape ;
    sh:sparql [ sh:message "Large-scale funding misuse requires multiple manipulation tactics"@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/institutional-exploitation#"^^xsd:anyURI ;
                            sh:prefix "cacontology-institutional" ] ] ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-institutional:fundingAmount ?amount ;
                      cacontology-institutional:manipulationTactics ?tactics .
                FILTER (?amount > 100000.00)
                {
                    SELECT $this (COUNT(?tactics) as ?tacticCount)
                    WHERE {
                        $this cacontology-institutional:manipulationTactics ?tactics .
                    }
                    GROUP BY $this
                    HAVING (?tacticCount < 2)
                }
            }
        """ ] ;
    sh:targetClass cacontology-institutional:DonorManipulation .