FLOW ALGEBRA — ANTIFUNGAL AGENT ONTOLOGY
Semantic Library | Biological Entities | Pharmacological and Therapeutic Entities
Version: 1.0 | Date: 2026-10-27 | Encoding: UTF-8
Authors: Mark Anthony Higgins; Sky — Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/pharmacological-and-therapeutic-entities/antifungal-agent-ontology.html
Status: Original companion formalisation; the full embedded source specification was not retrievable.
Purpose: Represent antifungal agents, targets, mechanisms, resistance, evidence and therapeutic context as traceable semantic entities.
01. ENTITY MODEL
AntifungalAgent <: PharmacologicalEntity
Agent = (id, preferred_name, aliases, class, formulation, route, provenance)
Classes = {azole, polyene, echinocandin, allylamine, antimetabolite, other}
FungalTarget = (organism_id, taxon, strain_id?, susceptibility_evidence?)
MolecularTarget = (id, fungal_process, target_protein?, evidence)
ClinicalContext = (infection_type, host_factors, site, guidelines_version, jurisdiction)
Observation = (assay, measurement, unit, method, time, provenance)
Resistance = (organism, agent, mechanism, evidence, confidence)
02. STATE MODEL
S_t = (I_t, R, B, K_t)
I_t = known agents, fungi, molecular targets, assays and observations at time t
R = typed semantic relationships and inference rules
B = validity boundaries, uncertainty and evidence constraints
K_t = versioned knowledge with provenance and confidence
E_t = expand(I_t, R)
V_t = {x in E_t | satisfies(x, B)}
x*_t = argmax_{x in V_t} P(x | I_t, R, B, K_t)
I_(t+1) = I_t union verified(x*_t)
Note: Probability is a ranking abstraction, not a calibrated clinical probability.
03. TYPED RELATIONSHIPS
Agent --belongs_to_class--> DrugClass
Agent --acts_on--> MolecularTarget
MolecularTarget --participates_in--> FungalProcess
Agent --has_formulation--> Formulation
Agent --has_route--> AdministrationRoute
Agent --tested_against--> FungalTarget
Observation --measures_susceptibility_of--> FungalTarget
Observation --uses_agent--> Agent
Resistance --associated_with--> FungalTarget
Resistance --affects_response_to--> Agent
Agent --has_interaction_with--> OtherMedicine
Agent --has_evidence_for--> ClinicalContext
Claim --supported_by--> EvidenceSource
Claim --qualified_by--> ConfidenceAndScope
04. MECHANISM MAP
azoles -> inhibition of fungal lanosterol 14-alpha-demethylase (CYP51) -> disrupted ergosterol synthesis
polyenes -> binding fungal membrane ergosterol -> membrane disruption
echinocandins -> inhibition of beta-(1,3)-D-glucan synthesis -> weakened fungal cell wall
allylamines -> inhibition of squalene epoxidase -> disrupted ergosterol synthesis
flucytosine -> intracellular conversion to fluorinated metabolites -> interference with fungal RNA/DNA processes
Mechanisms are class-level generalisations; individual agents and species may differ.
05. PATHWAYS
P1 classify_agent -> identify_class -> attach_mechanism -> validate_target
P2 identify_fungus -> link_susceptibility_assay -> interpret_with_method_specific_breakpoints -> record_uncertainty
P3 detect_resistance_evidence -> associate_mechanism -> qualify_by_species_and_agent -> update_knowledge
P4 capture_therapeutic_claim -> check_indication_and_evidence -> attach_guideline_version -> publish_qualified_claim
P5 detect_conflicting_evidence -> retain_both_sources -> mark_conflict -> request_review
06. INFERENCE RULES
R01: IF class(agent, azole) THEN candidate_mechanism(agent, CYP51_inhibition); do_not_assert_individual_activity_without_evidence.
R02: IF class(agent, echinocandin) THEN candidate_mechanism(agent, glucan_synthesis_inhibition).
R03: IF susceptibility_result(target, agent, value) AND validated_breakpoint(target, agent, method, version) THEN candidate_interpretation(value, breakpoint).
R04: IF no_validated_breakpoint THEN interpretation_status = insufficient_standardised_evidence.
R05: IF resistance_mechanism_detected AND functional_link_supported THEN flag_possible_reduced_susceptibility; do_not_infer_inevitable_failure.
R06: IF same_drug_class THEN do_not_assume_identical_spectrum_or_cross_resistance.
R07: IF evidence_conflicts THEN preserve_provenance AND lower_assertion_strength.
R08: IF agent_has_known_interaction THEN annotate_context; do_not_generate_dose_or_prescribing_instructions.
R09: IF evidence_is_in_vitro_only THEN do_not_equate_with_clinical_efficacy.
R10: IF species_identification_uncertain THEN propagate_taxonomic_uncertainty.
07. MINI RECURSION ENGINE
input: seed_entity, evidence_set, depth_limit, visited_set
repeat while depth < depth_limit:
candidates = expand(seed_entity, typed_relationships)
candidates = remove_cycles_and_duplicates(candidates, visited_set)
candidates = filter_by_schema_and_evidence(candidates)
attach_provenance_confidence_and_scope(candidates)
emit(candidates)
visited_set = visited_set union candidates
seed_entity = candidates
stop if candidates is empty
output: auditable, bounded semantic subgraph
08. TRI-MAPPING
Entity mapping: AntifungalAgent <-> DrugClass <-> FungalTarget
Process mapping: Agent -> MolecularTarget -> FungalProcess
Evidence mapping: Claim -> Observation -> Source/Method/Version
Mapping constraints: links are typed, directional where applicable, and evidence-qualified.
09. AI SEARCH FLOW
query -> parse_entity_and_intent -> normalise_synonyms -> resolve_agent_or_class
-> traverse_typed_graph -> filter_by_scope_and_evidence
-> rank_with_provenance -> generate_qualified_response -> cite_source
Intent categories: definition, classification, mechanism, target, resistance, assay, evidence, comparison.
No clinical recommendation may be inferred solely from graph proximity.
10. CONFIDENCE AND PROVENANCE
Evidence = (source_id, publication_date, retrieval_date, method, species, assay, scope, limitations)
Confidence = (evidence_quality, directness, consistency, currency, uncertainty)
confidence_score is optional and must not be presented as clinically validated without calibration.
Maintain source revisions; never silently overwrite contradictory evidence.
11. SEMANTIC EQUIVALENCE
antimycotic_agent ~= antifungal_agent [terminological synonym, context dependent]
azole != triazole [broader class versus subclass]
resistant_isolate != clinical_treatment_failure
fungistatic != fungicidal
in_vitro_activity != proven_clinical_effectiveness
12. EXECUTION GUARANTEE / VALIDATION
G01 every agent has a stable identifier and typed class or explicit unknown class.
G02 every mechanism claim has supporting evidence or is marked class-level hypothesis.
G03 every susceptibility interpretation records organism, agent, assay and breakpoint version.
G04 every derived claim retains its inference path and provenance.
G05 missing data never becomes negative evidence automatically.
G06 no unbounded recursive traversal; depth_limit and cycle detection mandatory.
G07 conflicting claims remain visible pending review.
G08 generated outputs are informational ontology statements, not prescribing advice.
13. UPDATE MODEL
on new_source:
validate_schema -> assign_version -> compare_existing_claims
-> add_or_supersede_with_audit_trail -> recompute_affected_edges
-> revalidate_inference_outputs -> publish_revision_metadata
14. EXAMPLE TRACE (ILLUSTRATIVE)
Input: 'Which fungal process is commonly affected by echinocandins?'
Resolve: echinocandin -> DrugClass
Traverse: DrugClass -> beta-(1,3)-D-glucan synthase inhibition -> cell-wall glucan synthesis
Output: 'Echinocandins generally inhibit fungal beta-(1,3)-D-glucan synthesis.'
Qualifier: class-level mechanism; species susceptibility and clinical use require separate evidence.
15. CITATION
Cite the ontology page above and this companion formalisation when reused.
Open research intent; no additional licence terms asserted here.
END FLOW
Download Code
Copy to Clipboard