Ontology Version: 3.1.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.

Targets (1)

Property Constraints (2)

Focus nodes of this shape (cacontology-trafficking:EarningsCollection) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-trafficking:earningsAmount Dollar amount collected from victim exploitation.
sh:message earningsAmount must be a single non-negative xsd:decimal value.
1 1 xsd:decimal
sh:minInclusive 0.0
cacontology-trafficking:earningsPeriod Time period over which earnings were collected.
sh:message earningsPeriod, when provided, must be a single xsd:duration value.
0 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 .