FLOW ALGEBRA — DRUG TARGET ONTOLOGY
Semantic Library | 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/drug-target-ontology.html
Status: Original companion formalisation; not a transcription of inaccessible embedded page specification.
Purpose: Represent drug targets, interactions, evidence, context, and pharmacological effects as traceable typed relations.
01. ENTITY MODEL
DrugTarget := (id, kind, organism, location, molecular_identity, state, provenance)
kind ∈ {protein, receptor, enzyme, ion_channel, transporter, nucleic_acid, complex, other_biological_structure}
Drug := (id, active_moiety, formulation, provenance)
Interaction := (drug_id, target_id, mode, affinity, occupancy, context, evidence)
mode ∈ {agonism, antagonism, inhibition, activation, modulation, binding, degradation, unknown}
Context := (species, tissue, cell_type, dose, exposure, time, disease_state)
Evidence := (source, method, observation, uncertainty, date)
02. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t := currently known drug, target, and observation entities
R_t := typed interaction and causal relations
B_t := biological and evidential constraints
K_t := provenance, context, uncertainty, and domain knowledge
E_t = expand(I_t, R_t)
V_t = {x ∈ E_t | satisfies(x, B_t) AND evidence_compatible(x, K_t)}
x*_t = argmax_{x ∈ V_t} P(x | I_t, R_t, B_t, K_t)
I_{t+1} = update(I_t, x*_t, observations_t)
Note: P is an evidence-conditioned scoring function, not a calibrated probability unless independently validated.
03. RELATIONSHIP GRAPH
Drug --binds_to--> DrugTarget
DrugTarget --expressed_in--> TissueOrCell
DrugTarget --participates_in--> BiologicalPathway
Drug --modulates--> DrugTarget
DrugTarget --regulates--> DownstreamProcess
Drug --has_interaction--> Interaction
Interaction --supported_by--> Evidence
Interaction --observed_under--> Context
DrugTarget --encoded_by--> Gene [where applicable]
DrugTarget --has_variant--> MolecularVariant [where applicable]
DrugTarget --associated_with--> Disease [association only]
04. CLASSIFICATION
Targets may be proteins, nucleic acids, complexes or other biological structures.
A target is not necessarily a validated therapeutic target.
Direct binding, functional modulation and downstream effect are distinct relations.
Primary targets, off-targets and candidate targets require evidence-specific labels.
Target identity must distinguish isoform, species, subunit and molecular state when relevant.
05. INTERACTION TRANSFORMATIONS
T_bind: (Drug, Target, Context) -> BindingObservation
T_engage: BindingObservation + exposure -> TargetEngagementEstimate
T_modulate: TargetEngagementEstimate + mechanism -> FunctionalEffect
T_pathway: FunctionalEffect + network_context -> DownstreamResponse
T_outcome: DownstreamResponse + organism_context -> ObservedPhenotype
Each transformation must preserve source evidence and uncertainty.
Binding alone does not establish therapeutic benefit or clinical efficacy.
06. INFERENCE RULES
R1: observed_binding(d,t,c) -> candidate_interaction(d,t,c)
R2: candidate_interaction(d,t,c) AND functional_assay(d,t,c) -> supported_modulation(d,t,c)
R3: supported_modulation(d,t,c) AND pathway_link(t,p) -> possible_pathway_effect(d,p,c)
R4: possible_pathway_effect(d,p,c) does NOT imply confirmed_clinical_outcome(d,c)
R5: homologous_target(t1,t2) does NOT imply identical_drug_response(t1,t2)
R6: association(target,disease) does NOT imply causal_therapeutic_relevance(target,disease)
R7: contradictory_evidence -> retain_both_with_context AND reduce_confidence
R8: absent_evidence != evidence_of_absence
R9: context_mismatch -> block_unqualified_generalisation
07. MINI-RECURSION ENGINE
input: target_query, candidate_drugs, biological_context, evidence_set
state := initialise(target_query, candidate_drugs, biological_context)
repeat until convergence OR depth_limit:
candidates := expand(state.entities, state.relations)
candidates := filter_by_constraints(candidates, state.context)
candidates := annotate_evidence_and_provenance(candidates, evidence_set)
ranked := rank_by_relevance_and_evidence(candidates)
state := update_without_discarding_conflicts(state, ranked)
output: ranked hypotheses, relation paths, uncertainty, provenance
Termination: finite depth_limit, no novel admissible paths, or stable ranking.
08. TRI-MAPPING
Entity map: Drug -> DrugTarget -> Pathway -> Phenotype
Relation map: binds_to -> modulates -> regulates -> observed_as
Evidence map: Assay -> Replication -> Contextual Validation -> Clinical Evidence
Do not collapse the three maps into a single causal claim.
09. HOW TO READ
A typed arrow states a relation, not necessarily causality.
A pathway is a candidate explanatory route until experimentally substantiated.
An inference is a hypothesis with attached evidence and scope.
An observation is time-, assay-, organism- and context-dependent.
10. AI SEARCH FLOW
QUERY -> IDENTIFY_ENTITIES -> NORMALISE_IDENTIFIERS -> RESOLVE_CONTEXT
-> EXPAND_TARGET_RELATIONS -> RETRIEVE_EVIDENCE -> APPLY_CONSTRAINTS
-> RANK_SUPPORTED_PATHS -> RETURN_EXPLANATION_WITH_PROVENANCE
Fallback: if no supported path exists, return INSUFFICIENT_EVIDENCE.
11. CONFIDENCE AND PROVENANCE
confidence := f(assay_quality, replication, directness, relevance, consistency)
Never substitute an arbitrary confidence score for a validated clinical probability.
Record source URL/DOI, publication date, experiment type, organism, tissue and assay.
Preserve null and unknown values; do not invent affinity, selectivity or potency.
12. EXECUTION GUARANTEES AND VALIDATION
G1: All entities have stable identifiers.
G2: Every inferred relation retains its evidence trail.
G3: Unknown mechanism remains unknown rather than being guessed.
G4: Direct target interaction and indirect pathway effects remain distinguishable.
G5: Conflicting findings remain queryable with context.
G6: No inference alone establishes safety, efficacy, dose or prescribing advice.
G7: Every iteration terminates by bounded depth or convergence.
G8: Output labels distinguish observation, association, hypothesis and validation.
13. SEMANTIC EQUIVALENCE
Synonyms may resolve to one identifier only when entity type and molecular identity match.
Drug product != active ingredient; target gene != target protein; binding != inhibition.
Cross-species target equivalence requires explicit mapping and evidence.
14. UPDATE MODEL
On new evidence: append source -> reassess interaction -> recompute rankings.
Maintain revision history and provenance; never silently overwrite conflicts.
15. CITATION
Source ontology: Kireth Research, Drug Target Ontology.
Original Flow Algebra companion: Mark Anthony Higgins and Sky — Recursive AI.
Citation backlink: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/pharmacological-and-therapeutic-entities/drug-target-ontology.html
Download Code
Copy to Clipboard