FLOW ALGEBRA
IMMUNE ENTITY ONTOLOGY
Kireth Semantic Library | AI Core | Entity Graph | Biological Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/immune-system-entities/immune-entity-ontology.html
Status: Topic-based formalisation; live source content not independently verified.
Authors: Mark Higgins — Sky (Recursive AI)
Version: 1.0 | Date: 2026-10-19
1. PURPOSE
Define immune entities as typed, context-dependent participants in innate and adaptive immune processes. Distinguish cells, molecules, receptors, antigens, tissues, processes and observations. Support mechanistic reasoning without treating associations as established causation.
2. TYPE SYSTEM
TYPE Entity
TYPE BiologicalEntity <: Entity
TYPE ImmuneEntity <: BiologicalEntity
TYPE ImmuneCell <: ImmuneEntity
TYPE ImmuneMolecule <: ImmuneEntity
TYPE ImmuneReceptor <: ImmuneMolecule
TYPE Antigen <: BiologicalEntity
TYPE ImmuneTissue <: ImmuneEntity
TYPE ImmuneProcess <: Entity
TYPE ImmuneState <: Entity
TYPE EvidenceRecord <: Entity
TYPE BiologicalContext <: Entity
TYPE Measurement <: Entity
SUBTYPE InnateImmuneCell <: ImmuneCell
SUBTYPE AdaptiveImmuneCell <: ImmuneCell
SUBTYPE Neutrophil <: InnateImmuneCell
SUBTYPE Monocyte <: InnateImmuneCell
SUBTYPE Macrophage <: InnateImmuneCell
SUBTYPE DendriticCell <: InnateImmuneCell
SUBTYPE NaturalKillerCell <: InnateImmuneCell
SUBTYPE BCell <: AdaptiveImmuneCell
SUBTYPE TCell <: AdaptiveImmuneCell
SUBTYPE PlasmaCell <: AdaptiveImmuneCell
SUBTYPE MemoryBCell <: AdaptiveImmuneCell
SUBTYPE MemoryTCell <: AdaptiveImmuneCell
SUBTYPE Antibody <: ImmuneMolecule
SUBTYPE Cytokine <: ImmuneMolecule
SUBTYPE Chemokine <: Cytokine
SUBTYPE ComplementComponent <: ImmuneMolecule
SUBTYPE PatternRecognitionReceptor <: ImmuneReceptor
SUBTYPE AntigenReceptor <: ImmuneReceptor
3. TYPED RELATIONS
REL is_a(Entity, Entity)
REL part_of(Entity, Entity)
REL located_in(BiologicalEntity, BiologicalContext)
REL expresses(ImmuneCell, ImmuneMolecule)
REL recognises(ImmuneReceptor, Antigen)
REL binds(ImmuneMolecule, BiologicalEntity)
REL presents_antigen(ImmuneCell, Antigen)
REL secretes(ImmuneCell, ImmuneMolecule)
REL recruits(ImmuneMolecule, ImmuneCell)
REL activates(Entity, ImmuneCell)
REL inhibits(Entity, ImmuneProcess)
REL differentiates_into(ImmuneCell, ImmuneCell)
REL participates_in(ImmuneEntity, ImmuneProcess)
REL regulates(ImmuneEntity, ImmuneProcess)
REL measured_by(ImmuneEntity, Measurement)
REL supported_by(Entity, EvidenceRecord)
REL occurs_in(ImmuneProcess, BiologicalContext)
REL precedes(ImmuneState, ImmuneState)
4. CANONICAL ENTITY GRAPH
Macrophage is_a InnateImmuneCell
DendriticCell is_a InnateImmuneCell
BCell is_a AdaptiveImmuneCell
TCell is_a AdaptiveImmuneCell
Antibody is_a ImmuneMolecule
Chemokine is_a Cytokine
AntigenReceptor is_a ImmuneReceptor
ImmuneResponse part_of ImmuneProcess
5. PROCESS MODEL
PROCESS innate_recognition:
INPUT: microbial_pattern, receptor, immune_cell, context
PRECONDITION: receptor expressed by immune_cell
EVENT: receptor recognises microbial_pattern
OUTPUT: context-dependent activation_signal
NOTE: recognition alone does not guarantee cell activation
PROCESS antigen_presentation:
INPUT: antigen, antigen_presenting_cell, processing_context
TRANSFORM: antigen -> processed_peptide -> peptide_MHC_complex
OUTPUT: potential T-cell recognition
CONSTRAINT: MHC restriction and co-stimulation are relevant
PROCESS adaptive_activation:
INPUT: lymphocyte, antigen_signal, co_signal, cytokine_context
TRANSFORM: resting_state -> activated_state -> effector_or_memory_state
OUTPUT: differentiated immune function
CONSTRAINT: tolerance, anergy and exhaustion are alternative outcomes
PROCESS immune_resolution:
INPUT: declining_stimulus, regulatory_signals, effector_population
TRANSFORM: active_response -> contraction -> resolved_or_persistent_state
OUTPUT: homeostasis or chronic inflammation
6. STATE ALGEBRA
STATE S = (cell_type, activation, location, receptor_profile, exposure_history, time)
TRANSITION T(S, stimulus, context) -> distribution(S_next)
ALLOW resting -> primed
ALLOW primed -> activated
ALLOW activated -> effector
ALLOW effector -> memory
ALLOW activated -> apoptotic
ALLOW activated -> exhausted
ALLOW activated -> regulatory
REQUIRE each transition to carry organism, tissue, stimulus and temporal context
7. QUANTITATIVE MODELS
Population balance: dN/dt = proliferation + influx - death - efflux
Ligand occupancy (single-site equilibrium approximation): theta = [L]/(Kd + [L])
Simple activation response (phenomenological): A = Amax * [L]^n / (EC50^n + [L]^n)
Cytokine balance: dC/dt = production - clearance + transport
Chemotactic flux (simplified): J = -D*grad(c) + chi*n*grad(s)
NOTE: equations are illustrative and require empirical calibration; receptor occupancy does not uniquely determine downstream signalling.
8. LOGICAL INFERENCE
RULE R1:
IF x is_a BCell AND x differentiates_into y AND y is_a PlasmaCell
THEN y MAY secrete Antibody
RULE R2:
IF x is_a DendriticCell AND x presents_antigen a
THEN x MAY participate_in adaptive_activation
RULE R3:
IF x is_a Chemokine AND x recruits y
THEN x participates_in immune_cell_trafficking
RULE R4:
IF receptor recognises antigen
THEN binding_is_possible
NOT NECESSARILY immune_activation
RULE R5:
IF measurement correlates_with outcome
THEN record association
DO NOT infer causation without supporting design
9. SEMANTIC_EQUIVALENCE
LABEL leukocyte ~ white_blood_cell [context: general biological terminology]
LABEL immunoglobulin ~ antibody [context: molecular class; check membrane-bound versus secreted form]
LABEL NK_cell ~ natural_killer_cell
DISTINGUISH antigen FROM antibody
DISTINGUISH innate_recognition FROM adaptive_antigen_specific_recognition
DISTINGUISH activation FROM proliferation
DISTINGUISH immune_cell FROM immune_molecule
DISTINGUISH immunological_memory FROM persistent_antigen_exposure
EQUIVALENCE requires scope, taxon, evidence and ontology-version checks
10. CONFIDENCE
CONFIDENCE claim := calibrated_score(quality, replication, directness, context_match)
RANGE confidence IN [0,1]
STORE evidence_type, source, assay, sample_size, uncertainty, date
NEVER convert absence_of_evidence into evidence_of_absence
NEVER assign numeric certainty without justified calibration
11. PROVENANCE
PROVENANCE includes:
source_url
author_or_curator
creation_date
last_reviewed
organism_and_tissue
assay_method
evidence_identifier
licence
ontology_version
conflict_resolution_status
12. RECURSIVE FLOW
FLOW identify -> type -> relate -> contextualise -> validate -> infer -> update
RECURSE over connected immune entities until:
no_new_supported_relation OR depth_limit OR confidence_threshold
PREVENT circular proof by visited-node tracking
PRESERVE uncertainty and provenance across inferred edges
13. FLOW_HASH
FLOW_HASH := SHA256(canonicalise(ontology_id, version, type_schema, relations, rules, evidence_refs))
NOTE: compute hash on actual serialised content at publication; no hash value is fabricated here.
14. UPDATE_MODEL
ON new_evidence:
validate provenance and context
compare to existing assertions
update confidence and relation status
retain historical versions
regenerate FLOW_HASH
flag unresolved contradictions for review
15. AI_CONSUMPTION
EXPORT typed_nodes, typed_edges, rules, confidence, provenance, version
PREFER evidence-grounded explanations over unsupported conclusions
SUPPORT entity resolution, retrieval, graph traversal and explainable inference
BLOCK unsupported clinical diagnosis or treatment recommendations
OUTPUT uncertainty, applicable organism and experimental context
16. VALIDATION
CHECK type consistency for every relation
CHECK entity identifiers are stable and unambiguous
CHECK causal claims have adequate supporting evidence
CHECK equivalence is not inferred from similar labels alone
CHECK all equations declare assumptions and units where instantiated
CHECK no asserted universal immune pathway ignores context
CHECK updates preserve provenance and prior versions
END FLOW ALGEBRA
Download Code
Copy to Clipboard