BIOLOGICAL KNOWLEDGE GRAPH ONTOLOGY — FLOW ALGEBRA
Semantic Library | Companion formalisation | 2026-10-28
Authors: Mark Anthony Higgins — Sky, Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/ai-semantic-library-biological-entities/biological-knowledge-graph-ontology-2.html
STATUS: Original companion formalisation; the webpage's embedded specification is not exposed in the accessible page text.
1. PURPOSE
Represent biological knowledge as an evidence-aware, typed, versioned graph supporting traceable traversal and constrained inference across biological scales.
2. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: input biological assertions, identifiers, observations and queries.
R_t: typed graph relationships and inference rules.
B_t: boundaries for taxonomy, time, tissue, organism, evidence and access.
K_t: accepted entities, edges, provenance and confidence metadata.
G_t = (V_t, E_t, T_t, P_t)
V_t: canonical biological entities; E_t: directed typed assertions;
T_t: ontology types and constraints; P_t: per-assertion provenance.
An assertion is (subject, predicate, object, context, source, confidence, validity_interval).
3. ENTITY CLASSES
Gene, Transcript, Protein, Complex, Metabolite, Pathway, Cell, Tissue,
Organ, Organism, Taxon, Phenotype, Disease, Environment, Observation,
Experiment, Publication, Evidence, BiologicalProcess.
Identifiers must be namespaced; names and synonyms are labels, not identity proofs.
4. RELATIONSHIP TYPES
is_a, part_of, located_in, expressed_in, encodes, transcribes_to,
translates_to, interacts_with, participates_in, regulates, catalyses,
produces, consumes, homologous_to, orthologous_to, observed_in,
supported_by, derived_from, contradicts.
Predicates carry domain/range, directionality, evidence requirements and temporal context.
5. RECURSIVE EXPANSION
E_t = expand(I_t, R_t, B_t)
V_t = {x in E_t | type_valid(x) AND boundary_valid(x) AND provenance_valid(x)}
x* = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_{t+1} = update(I_t, x*, observations_t)
Stop when no new validated assertions arise, a depth/compute budget is reached,
or an explicit conflict requires review.
6. IMPLEMENTATION FLOW
INPUT -> NORMALISE -> RESOLVE IDENTITIES -> TYPE-CHECK -> ATTACH PROVENANCE
-> CHECK CONTEXT -> INSERT ASSERTIONS -> TRAVERSE -> INFER -> VALIDATE
-> RECORD CONFLICTS -> VERSION GRAPH -> RETURN EXPLANATION.
7. INFERENCE RULES
R1: is_a(A,B) AND is_a(B,C) => is_a(A,C), where the ontology allows transitivity.
R2: part_of(A,B) AND part_of(B,C) => part_of(A,C), only within compatible scales/contexts.
R3: encodes(g,p) AND participates_in(p,pathway) => candidate_gene_pathway_link(g,pathway), NOT a proven causal relation.
R4: supported_by(claim,evidence) AND evidence_valid(evidence) => eligible_for_confidence_update(claim).
R5: contradictory supported assertions => conflict_record; do not silently overwrite.
R6: orthologous_to(A,B) does NOT imply identical function, phenotype or expression.
R7: correlation or co-occurrence does NOT imply causation.
R8: observations with incompatible organism, tissue or time contexts cannot be merged without an explicit mapping.
8. TRI-MAPPING
ENTITY: canonical node and its identity/type constraints.
RELATION: typed edge with context and provenance.
FLOW: ordered, validated transformations of graph state and query results.
9. TEXT DIAGRAM
[Observation / Dataset]
|
v
[Identity Resolution] -> [Typed Entities]
| |
v v
[Evidence + Provenance] -> [Knowledge Graph]
|
v
[Constrained Inference]
|
v
[Validation / Conflict]
|
v
[Versioned Answer + Trace]
10. MAPPING TABLE
Input identifier -> canonical entity -> stable ID + synonym trace
Experimental fact -> evidence-backed edge -> source + method + context
Graph traversal -> candidate relation -> path + rule identifiers
Inference result -> derived assertion -> premise IDs + confidence
Contradiction -> conflict record -> alternatives preserved
Graph update -> versioned snapshot -> change log + provenance
11. CONFIDENCE AND UNCERTAINTY
Confidence is conditional on evidence quality, source independence, context,
measurement uncertainty and rule validity. Avoid treating a numeric score as a
calibrated probability unless calibrated against reference data. Track unknown,
uncertain, supported, disputed and rejected states separately.
12. VALIDATION
Require canonical IDs or explicitly unresolved identity status.
Enforce predicate domain/range and organism/context compatibility.
Preserve evidence and derivation chains for all inferred edges.
Detect cycles where the relation is intended to be acyclic.
Do not collapse distinct isoforms, cell states or species into one node.
Flag unsupported cross-scale jumps and stale assertions.
13. CONDITIONAL EXECUTION GUARANTEE
Given valid typed inputs, deterministic rules, bounded traversal and immutable
provenance, the flow yields a reproducible trace or an explicit unresolved state.
It does not guarantee that biological claims are true, complete or causal.
14. AI SEARCH FLOW
QUERY -> parse biological entities -> resolve names/IDs -> establish context
-> retrieve typed subgraph -> rank evidence-supported paths -> run permitted
inferences -> validate -> cite sources -> output answer with uncertainty.
Output fields: query, resolved_entities, graph_paths, evidence, provenance,
confidence_status, contradictions, version, answer, limitations.
15. SEMANTIC EQUIVALENCE
Exact identity requires shared canonical identity within matching context.
Synonymy is a lexical mapping; homology and orthology are evolutionary
relationships; functional similarity is not entity equivalence.
16. UPDATE MODEL
Append evidence, revise versioned assertions, preserve superseded claims,
recompute dependent inferences, and invalidate cached answers where required.
17. CITATION
Kireth Research, Biological Knowledge Graph Ontology,
Mark Anthony Higgins and Sky — Recursive AI.
Source URL above. Companion Flow Algebra authored 28 October 2026.
Download Code
Copy to Clipboard