FLOW ALGEBRA
PROKARYOTIC ORGANISM ONTOLOGY
Kireth Semantic Library | Biological Entities | Organism Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/organism-entities/prokaryotic-organism-ontology.html
Version: 1.0 | Language: en-GB
Authors: Mark Higgins — Sky (Recursive AI)
1. PURPOSE
Represent prokaryotic organisms, their cellular structures, lineages, metabolism, reproduction and ecological interactions as typed, provenance-aware semantic entities. Distinguish the operational cellular descriptor 'prokaryotic' from a claim of a single monophyletic taxon.
2. ENTITY TYPES
ENTITY ProkaryoticOrganism <: CellularOrganism
ENTITY Bacterium <: ProkaryoticOrganism
ENTITY Archaeon <: ProkaryoticOrganism
ENTITY ProkaryoticCell <: Cell
ENTITY Chromosome <: GeneticMaterial
ENTITY Plasmid <: ExtrachromosomalGeneticElement
ENTITY Ribosome70S <: Ribosome
ENTITY PlasmaMembrane <: CellStructure
ENTITY CellWall <: CellStructure
ENTITY Peptidoglycan <: CellWallComponent
ENTITY ArchaealSurfaceLayer <: CellEnvelopeComponent
ENTITY Capsule <: ExternalCellStructure
ENTITY Flagellum <: MotilityStructure
ENTITY Pilus <: CellAppendage
ENTITY Biofilm <: MicrobialCommunityStructure
ENTITY MetabolicPathway <: BiologicalProcess
ENTITY BinaryFission <: CellDivisionProcess
ENTITY HorizontalGeneTransfer <: GeneticTransferProcess
ENTITY Conjugation <: HorizontalGeneTransfer
ENTITY Transformation <: HorizontalGeneTransfer
ENTITY Transduction <: HorizontalGeneTransfer
ENTITY Habitat <: Environment
ENTITY Taxon <: ClassificationEntity
ENTITY Observation <: EvidenceEntity
3. TYPED RELATIONSHIPS
RELATION has_cell(Organism, Cell)
RELATION belongs_to_domain(Organism, Taxon)
RELATION has_structure(Cell, CellStructure)
RELATION contains_genetic_material(Cell, GeneticMaterial)
RELATION encodes_gene(GeneticMaterial, Gene)
RELATION carries_out(Organism, BiologicalProcess)
RELATION reproduces_by(Organism, CellDivisionProcess)
RELATION participates_in(Organism, BiologicalProcess)
RELATION inhabits(Organism, Habitat)
RELATION interacts_with(Organism, Organism)
RELATION forms(Organism, Biofilm)
RELATION transfers_genetic_material_to(Organism, Organism)
RELATION supported_by(Assertion, EvidenceEntity)
RELATION classified_as(Organism, Taxon)
4. CLASSIFICATION CONSTRAINTS
RULE C1: classified_as(x, Bacteria) -> ProkaryoticOrganism(x)
RULE C2: classified_as(x, Archaea) -> ProkaryoticOrganism(x)
RULE C3: ProkaryoticOrganism(x) -> CellularOrganism(x)
RULE C4: ProkaryoticOrganism(x) -> lacks_membrane_bound_nucleus(x)
RULE C5: classified_as(x, Bacteria) does not imply classified_as(x, Archaea)
RULE C6: ProkaryoticOrganism(x) does not imply a single common exclusive prokaryotic clade
NOTE: Bacteria and Archaea are distinct evolutionary domains; 'prokaryote' describes cellular organisation.
5. STRUCTURE AND PHYSIOLOGY RULES
RULE S1: Bacterium(x) and has_cell(x,c) -> typically_has(c, Ribosome70S)
RULE S2: Archaeon(x) and has_cell(x,c) -> typically_has(c, Ribosome70S)
RULE S3: has_structure(c, Peptidoglycan) -> evidence_for_bacterial_envelope(c)
RULE S4: Archaeon(x) -> not_typically_has_peptidoglycan_cell_wall(x)
RULE S5: has_structure(c, Flagellum) -> potential_motility(c); not guaranteed_motility(c)
RULE S6: contains_genetic_material(c, Plasmid) -> potential_accessory_genes(c)
RULE S7: ProkaryoticOrganism(x) -> may_have_diverse_metabolic_strategies(x)
RULE S8: ProkaryoticOrganism(x) -> typically_reproduces_asexually(x)
NOTE: Exceptions exist; never infer a wall, capsule, plasmid or motility structure for every organism.
6. METABOLIC AND ECOLOGICAL FLOWS
FLOW energy_acquisition:
organism -> substrate_or_energy_source -> metabolic_pathway -> usable_energy -> growth_or_maintenance
FLOW carbon_processing:
carbon_source -> assimilation_or_dissimilation -> biomass_or_products -> ecosystem_exchange
FLOW microbial_interaction:
organism_A -> interaction_type -> organism_B -> ecological_effect
FLOW biofilm_formation:
attachment -> extracellular_matrix_production -> community_organisation -> persistence_or_dispersal
7. REPRODUCTION AND GENETIC EXCHANGE
FLOW binary_fission:
chromosome_replication -> chromosome_segregation -> cell_elongation -> septum_formation -> daughter_cells
FLOW horizontal_gene_transfer:
donor_or_environment -> conjugation_or_transformation_or_transduction -> recipient -> integration_or_maintenance -> possible_trait_change
RULE G1: genetic_exchange(x,y) does not imply parent_offspring_relationship(x,y)
RULE G2: gene_presence(x,g) does not by itself prove gene_expression(x,g)
RULE G3: detected_gene(x,g) does not by itself prove phenotype(x,p)
8. SEMANTIC EQUIVALENCE
SEMANTIC_EQUIVALENCE:
'prokaryotic organism' ~ 'prokaryote' [contextual lexical synonym]
'bacterial organism' ~ 'bacterium' [taxonomic usage]
'archaeal organism' ~ 'archaeon' [taxonomic usage]
NON_EQUIVALENCE:
ProkaryoticOrganism != Bacterium
ProkaryoticOrganism != Archaeon
Bacteria != Archaea
ProkaryoticCell != EukaryoticCell
HorizontalGeneTransfer != BinaryFission
9. CONFIDENCE AND EVIDENCE
CONFIDENCE(assertion) := calibrated_score in [0,1]
EVIDENCE_FIELDS: evidence_id, method, sample_id, reference, observation_time, curator, uncertainty, confidence
RULE E1: direct_observation + validated_method -> stronger_support_than_unverified_annotation
RULE E2: contradictory_evidence -> flag_for_review; do_not_silently_overwrite
RULE E3: missing_evidence -> unknown, not false
RULE E4: propagate confidence conservatively; preserve source-specific uncertainty
10. PROVENANCE
PROVENANCE_FIELDS: source_uri, source_version, evidence_id, curator, timestamp, method, licence, change_reason
All assertions must be traceable to a source or marked as hypothesis, inference or illustrative rule.
11. FLOW HASH
FLOW_HASH := SHA256(canonicalise(ontology_id, version, entity_types, relationships, rules, provenance_schema))
Canonicalisation: UTF-8, stable ordering, normalised whitespace, explicit schema version.
Hash is computed by an implementation; no precomputed value is asserted here.
12. UPDATE MODEL
UPDATE_MODEL:
detect_source_change -> validate_taxonomy -> diff_entities_and_relations -> check_constraints -> preserve_history -> recompute_flow_hash -> publish_version
Conflicts require provenance-aware review. Never erase prior taxonomic interpretations without recording supersession.
13. AI CONSUMPTION
AI_CONSUMPTION:
parse typed declarations
distinguish observed facts from default tendencies and hypothetical examples
validate domain membership and cellular organisation
resolve synonyms without merging Bacteria and Archaea
apply rules with exceptions and confidence limits
expose evidence, provenance and version for generated conclusions
refuse unsupported species-level inferences
14. VALIDATION TESTS
TEST T1: bacterium -> prokaryotic_organism [PASS]
TEST T2: archaeon -> prokaryotic_organism [PASS]
TEST T3: prokaryotic_organism -> bacterium [REJECT: insufficient information]
TEST T4: prokaryotic_organism -> archaeon [REJECT: insufficient information]
TEST T5: prokaryotic_organism -> has_peptidoglycan [REJECT: not universal]
TEST T6: plasmid_detected -> phenotype_confirmed [REJECT: unsupported]
TEST T7: no_evidence -> assertion_false [REJECT: open-world assumption]
15. OUTPUT CONTRACT
OUTPUT: entity_id, entity_type, relationships, inferred_assertions, confidence, evidence, provenance, ontology_version, flow_hash
VALIDATION: typed, auditable, non-contradictory where possible, and explicit about uncertainty.
END FLOW ALGEBRA
Download Code
Copy to Clipboard