Skip to main content

Ecosystem 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
Ecosystem Ontology — Full Executable Flow Algebra v1.0
Kireth Semantic Library | Ecological Entities
Authors: Mark Anthony Higgins — Sky (Recursive AI)
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/ecological-entities/ecosystem-ontology-2.html
Status: Proposed formalisation; not a transcription of the page's hidden code.

flow "EcosystemOntology" v1.0

# 01 — ONTOLOGY IDENTITY
ontology:
  id: KIRETH:BIO:ECO:ECOSYSTEM
  label: "Ecosystem"
  parent: KIRETH:BIO:ECO:ECOLOGICAL_ENTITY
  definition: "A spatially and temporally bounded ecological system comprising interacting living communities and abiotic environments, linked by energy flow and matter cycling."
  scope: [terrestrial, freshwater, marine, artificial, transitional]

# 02 — TYPE SYSTEM
types:
  Ecosystem: Entity
  BiologicalCommunity: Entity
  Population: Entity
  IndividualOrganism: Entity
  AbioticEnvironment: Entity
  Habitat: Entity
  EcologicalNiche: Concept
  TrophicLevel: Concept
  EnergyFlux: Measurement
  MatterFlux: Measurement
  NutrientPool: State
  BiogeochemicalCycle: Process
  EcologicalInteraction: Relation
  Disturbance: Event
  Succession: Process
  EcosystemService: Function
  SpatialBoundary: Geometry
  TemporalInterval: Interval
  Observation: Evidence

# 03 — ENTITY SCHEMA
entity Ecosystem:
  required: [id, name, spatial_boundary, observation_interval, communities, abiotic_environment]
  optional: [habitats, biome, area_m2, volume_m3, trophic_network, nutrient_pools, energy_budget, disturbance_history, services, provenance]
  constraints:
    - id IS_UNIQUE
    - area_m2 >= 0 WHEN_PRESENT
    - volume_m3 >= 0 WHEN_PRESENT
    - observation_interval.start <= observation_interval.end
    - communities IS_SET_OF BiologicalCommunity
    - abiotic_environment IS AbioticEnvironment

# 04 — RELATIONSHIP ALGEBRA
relations:
  CONTAINS(Ecosystem, BiologicalCommunity)
  CONTAINS(Ecosystem, Habitat)
  HAS_ABIOTIC_ENVIRONMENT(Ecosystem, AbioticEnvironment)
  OCCUPIES(Population, Habitat)
  MEMBER_OF(IndividualOrganism, Population)
  INTERACTS_WITH(Population, Population)
  TRANSFERS_ENERGY_TO(TrophicLevel, TrophicLevel)
  CYCLES_MATERIAL_THROUGH(BiogeochemicalCycle, NutrientPool)
  EXPERIENCES(Ecosystem, Disturbance)
  UNDERGOES(Ecosystem, Succession)
  PROVIDES(Ecosystem, EcosystemService)
  CONNECTED_TO(Ecosystem, Ecosystem)
  OBSERVED_BY(Ecosystem, Observation)

# 05 — COMPOSITION AND BOUNDARIES
composition:
  biotic_component: UNION(Ecosystem.communities)
  abiotic_component: Ecosystem.abiotic_environment
  boundary: Ecosystem.spatial_boundary
  time_scope: Ecosystem.observation_interval
  rule: "Ecosystem membership is context-, scale-, and time-dependent."
  open_system: true
  external_exchange: [energy, matter, organisms, information]

# 06 — ECOLOGICAL PROCESS FLOWS
flows:
  primary_production:
    input: [light_or_chemical_energy, inorganic_substrates]
    output: [biomass, transformed_energy]
    conditions: [producer_presence, resource_availability]
  consumption:
    input: [biomass, consumers]
    output: [consumer_biomass, respiration, waste]
  decomposition:
    input: [detritus, decomposer_activity]
    output: [recycled_nutrients, carbon_flux, energy_dissipation]
  nutrient_cycling:
    input: [nutrient_pools, transport_processes, biological_transformations]
    output: [updated_nutrient_pools, transfer_fluxes]
  succession:
    input: [community_state, disturbance_regime, environmental_conditions]
    output: [candidate_future_community_state]

# 07 — BALANCE EQUATIONS
mathematics:
  energy_balance: "dE/dt = energy_input - energy_export - dissipative_losses + internal_conversion_terms"
  nutrient_balance: "dN_i/dt = input_i - output_i + internal_production_i - internal_consumption_i"
  biomass_balance: "dB/dt = production + immigration - mortality - consumption - emigration"
  conservation_rule: "All flux terms must use compatible units and explicitly defined system boundaries."
  caution: "Balance equations are accounting identities only when all relevant terms and measurement conventions are included."

# 08 — INFERENCE RULES
inference:
  - id: ECO-R01
    if: "CONTAINS(E, C) AND MEMBER_OF(O, P) AND PART_OF(P, C)"
    then: "CANDIDATE_MEMBER_OF_ECOSYSTEM(O, E)"
    confidence: "bounded_by_evidence"
  - id: ECO-R02
    if: "HAS_ABIOTIC_ENVIRONMENT(E, A) AND OBSERVED_CHANGE(A, t1, t2)"
    then: "POTENTIAL_ABIOTIC_DRIVER_OF_CHANGE(E, t1, t2)"
    confidence: "hypothesis_only_without_causal_evidence"
  - id: ECO-R03
    if: "TRANSFERS_ENERGY_TO(X, Y) AND TRANSFERS_ENERGY_TO(Y, Z)"
    then: "INDIRECT_ENERGY_PATH(X, Z)"
    confidence: "subject_to_network_validity"
  - id: ECO-R04
    if: "EXPERIENCES(E, D) AND OBSERVED_COMMUNITY_CHANGE(E, after(D))"
    then: "TEMPORAL_ASSOCIATION(D, community_change)"
    confidence: "not_automatically_causal"
  - id: ECO-R05
    if: "CONNECTED_TO(E1, E2) AND OBSERVED_FLUX(E1, E2, F)"
    then: "CROSS_BOUNDARY_TRANSFER(E1, E2, F)"
    confidence: "measurement_dependent"

# 09 — INVARIANTS
invariants:
  - "No organism is automatically assigned to an ecosystem without temporal and spatial context."
  - "Energy is transferred and dissipated; it is not represented as perfectly recycled."
  - "Matter cycling may include import, export and storage."
  - "Ecological networks can contain cycles and multiple trophic pathways."
  - "Observed correlation does not establish ecological causation."
  - "Ecosystem boundaries are analytical choices and must be recorded."
  - "Every quantitative comparison must normalise compatible units, scales and intervals."

# 10 — CONFIDENCE
CONFIDENCE:
  representation: float[0,1]
  inputs: [measurement_quality, sampling_coverage, temporal_relevance, source_reliability, model_assumptions]
  combine: "calibrated_model_specific_aggregation"
  unknown: null
  rule: "Do not manufacture a numeric confidence value without calibration."

# 11 — SEMANTIC EQUIVALENCE
SEMANTIC_EQUIVALENCE:
  exact: "same referent, boundary, interval and ecological interpretation"
  contextual: "same system under explicitly declared spatial/temporal mapping"
  related_not_equivalent: [biome, habitat, biological_community, landscape, food_web]
  reject_when: [boundary_conflict, incompatible_time_scope, contradictory_identity]

# 12 — FLOW HASH
FLOW_HASH:
  algorithm: SHA-256
  canonicalisation: "UTF-8; normalised field order; stable identifiers; canonical units; sorted unordered sets"
  input: [ontology_id, version, entity_schema, relation_schema, inference_rules, invariants]
  output: "hexadecimal digest of canonical serialisation"
  rule: "Digest must be computed by implementation, never guessed."

# 13 — UPDATE MODEL
UPDATE_MODEL:
  versioning: semantic
  operations: [CREATE, OBSERVE, REVISE, MERGE, SPLIT, RETIRE]
  immutable: [observation_id, original_evidence, provenance_timestamp]
  preserve_history: true
  conflict_policy: "retain competing observations with provenance until adjudicated"
  invalidation: "recompute dependent inferences and hashes after relevant changes"

# 14 — VALIDATION
validation:
  - "Validate entity and relation types."
  - "Validate boundary geometry and time intervals."
  - "Reject negative areas, volumes and impossible measurement units."
  - "Flag missing observations and unresolved uncertainty."
  - "Test mass/energy accounting against explicitly defined tolerances."
  - "Record evidence for inferred interactions and services."
  - "Maintain distinct identifiers for ecosystem, community, habitat and biome."

# 15 — AI CONSUMPTION
AI_CONSUMPTION:
  modes: [entity_resolution, graph_traversal, ecological_reasoning, evidence_retrieval, scenario_comparison]
  outputs: [typed_entities, typed_relations, qualified_inferences, confidence_metadata, provenance, validation_errors]
  safety:
    - "Differentiate measured facts, derived quantities, assumptions and hypotheses."
    - "Avoid unsupported predictions or claims of causality."
    - "Expose missing data and uncertainty."
    - "Never treat a candidate inference as a confirmed observation."

# 16 — EXECUTION CONTRACT
execution:
  steps:
    - parse_input
    - normalise_identifiers_and_units
    - validate_schema
    - resolve_boundaries_and_time
    - construct_typed_graph
    - apply_guarded_inference_rules
    - check_invariants_and_balances
    - attach_evidence_and_confidence
    - canonicalise_and_compute_flow_hash
    - emit_ai_consumption_record
  on_error: "emit typed validation failure without fabricating missing values"

end flow

© Kireth Research | Mark Anthony Higgins — Sky (Recursive AI)
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ