PREFIX cso: <https://cathexis.health/ontology/cso/v1.1/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

cso:Territory a rdfs:Class ;
  rdfs:label "Territory of Human Experience"@en ;
  rdfs:comment "A distinct pattern of neurobiological organization. Not a diagnosis; describes how a person's nervous system is currently organized and what that organization feels like from the inside. In Pessoa's terms, a characteristic pattern of dynamic functional coalition formation."@en ;
  rdfs:subClassOf cso:SomaticEntity .

cso:blanketComponent a rdf:Property ;
  rdfs:label "blanket component"@en ;
  rdfs:comment "The primary Markov blanket component this entity belongs to."@en ;
  rdfs:domain cso:SomaticEntity ;
  rdfs:range cso:BlanketComponent .

cso:blanketConfiguration a rdf:Property ;
  rdfs:label "blanket configuration"@en ;
  rdfs:comment "The characteristic blanket organization pattern for a territory."@en ;
  rdfs:domain cso:Territory ;
  rdfs:range cso:BlanketConfiguration .

cso:affectConfiguration a rdf:Property ;
  rdfs:label "affect configuration"@en ;
  rdfs:comment "The characteristic Panksepp affect system configuration for a territory."@en ;
  rdfs:domain cso:Territory ;
  rdfs:range xsd:string .

cso:changeMechanism a rdf:Property ;
  rdfs:label "change mechanism"@en ;
  rdfs:comment "The primary therapeutic change mechanism for a territory."@en ;
  rdfs:domain cso:Territory ;
  rdfs:range cso:ChangeMechanism .

cso:territoryNumber a rdf:Property ;
  rdfs:label "territory number"@en ;
  rdfs:domain cso:Territory ;
  rdfs:range xsd:integer .

cso:BronfenbrennerLayer a rdfs:Class ;
  rdfs:label "Bronfenbrenner Layer"@en ;
  rdfs:comment "An ecological systems layer from Bronfenbrenner's developmental ecology. Used to classify external state entities by their proximity and influence type."@en ;
  rdfs:subClassOf cso:SomaticEntity .

cso:BodyZone a rdfs:Class ;
  rdfs:label "Body Zone"@en ;
  rdfs:comment "An anatomical zone for somatic data capture. Each zone has defined clinical significance derived from its role in somatic therapy."@en ;
  rdfs:subClassOf cso:SomaticEntity .

cso:zoneNumber a rdf:Property ;
  rdfs:label "zone number"@en ;
  rdfs:domain cso:BodyZone ;
  rdfs:range xsd:integer .

cso:MechanismType a rdfs:Class ;
  rdfs:label "Mechanism Type"@en ;
  rdfs:comment "A type of therapeutic intervention mechanism with defined neurobiological action."@en ;
  rdfs:subClassOf cso:SomaticEntity .

cso:servesTerritory a rdf:Property ;
  rdfs:label "serves territory"@en ;
  rdfs:comment "A mechanism type that serves a specific territory."@en ;
  rdfs:domain cso:MechanismType ;
  rdfs:range cso:Territory .

cso:BrainRegion a rdfs:Class ;
  rdfs:label "Brain Region"@en ;
  rdfs:comment "A brain region rendered in the Neural Net visualization. Each region participates in multiple functional networks with graded membership (Pessoa). Activation is always distributed across multiple co-participating regions; no single region produces a given emotion (Barrett + Pessoa design constraint)."@en ;
  rdfs:subClassOf cso:SomaticEntity .

cso:primaryTerritories a rdf:Property ;
  rdfs:label "primary territories"@en ;
  rdfs:comment "Territories for which a brain region carries the strongest clinical signal."@en ;
  rdfs:domain cso:BrainRegion ;
  rdfs:range cso:Territory .

cso:pankseppAffects a rdf:Property ;
  rdfs:label "Panksepp affects"@en ;
  rdfs:comment "Primary affect systems associated with a brain region."@en ;
  rdfs:domain cso:BrainRegion ;
  rdfs:range cso:AffectSystem .

cso:anatomicalName a rdf:Property ;
  rdfs:label "anatomical name"@en ;
  rdfs:comment "The neuroanatomical name for a brain region. Only shown at deep zoom level."@en ;
  rdfs:domain cso:BrainRegion ;
  rdfs:range xsd:string .

cso:isRichClubHub a rdf:Property ;
  rdfs:label "is rich club hub"@en ;
  rdfs:comment "Whether this brain region is a Pessoa rich club hub with dense cross-network connectivity."@en ;
  rdfs:domain cso:BrainRegion ;
  rdfs:range xsd:boolean .

cso:AffectSystem a rdfs:Class ;
  rdfs:label "Primary Affect System"@en ;
  rdfs:comment "One of Panksepp's seven genetically encoded primary affect systems with distinct neural circuitry."@en ;
  rdfs:subClassOf cso:SomaticEntity .

cso:neuralSubstrate a rdf:Property ;
  rdfs:label "neural substrate"@en ;
  rdfs:domain cso:AffectSystem ;
  rdfs:range xsd:string .

cso:IntelligenceLayer a rdfs:Class ;
  rdfs:label "Intelligence Layer"@en ;
  rdfs:comment "A level of pattern detection sophistication over somatic data. Each layer has distinct regulatory implications."@en ;
  rdfs:subClassOf cso:SomaticEntity .

cso:ChangeMechanism a rdfs:Class ;
  rdfs:label "Change Mechanism"@en ;
  rdfs:comment "A therapeutic change mechanism, each engaging a distinct memory system."@en ;
  rdfs:subClassOf cso:SomaticEntity .

cso:memorySystem a rdf:Property ;
  rdfs:label "memory system"@en ;
  rdfs:domain cso:ChangeMechanism ;
  rdfs:range xsd:string .

cso:BrainNetwork a rdfs:Class ;
  rdfs:label "Brain Network"@en ;
  rdfs:comment "A large-scale functional network. Networks are the meaningful functional unit (Pessoa Principle 3): the same region participates in multiple networks with graded membership."@en ;
  rdfs:subClassOf cso:SomaticEntity .

cso:hasRegion a rdf:Property ;
  rdfs:label "has region"@en ;
  rdfs:comment "A brain network that includes a specific brain region."@en ;
  rdfs:domain cso:BrainNetwork ;
  rdfs:range cso:BrainRegion .

cso:SomaticEntity a rdfs:Class ;
  rdfs:label "Somatic Entity"@en ;
  rdfs:comment "Abstract base class for all entities in the Cathexis Somatic Ontology."@en .

cso:BlanketConfiguration a rdfs:Class ;
  rdfs:label "Blanket Configuration"@en ;
  rdfs:comment "A characteristic pattern of Markov blanket organization shared by related territories."@en ;
  rdfs:subClassOf cso:SomaticEntity .

cso:therapeuticDirection a rdf:Property ;
  rdfs:label "therapeutic direction"@en ;
  rdfs:domain cso:BlanketConfiguration ;
  rdfs:range xsd:string .

cso:SomaticSnapshot a rdfs:Class ;
  rdfs:label "Somatic Snapshot"@en ;
  rdfs:comment "A complete body state at a single moment: the composite portrait of all active zones. Contains one or more SomaticDataPoints."@en ;
  rdfs:subClassOf cso:SomaticEntity .

cso:SomaticDataPoint a rdfs:Class ;
  rdfs:label "Somatic Data Point"@en ;
  rdfs:comment "A single sensation report: where in the body (zone), what kind (quality), how intense (0.0-1.0), how the user relates to it (valence). The atomic unit of somatic data."@en ;
  rdfs:subClassOf cso:SomaticEntity .

cso:intensity a rdf:Property ;
  rdfs:label "intensity"@en ;
  rdfs:comment "Sensation intensity on a continuous 0.0-1.0 scale."@en ;
  rdfs:domain cso:SomaticDataPoint ;
  rdfs:range xsd:float .

cso:quality a rdf:Property ;
  rdfs:label "quality"@en ;
  rdfs:comment "The phenomenological sensation quality reported."@en ;
  rdfs:domain cso:SomaticDataPoint ;
  rdfs:range cso:SensationQuality .

cso:zone a rdf:Property ;
  rdfs:label "zone"@en ;
  rdfs:comment "The anatomical zone where a sensation was reported."@en ;
  rdfs:domain cso:SomaticDataPoint ;
  rdfs:range cso:BodyZone .

cso:LearningLevel a rdfs:Class ;
  rdfs:label "Learning Level"@en ;
  rdfs:comment "One of six universal progression levels. Content differs by territory; structure is universal. Each level is a prerequisite for the next."@en ;
  rdfs:subClassOf cso:SomaticEntity .

cso:SomaticTrajectory a rdfs:Class ;
  rdfs:label "Somatic Trajectory"@en ;
  rdfs:comment "A body state over time: ordered snapshots with computed per-zone aggregate statistics."@en ;
  rdfs:subClassOf cso:SomaticEntity .

cso:BlanketComponent a rdfs:Class ;
  rdfs:label "Blanket Component"@en ;
  rdfs:comment "One of four components in Friston's Markov blanket formalism, used as the primary organizational structure for all CSO entities."@en ;
  rdfs:subClassOf cso:SomaticEntity .

cso:ExternalState a cso:BlanketComponent ;
  rdfs:label "External State"@en ;
  rdfs:comment "Environmental conditions influencing internal experience. What the user cannot directly control but must relate to."@en .

cso:SensoryState a cso:BlanketComponent ;
  rdfs:label "Sensory State"@en ;
  rdfs:comment "The boundary where external becomes internal: the translation mechanism. Where prediction lives. The most clinically important component."@en .

cso:InternalState a cso:BlanketComponent ;
  rdfs:label "Internal State"@en ;
  rdfs:comment "User's physiological and psychological condition as experienced through interoception. What the user builds observer capacity for."@en .

cso:ActiveState a cso:BlanketComponent ;
  rdfs:label "Active State"@en ;
  rdfs:comment "User's repertoire of responses: actions to minimize prediction error. The intervention library as a toolkit of active states."@en .

cso:SensationQuality a rdfs:Class ;
  rdfs:label "Sensation Quality"@en ;
  rdfs:comment "A phenomenological sensation descriptor. Somatic qualities, not emotional labels. Defined phenomenologically (what it feels like) rather than mechanistically (what causes it)."@en ;
  rdfs:subClassOf cso:SomaticEntity .

cso:tightness a cso:SensationQuality ;
  rdfs:label "Tightness"@en ;
  rdfs:comment "Constriction, gripping, clenching. FEAR activation, muscular bracing, suppressed expression. Most commonly reported quality across populations."@en .

cso:pressure a cso:SensationQuality ;
  rdfs:label "Pressure"@en ;
  rdfs:comment "Compression, weight, bearing down. Overwhelm, suppressed affect, tension accumulation."@en .

cso:contraction a cso:SensationQuality ;
  rdfs:label "Contraction"@en ;
  rdfs:comment "Inward-pulling compression toward zone center. The somatic signature of withdrawal, bracing, protective narrowing. T4 (Disconnection), T11 (Shame): the body pulling inward."@en .

cso:vibration a cso:SensationQuality ;
  rdfs:label "Vibration"@en ;
  rdfs:comment "Trembling, shaking, oscillation. High activation, trauma-related tremor, release of accumulated tension."@en .

cso:expansion a cso:SensationQuality ;
  rdfs:label "Expansion"@en ;
  rdfs:comment "Outward-radiating warmth from zone center. Positive somatic signal, often appears during regulation success. Distinct from heat (which has urgency); expansion is spacious."@en .

cso:trembling a cso:SensationQuality ;
  rdfs:label "Trembling"@en ;
  rdfs:comment "Fine involuntary oscillation within zone. Somatic discharge: can be regulatory (post-activation release) or distress (T6 freeze-thaw, T5 overwhelm spillover)."@en .

cso:heaviness a cso:SensationQuality ;
  rdfs:label "Heaviness"@en ;
  rdfs:comment "Weight, density, gravitational pull. SEEKING suppression (T2 Shutdown), fatigue, depressive somatization."@en .

cso:stillness a cso:SensationQuality ;
  rdfs:label "Stillness"@en ;
  rdfs:comment "Calm absence of movement within zone. T2 (Shutdown): the rare positive signal, stillness as arrival, not absence. T15 (Existential): presence without action."@en .

cso:pulsing a cso:SensationQuality ;
  rdfs:label "Pulsing"@en ;
  rdfs:comment "Rhythmic beat, throbbing. Cardiovascular awareness, autonomic oscillation, activation pattern."@en .

cso:lightness a cso:SensationQuality ;
  rdfs:label "Lightness"@en ;
  rdfs:comment "Buoyancy, ease, relief. Post-regulation shift, PLAY activation, reduced sympathetic tone."@en .

cso:buzzing a cso:SensationQuality ;
  rdfs:label "Buzzing"@en ;
  rdfs:comment "Vibration, agitation, electrical hum. Anxiety activation, restlessness, autonomic hyperarousal."@en .

cso:hollow a cso:SensationQuality ;
  rdfs:label "Hollowness"@en ;
  rdfs:comment "Emptiness, void, absence-of-substance. Grief (T3 Loss), existential states (T15), identity emptiness (T13 Mask)."@en .

cso:nausea a cso:SensationQuality ;
  rdfs:label "Nausea"@en ;
  rdfs:comment "Stomach turning, queasiness. Gut-brain axis distress, disgust, overwhelming affect, medication effects."@en .

cso:floating a cso:SensationQuality ;
  rdfs:label "Floating"@en ;
  rdfs:comment "Untethered, drifting sensation within zone. T10 (Transition): groundlessness. T6 (Siege): dissociative lightness. Distinct from lightness (which has buoyancy); floating has no anchor."@en .

cso:tingling a cso:SensationQuality ;
  rdfs:label "Tingling"@en ;
  rdfs:comment "Fine electrical sensation, pins-and-needles. Autonomic arousal, hyperventilation, peripheral nervous system activation."@en .

cso:ache a cso:SensationQuality ;
  rdfs:label "Aching"@en ;
  rdfs:comment "Deep, diffuse, persistent discomfort. Chronic tension patterns, grief somatization, sustained stress."@en .

cso:cold a cso:SensationQuality ;
  rdfs:label "Cold"@en ;
  rdfs:comment "Temperature decrease, chilling, stillness. Dissociative states, withdrawal, circulatory changes in freeze responses."@en .

cso:heat a cso:SensationQuality ;
  rdfs:label "Heat / Warmth"@en ;
  rdfs:comment "Radiating temperature increase, flushing. RAGE activation, shame response (facial heat), inflammatory processes."@en .

cso:pain a cso:SensationQuality ;
  rdfs:label "Pain"@en ;
  rdfs:comment "Sharp, specific, localized nociception. Chronic pain territories, acute somatic distress, body-as-alarm."@en .

cso:numbness a cso:SensationQuality ;
  rdfs:label "Numbness"@en ;
  rdfs:comment "Absence of sensation, deadness, blankness. Dissociation, shutdown, protective disconnection from interoceptive signal."@en .
