Skip to main content

Pharmacological Entity Ontology

Pharmacological and Therapeutic Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 27 October 2026
Audio Overview
FLOW ALGEBRA — PHARMACOLOGICAL ENTITY ONTOLOGY
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/pharmacological-entity-ontology.html
Status: Original companion formalisation; source page's embedded specification was not exposed in retrieved HTML.
Purpose: Machine-readable conceptual model for pharmacological entities, effects, evidence and relationships. Not a prescribing or clinical decision system.

1. DEFINITIONS
PharmacologicalEntity := an agent or substance characterised by a pharmacological interaction with a biological system.
EntityID := stable identifier with provenance and version.
Context := {species, tissue, route, dose, exposure_time, physiological_state, co_exposures}.
Evidence := {source_id, method, population, timestamp, quality, uncertainty}.

2. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t := known entities and observations at time t
R_t := typed relationships and inference rules
B_t := constraints, contraindications, uncertainty boundaries and scope
K_t := provenance, confidence and contextual knowledge
E_t = expand(I_t, R_t)
V_t = {x in E_t | valid(x, B_t, K_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, Evidence_t)
If V_t is empty, return UNRESOLVED; never fabricate an entity or therapeutic effect.

3. ENTITY SCHEMA
PharmacologicalEntity {
  id: EntityID
  preferred_name: string
  synonyms: set<string>
  class: {small_molecule, biologic, peptide, nucleic_acid_agent, other, unknown}
  molecular_identity: optional<string>
  formulation: optional<string>
  mechanism_of_action: set<Mechanism>
  target: set<BiologicalTarget>
  route: set<Route>
  exposure: set<Exposure>
  effects: set<Effect>
  adverse_effects: set<Effect>
  interactions: set<Interaction>
  indications: set<Indication>
  evidence: set<Evidence>
  status: {hypothesised, experimental, established, disputed, unknown}
}
BiologicalTarget := {receptor, enzyme, ion_channel, transporter, nucleic_acid, cellular_structure, other}
Effect := {phenotype, direction, magnitude?, time_window?, context, evidence}
Interaction := {entity_a, entity_b, mechanism?, effect?, context, evidence}

4. TYPED RELATIONSHIPS
is_a(entity, class)
has_active_component(formulation, entity)
binds_to(entity, target)
modulates(entity, target, direction)
participates_in(target, pathway)
produces_effect(entity, effect, context)
associated_with_adverse_effect(entity, effect, context)
interacts_with(entity_a, entity_b, context)
metabolised_by(entity, enzyme, context)
transported_by(entity, transporter, context)
indicated_for(entity, condition, jurisdiction, evidence)
contraindicated_in(entity, condition, context, evidence)
supported_by(assertion, evidence)

5. FLOW PATHWAYS
IdentityFlow: name -> identifier resolution -> molecular identity -> provenance check
MechanismFlow: entity -> target -> modulation -> pathway -> observed effect
ExposureFlow: route -> absorption -> distribution -> metabolism -> elimination
EvidenceFlow: assertion -> study context -> quality assessment -> calibrated confidence
SafetyFlow: entity + context -> interactions + contraindications -> risk flags -> human review

6. INFERENCE RULES
R1: IF binds_to(E,T) AND modulates(E,T,D) THEN candidate_mechanism(E,T,D); preserve evidence.
R2: IF candidate_mechanism(E,T,D) AND participates_in(T,P) THEN possible_pathway_effect(E,P); NOT a proven clinical effect.
R3: IF observed_effect(E,F,C) AND supported_by(observation,Ev) THEN contextual_effect(E,F,C,Ev).
R4: IF interaction(E1,E2,C) has evidence THEN flag_interaction(E1,E2,C); do not infer severity without evidence.
R5: IF same_name(E1,E2) THEN require identifier and formulation checks before merging.
R6: IF evidence is contradictory THEN preserve both claims with contexts and mark disputed.
R7: IF missing dose, route or species THEN block quantitative extrapolation.
R8: IF clinical recommendation requested THEN output evidence summary and require qualified human judgement.

7. MINI RECURSION ENGINE
function resolve(query, depth, visited):
  if depth <= 0: return bounded_partial_result
  candidates = retrieve_entities(query)
  for candidate in candidates:
    if candidate.id in visited: continue
    visited.add(candidate.id)
    validate_identity(candidate)
    traverse_typed_edges(candidate, permitted_relations)
    attach_evidence_and_context(candidate)
    reject_unsupported_inferences(candidate)
  return rank_by_relevance_and_evidence(candidates)
Termination: depth bound, visited set, finite retrieval budget.

8. TRI-MAPPING
Semantic: entity -> target -> biological pathway -> contextual effect
Formal: E -> T -> P -> F | Context, Evidence
Operational: identify -> validate -> traverse -> evaluate -> return with provenance

9. AI SEARCH FLOW
INPUT: {query, entity_name?, target?, effect?, context?}
NORMALISE: spelling, synonyms, identifiers, units and ontology class
RETRIEVE: entities, targets, effects and evidence
EXPAND: typed relationships subject to bounded recursion
FILTER: context compatibility, provenance, safety constraints
RANK: relevance + evidence quality + contextual match; expose uncertainty
OUTPUT: {entities, relationships, supporting_evidence, confidence, caveats, unresolved}

10. CONFIDENCE AND PROVENANCE
Confidence is claim-specific, not an intrinsic property of the entity.
confidence(claim) := calibrated function(evidence_quality, replication, applicability, uncertainty)
Keep original source identifiers, publication dates and conflicting findings.
Never convert correlation into causation or mechanistic plausibility into clinical efficacy.

11. SEMANTIC EQUIVALENCE
Equivalent identifiers may be merged only when identity, stereochemistry, formulation and context permit.
Related entities (salts, metabolites, prodrugs, biosimilars) are not automatically identical.
Preserve broader-than, narrower-than and related-to as distinct edge types.

12. VALIDATION AND EXECUTION GUARANTEE
Invariant A: every claim has a source or is explicitly marked hypothetical.
Invariant B: every relationship has a declared type and direction.
Invariant C: evidence context accompanies effect assertions.
Invariant D: inference terminates within configured recursion and retrieval limits.
Invariant E: missing data produces UNKNOWN, not false certainty.
Invariant F: no automated diagnosis, dosing or treatment instruction is generated.
Execution guarantee is limited to deterministic schema validation and bounded traversal; it does not guarantee biomedical truth.

13. UPDATE MODEL
On new evidence: preserve prior versions; append evidence; recompute confidence; mark superseded claims.
On ontology change: increment version; record schema migration and affected identifiers.
On contradiction: retain alternatives and require review before resolution.

14. HOW TO READ
Read entities as nodes, relationships as typed directed edges, context as constraints, and evidence as support for each claim. Flows describe retrieval and inference operations rather than experimentally validated biological laws.

15. CITATION
Higgins, Mark Anthony; Sky — Recursive AI. Pharmacological Entity Ontology — Flow Algebra companion. Kireth Research, 2026.
Source backlink: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/pharmacological-and-therapeutic-entities/pharmacological-entity-ontology.html
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ