Ontology Version: 2.2.0

cacontology-infrastructure:FinancialConsistencyValidationShape leaf node


URI

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

Label

Financial Consistency Validation Shape

Description

Validates financial processing consistency.

Shape Properties

Instances of cacontology-infrastructure:PaymentProcessing can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-infrastructure:PaymentProcessing
cacontology-infrastructure:hasFinancialComplexity 1 xsd:string
cacontology-infrastructure:hasFinancialTraceability 1 xsd:double
cacontology-infrastructure:monthlyRevenue 0 1 xsd:decimal
cacontology-infrastructure:paymentMethods 0 10 xsd:string

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 .