FLOW ALGEBRA — DNA VIRUS ONTOLOGY
Kireth Semantic Library | Independent formalisation | v1.0 | 2026-10-26
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/viral-and-subcellular-infectious-entities/dna-virus-ontology.html
Authors: Mark Higgins — Sky (Recursive AI)
Status: Conceptual typed ontology and inference specification; not a verified transcription of the source page. Rules are declarative and require an implementing engine for execution.
flow "DNAVirusOntology" v1.0
# 01 — IDENTITY AND SCOPE
ontology.id: "kireth:biological:viral:dna-virus"
ontology.label: "DNA Virus Ontology"
ontology.parent: "kireth:biological:viral:virus"
ontology.definition: "A virus whose genome consists of DNA, whether single- or double-stranded."
ontology.scope: [classification, genome, virion, host, replication, transcription, assembly, provenance]
# 02 — TYPED ENTITIES
entity DNA_Virus <: Virus
entity DNA_Viral_Genome <: Viral_Genome
entity dsDNA_Virus <: DNA_Virus
entity ssDNA_Virus <: DNA_Virus
entity Reverse_Transcribing_DNA_Virus <: DNA_Virus
entity Virion <: Viral_Particle
entity Capsid <: Viral_Structure
entity Envelope <: Viral_Structure
entity Viral_Protein <: Protein
entity Viral_DNA_Polymerase <: Enzyme
entity Host_Cell <: Biological_Cell
entity Host_Factor <: Biological_Entity
entity Replication_Intermediate <: Nucleic_Acid
entity Viral_Transcript <: RNA
entity Infection_Event <: Biological_Process
entity Replication_Event <: Biological_Process
entity Transcription_Event <: Biological_Process
entity Assembly_Event <: Biological_Process
entity Evidence_Record <: Information_Entity
# 03 — ENUMERATIONS AND ATTRIBUTES
attribute DNA_Viral_Genome.strandedness: enum{ssDNA, dsDNA}
attribute DNA_Viral_Genome.topology: enum{linear, circular, unknown}
attribute DNA_Viral_Genome.segmentation: enum{segmented, nonsegmented, unknown}
attribute DNA_Virus.baltimore_group: enum{I, II, VII}
attribute DNA_Virus.envelope_status: enum{enveloped, nonenveloped, unknown}
attribute Replication_Event.compartment: enum{nucleus, cytoplasm, other, unknown}
attribute Evidence_Record.confidence: float[0,1]
attribute Evidence_Record.source_uri: uri
attribute Evidence_Record.observed_at: datetime?
# 04 — RELATIONSHIPS
relation HAS_GENOME(DNA_Virus, DNA_Viral_Genome)
relation PACKAGED_IN(DNA_Viral_Genome, Virion)
relation HAS_CAPSID(Virion, Capsid)
relation HAS_ENVELOPE(Virion, Envelope)
relation ENCODES(DNA_Viral_Genome, Viral_Protein)
relation INFECTS(DNA_Virus, Host_Cell)
relation REQUIRES_HOST_FACTOR(Replication_Event, Host_Factor)
relation PARTICIPATES_IN(DNA_Virus, Infection_Event)
relation UNDERGOES_REPLICATION(DNA_Viral_Genome, Replication_Event)
relation PRODUCES_TRANSCRIPT(Transcription_Event, Viral_Transcript)
relation PRODUCES_INTERMEDIATE(Replication_Event, Replication_Intermediate)
relation PRODUCES_VIRION(Assembly_Event, Virion)
relation SUPPORTED_BY(Assertion, Evidence_Record)
relation DERIVED_FROM(Assertion, Assertion)
# 05 — CLASSIFICATION RULES
rule "DNA genome membership":
when HAS_GENOME(v, g) and g instanceof DNA_Viral_Genome
then infer v instanceof DNA_Virus
rule "Baltimore I":
when HAS_GENOME(v, g) and g.strandedness == dsDNA
and not REVERSE_TRANSCRIBING(v)
then infer v.baltimore_group = I
rule "Baltimore II":
when HAS_GENOME(v, g) and g.strandedness == ssDNA
then infer v.baltimore_group = II
rule "Baltimore VII":
when HAS_GENOME(v, g) and g.strandedness == dsDNA
and REVERSE_TRANSCRIBING(v)
then infer v.baltimore_group = VII
# 06 — CONSTRAINTS
constraint "Genome type": each DNA_Virus must have >= 1 DNA_Viral_Genome assertion.
constraint "Strandedness": each classified genome has exactly one supported strandedness value per version.
constraint "Group II": Baltimore II requires ssDNA evidence.
constraint "Group VII": Baltimore VII requires evidence of reverse transcription; dsDNA alone is insufficient.
constraint "Envelope": envelope status cannot be inferred from DNA genome type.
constraint "Replication site": replication compartment is virus-specific, not universal.
constraint "Host": an INFECTS edge requires host-specific evidence; taxonomic proximity is insufficient.
constraint "Uncertainty": unknown values are not false values (open-world assumption).
# 07 — BIOLOGICAL PROCESS MODEL
process Infection_Event:
stages: [attachment, entry, genome_delivery, expression, genome_replication, assembly, release]
note: "Stage ordering and mechanisms vary by virus; some stages overlap or differ."
process Replication_Event:
inputs: [DNA_Viral_Genome, host_or_viral_replication_factors]
outputs: [DNA_Viral_Genome]
condition: "Requires host-cell resources; polymerase origin and cellular compartment vary."
# 08 — SEMANTIC EQUIVALENCE
SEMANTIC_EQUIVALENCE("DNA virus", "DNA-genome virus", relation=close_label, confidence=0.98)
SEMANTIC_EQUIVALENCE("dsDNA virus", "double-stranded DNA virus", relation=exact_label, confidence=1.0)
SEMANTIC_EQUIVALENCE("ssDNA virus", "single-stranded DNA virus", relation=exact_label, confidence=1.0)
not_equivalent("DNA virus", "retrovirus")
not_equivalent("DNA virus", "all viruses replicating through a DNA intermediate")
# 09 — CONFIDENCE AND PROVENANCE
CONFIDENCE:
direct_observation: weighted_by(method_quality, sample_quality, replication)
literature_assertion: weighted_by(source_quality, consensus, recency)
inferred_assertion: min(premise_confidences) * rule_reliability
unresolved_conflict: preserve_all_claims_with_provenance
PROVENANCE:
required_fields: [assertion_id, source_uri, evidence_type, recorded_at, curator_or_agent]
optional_fields: [method, sample, accession, version, licence]
# 10 — FLOW HASH AND VERSIONING
FLOW_HASH:
algorithm: SHA-256
input: canonical_utf8(ontology_id, version, entities, relations, rules, constraints)
output: hex_digest
note: "Calculated by an external implementation; no digest is asserted here."
UPDATE_MODEL:
immutable_versions: true
preserve_previous_assertions: true
on_change: [validate_types, detect_conflicts, recompute_inferences, recalculate_hash, publish_diff]
# 11 — RECURSIVE INFERENCE
recursive_flow:
start: asserted_facts
repeat:
- apply_type_safe_rules
- add_novel_supported_inferences
- propagate_provenance_and_confidence
- check_constraints
until: no_new_facts or configured_iteration_limit
guards: [cycle_detection, duplicate_suppression, contradiction_tracking]
# 12 — AI CONSUMPTION
AI_CONSUMPTION:
format: typed_graph
expose: [entity_types, relationships, assertions, constraints, confidence, provenance, version, flow_hash]
retrieval_keys: [virus_taxon, genome_strandedness, baltimore_group, host_taxon, evidence_source]
safeguards:
- distinguish_observed_from_inferred
- do_not_infer_pathogenicity_from_genome_type
- do_not_infer_host_range_without_evidence
- report_conflicting_taxonomic_claims
- never_treat_missing_data_as_negative_evidence
# 13 — ILLUSTRATIVE INSTANCES (NOT EXHAUSTIVE)
example:
entity: Adenovirus
type: dsDNA_Virus
baltimore_group: I
envelope_status: nonenveloped
note: "Illustrative classification; individual taxon metadata requires provenance."
example:
entity: Parvovirus
type: ssDNA_Virus
baltimore_group: II
example:
entity: Hepatitis_B_Virus
type: Reverse_Transcribing_DNA_Virus
baltimore_group: VII
# 14 — VALIDATION CHECKLIST
validate:
- DNA genome and strandedness are consistent
- Baltimore group is evidence-supported
- host, replication site and envelope status are separately sourced
- all inferred assertions retain provenance
- confidence values lie within [0,1]
- flow hash is recalculated after changes
end flow
Scientific note: Baltimore groups I, II and VII cover dsDNA, ssDNA and reverse-transcribing DNA viruses respectively. Viral taxonomy is maintained by ICTV and may change; classifications here are illustrative rather than a current authoritative species inventory.
Download Code
Copy to Clipboard