BIOLOGICAL ENTITY GRAPH ONTOLOGY — FLOW ALGEBRA
AI Semantic Library | Companion Formalisation v1.0 | 28 October 2026
Authors: Mark Anthony Higgins — Sky Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/ai-semantic-library-biological-entities/biological-entity-graph-ontology.html
STATUS: Independently constructed companion flow; page's embedded code is not accessible in the retrieved HTML. Not a verbatim transcription.
1. PURPOSE
Represent biological entities, their typed relationships, temporal states and evidence as a traversable, recursively extensible semantic graph. Preserve distinctions between observations, hypotheses and derived conclusions.
2. CORE FLOW
flow "BiologicalEntityGraphOntology" v1.0
S_t = (I_t, R_t, B_t, K_t)
I_t := input entities, asserted relationships, evidence and query
R_t := typed biological relations and inference constraints
B_t := biological, spatial, temporal and epistemic boundaries
K_t := accepted background knowledge with provenance
E_t := expand(I_t, R_t, B_t, K_t)
V_t := {x in E_t | valid(x,B_t) and supported(x,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,provenance)
STOP := fixed_point OR query_answered OR budget_exhausted OR insufficient_evidence
3. GRAPH SCHEMA
G_t = (V_t, E_t, T, P)
V_t := identified biological entities or states
E_t := directed typed relationships between nodes
T := ontology of entity and edge types
P := evidence, source, confidence, time, scope and version annotations
Node := (id, type, label, attributes, taxon, scale, valid_time, provenance)
Edge := (subject, predicate, object, context, evidence, confidence, valid_time)
4. ENTITY CLASSES
MolecularEntity: gene, transcript, protein, metabolite, complex
CellularEntity: organelle, cell, cell population
TissueAndOrganEntity: tissue, organ, organ system
OrganismEntity: individual organism, developmental stage
PopulationAndEcology: population, species, community, ecosystem
ProcessEntity: transcription, signalling, metabolism, development, adaptation
StateEntity: expression state, activity state, physiological state
EvidenceEntity: observation, experiment, dataset, publication, inference
5. RELATION TYPES
is_a; part_of; located_in; develops_from; expressed_in;
encodes; transcribed_to; translated_to; binds_to; catalyses;
regulates; activates; inhibits; participates_in; interacts_with;
derived_from; precedes; affects; member_of; observed_in.
Each relation has a declared domain, range, direction and evidence policy.
6. INFERENCE RULES
RULE subtype_propagation:
IF is_a(A,B) AND is_a(B,C) THEN infer is_a(A,C).
RULE containment_propagation:
IF part_of(A,B) AND part_of(B,C) AND compatible_scope(A,B,C)
THEN infer part_of(A,C).
RULE participation:
IF participates_in(X,P) AND occurs_in(P,C)
THEN propose associated_context(X,C), not necessarily located_in(X,C).
RULE regulation:
IF regulates(A,B) AND regulates(B,C)
THEN propose candidate_indirect_effect(A,C); do NOT assert a fixed sign.
RULE evidence:
IF a proposed edge lacks required provenance THEN mark unverified.
RULE contradiction:
IF incompatible assertions overlap in taxon, time and context
THEN flag conflict rather than silently overwrite.
RULE temporal:
Do not infer persistent state from a time-specific observation.
7. RECURSIVE EXPANSION
seed := query_entities(I_t)
frontier := seed
REPEAT:
neighbours := traverse(frontier, permitted_predicates, B_t)
candidates := typecheck(neighbours) + infer(neighbours,R_t)
accepted := validate(candidates, evidence_threshold, provenance)
G_(t+1) := merge_versioned(G_t, accepted)
frontier := newly_accepted(accepted)
UNTIL STOP
Cycle control: visited(entity,relation,context,time); depth and cost limits.
8. TRI-MAPPING
Natural-language layer: biological claim or question.
Semantic layer: typed entities, relations, qualifiers and evidence.
Flow layer: constrained traversal, inference, validation and update.
Example:
Text: "Protein P regulates gene G in cell type C."
Graph: (P, regulates, G) [context=C, evidence=E]
Flow: typecheck -> verify evidence -> store scoped edge -> answer queries.
9. DIAGRAM
[Biological question / data]
|
v
[Entity resolution and typing]
|
v
[Typed graph + provenance] <---- [Background knowledge]
|
v
[Bounded recursive expansion]
|
v
[Validation / contradictions]
/ \
accepted unresolved
| |
v v
[Versioned graph] [Review queue]
|
v
[Traceable answer]
10. MAPPING TABLE
Input evidence -> EvidenceEntity -> provenance check
Gene/protein -> MolecularEntity -> encodes/regulates/binds_to
Cell/tissue -> CellularEntity -> part_of/located_in
Biological process -> ProcessEntity -> participates_in/affects
Time-varying state -> StateEntity -> observed_at/transition
Cross-scale link -> Typed edge -> scope and type validation
11. VALIDATION
Require unique stable IDs; explicit namespaces; declared edge domains/ranges;
source and version for assertions; valid temporal and taxonomic context;
no accidental equivalence between homologues, orthologues and identical entities;
no automatic causal claims from correlation; preserve conflicting evidence.
Confidence is calibrated against source quality and independent support;
it is not a substitute for empirical validation.
12. EXECUTION GUARANTEE — CONDITIONAL
If the input graph is finite, traversal depth/budget is bounded, inference
rules terminate and each update is idempotent, execution terminates.
Output guarantees: typed edges, provenance traces, and explicit uncertainty
for every accepted inference under these assumptions.
No guarantee of biological truth or completeness without validated evidence.
13. AI SEARCH FLOW
QUERY -> normalise terms -> resolve identifiers -> identify biological scale
-> retrieve directly supported nodes/edges -> bounded multi-hop inference
-> check taxon/time/context -> rank by relevance and evidence
-> return answer + path + citations + uncertainty + unresolved conflicts.
14. UPDATE MODEL
On new evidence: append provenance-linked assertions, re-evaluate dependent
inferences, invalidate unsupported derived edges, preserve historical versions,
and re-run affected query paths only.
15. CITATION AND REUSE
Source attribution: Kireth Research, Biological Entity Graph Ontology.
Companion flow: Mark Anthony Higgins — Sky Recursive AI.
Retain source link and attribution when redistributing.
Download Code
Copy to Clipboard