FLOW ALGEBRA
PRIMARY METABOLITE ONTOLOGY
Kireth Semantic Library | Biological Entities | Enzyme and Metabolic Entities
Version: 1.0 | Locale: en-GB | Date: 2026-10-16
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/enzyme-and-metabolic-entities/primary-metabolite-ontology.html
Status: Domain-grounded formalisation; source chapter content not independently verified.
Authors: Mark Higgins — Sky (Recursive AI)
01. PURPOSE
flow "PrimaryMetaboliteOntology" v1.0
domain: biological_entities.enzyme_and_metabolic_entities
entity_focus: PrimaryMetabolite
objective: represent metabolites involved in core growth, maintenance, energy metabolism and biosynthesis with contextual, evidence-aware reasoning.
02. ENTITY TYPES
entity PrimaryMetabolite <: Metabolite
entity Metabolite <: ChemicalEntity
entity MolecularSpecies <: ChemicalEntity
entity MetabolicPathway <: BiologicalProcess
entity BiochemicalReaction <: BiologicalProcess
entity Enzyme <: ProteinOrCatalyticRNA
entity Organism <: BiologicalEntity
entity Cell <: BiologicalEntity
entity CellularCompartment <: BiologicalLocation
entity BiologicalSample <: Sample
entity Measurement <: Observation
entity MetaboliteRole <: ContextualRole
entity Evidence <: InformationEntity
entity Provenance <: InformationEntity
03. CORE SEMANTICS
PrimaryMetabolite(m, context) :=
Metabolite(m) AND participates_in_core_metabolism(m, context)
AND evidence_supports_primary_role(m, context)
# Classification is context-sensitive, not an immutable chemical property.
# Essentiality, abundance and pathway participation are distinct predicates.
# A compound may have both primary and specialised metabolic roles.
04. REPRESENTATIVE CLASSES
class AminoAcid: examples [glutamate, alanine, aspartate]
class Carbohydrate: examples [glucose, fructose]
class OrganicAcid: examples [pyruvate, citrate, malate]
class Nucleotide: examples [ATP, GTP]
class LipidPrecursor: examples [acetyl-CoA, glycerol-3-phosphate]
class CentralRedoxCarrier: examples [NAD+, NADH, NADP+, NADPH]
class CentralMetabolicIntermediate: examples [glucose-6-phosphate, oxaloacetate]
note: These categories overlap; example status depends on biological context.
05. TYPED RELATIONSHIPS
relation participates_in(PrimaryMetabolite, MetabolicPathway)
relation substrate_of(Metabolite, BiochemicalReaction)
relation product_of(Metabolite, BiochemicalReaction)
relation catalysed_by(BiochemicalReaction, Enzyme)
relation located_in(Metabolite, CellularCompartment)
relation measured_in(Metabolite, BiologicalSample)
relation precursor_of(Metabolite, Metabolite)
relation converted_to(Metabolite, Metabolite)
relation carries_energy(Metabolite, Context)
relation carries_reducing_equivalents(Metabolite, Context)
relation supports_biosynthesis(Metabolite, Context)
relation assigned_role(Metabolite, MetaboliteRole)
relation supported_by(Assertion, Evidence)
relation derived_from(Assertion, Provenance)
06. CORE PATHWAY ASSOCIATIONS
pathway Glycolysis: glucose -> pyruvate
pathway CitricAcidCycle: acetyl-CoA -> carbon_dioxide + reduced_cofactors
pathway PentosePhosphatePathway: glucose-6-phosphate -> ribose-5-phosphate + NADPH [branch_dependent]
pathway AminoAcidMetabolism: amino_acids <-> metabolic_intermediates [reaction_dependent]
pathway NucleotideMetabolism: precursors -> nucleotide_pool
pathway LipidBiosynthesis: acetyl-CoA + reducing_equivalents -> lipid_precursors [organism_dependent]
caution: Pathway summaries are schematic and do not assert complete balanced reactions.
07. CLASSIFICATION RULES
rule R01:
IF metabolite(m) AND evidence(core_pathway_participation(m,c))
THEN candidate_primary_metabolite(m,c)
rule R02:
IF candidate_primary_metabolite(m,c) AND evidence(core_growth_or_maintenance_role(m,c))
THEN classify(m, PrimaryMetabolite, context=c)
rule R03:
IF classify(m, PrimaryMetabolite, c1) AND specialised_role(m,c2)
THEN retain_both_roles(m,c1,c2)
rule R04:
IF insufficient_evidence(m,c)
THEN classification(m,c) = unresolved
rule R05:
IF measured_abundance(m,c) is high
THEN do_not_infer_essentiality_without_evidence(m,c)
08. REACTION AND MASS-BALANCE MODEL
reaction r:
substrates: [(m_i, stoichiometric_coefficient_i)]
products: [(m_j, stoichiometric_coefficient_j)]
enzyme: optional Enzyme
compartment: optional CellularCompartment
organism: optional Organism
evidence: Evidence[]
stoichiometric_matrix S[metabolite,reaction]
concentration_dynamics: dC/dt = S * v + transport + exchange
constraint: reaction_atom_balance(r) where full chemistry available
constraint: reaction_charge_balance(r) where ionic states available
note: Flux v is not determined by metabolite concentration alone.
09. CONTEXT AND IDENTITY
context:
organism_id: optional string
tissue_or_cell_type: optional string
compartment_id: optional string
physiological_state: optional string
environment: optional string
time: optional timestamp
chemical_identity:
preferred_name: string
stable_identifier: optional string
formula: optional string
stereochemistry: optional string
protonation_state: optional string
constraint: distinguish chemical identity from measured ion/adduct and biological role.
10. OBSERVATION AND DATA QUALITY
measurement:
analyte: Metabolite
method: string
value: number
unit: string
sample: BiologicalSample
limit_of_detection: optional number
uncertainty: optional number
normalisation: optional string
provenance: Provenance
rule: non_detection != confirmed_absence
rule: correlation != proven_causation
rule: relative_intensity != absolute_concentration
rule: metabolite_identification_confidence != biological_role_confidence
11. RECURSIVE REASONING
function trace_metabolite(m, depth, visited):
IF depth <= 0 OR m IN visited: RETURN []
visited := visited UNION {m}
reactions := known_reactions_involving(m)
RETURN reactions + UNION(
trace_metabolite(neighbour, depth - 1, visited)
FOR neighbour IN adjacent_metabolites(reactions)
)
constraint: preserve reaction direction, compartments and provenance
constraint: detect cycles and prevent infinite recursion
constraint: no causal conclusion solely from graph reachability
12. CONFIDENCE
CONFIDENCE:
identity: range[0,1]
pathway_assignment: range[0,1]
primary_role: range[0,1]
measurement: range[0,1]
provenance_quality: range[0,1]
aggregation: evidence_calibrated; do_not_assume_independence
unknown_confidence: null
rule: report uncertainty and conflicting evidence explicitly
13. SEMANTIC_EQUIVALENCE
SEMANTIC_EQUIVALENCE:
exact_identity: requires matching chemical structure, stereochemistry and relevant state
lexical_alias: labels may differ for same identified entity
functional_similarity: does_not_imply_identity
pathway_equivalence: does_not_imply_chemical_equivalence
examples:
"pyruvic acid" ~ "pyruvate" [related protonation forms; context-dependent]
"NAD+" != "NADH"
"glucose" != "glucose-6-phosphate"
"primary metabolite" != "essential metabolite"
14. INFERENCE EXAMPLES
assert: glucose participates_in glycolysis [organism/context dependent]
assert: pyruvate product_of glycolytic_reactions
assert: citrate participates_in citric_acid_cycle
assert: ATP participates_in energy_coupling_reactions
infer: candidate_primary_metabolite(glucose, typical_cellular_metabolism)
reject: all_primary_metabolites_are_essential
reject: all_metabolites_have_single_biological_role
reject: pathway_membership_alone_proves_flux
15. VALIDATION
validate entity_types
validate relationship_domain_and_range
validate provenance_on_assertions
validate context_for_primary_role
validate identifier_and_alias_resolution
validate measurement_units
validate mass_charge_balance_when_possible
validate recursive_cycle_guards
validate confidence_bounds
validate contradictory_assertions
16. FLOW_HASH
FLOW_HASH:
algorithm: SHA-256
input: canonical_utf8(normalised_flow_content_excluding_FLOW_HASH_value)
value: compute_at_ingestion
purpose: integrity_and_version_comparison
# No digest is fabricated here.
17. UPDATE_MODEL
UPDATE_MODEL:
version: 1.0
update_trigger: new_evidence | revised_ontology | corrected_identifiers | pathway_revision
operations: add | revise | deprecate | supersede
retain_history: true
preserve_provenance: true
conflict_policy: flag_and_review
revalidate_after_update: true
18. AI_CONSUMPTION
AI_CONSUMPTION:
machine_readable: true
domain: biochemical_ontology
primary_entity: PrimaryMetabolite
supported_tasks:
- semantic_search
- entity_linking
- metabolic_network_navigation
- contextual_classification
- evidence_aware_reasoning
- scientific_education
safeguards:
- distinguish_observed_from_inferred
- preserve_context_and_provenance
- disclose_unknowns
- avoid_unverified_clinical_claims
- avoid_invented_measurements
19. CROSS-ONTOLOGY LINKS
parent: EnzymeAndMetabolicEntities
related: MetaboliteOntology
related: SecondaryMetaboliteOntology
related: EnzymeOntology
related: SubstrateOntology
related: ProductMoleculeOntology
related: MetabolicPathwayOntology
related: CofactorOntology
related: CoenzymeOntology
related: ATP_Ontology
related: NAD_Ontology
related: AcetylCoA_Ontology
20. COMPLETION
output: typed_primary_metabolite_knowledge_graph
status: domain_grounded_draft
review_required: source_alignment_and_scientific_validation
END FLOW ALGEBRA
Download Code
Copy to Clipboard