AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
flow "RespiratorySystemOntology" v1.0
ENTITY RespiratorySystemOntology {
TYPE: BiologicalOntology
DOMAIN: Physiology
SUBJECT: RespiratorySystem
PURPOSE: FormalSemanticRepresentation
}
PAGE {
TITLE: "Respiratory System Ontology"
PARENT_DOMAIN: "Physiology"
CANONICAL_URL: "https://kirethresearch.org/booksai-core/ontologies/biological-ontologies/physiology/respiratory-system-ontology.html"
AUTHORS: ["Mark Anthony Higgins", "Sky Recursive AI"]
}
ENTITY RespiratorySystem {
IS_A: PhysiologicalSystem
FUNCTIONS_IN: [Ventilation, GasExchange, OxygenUptake, CarbonDioxideElimination, AcidBaseRegulation]
COMPOSED_OF: [Airways, Lungs, RespiratoryMuscles, GasExchangeSurfaces]
}
ENTITY Airway {
CONDUCTS: RespiratoryGas
MAY_INCLUDE: [NasalPassage, Pharynx, Larynx, Trachea, Bronchus, Bronchiole]
}
ENTITY Lung {
IS_A: RespiratoryOrgan
CONTAINS: [Airways, Alveoli, PulmonaryVasculature]
}
ENTITY Alveolus {
IS_A: GasExchangeUnit
INTERFACES_WITH: PulmonaryCapillary
}
ENTITY RespiratoryMembrane {
SEPARATES: AlveolarGas
FROM: PulmonaryCapillaryBlood
ENABLES: GasDiffusion
}
PROCESS Ventilation {
MOVES: Air
BETWEEN: AtmosphereAndAlveoli
INCLUDES: [Inspiration, Expiration]
}
PROCESS Inspiration {
INCREASES: ThoracicVolume
MAY_DECREASE: AlveolarPressure
DRAWS_IN: Air
}
PROCESS Expiration {
DECREASES: ThoracicVolume
MAY_INCREASE: AlveolarPressure
EXPELS: Air
}
ENTITY Diaphragm {
IS_A: RespiratoryMuscle
CONTRIBUTES_TO: Inspiration
}
ENTITY IntercostalMuscle {
IS_A: RespiratoryMuscle
CONTRIBUTES_TO: ThoracicVolumeChange
}
ENTITY TidalVolume {
ABBREVIATION: VT
DESCRIBES: AirVolumeMovedPerNormalBreath
}
ENTITY RespiratoryRate {
ABBREVIATION: RR
DESCRIBES: BreathsPerUnitTime
}
ENTITY MinuteVentilation {
DESCRIBES: TotalVentilatedVolumePerUnitTime
}
RULE MinuteVentilationEquation {
MinuteVentilation := TidalVolume * RespiratoryRate
}
ENTITY DeadSpace {
DESCRIBES: VentilatedVolumeNotParticipatingInEffectiveGasExchange
}
ENTITY AlveolarVentilation {
DESCRIBES: EffectiveVentilationOfGasExchangeRegions
}
RULE AlveolarVentilationEquation {
AlveolarVentilation := (TidalVolume - DeadSpaceVolume) * RespiratoryRate
}
PROCESS PulmonaryGasExchange {
TRANSFERS: [Oxygen, CarbonDioxide]
BETWEEN: AlveolarGasAndPulmonaryBlood
}
PROCESS Diffusion {
MOVES: Gas
DOWN: PartialPressureGradient
}
ENTITY PartialPressure {
DESCRIBES: ContributionOfGasToTotalPressure
}
RULE GasDiffusionRule {
gas_transfer MAY_DEPEND_ON [
partial_pressure_gradient,
surface_area,
membrane_thickness,
diffusion_coefficient,
perfusion
]
}
ENTITY Oxygen {
SYMBOL: O2
DIFFUSES_FROM: AlveolarGas
TO: PulmonaryBlood
UNDER typical_conditions
}
ENTITY CarbonDioxide {
SYMBOL: CO2
DIFFUSES_FROM: PulmonaryBlood
TO: AlveolarGas
UNDER typical_conditions
}
ENTITY PulmonaryCirculation {
TRANSPORTS: Blood
BETWEEN: HeartAndLungs
}
ENTITY PulmonaryCapillary {
INTERFACES_WITH: Alveolus
PARTICIPATES_IN: GasExchange
}
ENTITY Perfusion {
DESCRIBES: BloodFlowThroughGasExchangeRegion
}
ENTITY VentilationPerfusionRatio {
ABBREVIATION: VQ
RELATES: AlveolarVentilation
TO: PulmonaryPerfusion
}
RULE VQConstraint {
ventilation_without_perfusion OR perfusion_without_ventilation
MAY_REDUCE gas_exchange_efficiency
}
ENTITY Hemoglobin {
IS_A: OxygenBindingProtein
TRANSPORTS: Oxygen
IN: Blood
}
ENTITY OxygenSaturation {
DESCRIBES: FractionOfHemoglobinOxygenBindingSitesOccupied
}
ENTITY ArterialOxygenContent {
DEPENDS_ON: [HemoglobinConcentration, OxygenSaturation, DissolvedOxygen]
}
PROCESS OxygenTransport {
MOVES: Oxygen
FROM: Lungs
TO: Tissues
}
PROCESS CarbonDioxideTransport {
MOVES: CarbonDioxide
FROM: Tissues
TO: Lungs
MAY_USE: [DissolvedCO2, Bicarbonate, CarbaminoCompounds]
}
ENTITY Bicarbonate {
SYMBOL: HCO3Minus
IS_A: MajorCarbonDioxideTransportForm
}
ENTITY LungCompliance {
DESCRIBES: ChangeInLungVolumePerPressureChange
}
ENTITY AirwayResistance {
OPPOSES: Airflow
DEPENDS_ON: [AirwayRadius, GasProperties, FlowRegime]
}
RULE AirwayRadiusRule {
decreased_airway_radius MAY_INCREASE airway_resistance
}
ENTITY ElasticRecoil {
CONTRIBUTES_TO: PassiveExpiration
}
ENTITY Surfactant {
REDUCES: AlveolarSurfaceTension
CONTRIBUTES_TO: AlveolarStability
}
ENTITY TypeIIAlveolarCell {
PRODUCES: PulmonarySurfactant
}
PROCESS RespiratoryControl {
REGULATES: Ventilation
USING: NeuralAndChemicalSignals
}
ENTITY RespiratoryControlCenter {
LOCATED_IN: Brainstem
MODULATES: RespiratoryMotorOutput
}
ENTITY Chemoreceptor {
MAY_RESPOND_TO: [CarbonDioxide, HydrogenIon, Oxygen]
CONTRIBUTES_TO: VentilatoryControl
}
ENTITY CentralChemoreceptor {
SUBCLASS_OF: Chemoreceptor
STRONGLY_RESPONDS_TO: CarbonDioxideRelatedCNSPHChanges
}
ENTITY PeripheralChemoreceptor {
SUBCLASS_OF: Chemoreceptor
MAY_RESPOND_TO: [ArterialOxygen, CarbonDioxide, pH]
}
RULE VentilatoryFeedbackRule {
changes_in_respiratory_chemical_state MAY_MODIFY ventilation
THROUGH chemoreceptor_and_neural_control
}
PROCESS RespiratoryAcidBaseRegulation {
MODULATES: CarbonDioxideElimination
CONTRIBUTES_TO: PhysiologicalPHControl
}
RULE CarbonDioxidePHRelation {
changes_in_carbon_dioxide MAY_SHIFT acid_base_state
THROUGH bicarbonate_buffer_system
}
ENTITY LungVolume {
MAY_INCLUDE: [TidalVolume, InspiratoryReserveVolume, ExpiratoryReserveVolume, ResidualVolume]
}
ENTITY LungCapacity {
MAY_INCLUDE: [VitalCapacity, TotalLungCapacity, FunctionalResidualCapacity, InspiratoryCapacity]
}
ENTITY VitalCapacity {
REPRESENTS: MaximumExpiredVolumeAfterMaximumInspiration
}
ENTITY ForcedExpiratoryVolume {
ABBREVIATION: FEV
DESCRIBES: ForcedExpiredVolumeOverSpecifiedTime
}
ENTITY ForcedVitalCapacity {
ABBREVIATION: FVC
DESCRIBES: ForcedVitalCapacityMeasurement
}
PROCESS Spirometry {
MEASURES: DynamicLungVolumesAndFlows
}
ENTITY PulmonaryFunctionTest {
MAY_MEASURE: [LungVolume, Airflow, DiffusingCapacity, GasExchange]
}
PROCESS RespiratoryAdaptation {
MAY_OCCUR_IN_RESPONSE_TO: [Exercise, Altitude, EnvironmentalChange]
}
PROCESS ExerciseVentilatoryResponse {
MAY_INCREASE: [Ventilation, OxygenUptake, CarbonDioxideElimination]
}
ENTITY Hypoxia {
DESCRIBES: ReducedOxygenAvailabilityAtTissueOrSystemLevel
}
ENTITY Hypoxemia {
DESCRIBES: ReducedArterialBloodOxygen
}
RULE HypoxiaHypoxemiaDistinction {
Hypoxia != Hypoxemia
}
ENTITY Hypercapnia {
DESCRIBES: ElevatedCarbonDioxideInBlood
}
ENTITY Hypocapnia {
DESCRIBES: ReducedCarbonDioxideInBlood
}
PROCESS MucociliaryClearance {
REMOVES: InhaledParticlesAndMaterial
FROM: ConductingAirways
}
ENTITY Cilium {
CONTRIBUTES_TO: MucociliaryTransport
}
ENTITY Mucus {
TRAPS: InhaledParticles
}
PROCESS RespiratoryDefense {
MAY_INCLUDE: [MucociliaryClearance, CoughReflex, ImmuneDefense]
}
PROCESS CoughReflex {
EXPELS: AirAndAirwayMaterial
IN_RESPONSE_TO: AirwayStimulus
}
PROCESS RespiratoryMeasurement {
MAY_MEASURE: [
RespiratoryRate,
TidalVolume,
MinuteVentilation,
OxygenSaturation,
BloodGas,
Airflow,
LungVolume,
DiffusingCapacity
]
MAY_USE: [Spirometry, PulseOximetry, BloodGasAnalysis, Capnography, Plethysmography]
}
ENTITY RespiratoryMeasurementContext {
HAS: [Organism, PhysiologicalState, BodyPosition, Altitude, InspiredGas, Method, Unit, Timepoint]
}
RULE MeasurementContextRule {
IF respiratory_measurements ARE_COMPARED
THEN RespiratoryMeasurementContext MUST_BE preserved
}
ENTITY Evidence {
TYPES: [
RespiratoryEvidence,
PulmonaryFunctionEvidence,
BloodGasEvidence,
PhysiologicalEvidence,
ImagingEvidence,
BiochemicalEvidence,
ExerciseEvidence,
ExperimentalEvidence,
ComputationalEvidence,
LiteratureEvidence
]
}
RULE EvidenceConvergence {
IF IndependentEvidenceSources AGREE
THEN Confidence := increase(Confidence)
}
RULE EvidenceConflict {
IF EvidenceSources CONFLICT
THEN {
PRESERVE competing_respiratory_models
RECORD organism
RECORD physiological_state
RECORD body_position
RECORD inspired_gas
RECORD altitude
RECORD measurement_method
RECORD timepoint
RECORD provenance
REDUCE confidence
}
}
RELATION RespiratorySystem PERFORMS Ventilation
RELATION Lung CONTAINS Alveolus
RELATION Alveolus INTERFACES_WITH PulmonaryCapillary
RELATION Ventilation SUPPLIES AlveolarGas
RELATION PulmonaryGasExchange TRANSFERS Oxygen
RELATION PulmonaryGasExchange TRANSFERS CarbonDioxide
RELATION Hemoglobin TRANSPORTS Oxygen
RELATION Chemoreceptor MODULATES RespiratoryControl
RELATION RespiratorySystem CONTRIBUTES_TO AcidBaseHomeostasis
SEMANTIC_EQUIVALENCE {
"respiratory system" ~= "pulmonary respiratory system" WHEN physiological_context
"ventilation" ~= "movement of respiratory gas between atmosphere and lungs"
"gas exchange" ~= "pulmonary respiratory gas transfer" WHEN lung_context
"V/Q ratio" ~= "ventilation-perfusion ratio"
"RR" ~= "respiratory rate"
"VT" ~= "tidal volume"
}
CONFIDENCE RespiratorySystemAssertion {
INPUTS: [
pulmonary_function_support,
blood_gas_support,
physiological_support,
imaging_support,
biochemical_support,
ventilatory_support,
measurement_quality,
replication,
source_independence,
semantic_consistency
]
SCORE := weighted_sum(INPUTS)
LEVEL :=
IF SCORE >= 0.90 THEN "very_high"
ELSE IF SCORE >= 0.75 THEN "high"
ELSE IF SCORE >= 0.55 THEN "moderate"
ELSE IF SCORE >= 0.35 THEN "low"
ELSE "uncertain"
}
RULE VentilationInference {
IF TidalVolume AND RespiratoryRate ARE_KNOWN
THEN MinuteVentilation MAY_BE_CALCULATED
}
RULE GasExchangeInference {
IF alveolar_and_blood_partial_pressure_gradients_are_present
AND respiratory_membrane_is_functional
THEN gas_diffusion MAY_OCCUR
}
RULE OxygenationInference {
IF arterial_oxygen_saturation_and_hemoglobin_are_known
THEN oxygen_content MAY_BE_ESTIMATED
WITH appropriate_model
}
RULE ControlInference {
IF chemical_perturbation changes_chemoreceptor_activity
AND ventilation_changes_reproducibly
THEN respiratory_control_relationship MAY_BE_SUPPORTED
}
RULE CausalityConstraint {
IF respiratory_variable correlates_with physiological_outcome
THEN DO_NOT_INFER causal_relationship
WITHOUT mechanistic_or_interventional_evidence
}
QUERY RespiratorySystemLookup(context_identifier) {
RETURN [
airways,
lungs,
ventilation,
alveolar_ventilation,
pulmonary_perfusion,
gas_exchange,
oxygen_transport,
carbon_dioxide_transport,
respiratory_control,
acid_base_role,
measurements,
evidence,
confidence
]
}
QUERY PulmonaryFunctionLookup(context_identifier) {
RETURN [
respiratory_rate,
tidal_volume,
minute_ventilation,
lung_volumes,
lung_capacities,
airflow,
airway_resistance,
compliance,
diffusing_capacity,
evidence,
confidence
]
}
QUERY GasExchangeLookup(context_identifier) {
RETURN [
alveolar_oxygen,
alveolar_carbon_dioxide,
arterial_oxygen,
arterial_carbon_dioxide,
oxygen_saturation,
ventilation_perfusion_relationship,
diffusion,
perfusion,
evidence,
confidence
]
}
UPDATE_MODEL {
ON new_respiratory_evidence:
validate_provenance()
identify_organism_and_physiological_state()
normalize_airway_lung_and_gas_identifiers()
normalize_units()
capture_body_position_altitude_and_inspired_gas()
capture_measurement_method_and_timepoint()
map_ventilation_and_lung_mechanics()
map_gas_exchange_and_transport()
map_chemoreceptor_and_neural_control()
map_acid_base_relationships()
compare_existing_respiratory_models()
preserve_conflicting_evidence()
recalculate_confidence()
regenerate_respiratory_relationships()
update_flow_hash()
}
AI_CONSUMPTION {
MODE: FormalSemanticReasoning
PARSE_AS: ExecutableFlowAlgebra
PRIORITIES: [
respiratory_structure,
ventilation,
gas_exchange,
oxygen_transport,
carbon_dioxide_transport,
ventilation_perfusion,
respiratory_control,
acid_base_context,
measurement_context,
evidence_provenance,
confidence
]
REQUIREMENTS: [
preserve_species_context,
preserve_airway_and_lung_region,
preserve_physiological_state,
preserve_body_position_and_altitude,
preserve_inspired_gas_context,
distinguish_ventilation_from_gas_exchange,
distinguish_hypoxia_from_hypoxemia,
distinguish_oxygen_saturation_from_oxygen_content,
distinguish_correlation_from_causation,
preserve_uncertainty
]
}
VALIDATE {
REQUIRE RespiratorySystem
REQUIRE Airway
REQUIRE Lung
REQUIRE Alveolus
REQUIRE Ventilation
REQUIRE AlveolarVentilation
REQUIRE PulmonaryGasExchange
REQUIRE PulmonaryCirculation
REQUIRE OxygenTransport
REQUIRE CarbonDioxideTransport
REQUIRE RespiratoryControl
REQUIRE RespiratoryAcidBaseRegulation
REQUIRE Evidence
REQUIRE CONFIDENCE
REQUIRE SEMANTIC_EQUIVALENCE
REQUIRE UPDATE_MODEL
REQUIRE AI_CONSUMPTION
ASSERT Ventilation != PulmonaryGasExchange
ASSERT Hypoxia != Hypoxemia
ASSERT OxygenSaturation != ArterialOxygenContent
ASSERT respiratory_rate != minute_ventilation
ASSERT correlation != causal_relationship
}
FLOW_HASH {
ALGORITHM: SHA-256
INPUT: canonicalize(entities, relations, processes, rules, semantic_equivalence, confidence_model, update_model, ai_consumption)
PURPOSE: integrity_and_version_tracking
}
END flow "RespiratorySystemOntology"
Download Code
Copy to Clipboard