FLOW ALGEBRA
Bacterial Cell Ontology | Kireth Semantic Library
Version: 1.0 | Date: 2026-10-16
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/cellular-entities/bacterial-cell-ontology.html
Authors: Mark Higgins — Sky (Recursive AI)
PURPOSE
Represent bacterial cells, their structures, processes, states and evidence as typed, interoperable semantic flows. This is a formal modelling proposal, not an experimentally validated simulator.
TYPE SYSTEM
TYPE Entity
TYPE BiologicalEntity <: Entity
TYPE Cell <: BiologicalEntity
TYPE ProkaryoticCell <: Cell
TYPE BacterialCell <: ProkaryoticCell
TYPE ArchaealCell <: ProkaryoticCell
TYPE Structure <: BiologicalEntity
TYPE Molecule <: BiologicalEntity
TYPE Process <: BiologicalEntity
TYPE Environment <: Entity
TYPE Observation <: Entity
TYPE Taxon <: Entity
TYPE Time : Real[seconds]
TYPE Concentration : Real[mol/L]
TYPE Length : Real[metres]
TYPE Rate : Real[1/seconds]
TYPE Probability : Real[0..1]
TYPE Evidence : {source, method, timestamp, scope}
TYPE Assertion : {subject, predicate, object, evidence, confidence}
ENTITY DECLARATIONS
ENTITY BacterialCell : BacterialCell
ENTITY CytoplasmicMembrane : Structure
ENTITY Cytoplasm : Structure
ENTITY Nucleoid : Structure
ENTITY Ribosome70S : Structure
ENTITY CellWall : Structure
ENTITY Peptidoglycan : Molecule
ENTITY OuterMembrane : Structure
ENTITY Periplasm : Structure
ENTITY Capsule : Structure
ENTITY Flagellum : Structure
ENTITY Pilus : Structure
ENTITY Plasmid : Molecule
ENTITY Chromosome : Molecule
ENTITY Endospore : Structure
ENTITY ATP : Molecule
ENTITY Nutrient : Molecule
ENTITY Metabolite : Molecule
ENTITY BacterialPopulation : Entity
ENTITY Habitat : Environment
RELATIONSHIP SIGNATURES
REL has_part(Cell, Structure) -> Boolean
REL contains(Structure, BiologicalEntity) -> Boolean
REL encoded_by(Process, Molecule) -> Boolean
REL participates_in(BiologicalEntity, Process) -> Boolean
REL located_in(BiologicalEntity, Entity) -> Boolean
REL produces(Process, BiologicalEntity) -> Boolean
REL consumes(Process, BiologicalEntity) -> Boolean
REL precedes(Process, Process) -> Boolean
REL interacts_with(Entity, Entity) -> Boolean
REL derived_from(Cell, Cell) -> Boolean
REL member_of(Cell, Taxon) -> Boolean
REL observed_by(Entity, Observation) -> Boolean
CORE ASSERTIONS
BacterialCell IS_A ProkaryoticCell
BacterialCell HAS_PART CytoplasmicMembrane
BacterialCell HAS_PART Cytoplasm
BacterialCell HAS_PART Nucleoid
BacterialCell HAS_PART Ribosome70S
Nucleoid CONTAINS Chromosome
CellWall MAY_CONTAIN Peptidoglycan
BacterialCell MAY_HAVE CellWall
BacterialCell MAY_HAVE OuterMembrane
BacterialCell MAY_HAVE Periplasm
BacterialCell MAY_HAVE Capsule
BacterialCell MAY_HAVE Flagellum
BacterialCell MAY_HAVE Pilus
BacterialCell MAY_CONTAIN Plasmid
BacterialCell MAY_FORM Endospore
NOTE: Optional traits must not be inferred for every bacterial species. Some bacteria lack a cell wall; endospore formation is restricted to particular lineages.
CLASSIFICATION
DOMAIN Bacteria DISTINCT_FROM DOMAIN Archaea
GramPositivePattern := typically thick peptidoglycan and no classical Gram-negative outer membrane
GramNegativePattern := typically inner membrane + thin peptidoglycan + outer membrane
NOTE: Gram staining is an operational phenotype, not a universal phylogenetic partition.
Morphology := {coccus, bacillus, vibrio, spirillum, filamentous, pleomorphic, other}
Metabolism := {aerobic, anaerobic, facultative, microaerophilic, phototrophic, chemotrophic, other}
PROCESS FLOWS
FLOW NutrientUptake:
INPUT Nutrient, MembraneTransportSystem, Environment
PRECONDITION transport_pathway_available
TRANSFORM extracellular_nutrient -> intracellular_nutrient
OUTPUT intracellular_nutrient, transport_observation
FLOW GeneExpression:
INPUT DNA_sequence, RNA_polymerase, ribosome, substrates
TRANSFORM DNA --transcription--> RNA --translation--> Protein
OUTPUT protein, transcript, provenance
CONSTRAINT transcription_and_translation_may_be_coupled_in_bacteria
FLOW BinaryFission:
INPUT viable_parent_cell, nutrients, suitable_conditions
STEP replicate_chromosome
STEP segregate_genetic_material
STEP establish_division_site
STEP septum_formation_and_cytokinesis
OUTPUT daughter_cell_1, daughter_cell_2
CONSTRAINT daughters_need_not_be_genetically_identical
FLOW HorizontalGeneTransfer:
MODES {transformation, transduction, conjugation}
INPUT donor_genetic_material, recipient, mode_specific_mechanism
OUTPUT possible_genetic_acquisition
CONSTRAINT acquisition_requires_mechanistic_and_contextual_support
FLOW EnergyMetabolism:
INPUT substrates, electron_donors, electron_acceptors, enzymes
TRANSFORM metabolic_reactions -> ATP_and_other_products
OUTPUT energy_state, metabolites
NOTE energy pathways vary across bacterial taxa
FLOW StressResponse:
INPUT stressor, cellular_state
TRANSFORM sensing -> regulatory_response -> altered_expression_or_activity
OUTPUT adapted_state_or_damage_or_death
QUANTITATIVE MODELS
ExponentialPopulationGrowth: N(t) = N0 * exp(mu * t)
DoublingTime: td = ln(2) / mu ; valid for mu > 0
LogisticApproximation: dN/dt = r * N * (1 - N/K)
SubstrateLimitedGrowth: mu(S) = mu_max * S / (Ks + S)
MassBalance: dC_i/dt = sum_j(stoich_ij * v_j) + transport_i
NOTE: These are conditional models; parameters depend on organism, environment and experimental design.
INFERENCE RULES
RULE R1: is_a(x, BacterialCell) => is_a(x, ProkaryoticCell)
RULE R2: has_part(x, OuterMembrane) AND has_part(x, PeptidoglycanLayer) => compatible_with(x, GramNegativePattern)
RULE R3: observes(x, binary_fission) => supports(x, asexual_cell_division)
RULE R4: has_gene(x, resistance_gene) DOES_NOT_IMPLY phenotypically_resistant(x)
RULE R5: absence_of_observation(x, flagellum) DOES_NOT_IMPLY absence_of_structure(x, flagellum)
RULE R6: member_of(x, Bacteria) => NOT member_of(x, Archaea) under current domain taxonomy
RULE R7: evidence_conflict(a, b) => flag_for_review(a, b)
SEMANTIC_EQUIVALENCE
bacterial_cell ~ bacterium [context: individual cellular organism]
prokaryotic_cell != bacterial_cell [broader category includes archaea]
cell_wall != peptidoglycan [structure versus material]
plasmid != chromosome [distinct replicon classes, exceptions context-dependent]
Gram_negative != taxonomic_clade [staining/structural phenotype]
CONFIDENCE
CONFIDENCE(assertion) : Probability
CONFIDENCE source_evidence_weighted_by {method, replication, specificity, recency, provenance}
RULE confidence_aggregation MUST_NOT assume independent evidence without justification
RULE uncertain_or_taxon_specific_assertions REQUIRE explicit scope
RULE missing_evidence != evidence_of_absence
RECURSIVE_FLOW
FUNCTION resolve_cell(entity, depth, visited):
IF depth <= 0 OR entity IN visited: RETURN stop
visited := visited UNION {entity}
FETCH typed_parts(entity), processes(entity), evidence(entity)
VALIDATE type_constraints, taxon_scope, confidence
FOR EACH related IN bounded_related_entities(entity):
resolve_cell(related, depth - 1, visited)
RETURN consolidated_semantic_graph
FLOW_HASH
CANONICALISE {ontology_id, version, sorted_entities, sorted_relations, sorted_rules}
FLOW_HASH := SHA256(canonical_UTF8_representation)
NOTE: Hash is computed by implementation; no digest is claimed here.
UPDATE_MODEL
INPUT revised_taxonomy, new_experiment, corrected_assertion
CHECK source_authenticity, semantic_compatibility, contradictions
PRESERVE previous_version, timestamps, change_reason
RECOMPUTE affected_confidence_and_inferences
REGENERATE FLOW_HASH
OUTPUT versioned_ontology_with_audit_trail
AI_CONSUMPTION
FORMAT plain_text_semantic_flow
ENTRY_POINT BacterialCell
EXPOSE typed_entities, relations, rules, provenance, confidence, constraints
RETRIEVAL_KEYS {bacterial_cell, prokaryote, cell_wall, nucleoid, ribosome, binary_fission}
GUARDRAILS {do_not_universalise_optional_traits, distinguish_taxa, preserve_uncertainty, no_unverified_experimental_claims}
OUTPUT knowledge_graph_ready_assertions
VALIDATION
CHECK typed_relationship_endpoints
CHECK taxonomic_consistency
CHECK units_and_parameter_domains
CHECK absence_of_unjustified_universal_claims
CHECK evidence_provenance
CHECK recursive_termination
CHECK version_integrity
END FLOW ALGEBRA
Download Code
Copy to Clipboard