Skip to main content

Animal Ontology

Animal Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 19 October 2026
Audio Overview
FLOW ALGEBRA
Animal Ontology — Animal Entities
Version: 1.0 | Locale: en-GB | Date: 2026-10-19
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/animal-entities/animal-ontology-3.html
Authors: Mark Anthony Higgins — Sky (Recursive AI)

PURPOSE
Define typed animal entities, their taxonomic and biological relationships, and executable-style semantic inference, validation, provenance, confidence and recursive update operations.

flow "AnimalOntology" v1.0 {
  namespace: "kireth:ai-core:entity-graph:biological-entities:animal-entities:animal"
  root_entity: Animal

  TYPE Animal <: MulticellularEukaryoticOrganism {
    id: URI
    scientific_name: String?
    common_names: Set<String>
    taxon: TaxonRef
    traits: Set<BiologicalTrait>
    habitats: Set<HabitatRef>
    life_stages: Set<LifeStage>
    observations: Set<ObservationRef>
    conservation_status: ConservationStatus?
    provenance: Provenance
    confidence: Real[0,1]
  }

  TYPE TaxonRef { id: URI; rank: TaxonomicRank; accepted_name: String; parent: URI? }
  ENUM TaxonomicRank { kingdom, phylum, class, order, family, genus, species, subspecies }
  TYPE BiologicalTrait { predicate: URI; value: TypedValue; evidence: EvidenceRef? }
  TYPE LifeStage { name: String; sequence_index: Integer? }
  TYPE HabitatRef { id: URI; environment: String }
  TYPE ObservationRef { id: URI; observed_at: DateTime; location: GeoRef?; observer: URI? }
  TYPE Provenance { source: URI; retrieved_at: DateTime?; method: String?; version: String? }
  ENUM ConservationStatus { EX, EW, CR, EN, VU, NT, LC, DD, NE }

  RELATION is_a(Animal, BiologicalEntity)
  RELATION belongs_to_taxon(Animal, TaxonRef)
  RELATION has_trait(Animal, BiologicalTrait)
  RELATION inhabits(Animal, HabitatRef)
  RELATION has_life_stage(Animal, LifeStage)
  RELATION observed_in(Animal, ObservationRef)
  RELATION interacts_with(Animal, BiologicalEntity)
  RELATION feeds_on(Animal, BiologicalEntity)
  RELATION preys_on(Animal, Animal)
  RELATION symbiotic_with(Animal, Organism)
  RELATION parent_of(Animal, Animal)
  RELATION part_of_population(Animal, Population)
  RELATION participates_in_ecosystem(Animal, Ecosystem)

  AXIOM Animal(x) -> Organism(x)
  AXIOM Animal(x) -> Eukaryote(x)
  AXIOM Animal(x) -> Multicellular(x)
  AXIOM Animal(x) -> Heterotrophic(x)
  AXIOM belongs_to_taxon(x,t) AND rank(t,kingdom) AND accepted_name(t,"Animalia") -> Animal(x)
  AXIOM preys_on(x,y) -> feeds_on(x,y)
  AXIOM parent_of(x,y) -> related_biologically(x,y)

  RULE taxonomic_ancestry:
    belongs_to_taxon(x,t) AND parent_taxon(t,u) -> belongs_to_ancestor_taxon(x,u)
  RULE transitive_taxonomic_ancestry:
    belongs_to_ancestor_taxon(x,t) AND parent_taxon(t,u) -> belongs_to_ancestor_taxon(x,u)
  RULE ecosystem_membership:
    inhabits(x,h) AND habitat_part_of(h,e) -> participates_in_ecosystem(x,e)
  RULE observation_support:
    observed_in(x,o) AND verified(o,true) -> evidence_for_presence(x,location(o),time(o))
  RULE feeding_relation:
    preys_on(x,y) -> trophic_interaction(x,y,"predation")

  CONSTRAINT animal_taxonomy:
    Animal(x) -> exists t: belongs_to_taxon(x,t)
  CONSTRAINT confidence_bounds:
    forall x: 0.0 <= confidence(x) <= 1.0
  CONSTRAINT taxonomic_identity:
    accepted_taxon(x,t1) AND accepted_taxon(x,t2) -> t1 = t2
  CONSTRAINT evidence_scope:
    observed_in(x,o) -> observation_time(o) IS NOT NULL
  CONSTRAINT no_self_parent:
    NOT parent_of(x,x)

  SEMANTIC_EQUIVALENCE:
    exact_taxon_match(a,b) := same_accepted_taxon_identifier(a,b)
    possible_alias(a,b) := normalised_name_overlap(a,b) AND compatible_taxonomic_context(a,b)
    possible_alias(a,b) DOES_NOT_IMPLY same_individual(a,b)

  CONFIDENCE:
    score(assertion) := calibrated_evidence_support(assertion)
    inferred_confidence(rule,premises) := min(confidence(p) FOR p IN premises) * reliability(rule)
    conflicting_evidence -> flag_for_review
    missing_evidence -> unknown_not_false

  PROVENANCE:
    each assertion MUST retain source, timestamp_when_known, method_when_known
    derived assertions MUST retain parent_assertion_ids AND rule_id
    taxonomic revisions MUST retain historical accepted_name and version

  FLOW_HASH:
    canonical := normalise(namespace, entity_id, taxon_id, traits, relations, provenance.version)
    hash := SHA256(UTF8(canonical))
    hash_change -> request_revalidation

  UPDATE_MODEL:
    ingest -> validate_types -> resolve_taxonomy -> check_constraints
    -> attach_provenance -> infer_relations -> calibrate_confidence
    -> detect_conflicts -> compute_flow_hash -> publish_version
    on_taxonomic_revision -> invalidate_dependent_inferences -> recompute
    retain_prior_versions := true

  AI_CONSUMPTION:
    expose: [entity_types, relationships, axioms, rules, constraints, provenance, confidence, flow_hash]
    reasoning_mode: typed_graph_and_rule_inference
    distinguish: [taxon, species, individual_animal, population]
    require_evidence_for: [conservation_status, geographic_occurrence, species_identification]
    do_not_infer: [unobserved_location, exact_species_from_common_name_only, individual_identity_from_taxon]
    output: [assertions, inferred_relations, confidence, provenance, unresolved_conflicts]
}

INTERPRETATION NOTES
- Animalia is a biological kingdom; Animal is a class of organisms. A taxon is not an individual organism.
- Biological traits vary among animal groups and life stages; generalisations must not be treated as universal diagnostic tests.
- Taxonomy, conservation status and observation records are versioned and evidence-dependent.
- Rules are declarative specifications; runtime execution requires an implementation of the stated predicates, type checks and functions.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ