Skip to main content

Bacterial Colony Ontology

Microbial Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 23 October 2026
Audio Overview
FLOW ALGEBRA
Bacterial Colony Ontology v1.0
Kireth Semantic Library | Biological Entities / Microbial Entities
Authors: Mark Higgins — Sky (Recursive AI)
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/microbial-entities/bacterial-colony-ontology.html
Status: Independently authored formalisation; page's embedded specification was not retrievable.

flow "BacterialColonyOntology" v1.0

# ---------- TYPE SYSTEM ----------
type EntityID = str
type Confidence = float[0.0..1.0]
type Timestamp = iso8601
type Evidence = {source:str, method:str, observed_at:Timestamp?, confidence:Confidence}
type Colony = {id:EntityID, taxon:EntityID?, origin:EntityID?, medium:EntityID?, observed_at:Timestamp?, morphology:ColonyMorphology?, evidence:Evidence[]}
type ColonyMorphology = {form:enum[circular,irregular,filamentous,rhizoid,punctiform,other], margin:enum[entire,undulate,lobate,filamentous,curled,other]?, elevation:enum[flat,raised,convex,umbonate,crateriform,other]?, colour:str?, diameter_mm:float?, opacity:enum[transparent,translucent,opaque]?, texture:str?}
type Population = {id:EntityID, taxon:EntityID?, cells:int?}
type Environment = {id:EntityID, temperature_c:float?, ph:float?, oxygen:str?, nutrients:str?}
type Observation = {id:EntityID, subject:EntityID, predicate:str, value:any, evidence:Evidence}
type Relation = {subject:EntityID, predicate:str, object:EntityID, evidence:Evidence?}

# ---------- ENTITY GRAPH ----------
entity BacterialColony subtype_of MicrobialAggregate
entity BacterialCell subtype_of ProkaryoticCell
entity BacterialPopulation subtype_of MicrobialPopulation
entity CultureMedium subtype_of GrowthSubstrate
entity ColonyMorphology subtype_of ObservablePhenotype
entity Biofilm subtype_of StructuredMicrobialCommunity
entity ColonyFormingUnit subtype_of OperationalViabilityMeasurement

relation CONTAINS_CELL: BacterialColony -> BacterialCell
relation HAS_POPULATION: BacterialColony -> BacterialPopulation
relation GROWS_ON: BacterialColony -> CultureMedium
relation EXPERIENCES: BacterialColony -> Environment
relation HAS_MORPHOLOGY: BacterialColony -> ColonyMorphology
relation DERIVED_FROM: BacterialColony -> ColonyFormingUnit
relation HAS_OBSERVATION: BacterialColony -> Observation
relation MAY_FORM: BacterialPopulation -> Biofilm
relation TAXON_ASSIGNMENT: BacterialPopulation -> Taxon

# ---------- SEMANTIC CONSTRAINTS ----------
constraint C1: Colony is a spatially observable microbial growth aggregate, not necessarily a genetically uniform clone.
constraint C2: One colony-forming unit may originate from one cell or a cluster; CFU count is not identical to viable-cell count.
constraint C3: Colony appearance alone cannot establish species identity or pathogenicity.
constraint C4: A colony and a biofilm are overlapping but non-equivalent concepts.
constraint C5: Phenotypes depend on medium, incubation conditions, time, and organism; do not assume invariance.
constraint C6: Taxonomic assignments require traceable identification evidence.
constraint C7: Missing measurements are unknown, not zero or negative.
constraint C8: Environmental or morphological observations must not imply clinical safety or risk without supporting evidence.

# ---------- INFERENCE ----------
rule R1 ColonyMembership:
  when CONTAINS_CELL(colony, cell) and type(colony) == BacterialColony
  then infer ASSOCIATED_WITH(cell, colony)
  confidence: min(premise_confidences)

rule R2 ColonyGrowthContext:
  when GROWS_ON(colony, medium) and EXPERIENCES(colony, environment)
  then infer GROWTH_CONTEXT(colony, medium, environment)
  confidence: min(premise_confidences)

rule R3 ConditionalMorphology:
  when HAS_MORPHOLOGY(colony, morphology) and GROWTH_CONTEXT(colony, medium, environment)
  then infer CONTEXTUAL_PHENOTYPE(colony, morphology, medium, environment)
  confidence: min(premise_confidences)

rule R4 TaxonCandidate:
  when TAXON_ASSIGNMENT(population, taxon) and HAS_POPULATION(colony, population)
  then infer CANDIDATE_TAXON(colony, taxon)
  confidence: min(premise_confidences)
  require: identification_method_and_provenance
  prohibit: treating_candidate_as_confirmed_without_validation

rule R5 CFUInterpretation:
  when DERIVED_FROM(colony, cfu)
  then infer REPRESENTS_GROWTH_INITIATING_UNIT(cfu, colony)
  prohibit: infer_exact_initial_cell_count

# ---------- SEMANTIC EQUIVALENCE ----------
SEMANTIC_EQUIVALENCE("bacterial colony", "colony of bacteria") conditional_on context==microbiology
SEMANTIC_EQUIVALENCE("CFU", "colony-forming unit") conditional_on context==viable_culture_measurement
NON_EQUIVALENCE("bacterial colony", "single bacterial cell")
NON_EQUIVALENCE("bacterial colony", "bacterial species")
NON_EQUIVALENCE("bacterial colony", "biofilm")
NON_EQUIVALENCE("CFU count", "exact viable cell count")

# ---------- CONFIDENCE AND PROVENANCE ----------
CONFIDENCE(observation) = clamp(observation.evidence.confidence, 0.0, 1.0)
CONFIDENCE(inference) = min(confidence_of_required_premises)
PROVENANCE(assertion) = {source, method, observed_at, supporting_observation_ids, version}
CONFLICT_POLICY = preserve_conflicting_observations_and_flag_for_review

# ---------- FLOW HASH / UPDATE MODEL ----------
FLOW_HASH(record) = SHA256(canonical_utf8({ontology_version, record_type, id, normalized_assertions, provenance}))
UPDATE_MODEL(record, observation):
  validate_schema(observation)
  preserve_prior_observations()
  append_versioned_observation(observation)
  recompute_contextual_inferences()
  invalidate_inferences_with_changed_premises()
  recompute_FLOW_HASH()
  return {updated_record, revision_id, changed_inferences, audit_log}

# ---------- AI CONSUMPTION ----------
AI_CONSUMPTION:
  entity_resolution: typed_identifiers_only
  retrieval: evidence_first
  output: {entity, taxonomy_candidates, morphology, growth_context, relationships, confidence, provenance, flow_hash}
  uncertainty: explicit
  guardrails: [no_species_identification_from_morphology_alone, no_pathogenicity_inference_from_appearance, no_exact_cell_count_from_CFU]
  interoperability: [MicroorganismOntology, BacteriumOntology, MicrobialEntityOntology, BiofilmOntology]

# ---------- VALIDATION CASES ----------
test T1: circular colony on agar => morphology circular; species unknown
 test T2: one visible colony from clustered inoculum => CFU one; initial cell count unknown
 test T3: same isolate different media => morphology may differ; no contradiction assumed
 test T4: taxon claim without evidence => candidate only; confirmation blocked
 test T5: update morphology observation => historical observation retained; dependent inferences refreshed

end flow
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ