Ontology Version: 3.1.0

cacontology-infrastructure:FinancialConsistencyValidationShape leaf node


URI

https://cacontology.projectvic.org/infrastructure#FinancialConsistencyValidationShape

Label

Financial Consistency Validation Shape

Description

Validates financial processing consistency.

Implementation

@prefix cacontology-infrastructure: <https://cacontology.projectvic.org/infrastructure#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-infrastructure:FinancialConsistencyValidationShape a sh:NodeShape ;
    rdfs:label "Financial Consistency Validation Shape"@en ;
    rdfs:comment "Validates financial processing consistency."@en ;
    sh:sparql [ sh:message "High-revenue platforms should have multiple payment methods."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-infrastructure:monthlyRevenue ?revenue .
                FILTER (?revenue > 100000)
                FILTER NOT EXISTS {
                    $this cacontology-infrastructure:paymentMethods ?method1 .
                    $this cacontology-infrastructure:paymentMethods ?method2 .
                    FILTER (?method1 != ?method2)
                }
            }
        """ ] ;
    sh:targetClass cacontology-infrastructure:PaymentProcessing .