Ontology Version: 2.2.0

cacontology-trafficking-shapes:EarningsCollectionShape leaf node


URI

https://cacontology.projectvic.org/trafficking/shapes#EarningsCollectionShape

Label

Earnings Collection Shape

Description

Validates core financial properties for earnings collection events.

Shape Properties

Instances of cacontology-trafficking:EarningsCollection can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-trafficking:EarningsCollection
cacontology-trafficking:earningsAmount 1 1 xsd:decimal
cacontology-trafficking:earningsPeriod 1 xsd:duration

Implementation

@prefix cacontology-trafficking: <https://cacontology.projectvic.org/trafficking#> .
@prefix cacontology-trafficking-shapes: <https://cacontology.projectvic.org/trafficking/shapes#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-trafficking-shapes:EarningsCollectionShape a sh:NodeShape ;
    rdfs:label "Earnings Collection Shape"@en ;
    rdfs:comment "Validates core financial properties for earnings collection events."@en ;
    sh:property [ sh:datatype xsd:decimal ;
            sh:maxCount 1 ;
            sh:message "earningsAmount must be a single non-negative xsd:decimal value."@en ;
            sh:minCount 1 ;
            sh:minInclusive 0.0 ;
            sh:path cacontology-trafficking:earningsAmount ],
        [ sh:datatype xsd:duration ;
            sh:maxCount 1 ;
            sh:message "earningsPeriod, when provided, must be a single xsd:duration value."@en ;
            sh:path cacontology-trafficking:earningsPeriod ] ;
    sh:targetClass cacontology-trafficking:EarningsCollection .