Ontology Version: 3.1.0

cacontology-athletic:AthleticFacilityExploitationShape leaf node


URI

https://cacontology.projectvic.org/athletic#AthleticFacilityExploitationShape

Label

Athletic Facility Exploitation Shape

Description

Enhanced validation shape for athletic facility exploitation with gUFO Event validation and facility Object modeling.

Property Constraints (1)

Focus nodes of this shape (cacontology-athletic:AthleticFacilityExploitation) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-athletic:facilityType
sh:message Facility type must be from the allowed list.
1 1 xsd:string
sh:in gym, field, court, pool, track, locker_room, training_room, weight_room, other

Implementation

@prefix cacontology-athletic: <https://cacontology.projectvic.org/athletic#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@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-athletic:AthleticFacilityExploitationShape a sh:NodeShape ;
    rdfs:label "Athletic Facility Exploitation Shape"@en ;
    rdfs:comment "Enhanced validation shape for athletic facility exploitation with gUFO Event validation and facility Object modeling."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:in ( "gym" "field" "court" "pool" "track" "locker_room" "training_room" "weight_room" "other" ) ;
            sh:maxCount 1 ;
            sh:message "Facility type must be from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-athletic:facilityType ] ;
    sh:rule [ a sh:SPARQLRule ;
            sh:construct """
            INSERT { $this a cacontology-athletic:FacilityAccessError . }
            WHERE {
                $this a cacontology-athletic:AthleticFacilityExploitation .
                $this cacontology-athletic:occursInFacility ?facility .
                FILTER NOT EXISTS { 
                    ?facility a gufo:Object ;
                    ?facility cacontology-athletic:facilityStatus "accessible" .
                }
            }
        """ ;
            sh:message "Athletic facility exploitation must occur in verified and accessible facilities"@en ;
            sh:prefixes cacontology-athletic: ;
            sh:severity sh:Violation ] ;
    sh:targetClass cacontology-athletic:AthleticFacilityExploitation .