Ontology Version: 2.2.0

cacontology-asset-forfeiture:PartialForfeitureShape leaf node


URI

https://cacontology.projectvic.org/asset-forfeiture#PartialForfeitureShape

Label

Partial Forfeiture Shape

Description

Enhanced validation shape for partial forfeiture with gUFO Object validation and percentage constraints.

Shape Properties

Instances of cacontology-asset-forfeiture:PartialForfeiture can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-asset-forfeiture:PartialForfeiture
cacontology-asset-forfeiture:forfeiturePercentage 1 1 xsd:decimal

Implementation

@prefix cacontology-asset-forfeiture: <https://cacontology.projectvic.org/asset-forfeiture#> .
@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-asset-forfeiture:PartialForfeitureShape a sh:NodeShape ;
    rdfs:label "Partial Forfeiture Shape"@en ;
    rdfs:comment "Enhanced validation shape for partial forfeiture with gUFO Object validation and percentage constraints."@en ;
    sh:property [ sh:datatype xsd:decimal ;
            sh:maxCount 1 ;
            sh:maxExclusive 100.0 ;
            sh:message "Forfeiture percentage must be between 0 and 100"@en ;
            sh:minCount 1 ;
            sh:minExclusive 0.0 ;
            sh:path cacontology-asset-forfeiture:forfeiturePercentage ] ;
    sh:rule [ a sh:SPARQLRule ;
            sh:construct """
            INSERT { $this a cacontology-asset-forfeiture:JustificationError . }
            WHERE {
                $this a cacontology-asset-forfeiture:PartialForfeiture .
                FILTER NOT EXISTS { 
                    $this cacontology-asset-forfeiture:hasLegalJustification ?justification .
                    ?justification cacontology-asset-forfeiture:justificationType "partial_forfeiture" .
                }
            }
        """ ;
            sh:message "Partial forfeiture must have legal justification for percentage"@en ;
            sh:prefixes cacontology-asset-forfeiture: ;
            sh:severity sh:Violation ] ;
    sh:targetClass cacontology-asset-forfeiture:PartialForfeiture .