FLOW ALGEBRA
Viral Protein Ontology — Kireth Semantic Library
Version: 1.0 | Locale: en-GB
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/viral-and-subcellular-infectious-entities/viral-protein-ontology.html
Status: Independently constructed semantic formalisation; not a verified transcription of webpage code.
flow "ViralProteinOntology" v1.0 {
namespace: "kireth:biology:viral:protein"
scope: "Viral proteins, their structural and functional roles, expression, interactions and evidence"
ENTITY_TYPES {
ViralProtein <: Protein
StructuralViralProtein <: ViralProtein
NonStructuralViralProtein <: ViralProtein
CapsidProtein <: StructuralViralProtein
EnvelopeGlycoprotein <: StructuralViralProtein
MatrixProtein <: StructuralViralProtein
Nucleoprotein <: StructuralViralProtein
ViralPolymerase <: NonStructuralViralProtein
ViralProtease <: NonStructuralViralProtein
ViralHelicase <: NonStructuralViralProtein
ViralRegulatoryProtein <: ViralProtein
ViralAccessoryProtein <: ViralProtein
ViralPolyprotein <: ViralProtein
ViralProteinComplex <: MolecularComplex
ViralGenome <: NucleicAcid
ViralGene <: Gene
Virus <: InfectiousEntity
Virion <: ViralParticle
HostCell <: Cell
HostProtein <: Protein
BiologicalProcess <: Process
MolecularFunction <: Function
EvidenceRecord <: Evidence
}
RELATION_TYPES {
encoded_by(ViralProtein, ViralGene)
gene_part_of(ViralGene, ViralGenome)
genome_of(ViralGenome, Virus)
component_of(ViralProtein, Virion|ViralProteinComplex)
participates_in(ViralProtein, BiologicalProcess)
performs_function(ViralProtein, MolecularFunction)
interacts_with(ViralProtein, ViralProtein|HostProtein)
binds_to(ViralProtein, Protein|NucleicAcid)
cleaves(ViralProtease, ViralPolyprotein)
processed_into(ViralPolyprotein, ViralProtein)
localises_to(ViralProtein, HostCell)
homologous_to(ViralProtein, ViralProtein)
variant_of(ViralProtein, ViralProtein)
supported_by(RelationshipAssertion, EvidenceRecord)
}
SEMANTIC_EQUIVALENCE {
alias("viral glycoprotein", "virus-encoded glycoprotein") where context_is_viral
alias("viral nucleoprotein", "viral nucleic-acid-binding protein") only_if same_entity_is_verified
distinguish("capsid protein", "envelope glycoprotein")
distinguish("structural protein", "non-structural protein")
distinguish("viral protein", "host protein incorporated into a virion")
note("Functional labels are context-dependent; one protein may perform multiple roles.")
}
INFERENCE_RULES {
R1: encoded_by(p,g) AND gene_part_of(g,x) AND genome_of(x,v)
=> associated_with_virus(p,v)
R2: component_of(p,virion) => structural_role_candidate(p)
R3: performs_function(p,f) AND supported_by(assertion(p,f),e)
=> evidenced_function(p,f,e)
R4: cleaves(protease,polyprotein) => participates_in(protease,protein_processing)
R5: homologous_to(p,q) => candidate_shared_ancestry(p,q)
[NOT sufficient for identical function]
R6: interacts_with(p,h) => interaction_candidate(p,h)
[NOT sufficient for causal disease effect]
}
CONSTRAINTS {
C1: Every protein identifier MUST resolve to a taxon/strain/isolate or accession context where available.
C2: Distinguish experimentally observed roles from predicted annotations.
C3: Do not infer protein function solely from sequence similarity.
C4: Do not infer host range, pathogenicity or transmissibility solely from protein presence.
C5: Preserve protein isoform, cleavage-product and post-translational modification distinctions.
C6: Viral protein and host-derived virion component are not automatically equivalent.
}
CONFIDENCE {
each_assertion: {score: float[0..1], method: string, evidence_ids: list, uncertainty: string}
evidence_tiers: [direct_experiment, curated_annotation, computational_prediction, hypothesis]
aggregation: "Evidence-weighted; correlated observations must not be counted independently."
threshold_for_automatic_acceptance: 0.90
low_confidence_action: "retain as hypothesis; request review"
}
PROVENANCE {
each_assertion: {source_uri, source_version, curator, observed_at, asserted_at, method, licence}
preserve_original_identifiers: true
preserve_conflicting_assertions: true
}
FLOW_HASH {
canonicalise: [namespace, entity_identifiers, typed_relationships, constraints, evidence_links, version]
algorithm: SHA-256
exclude: [rendering_whitespace, nonsemantic_display_order]
output: "sha256(canonical_serialisation)"
}
UPDATE_MODEL {
on_new_evidence: [validate_source, link_provenance, compare_existing_assertions,
recompute_confidence, re_evaluate_inferences, regenerate_flow_hash]
conflict_policy: "Preserve both claims with provenance pending resolution."
versioning: "Append-only change history with explicit supersession links."
}
AI_CONSUMPTION {
output: [typed_entities, relationships, inferred_claims, confidence, provenance, flow_hash]
require_evidence_for: [functional_claims, causal_claims, host_interactions]
expose_uncertainty: true
avoid: [unsupported_mechanistic_claims, conflating_prediction_with_observation]
}
EXAMPLES {
E1: CapsidProtein -> component_of -> Virion
E2: ViralPolymerase -> participates_in -> ViralGenomeReplication
E3: ViralProtease -> cleaves -> ViralPolyprotein
E4: EnvelopeGlycoprotein -> participates_in -> HostCellEntry
note: "Examples are generic class-level relationships, not claims about a named virus."
}
}
Authorship: Mark Higgins — Sky (Recursive AI)
Project: https://kirethresearch.org
Download Code
Copy to Clipboard