Skip to main content

Metabolic Pathway Entity Ontology

Enzyme and Metabolic Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 16 October 2026
Audio Overview
FLOW ALGEBRA
TITLE: Metabolic Pathway Entity Ontology
LIBRARY: Kireth Semantic Library
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/enzyme-and-metabolic-entities/metabolic-pathway-entity-ontology.html
VERSION: 1.0
LANGUAGE: en-GB
AUTHORS: Mark Higgins — Sky (Recursive AI)

1. PURPOSE
Represent metabolic pathways as typed, provenance-aware networks of biochemical reactions, molecular participants, catalysts, compartments, regulatory relationships and measurable fluxes. Support semantic retrieval, pathway reasoning, validation and evidence-qualified inference.

2. TYPE SYSTEM
TYPE Entity
TYPE BiologicalEntity <: Entity
TYPE MolecularEntity <: BiologicalEntity
TYPE Metabolite <: MolecularEntity
TYPE Enzyme <: BiologicalEntity
TYPE Reaction <: Entity
TYPE MetabolicPathway <: BiologicalEntity
TYPE PathwayStep <: Entity
TYPE CellularCompartment <: Entity
TYPE Organism <: BiologicalEntity
TYPE Gene <: BiologicalEntity
TYPE RegulatoryFactor <: BiologicalEntity
TYPE Evidence <: Entity
TYPE Measurement <: Entity
TYPE PathwayState <: Entity
TYPE Condition <: Entity
TYPE Identifier <: Entity
TYPE FluxValue <: Measurement
TYPE ConcentrationValue <: Measurement
TYPE ConfidenceValue := Real[0,1]
TYPE Time := timestamp

3. ENTITY SCHEMA
ENTITY MetabolicPathway {
  id: Identifier;
  label: String;
  aliases: Set[String];
  organism: Organism?;
  compartment: Set[CellularCompartment];
  steps: Set[PathwayStep];
  inputs: Set[Metabolite];
  outputs: Set[Metabolite];
  regulators: Set[RegulatoryFactor];
  pathway_kind: Enum{catabolic,anabolic,amphibolic,other,unknown};
  evidence: Set[Evidence];
  confidence: ConfidenceValue;
  version: String;
}
ENTITY PathwayStep {
  id: Identifier;
  reaction: Reaction;
  catalysts: Set[Enzyme];
  substrates: Map[Metabolite,PositiveReal];
  products: Map[Metabolite,PositiveReal];
  reversible: Boolean;
  compartment: CellularCompartment?;
  evidence: Set[Evidence];
}
ENTITY PathwayState {
  pathway: MetabolicPathway;
  condition: Condition;
  time: Time?;
  concentrations: Map[Metabolite,ConcentrationValue];
  fluxes: Map[Reaction,FluxValue];
  confidence: ConfidenceValue;
}

4. TYPED RELATIONS
REL has_step(MetabolicPathway,PathwayStep)
REL participates_in(Metabolite,Reaction)
REL substrate_of(Metabolite,Reaction)
REL product_of(Metabolite,Reaction)
REL catalyses(Enzyme,Reaction)
REL precedes(PathwayStep,PathwayStep)
REL shares_metabolite(PathwayStep,PathwayStep,Metabolite)
REL occurs_in(Reaction,CellularCompartment)
REL found_in(MetabolicPathway,Organism)
REL regulated_by(MetabolicPathway,RegulatoryFactor)
REL inhibits(RegulatoryFactor,Enzyme)
REL activates(RegulatoryFactor,Enzyme)
REL supported_by(Entity,Evidence)
REL equivalent_to(Entity,Entity)
REL mapped_to(Entity,Identifier)
REL connected_to(MetabolicPathway,MetabolicPathway,Metabolite)

5. CONSTRUCTION OPERATORS
OP BUILD_PATHWAY(steps:Set[PathwayStep],context:Condition) -> MetabolicPathway
  REQUIRE all steps have valid reaction identifiers
  REQUIRE reaction participants have explicit stoichiometric coefficients
  RETURN directed reaction-metabolite hypergraph scoped to context
END
OP LINK_STEPS(a:PathwayStep,b:PathwayStep) -> Boolean
  RETURN exists m:Metabolite where product_of(m,a.reaction)
    AND substrate_of(m,b.reaction)
    AND compartments_compatible(a,b,m)
END
OP PATHWAY_INPUTS(P:MetabolicPathway) -> Set[Metabolite]
  RETURN metabolites consumed within P but not produced within P,
    adjusted for pathway boundary and transport definitions
END
OP PATHWAY_OUTPUTS(P:MetabolicPathway) -> Set[Metabolite]
  RETURN metabolites produced within P but not consumed within P,
    adjusted for pathway boundary and transport definitions
END
OP CONNECT(P:MetabolicPathway,Q:MetabolicPathway) -> Set[Metabolite]
  RETURN PATHWAY_OUTPUTS(P) intersection PATHWAY_INPUTS(Q)
END

6. STOICHIOMETRIC ALGEBRA
DEFINE S[m,r] := products_coefficient(m,r) - substrates_coefficient(m,r)
DEFINE v[r] := reaction flux under specified conditions
DEFINE x[m] := concentration of metabolite m
LAW MASS_BALANCE: dx/dt = S * v + boundary_exchange
LAW STEADY_STATE: S_internal * v = 0
CONSTRAINT flux_lower[r] <= v[r] <= flux_upper[r]
CONSTRAINT irreversible(r) => v[r] >= 0 under chosen reaction orientation
NOTE Reversible direction, bounds, transport and exchange must be context-specific.
NOTE Flux is not inferred uniquely from topology alone.

7. REASONING RULES
RULE R1:
  has_step(P,s) AND catalyses(e,s.reaction)
  => enzyme_associated_with(e,P)
RULE R2:
  has_step(P,a) AND has_step(P,b) AND LINK_STEPS(a,b)
  => candidate_precedes(a,b)
RULE R3:
  connected_to(P,Q,m) AND transport_or_compartment_compatible(P,Q,m)
  => candidate_pathway_coupling(P,Q,m)
RULE R4:
  supported_by(P,e) AND evidence_quality(e) >= threshold
  => evidence_supported(P,e)
RULE R5:
  equivalent_to(P,Q) REQUIRES matching biological scope,
  reaction content, organism context and sufficient evidence
NOTE A shared metabolite does not prove temporal ordering or causal coupling.
NOTE Regulatory effects can be condition-dependent and non-monotonic.

8. SEMANTIC_EQUIVALENCE
FUNCTION SEMANTIC_EQUIVALENCE(A:MetabolicPathway,B:MetabolicPathway) -> ConfidenceValue
  features := {
    reaction_identifier_overlap,
    stoichiometric_compatibility,
    metabolite_identity,
    enzyme_associations,
    organism_match,
    compartment_match,
    directionality_compatibility,
    provenance_quality
  }
  RETURN calibrated_similarity(features)
END
CONSTRAINT aliases alone do not establish identity
CONSTRAINT similar pathways in different organisms may be homologous, not identical

9. CONFIDENCE
FUNCTION CONFIDENCE(assertion,evidence,context) -> ConfidenceValue
  RETURN calibrated_estimate(
    evidence_quality,
    independent_support,
    organism_relevance,
    condition_relevance,
    measurement_uncertainty,
    contradiction_penalty
  )
END
NOTE Confidence is an assessed value, not an automatically verified probability.
NOTE Missing evidence must be represented as unknown rather than false.

10. VALIDATION
CHECK all reaction identifiers resolve within declared namespaces
CHECK metabolites use normalised identifiers and compartment qualifiers
CHECK stoichiometric coefficients are positive where supplied
CHECK reaction atom/charge balance when chemical formulas are available
CHECK path edges preserve compartment and transport constraints
CHECK provenance and observation context for inferred assertions
CHECK cycles are allowed and do not imply invalid recursion
CHECK flux units and concentration units are dimensionally consistent

11. RECURSIVE PATHWAY FLOW
FLOW EXPAND_PATHWAY(P,visited:Set[Identifier])
  IF P.id IN visited THEN RETURN cycle_reference(P.id)
  visited := visited UNION {P.id}
  FOR each step IN P.steps:
    EMIT typed_reaction(step)
    EMIT substrates(step), products(step), catalysts(step)
    FOR each connected pathway Q:
      EMIT pathway_link(P,Q)
      IF Q.id NOT IN visited THEN EXPAND_PATHWAY(Q,visited)
  END
END
NOTE Traversal is graph exploration, not proof of metabolic activity.

12. FLOW_HASH
FUNCTION FLOW_HASH(P:MetabolicPathway) -> String
  canonical := canonicalise(
    P.id, sorted_step_identifiers(P),
    canonical_stoichiometry(P), scoped_compartments(P),
    organism_identifier(P), ontology_version(P)
  )
  RETURN SHA256(canonical)
END
NOTE Hash changes when the canonical representation changes;
NOTE it is not a scientific proof of pathway correctness.

13. UPDATE_MODEL
FLOW UPDATE_MODEL(existing,incoming)
  VALIDATE incoming identifiers, schema and provenance
  DIFF existing vs incoming by canonical identifiers and FLOW_HASH
  PRESERVE previous version and provenance
  MERGE compatible evidence with conflict annotations
  FLAG altered reactions, stoichiometry, compartments and directionality
  RECALCULATE affected confidence and semantic mappings
  EMIT versioned_change_record
END

14. AI_CONSUMPTION
OUTPUT {
  ontology: "Metabolic Pathway Entity Ontology";
  entity_types: typed schema;
  relationships: typed predicates;
  pathway_graph: directed biochemical hypergraph;
  equations: stoichiometric and flux constraints;
  evidence: traceable assertions;
  confidence: calibrated or explicitly unknown;
  semantic_equivalence: context-aware mapping;
  flow_hash: canonical content fingerprint;
  update_model: versioned change semantics;
  reasoning: rules with limitations;
}
POLICY distinguish curated facts, measurements, hypotheses and model predictions
POLICY never infer flux magnitude or biological activity from pathway membership alone
POLICY retain organism, tissue, compartment and experimental conditions

END FLOW ALGEBRA
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ