Ontology Version: 2.2.0

cacontology-sextortion:FinancialDemandValidationShape leaf node


URI

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

Label

Financial Demand Validation Shape

Description

Validates financial sextortion demands.

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:FinancialDemandValidationShape a sh:NodeShape ;
    rdfs:label "Financial Demand Validation Shape"@en ;
    rdfs:comment "Validates financial sextortion demands."@en ;
    sh:sparql [ sh:message "Financial sextortion should specify payment method when demand amount is specified."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-sextortion:demandAmount ?amount .
                FILTER (?amount > 0)
                FILTER NOT EXISTS {
                    $this cacontology-sextortion:paymentMethod ?method .
                }
            }
        """ ] ;
    sh:targetClass cacontology-sextortion:FinancialSextortion .