Skip to main content

Consumer Organism Ontology

Ecological Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 26 October 2026
Audio Overview
FLOW ALGEBRA
Consumer Organism Ontology — Full Flow Algebra v1.0
Kireth Semantic Library
Authors: Mark Higgins — Sky (Recursive AI)
Source ontology: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/ecological-entities/consumer-organism-ontology.html
Status: Proposed formalisation; not a verified transcription of webpage content.

flow "ConsumerOrganismOntology" v1.0

# 1. DOMAIN AND SEMANTICS
ontology.id: "kireth:biological-entities:ecological-entities:consumer-organism"
ontology.label: "Consumer Organism Ontology"
ontology.domain: "Ecology / Trophic Ecology"
ontology.definition: "An organism obtaining organic matter or energy by consuming other organisms or their products, including detrital material."
ontology.scope: ["individual consumers", "consumer populations", "feeding interactions", "trophic roles", "energy and matter transfer"]

# 2. TYPED ENTITIES
entity ConsumerOrganism <: Organism:
  id: URI
  taxon: TaxonRef
  ecosystem: EcosystemRef?
  habitat: HabitatRef?
  feeding_modes: Set<FeedingMode>
  life_stage: LifeStage?
  observation_time: Timestamp?
  provenance: EvidenceRef[]

entity FoodResource:
  id: URI
  category: FoodCategory
  origin_taxon: TaxonRef?
  organic_mass_kg: Real? where value >= 0
  energy_joules: Real? where value >= 0

entity FeedingInteraction:
  id: URI
  consumer: ConsumerOrganismRef
  resource: FoodResourceRef
  time_interval: Interval
  location: LocationRef?
  intake_mass_kg: Real? where value >= 0
  assimilated_energy_joules: Real? where value >= 0
  evidence: EvidenceRef[]

entity ConsumerPopulation:
  id: URI
  taxon: TaxonRef
  ecosystem: EcosystemRef
  abundance: Integer? where value >= 0
  observation_time: Timestamp

entity TrophicPosition:
  consumer: ConsumerOrganismRef
  value: Real where value >= 2
  method: String
  context: EcosystemRef
  evidence: EvidenceRef[]

# 3. CONTROLLED VOCABULARIES
Enum FeedingMode = {HERBIVORY, CARNIVORY, OMNIVORY, DETRITIVORY, SCAVENGING, PARASITISM, FILTER_FEEDING, OTHER}
Enum FoodCategory = {LIVING_PRODUCER, LIVING_CONSUMER, DEAD_ORGANIC_MATTER, ORGANIC_PRODUCT, MIXED}
Enum EvidenceType = {DIRECT_OBSERVATION, GUT_CONTENT, STABLE_ISOTOPE, LITERATURE, EXPERIMENT, MODEL_INFERENCE}

# 4. TYPED RELATIONSHIPS
relation IS_A(ConsumerOrganism, Organism)
relation OCCURS_IN(ConsumerOrganism, Ecosystem)
relation INHABITS(ConsumerOrganism, Habitat)
relation MEMBER_OF(ConsumerOrganism, ConsumerPopulation)
relation CONSUMES(ConsumerOrganism, FoodResource)
relation FEEDS_ON(ConsumerOrganism, Organism)
relation HAS_FEEDING_MODE(ConsumerOrganism, FeedingMode)
relation PARTICIPATES_IN(ConsumerOrganism, FeedingInteraction)
relation HAS_TROPHIC_POSITION(ConsumerOrganism, TrophicPosition)
relation TRANSFERS_ENERGY_FROM(ConsumerOrganism, FoodResource)
relation COMPETES_WITH(ConsumerOrganism, ConsumerOrganism)
relation PREYS_ON(ConsumerOrganism, Organism)
relation PARASITISES(ConsumerOrganism, Organism)

# 5. FLOW OPERATORS
operator classify_consumer(organism, evidence) -> ClassificationResult
operator infer_feeding_mode(interactions, context) -> Set<FeedingMode>
operator estimate_trophic_position(diet_fractions, prey_positions) -> Real
operator calculate_assimilation(ingested_energy, egested_energy) -> Real
operator propagate_evidence(graph, policy) -> EvidenceGraph
operator validate_consumer_record(record) -> ValidationResult

# 6. INFERENCE RULES
rule R1_CONSUMPTION:
  IF observed(CONSUMES(x, organic_resource)) AND organism(x)
  THEN candidate_type(x, ConsumerOrganism)
  REQUIRE evidence_support >= threshold

rule R2_HERBIVORY:
  IF consumer(x) AND repeated_feeding(x, living_producer)
  THEN candidate_mode(x, HERBIVORY)
  NOTE "Feeding mode is contextual; do not infer an exclusive diet."

rule R3_CARNIVORY:
  IF consumer(x) AND repeated_feeding(x, animal_resource)
  THEN candidate_mode(x, CARNIVORY)

rule R4_OMNIVORY:
  IF evidence_of_consumption(x, producer_resource) AND evidence_of_consumption(x, animal_resource)
  THEN candidate_mode(x, OMNIVORY)

rule R5_DETRITIVORY:
  IF repeated_feeding(x, dead_organic_matter)
  THEN candidate_mode(x, DETRITIVORY)

rule R6_TROPHIC_POSITION:
  IF diet_fraction_sum(x) approximately 1 AND prey_positions_known(x)
  THEN TP(x) = 1 + SUM_over_resources(diet_fraction(x,r) * TP(r))
  NOTE "Use trophic position 1 for basal producers; consumer values can be fractional."

rule R7_ENERGY_ASSIMILATION:
  IF ingested_energy(x) known AND egested_energy(x) known
  THEN assimilated_energy(x) = ingested_energy(x) - egested_energy(x)
  REQUIRE 0 <= assimilated_energy(x) <= ingested_energy(x)

# 7. INVARIANTS AND VALIDATION
invariant I1: every FeedingInteraction has exactly one consumer and one resource reference
invariant I2: recorded mass and energy quantities are nonnegative
invariant I3: trophic position requires an explicit method, context and supporting evidence
invariant I4: feeding modes are not necessarily mutually exclusive
invariant I5: organism identity is not equivalent to its ecological role
invariant I6: do not infer a trophic interaction solely from taxonomic membership
invariant I7: temporal and spatial contexts must be preserved when combining observations
invariant I8: a consumer may also perform other ecological functions; roles are contextual

# 8. CONFIDENCE
CONFIDENCE:
  output: Real in [0,1]
  inputs: [evidence_quality, source_reliability, sampling_coverage, temporal_relevance, context_match]
  combine: "documented weighted aggregation; weights and calibration must be supplied by deployment"
  policy: "Never represent inferred relationships as directly observed."

# 9. SEMANTIC EQUIVALENCE
SEMANTIC_EQUIVALENCE:
  candidate_aliases: ["heterotrophic consumer", "ecological consumer"]
  guard: "A heterotroph is not always a consumer in the same operational ecological classification; equivalence requires context."
  distinguish_from: ["producer organism", "decomposer functional role", "consumer population", "feeding interaction"]
  identity_key: [ontology.id, entity.id, context]

# 10. FLOW HASH AND PROVENANCE
FLOW_HASH:
  canonicalise: [ontology.id, ontology.version, typed_entities, relationships, rules, invariants]
  algorithm: "SHA-256"
  encoding: "UTF-8"
  exclude: [volatile_runtime_timestamps]
  purpose: "Detect semantic definition changes across published versions."

PROVENANCE:
  require: [source_identifier, evidence_type, observation_or_publication_date, method]
  preserve: [original_claim, attribution, transformations, uncertainty]

# 11. UPDATE MODEL
UPDATE_MODEL:
  operations: [ADD_OBSERVATION, REVISE_FEEDING_MODE, UPDATE_TROPHIC_POSITION, MERGE_DUPLICATE_ENTITY, DEPRECATE_ASSERTION]
  immutable_history: true
  on_update: [validate_types, rerun_dependent_inferences, recompute_confidence, regenerate_flow_hash]
  conflict_policy: "Preserve conflicting evidence; flag unresolved contradictions."

# 12. AI CONSUMPTION
AI_CONSUMPTION:
  expose: [entity_types, relationships, evidence, confidence, temporal_context, ecological_context, inference_trace]
  response_requirements: ["Distinguish observation from inference", "Return source provenance", "Report unknowns", "Do not invent diet data"]
  output_formats: ["typed graph", "JSON-LD mapping", "human-readable explanation"]

# 13. EXAMPLE (ILLUSTRATIVE ONLY)
example:
  consumer: "example:field_vole_01"
  taxon: "Microtus agrestis"
  interaction: "Consumes plant material"
  inferred_mode: HERBIVORY
  evidence_status: "illustrative, not a real observation"
  caution: "Diet and trophic position may vary with context and life stage."

# 14. CROSS-ONTOLOGY LINKS
links:
  - "Individual Organism Entity Ontology"
  - "Population Ontology"
  - "Biological Community Ontology"
  - "Ecosystem Ontology"
  - "Habitat Ontology"
  - "Ecological Niche Ontology"
  - "Food Chain Ontology"
  - "Trophic Level Ontology"
  - "Producer Organism Ontology"

end flow

NOTE: This is a proposed declarative Flow Algebra specification, not a validated executable implementation or a verified extraction of the source webpage.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ