Skip to main content

Biofilm 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 — BIOFILM 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/biofilm-ontology-2.html
Status: Independently constructed formalisation; page's embedded specification not available for comparison.

flow "BiofilmOntology" v1.0

# 1. DOMAIN AND TYPED ENTITIES
entity Biofilm : MicrobialCommunity
entity Microorganism : BiologicalEntity
entity BacterialCell : Microorganism
entity ArchaealCell : Microorganism
entity FungalCell : Microorganism
entity Surface : PhysicalEntity
entity Substrate : PhysicalEntity
entity ExtracellularPolymericSubstance : BiologicalMaterial
entity ExtracellularDNA : NucleicAcid
entity Polysaccharide : Biomolecule
entity Protein : Biomolecule
entity Microcolony : MicrobialCommunity
entity Matrix : BiologicalMaterial
entity Nutrient : ChemicalEntity
entity SignalMolecule : ChemicalEntity
entity EnvironmentalCondition : State
entity DispersedCell : Microorganism
entity Observation : Evidence
entity SourceRecord : ProvenanceRecord

# 2. ATTRIBUTES
attribute Biofilm.maturity : enum[initial,developing,mature,dispersing]
attribute Biofilm.location : optional[Surface]
attribute Biofilm.thickness : optional[Measurement]
attribute Biofilm.biomass : optional[Measurement]
attribute Biofilm.communityComposition : set[Microorganism]
attribute EnvironmentalCondition.oxygen : optional[Measurement]
attribute EnvironmentalCondition.pH : optional[Measurement]
attribute EnvironmentalCondition.temperature : optional[Measurement]
attribute Observation.confidence : real[0,1]

# 3. RELATIONSHIP SIGNATURES
relation ATTACHES_TO(Microorganism,Surface)
relation MEMBER_OF(Microorganism,Biofilm)
relation CONTAINS(Biofilm,Microcolony)
relation EMBEDDED_IN(Microorganism,Matrix)
relation MATRIX_OF(Matrix,Biofilm)
relation COMPONENT_OF(BiologicalMaterial,Matrix)
relation PRODUCES(Microorganism,BiologicalMaterial)
relation EXCHANGES_WITH(Microorganism,Microorganism,ChemicalEntity)
relation RESPONDS_TO(Microorganism,SignalMolecule)
relation DEVELOPS_FROM(Biofilm,MicrobialCommunity)
relation DISPERSES_FROM(DispersedCell,Biofilm)
relation EXPOSED_TO(Biofilm,EnvironmentalCondition)
relation SUPPORTED_BY(Assertion,SourceRecord)

# 4. TYPE AND IDENTITY CONSTRAINTS
constraint Biofilm <: MicrobialCommunity
constraint Biofilm != Microcolony
constraint ExtracellularPolymericSubstance != Biofilm
constraint ATTACHES_TO(x,s) requires x:Microorganism and s:Surface
constraint MEMBER_OF(x,b) requires x:Microorganism and b:Biofilm
constraint MATRIX_OF(m,b) requires m:Matrix and b:Biofilm
constraint Biofilm.communityComposition contains only Microorganism

# 5. BIOLOGICAL STRUCTURE
fact TypicalMatrixComponents = {Polysaccharide,Protein,ExtracellularDNA}
rule R01: MATRIX_OF(m,b) and COMPONENT_OF(c,m) -> HAS_MATRIX_COMPONENT(b,c)
rule R02: MEMBER_OF(x,b) and MATRIX_OF(m,b) and EMBEDDED_IN(x,m) -> MATRIX_ASSOCIATED_MEMBER(x,b)
rule R03: CONTAINS(b,c) -> HAS_SUBCOMMUNITY(b,c)
rule R04: MEMBER_OF(x,b) and MEMBER_OF(y,b) and x != y -> SHARES_COMMUNITY(x,y,b)

# 6. DEVELOPMENTAL TRANSITIONS
state InitialAttachment
state IrreversibleAttachment
state MicrocolonyFormation
state MatrixAccumulation
state MatureBiofilm
state Dispersion
transition InitialAttachment -> IrreversibleAttachment when attachment_stabilised
transition IrreversibleAttachment -> MicrocolonyFormation when local_population_growth
transition MicrocolonyFormation -> MatrixAccumulation when matrix_production_detected
transition MatrixAccumulation -> MatureBiofilm when structured_community_established
transition MatureBiofilm -> Dispersion when dispersal_event_observed
# These are conceptual stages; real biofilm development is context-dependent and non-linear.

# 7. ECOLOGICAL AND PHYSIOLOGICAL RULES
rule R05: EXPOSED_TO(b,e) and HAS_GRADIENT(e,oxygen) -> MAY_HAVE_OXYGEN_MICROENVIRONMENTS(b)
rule R06: HAS_MATRIX_COMPONENT(b,c) -> MAY_SUPPORT_STRUCTURAL_COHESION(b)
rule R07: HAS_SUBCOMMUNITY(b,c) -> MAY_EXHIBIT_SPATIAL_HETEROGENEITY(b)
rule R08: EXCHANGES_WITH(x,y,n) and MEMBER_OF(x,b) and MEMBER_OF(y,b) -> INTRABIOFILM_EXCHANGE(b,n)
rule R09: DISPERSes_FROM(x,b) -> POSSIBLE_COLONISATION_SOURCE(x,b)
# Do not infer universal antibiotic resistance, pathogenicity or clinical infection from biofilm membership.

# 8. SEMANTIC EQUIVALENCE
semantic_equivalence:
  "microbial biofilm" ~= "biofilm" when microbial_context
  "extracellular matrix" ~= "biofilm matrix" when biofilm_context
  "EPS" ~= "extracellular polymeric substances" when expanded_and_disambiguated
not_equivalent:
  "biofilm" != "bacterial colony"
  "biofilm" != "extracellular polymeric substances"
  "biofilm formation" != "infection"

# 9. CONFIDENCE AND EVIDENCE
CONFIDENCE(assertion) := calibrated_evidence_score(assertion, evidence, method, context)
constraint 0 <= CONFIDENCE(assertion) <= 1
rule R10: INFERRED(assertion) -> REQUIRE_EVIDENCE_AND_RULE_TRACE(assertion)
rule R11: CONFLICTING_EVIDENCE(assertion) -> FLAG_FOR_REVIEW(assertion)
rule R12: NO_EVIDENCE(assertion) -> STATUS(assertion,unverified)
# Do not assign numeric confidence without a defined evidence-calibration method.

# 10. PROVENANCE
PROVENANCE(assertion) := {
  source_uri, source_record_id, observation_method,
  observed_at, asserted_at, author, version, evidence_status
}
rule R13: ACCEPTED(assertion) -> HAS_PROVENANCE(assertion)

# 11. FLOW HASH
FLOW_HASH := SHA256(canonical_utf8(
  ontology_name, ontology_version, entity_signatures,
  relation_signatures, constraints, rules, source_uri
))
# Deterministic canonicalisation and field ordering required.

# 12. UPDATE MODEL
UPDATE_MODEL(new_evidence):
  validate_types(new_evidence)
  append_provenance(new_evidence)
  identify_affected_assertions(new_evidence)
  recompute_inferences_for_affected_assertions()
  revalidate_constraints()
  preserve_prior_versions()
  recalculate_flow_hash()
  emit_change_log()

# 13. AI CONSUMPTION
AI_CONSUMPTION:
  parse_typed_entities: true
  resolve_semantic_aliases: context_sensitive
  execute_inference_rules: with_evidence
  distinguish_observed_from_inferred: true
  preserve_provenance: true
  reject_untyped_relations: true
  do_not_infer_pathogenicity_from_membership: true
  output: [entities,relationships,inferences,confidence,provenance,flow_hash]

# 14. VALIDATION CASES
case V01:
  input: MEMBER_OF(cell_1,biofilm_1)
  expected: valid only if cell_1:Microorganism and biofilm_1:Biofilm
case V02:
  input: MATRIX_OF(matrix_1,biofilm_1) and COMPONENT_OF(eDNA_1,matrix_1)
  expected: HAS_MATRIX_COMPONENT(biofilm_1,eDNA_1)
case V03:
  input: MEMBER_OF(cell_1,biofilm_1)
  expected_not: PATHOGENIC(cell_1)
case V04:
  input: biofilm_1 without observation of antimicrobial response
  expected_not: ANTIBIOTIC_RESISTANT(biofilm_1)

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