FLOW ALGEBRA
INSECT ONTOLOGY
Kireth Semantic Library | Biological Entities > Animal Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/animal-entities/insect-ontology.html
Version: 1.0 | Date: 2026-10-19 | Locale: en-GB
Authors: Mark Higgins — Sky (Recursive AI)
1. PURPOSE
Represent insects as typed biological entities with explicit taxonomy, anatomy, development, physiology, behaviour, ecology, evidence and uncertainty. This is a semantic modelling specification, not executable software.
2. TYPE SYSTEM
TYPE Entity = {id: URI, label: String, definition: String, aliases: Set[String]}
TYPE Taxon <: Entity = {rank: TaxonomicRank, parent: Taxon?, acceptedName: String, authority: String?}
TYPE InsectTaxon <: Taxon = {lineage: Set[Taxon], diagnosticTraits: Set[Trait]}
TYPE Organism <: Entity = {taxon: Taxon, lifeStage: LifeStage?, sex: Sex?, observations: Set[Observation]}
TYPE AnatomicalStructure <: Entity = {partOf: AnatomicalStructure|Organism?, function: Set[Function]}
TYPE Trait <: Entity = {bearer: Entity, value: Any, scope: Taxon|Organism, evidence: Set[Evidence]}
TYPE LifeStage = Egg | Nymph | Larva | Pupa | Adult | Other
TYPE Process <: Entity = {participants: Set[Entity], inputs: Set[Entity], outputs: Set[Entity]}
TYPE Habitat <: Entity = {environment: String, geographicExtent: String?}
TYPE Interaction <: Entity = {subject: Entity, predicate: Relation, object: Entity}
TYPE Evidence = {source: URI|String, method: String?, timestamp: DateTime?, quality: Float[0..1]}
TYPE Observation = {subject: Entity, predicate: Relation, object: Any, evidence: Evidence}
TYPE Assertion = {subject: Entity, predicate: Relation, object: Any, confidence: Float[0..1], provenance: Set[Evidence]}
3. CORE TAXONOMY
Animalia -> Arthropoda -> Hexapoda -> Insecta
Insecta includes lineages with incomplete metamorphosis and lineages with complete metamorphosis (Holometabola).
Example orders: Coleoptera (beetles), Lepidoptera (butterflies and moths), Diptera (true flies), Hymenoptera (ants, bees and wasps), Hemiptera (true bugs and allies), Orthoptera (grasshoppers and crickets), Odonata (dragonflies and damselflies), Blattodea (cockroaches and termites).
NOTE: Order-level membership is taxon-specific; common names are not reliable unique identifiers.
4. ANATOMY AND PHYSIOLOGY
INSECT typical_body_regions = {head, thorax, abdomen}
INSECT typical_adult_leg_pairs = 3
INSECT exoskeleton_material includes chitin
HEAD bears antennae, compound_eyes and mouthparts, subject to lineage-specific modification.
THORAX bears three pairs of legs in the typical adult condition.
WINGS may be present, reduced or absent; wing number and form vary by lineage, sex and life stage.
RESPIRATION often involves tracheal systems; aquatic adaptations and exceptions must be represented explicitly.
CIRCULATION is generally open; haemolymph circulates in a haemocoel.
5. RELATION VOCABULARY
is_a(x, taxon)
subtaxon_of(t1, t2)
part_of(structure, whole)
has_structure(organism, structure)
has_trait(entity, trait)
has_life_stage(organism, stage)
develops_into(stage1, stage2)
undergoes(organism, process)
inhabits(organism, habitat)
feeds_on(organism, resource)
pollinates(organism, plant)
preys_on(predator, prey)
parasitises(parasite, host)
interacts_with(entity1, entity2)
observed_at(organism, place)
supported_by(assertion, evidence)
6. DEVELOPMENTAL FLOWS
COMPLETE_METAMORPHOSIS: Egg -> Larva -> Pupa -> Adult
INCOMPLETE_METAMORPHOSIS: Egg -> Nymph -> Adult
AMETABOLOUS_DEVELOPMENT: Egg -> Juvenile -> Adult (without major metamorphic reorganisation)
RULE: Developmental transitions are conditional on taxon and environment; do not assert all insects undergo pupation.
7. SEMANTIC INFERENCE
R1: is_a(x, Insecta) AND subtaxon_of(Insecta, Arthropoda) => is_a(x, Arthropoda).
R2: is_a(x, Holometabola) => developmental_pattern(x, CompleteMetamorphosis), unless contradicted by stronger specimen-specific evidence.
R3: has_life_stage(x, Larva) AND is_a(x, Holometabola) => may_develop_into(x, Pupa).
R4: pollinates(x, y) => interacts_with(x, y).
R5: preys_on(x, y) => interacts_with(x, y).
R6: part_of(a, b) AND part_of(b, c) => part_of(a, c), where the relation is appropriate and the biological granularity is compatible.
R7: taxon_identification(x, t) requires morphological, molecular or other documented diagnostic evidence; a single typical trait is insufficient for definitive identification.
8. CONSTRAINTS AND VALIDATION
C1: Accepted taxon identifiers are stable URIs; synonyms link to the accepted taxon with source and date.
C2: Taxon rank and parentage must be consistent with the chosen taxonomic authority/version.
C3: A life-stage-specific trait must not automatically be inherited by every life stage.
C4: Typical morphology must not be modelled as an exception-free universal rule.
C5: Species identification and distribution claims require traceable evidence.
C6: Do not infer that every insect flies, pollinates, is terrestrial or undergoes complete metamorphosis.
C7: Keep observation, hypothesis and verified taxonomic fact distinct.
9. SEMANTIC EQUIVALENCE
EQUIVALENCE exact_match requires identical taxon concept under a stated authority.
EQUIVALENCE synonym_of records nomenclatural or taxonomic synonymy with provenance.
EQUIVALENCE close_match permits overlapping but non-identical historical taxon circumscriptions.
COMMON_NAME mapping is many-to-many and never sufficient for exact identity.
10. CONFIDENCE
CONFIDENCE(assertion) = calibrated_score(evidence_quality, identification_method, source_agreement, recency, taxonomic_stability)
Range [0,1]; retain per-claim confidence and competing assertions.
Do not treat this scoring expression as an empirically calibrated probability without validation.
11. PROVENANCE
PROVENANCE = {source_id, source_type, author_or_institution, date_accessed, date_published?, method?, taxonomic_authority?, licence?}
Every derived assertion stores parent assertion IDs and inference rule ID.
12. FLOW_HASH
FLOW_HASH = SHA256(canonical_utf8(ontology_version, entity_ids, relation_ids, rule_ids, evidence_ids, ordered_assertions))
Canonicalisation requires stable sorting, normalised URIs and explicit versioned serialization.
13. UPDATE_MODEL
ON new_observation:
validate_schema -> resolve_entity -> attach_provenance -> reconcile_conflicts -> recompute_affected_inferences -> update_confidence -> recalculate_flow_hash -> publish_version
ON taxonomic_revision:
preserve_historical_identifiers -> record_synonymy_or_reclassification -> remap_affected_assertions -> preserve_provenance -> issue_new_version
14. AI_CONSUMPTION
INPUT: natural-language query | taxon URI | specimen observation | knowledge-graph pattern
PIPELINE: parse -> entity_link -> taxonomic_disambiguation -> retrieve_assertions -> apply_validated_rules -> rank_evidence -> express_uncertainty -> return_explanation
OUTPUT: {answer, taxon_uris, supporting_assertions, evidence, confidence, ontology_version, flow_hash}
AI MUST distinguish taxonomic identity, observed individual traits and population-level generalisations.
15. EXAMPLE
ENTITY: insect:Apis_mellifera
type: InsectTaxon
acceptedName: Apis mellifera
subtaxon_of: Hymenoptera
ASSERTION: adult worker Apis mellifera has six legs [typical morphology; verify specimen-specific exceptions]
ASSERTION: Apis mellifera may pollinate flowering plants [context-dependent ecological interaction]
QUERY: 'Is Apis mellifera an arthropod?'
TRACE: Apis mellifera -> Hymenoptera -> Insecta -> Arthropoda
RESULT: yes, with taxonomic source and version attached.
16. CROSS-ONTOLOGY LINKS
Animal Ontology; Arthropod Ontology; Invertebrate Ontology; Taxonomic Entities; Organism Entities; Developmental Biological Entities; Anatomical Entities; Ecological Entities; Biological Observation; Scientific Metadata; Relationship Ontologies.
END FLOW ALGEBRA
Download Code
Copy to Clipboard