Skip to main content

Antigen Ontology

Immune System Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 19 October 2026
Audio Overview
FLOW ALGEBRA
ONTOLOGY: Antigen Ontology
DOMAIN: Biological Entities / Immune System Entities
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/immune-system-entities/antigen-ontology.html
VERSION: 1.0
LANGUAGE: en-GB
AUTHORS: Mark Higgins — Sky (Recursive AI)
SITE: https://kirethresearch.org
STATUS: Topic-based formalisation; source page not independently verified.

1. PURPOSE
Model antigens as context-dependent molecular structures recognised by antibodies, B-cell receptors, or T-cell receptors (the latter recognising processed peptide or other ligands in presentation contexts). Distinguish antigenicity from immunogenicity and recognition from response.

2. TYPE SYSTEM
TYPE Entity
TYPE BiologicalEntity <: Entity
TYPE MolecularEntity <: BiologicalEntity
TYPE Antigen <: MolecularEntity
TYPE Epitope <: MolecularEntity
TYPE ProteinAntigen <: Antigen
TYPE PolysaccharideAntigen <: Antigen
TYPE LipidAntigen <: Antigen
TYPE NucleicAcidAntigen <: Antigen
TYPE Hapten <: MolecularEntity
TYPE CarrierProtein <: MolecularEntity
TYPE Immunogen <: Antigen
TYPE Allergen <: Antigen
TYPE Autoantigen <: Antigen
TYPE Neoantigen <: Antigen
TYPE PathogenDerivedAntigen <: Antigen
TYPE Antibody <: MolecularEntity
TYPE BCellReceptor <: MolecularEntity
TYPE TCellReceptor <: MolecularEntity
TYPE MHCClassI <: MolecularEntity
TYPE MHCClassII <: MolecularEntity
TYPE CD1Molecule <: MolecularEntity
TYPE AntigenPresentingCell <: BiologicalEntity
TYPE BCell <: BiologicalEntity
TYPE TCell <: BiologicalEntity
TYPE ImmuneResponse <: BiologicalEntity
TYPE BiologicalContext <: Entity
TYPE Evidence <: Entity
TYPE Confidence <: Entity

3. TYPED RELATIONSHIPS
REL has_epitope: Antigen x Epitope -> Bool
REL binds_antibody: Epitope x Antibody x BiologicalContext -> Bool
REL binds_bcr: Epitope x BCellReceptor x BiologicalContext -> Bool
REL processed_by: Antigen x AntigenPresentingCell -> Bool
REL presented_by_mhc_i: Epitope x MHCClassI -> Bool
REL presented_by_mhc_ii: Epitope x MHCClassII -> Bool
REL presented_by_cd1: Epitope x CD1Molecule -> Bool
REL recognised_by_tcr: Epitope x TCellReceptor x BiologicalContext -> Bool
REL elicits_response: Antigen x ImmuneResponse x BiologicalContext -> Bool
REL derived_from: Antigen x BiologicalEntity -> Bool
REL conjugated_to: Hapten x CarrierProtein -> Bool
REL cross_reacts_with: Antigen x Antigen x BiologicalContext -> Bool
REL supported_by: Entity x Evidence -> Bool

4. ENTITY CONSTRAINTS
RULE Antigen(a) => exists e:Epitope . has_epitope(a,e)
RULE Immunogen(a) => Antigen(a)
RULE Allergen(a) => Antigen(a)
RULE Autoantigen(a) => Antigen(a)
RULE Neoantigen(a) => Antigen(a)
RULE binds_antibody(e,ab,c) does_not_imply elicits_response(a,r,c)
RULE recognised_by_tcr(e,tcr,c) requires presentation_context(e,c)
RULE Hapten(h) does_not_imply Immunogen(h)
RULE conjugated_to(h,carrier) may_enable T_cell_dependent_response(h,carrier)
RULE absence_of_detected_response(a,c) does_not_imply non_antigenic(a)

5. RECOGNITION FLOW
FLOW AntigenRecognition
INPUT antigen:a, receptor:r, context:c
STEP validate_entity_types(a,r,c)
STEP identify_candidate_epitopes(a)
STEP select_recognition_mode(r)
STEP evaluate_affinity_and_accessibility(a,r,c)
STEP determine_binding_evidence(a,r,c)
OUTPUT recognition_event, evidence, confidence

6. PRESENTATION FLOW
FLOW AntigenPresentation
INPUT antigen:a, presenting_cell:apc, context:c
STEP determine_uptake_or_endogenous_origin(a,apc)
STEP determine_processing_route(a,apc,c)
STEP select_presentation_system(MHC_I,MHC_II,CD1,other)
STEP load_compatible_ligand(a,c)
STEP expose_surface_complex(apc,c)
OUTPUT presentation_complex, route, confidence
NOTE MHC I commonly presents endogenous peptides; cross-presentation and other exceptions exist.
NOTE MHC II commonly presents peptides from endosomal processing.
NOTE CD1 presents selected lipid antigens.

7. IMMUNOGENICITY FLOW
FLOW ImmunogenicityAssessment
INPUT antigen:a, host:h, context:c
STEP evaluate_antigen_dose_and_route(a,c)
STEP evaluate_host_repertoire_and_tolerance(h,a)
STEP evaluate_innate_signals_and_adjuvants(c)
STEP evaluate_antigen_processing_and_presentation(a,h,c)
STEP estimate_probability_of_response(a,h,c)
OUTPUT conditional_immunogenicity, uncertainty

8. QUANTITATIVE MODELS
MODEL ReceptorOccupancy
EQUATION theta = [L] / (Kd + [L])
ASSUMPTIONS reversible 1:1 equilibrium binding; no cooperativity; ligand concentration approximates free ligand
VARIABLE theta: fraction_of_occupied_sites [dimensionless]
VARIABLE [L]: free_ligand_concentration [mol/L]
VARIABLE Kd: dissociation_constant [mol/L]

MODEL BindingFreeEnergy
EQUATION delta_G_standard = R * T * ln(Kd / C_standard)
VARIABLE R: gas_constant [J mol^-1 K^-1]
VARIABLE T: temperature [K]
VARIABLE C_standard: standard_concentration [mol/L]
NOTE Kd/C_standard is dimensionless; standard-state convention must be specified.

MODEL ResponseProbability
EQUATION P(response | a,h,c) = sigmoid(beta_0 + sum_i beta_i * x_i)
NOTE illustrative statistical model, not a universal biological law

9. SEMANTIC EQUIVALENCE
SEMANTIC_EQUIVALENCE("antigen", "immune-recognised molecular structure") = contextual
SEMANTIC_EQUIVALENCE("immunogen", "antigen") = false
SEMANTIC_EQUIVALENCE("epitope", "antigen") = false
SEMANTIC_EQUIVALENCE("antigenic determinant", "epitope") = generally_true
SEMANTIC_EQUIVALENCE("allergen", "antigen") = subtype_not_identity
SEMANTIC_EQUIVALENCE("self antigen", "autoantigen") = contextual
NOTE Recognition depends on receptor and context; antigen is not synonymous with pathogen.

10. LOGICAL INFERENCE
IF has_epitope(a,e) AND binds_antibody(e,ab,c) THEN evidence_for_antigenicity(a,c)
IF presented_by_mhc_i(e,m) AND recognised_by_tcr(e,t,c) THEN evidence_for_T_cell_recognition(e,c)
IF cross_reacts_with(a,b,c) THEN shared_or_similar_recognition_features(a,b,c)
IF elicits_response(a,r,c) THEN immunogenic_in_context(a,c)
DO_NOT_INFER immunogenic_in_all_hosts(a) FROM immunogenic_in_context(a,c)
DO_NOT_INFER clinical_allergy(a) FROM IgE_binding(a)

11. CONFIDENCE
CONFIDENCE:
  evidence_quality: [low, moderate, high]
  assay_type: optional_string
  sample_size: optional_integer
  biological_context: required
  uncertainty_interval: optional
  replication_status: [unreplicated, replicated, unknown]
  contradictory_evidence: optional
  calibrated_score: optional_float_0_to_1
RULE confidence_scores_are_not_probabilities_without_calibration

12. RECURSIVE FLOW
FLOW RecursiveAntigenReasoning
INPUT candidate:a, evidence_set:E, depth:d
IF d <= 0 THEN RETURN current_classification(a,E)
STEP classify_antigen_and_epitopes(a,E)
STEP traverse_recognition_and_presentation_links(a)
STEP assess_contextual_immunogenicity(a,E)
STEP reconcile_conflicting_evidence(E)
STEP update_confidence(a,E)
OUTPUT revised_classification, explanation, uncertainty
STOP on stable_classification OR evidence_exhaustion OR max_depth

13. UPDATE_MODEL
UPDATE_MODEL:
  version: 1.0
  trigger: new_evidence OR taxonomy_change OR assay_revision
  operations: [validate, reconcile, version, reindex]
  preserve_provenance: true
  rollback_supported: true
  conflict_policy: retain_conflicting_claims_with_context

14. FLOW_HASH
FLOW_HASH:
  algorithm: SHA-256
  input: canonical_serialisation(ontology_version, entities, relations, rules, source_identifiers)
  purpose: integrity_and_change_detection
  value: compute_on_publication

15. AI_CONSUMPTION
AI_CONSUMPTION:
  machine_readable: true
  entity_linking: true
  typed_relation_extraction: true
  retrieval_ready: true
  reasoning_ready: true
  provenance_required: true
  context_aware: true
  confidence_aware: true
  prohibit_unsupported_clinical_inference: true

16. EXAMPLE GRAPH
ENTITY antigen_1: ProteinAntigen
ENTITY epitope_1: Epitope
ENTITY antibody_1: Antibody
RELATION has_epitope(antigen_1,epitope_1)
CLAIM binds_antibody(epitope_1,antibody_1,assay_context_1)
EVIDENCE assay_context_1: hypothetical_example
INFERENCE evidence_for_antigenicity(antigen_1,assay_context_1)
NON_INFERENCE immunogenic_in_all_hosts(antigen_1)

17. VALIDATION
CHECK every_relation_argument_matches_declared_type
CHECK epitope_antigen_links_are_traceable
CHECK receptor_recognition_is_contextualised
CHECK antigenicity_and_immunogenicity_remain_distinct
CHECK binding_models_record_assumptions_and_units
CHECK clinical_claims_require_independent_evidence
CHECK confidence_and_provenance_are_preserved
CHECK flow_hash_is_generated_from_canonical_content

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