https://cacontology.projectvic.org/trafficking/shapes#EarningsCollectionShape
Validates core financial properties for earnings collection events.
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
|
||
@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 .