FLOW ALGEBRA
Viral Capsid Ontology — Kireth Semantic Library
Version: 1.0 | Locale: en-GB | Date: 2026-10-26
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/viral-and-subcellular-infectious-entities/viral-capsid-ontology.html
Status: Independently constructed formalisation; not a verified transcription of source page.
Authors: Mark Higgins — Sky (Recursive AI)
flow "ViralCapsidOntology" v1.0 {
domain: "Biological Entities / Viral and Subcellular Infectious Entities"
entity: ViralCapsid
description: "Proteinaceous shell surrounding and protecting a viral genome; capsid morphology, composition and assembly vary among viruses."
TYPES {
Virus: BiologicalEntity
Virion: ViralParticle
ViralCapsid: ProteinAssembly
CapsidProtein: Protein
Capsomere: StructuralUnit
Protomer: ProteinSubunit
ViralGenome: NucleicAcid
Nucleocapsid: GenomeCapsidComplex
ViralEnvelope: LipidMembrane
HostCell: Cell
AssemblyIntermediate: MolecularAssembly
IcosahedralCapsid: ViralCapsid
HelicalCapsid: ViralCapsid
ComplexCapsid: ViralCapsid
CapsidAssembly: BiologicalProcess
GenomePackaging: BiologicalProcess
CapsidDisassembly: BiologicalProcess
HostCellEntry: BiologicalProcess
StructuralObservation: Evidence
}
RELATIONSHIPS {
IS_A(subtype: Entity, supertype: Entity)
PART_OF(part: Entity, whole: Entity)
COMPOSED_OF(whole: Entity, component: Entity)
ENCLOSES(capsid: ViralCapsid, genome: ViralGenome)
ASSOCIATED_WITH(capsid: ViralCapsid, genome: ViralGenome)
HAS_SYMMETRY(capsid: ViralCapsid, symmetry: String)
ASSEMBLED_BY(capsid: ViralCapsid, process: CapsidAssembly)
PACKAGED_BY(genome: ViralGenome, process: GenomePackaging)
PROTECTS(capsid: ViralCapsid, genome: ViralGenome)
UNDERGOES(capsid: ViralCapsid, process: BiologicalProcess)
OBSERVED_IN(observation: StructuralObservation, specimen: Entity)
SUPPORTED_BY(assertion: Assertion, evidence: Evidence)
}
TAXONOMIC_AND_STRUCTURAL_AXIOMS {
IS_A(IcosahedralCapsid, ViralCapsid)
IS_A(HelicalCapsid, ViralCapsid)
IS_A(ComplexCapsid, ViralCapsid)
HAS_SYMMETRY(IcosahedralCapsid, "icosahedral")
HAS_SYMMETRY(HelicalCapsid, "helical")
// These categories are structural descriptions, not taxonomic ranks.
// Capsomeres are morphological units, not necessarily single proteins.
// A virion may be enveloped or non-enveloped.
// Capsid proteins can have functions beyond genome protection.
}
CONSTRAINTS {
ENCLOSES(c, g) => TYPE(c, ViralCapsid) AND TYPE(g, ViralGenome)
PART_OF(c, v) AND TYPE(c, ViralCapsid) => TYPE(v, Virion) OR TYPE(v, Nucleocapsid)
HAS_SYMMETRY(c, s) => s IN {"icosahedral", "helical", "complex", "other", "unknown"}
// Never infer that every virus has a lipid envelope.
// Never infer capsid geometry solely from genome type.
// Genome association is not evidence of infectious competence.
}
INFERENCE {
rule R1:
IF IS_A(x, IcosahedralCapsid)
THEN IS_A(x, ViralCapsid) AND HAS_SYMMETRY(x, "icosahedral")
rule R2:
IF IS_A(x, HelicalCapsid)
THEN IS_A(x, ViralCapsid) AND HAS_SYMMETRY(x, "helical")
rule R3:
IF ENCLOSES(c, g) AND TYPE(c, ViralCapsid)
THEN ASSOCIATED_WITH(c, g)
rule R4:
IF COMPOSED_OF(c, p) AND TYPE(p, CapsidProtein)
THEN TYPE(c, ProteinAssembly)
rule R5:
IF SUPPORTED_BY(a, e) AND VERIFIED(e)
THEN ELIGIBLE_FOR_CONFIDENCE_UPDATE(a)
// No reverse implication from association to enclosure.
// Inferences require provenance and explicit evidence.
}
SEMANTIC_EQUIVALENCE {
"viral capsid" ~= "virus capsid" [context: structural_virology]
"capsid protein" != "capsomere"
"capsid" != "virion"
"capsid" != "viral envelope"
"nucleocapsid" != "capsid" [unless: explicitly qualified context]
equivalence_requires: {scope, definition_alignment, evidence}
}
CONFIDENCE {
range: [0.0, 1.0]
evidence_types: [structural_imaging, biochemical_assay, peer_reviewed_literature, curated_database]
update: posterior = BAYES_UPDATE(prior, likelihood, evidence_quality)
note: "Confidence values must be calculated from evidence, not fabricated."
}
PROVENANCE {
record: {assertion_id, source_uri, author, date, method, evidence_id, version}
preserve_original_assertions: true
distinguish_observed_from_inferred: true
}
FLOW_HASH {
algorithm: SHA-256
input: CANONICALISE(ontology_version, typed_entities, relations, constraints, inference_rules)
output: hex_digest
note: "Digest calculated by an implementation; no invented digest supplied."
}
UPDATE_MODEL {
ingest(new_evidence)
validate_types_and_constraints()
reconcile_conflicts_preserving_provenance()
recalculate_confidence_for_affected_assertions()
invalidate_dependent_inferences()
recompute_flow_hash()
publish_versioned_graph()
}
AI_CONSUMPTION {
expose: [entities, relationships, definitions, constraints, evidence, confidence, provenance, inferred_edges]
output_formats: [typed_graph, JSON-LD, RDF, human_readable]
distinguish: [established_fact, supported_inference, hypothesis, unknown]
reject: [unsupported_equivalence, fabricated_evidence, unsupported_taxonomic_assignment]
}
EXAMPLE {
entity capsid_A: IcosahedralCapsid
entity protein_A: CapsidProtein
entity genome_A: ViralGenome
COMPOSED_OF(capsid_A, protein_A)
ENCLOSES(capsid_A, genome_A)
inferred: HAS_SYMMETRY(capsid_A, "icosahedral")
note: "Illustrative typed graph only; not a claim about a named virus."
}
}
END FLOW ALGEBRA
Download Code
Copy to Clipboard