Skip to main content

Genetic Entity Ontology

Genetic Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 15 October 2026
Audio Overview
FLOW ALGEBRA
TITLE: Genetic Entity Ontology
VERSION: 1.0
DOMAIN: Biological Entities / Genetic Entities
SOURCE_PAGE: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/genetic-entities/genetic-entity-ontology.html
AUTHORS: Mark Higgins — Sky (Recursive AI)
SITE: https://kirethresearch.org
STATUS: Research ontology; conceptual specification, not an executable language implementation

# 01 — PURPOSE
flow "GeneticEntityOntology" v1.0 {
  intent: "Represent, validate, link and reason about hereditary and genomic entities"
  scope: [molecular, sequence, structural, functional, regulatory, variation, inheritance]
  open_world: true
  species_context_required: true
}

# 02 — TYPE SYSTEM
type GeneticEntity = {
  id: URI,
  label: String,
  entity_type: GeneticEntityKind,
  organism_taxon: TaxonID?,
  genome_assembly: AssemblyID?,
  reference_sequence: Accession?,
  location: GenomicInterval?,
  strand: {plus, minus, unknown}?,
  evidence: Evidence[],
  provenance: Provenance,
  confidence: Probability
}

enum GeneticEntityKind = [
  Genome, Chromosome, DNA, RNA, Gene, Allele, Locus, Exon, Intron,
  Transcript, RegulatoryElement, Promoter, Enhancer, Silencer, Insulator,
  Variant, Haplotype, Genotype, Repeat, Centromere, Telomere,
  Plasmid, OrganelleGenome, MobileGeneticElement
]

type GenomicInterval = {
  reference: Accession,
  start: Integer,
  end: Integer,
  coordinate_system: "0-based-half-open" | "1-based-closed",
  strand: Strand?
}

type Evidence = {source: URI, method: String, date: Date?, quality: Probability?}
type Provenance = {creator: String, source: URI, version: String, retrieved_at: DateTime?}
type Probability = Float where 0.0 <= value <= 1.0

# 03 — ONTOLOGICAL CLASSES
class Genome extends GeneticEntity
class Chromosome extends GeneticEntity
class Gene extends GeneticEntity
class Allele extends GeneticEntity
class Locus extends GeneticEntity
class Transcript extends GeneticEntity
class RegulatoryElement extends GeneticEntity
class Variant extends GeneticEntity
class Haplotype extends GeneticEntity
class Genotype extends GeneticEntity

# 04 — RELATIONSHIPS
relation part_of(GeneticEntity, GeneticEntity)
relation located_on(GeneticEntity, Chromosome)
relation occupies_locus(Gene | Allele | Variant, Locus)
relation allele_of(Allele, Gene)
relation transcribed_from(Transcript, Gene)
relation contains_exon(Transcript, GeneticEntity)
relation contains_intron(Gene, GeneticEntity)
relation regulates(RegulatoryElement, Gene)
relation overlaps(GeneticEntity, GeneticEntity)
relation adjacent_to(GeneticEntity, GeneticEntity)
relation homologous_to(Gene, Gene)
relation orthologous_to(Gene, Gene)
relation paralogous_to(Gene, Gene)
relation variant_of(Variant, GeneticEntity)
relation belongs_to_haplotype(Variant, Haplotype)
relation contributes_to_genotype(Allele, Genotype)
relation inherited_from(GeneticEntity, Organism)
relation supported_by(GeneticEntity, Evidence)

# 05 — STRUCTURAL CONSTRAINTS
rule R01: interval.start >= 0 when coordinate_system == "0-based-half-open"
rule R02: interval.start < interval.end
rule R03: reference_sequence must resolve within genome_assembly when both are provided
rule R04: strand is not inferred when unknown
rule R05: overlap comparison requires compatible reference assemblies and coordinate systems
rule R06: allele_of(a,g) implies occupies_locus(a,l) only when gene locus l is established
rule R07: gene is not synonymous with transcript or protein
rule R08: regulatory_element may act at a distance and on multiple genes
rule R09: genetic entity may be noncoding
rule R10: organellar and nuclear inheritance models are distinguished

# 06 — NORMALISATION
function NORMALISE(e: GeneticEntity) -> GeneticEntity {
  require valid_identifier(e.id)
  normalise_taxon(e.organism_taxon)
  normalise_assembly(e.genome_assembly)
  normalise_coordinates(e.location)
  preserve_original_identifier(e)
  preserve_provenance(e)
  return e
}

# 07 — CLASSIFICATION
function CLASSIFY(e: GeneticEntity) -> Set<GeneticEntityKind> {
  categories = ontology_supported_types(e)
  if evidence_insufficient(e): return {e.entity_type}
  return categories
}

# 08 — RELATIONSHIP VALIDATION
function VALIDATE_RELATION(s, predicate, o, context) -> Validation {
  require domain_range_valid(predicate,s,o)
  require organism_compatible(s,o,context) or explicit_cross_species_relation(predicate)
  require assembly_compatible(s,o) or verified_coordinate_mapping(s,o)
  require evidence_traceable(s,predicate,o)
  return {valid:true, confidence:calibrated_support(s,predicate,o)}
}

# 09 — GENETIC PROCESS MODEL
process DNA_REPLICATION: DNA -> DNA copies
process TRANSCRIPTION: DNA template -> RNA transcript
process RNA_PROCESSING: precursor RNA -> mature RNA products
process TRANSLATION: coding RNA -> polypeptide
process RECOMBINATION: genetic material -> rearranged genetic material
process MUTATION: sequence state -> altered sequence state
process DNA_REPAIR: damaged DNA -> repaired or modified DNA
process INHERITANCE: parental genetic material -> descendant genetic material

# 10 — RECURSIVE GRAPH TRAVERSAL
function RECURSIVE_GENETIC_CONTEXT(seed, max_depth=5) -> Graph {
  visited = Set()
  queue = [(seed,0)]
  while queue not empty {
    (node,depth) = pop(queue)
    if node in visited or depth > max_depth: continue
    visited.add(node)
    for edge in verified_relationships(node) {
      add_edge_to_result(edge)
      if edge.target not in visited: push(queue,(edge.target,depth+1))
    }
  }
  return result_graph
}

# 11 — CONFIDENCE
CONFIDENCE {
  range: [0.0,1.0]
  inputs: [evidence_quality, method_reliability, source_agreement, context_match]
  rule: "Calibrate using domain-specific evidence; do not assume independence"
  rule: "Unknown is not false"
  rule: "Predictions remain labelled predictions"
}

# 12 — SEMANTIC_EQUIVALENCE
SEMANTIC_EQUIVALENCE {
  exact: "Same referenced biological entity under compatible taxon and assembly"
  aliases: "Accepted identifiers and synonyms with source provenance"
  related_not_equal: [gene_vs_allele, gene_vs_transcript, locus_vs_sequence, variant_vs_genotype]
  cross_assembly: "Require verified mapping; do not assume coordinate identity"
  cross_species: "Homology does not imply identity"
}

# 13 — INFERENCE
infer gene_on_chromosome(g,c) when occupies_locus(g,l) and located_on(l,c)
infer potential_regulatory_target(r,g) when regulates(r,g) and supported_by(r,e)
block inference of pathogenicity from variant presence alone
block inference of expression from gene presence alone
block inference of phenotype from genotype without qualified evidence

# 14 — FLOW_HASH
FLOW_HASH {
  canonical_fields: [id, entity_type, organism_taxon, genome_assembly, location, evidence, provenance]
  serialisation: "Canonical UTF-8 with stable key order"
  algorithm: "SHA-256"
  exclude: [volatile_runtime_metadata]
  purpose: "Change detection and content integrity; not biological truth"
}

# 15 — UPDATE_MODEL
UPDATE_MODEL {
  triggers: [new_assembly, new_annotation, corrected_identifier, new_evidence, ontology_revision]
  preserve: [prior_versions, source_attribution, change_log]
  on_update: [validate, recalculate_links, re_evaluate_confidence, recompute_flow_hash]
  prohibit: "Silent overwriting of historical interpretations"
}

# 16 — AI_CONSUMPTION
AI_CONSUMPTION {
  export: [plain_text, JSON-LD, RDF, knowledge_graph]
  provide: [definitions, typed_entities, relationships, constraints, evidence, uncertainty]
  safeguards: [provenance_required, no_unverified_causality, assembly_awareness, taxon_awareness]
  usage: [semantic_retrieval, entity_linking, question_answering, hypothesis_support]
  limitation: "Not a substitute for experimental validation or clinical interpretation"
}

# 17 — EXAMPLE (SCHEMATIC, NOT A REAL ANNOTATION)
entity gene_example: Gene {
  id: "urn:example:gene:001"
  label: "Example gene"
  organism_taxon: "urn:example:taxon:001"
  genome_assembly: "urn:example:assembly:001"
  confidence: 0.80
  provenance: {creator:"Kireth Research", source:"urn:example:source", version:"1.0"}
}
entity transcript_example: Transcript {
  id: "urn:example:transcript:001"
  label: "Example transcript"
  confidence: 0.80
  provenance: {creator:"Kireth Research", source:"urn:example:source", version:"1.0"}
}
relationship transcribed_from(transcript_example, gene_example)

# 18 — QUALITY ASSURANCE
CHECK: every entity has a stable ID
CHECK: every biological claim has traceable evidence or is marked hypothetical
CHECK: coordinate systems are explicit
CHECK: taxonomic scope is explicit
CHECK: cycles in graph traversal are handled
CHECK: uncertainty is preserved
CHECK: schema versions remain reproducible
CHECK: no unsupported clinical claims are generated

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