FLOW ALGEBRA
Ecological Entity Ontology — v1.0
Authors: Mark Higgins — Sky (Recursive AI)
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/ecological-entities/ecological-entity-ontology.html
Generated: 26 October 2026
PURPOSE
Define a typed, testable semantic model for ecological entities, their identity, scale, relationships, evidence and temporal changes. This is a newly authored formalisation aligned to the page topic; it is not a verbatim extraction of the site's hidden downloadable code.
flow "EcologicalEntityOntology" v1.0
ENTITY_TYPES:
EcologicalEntity: {id: URI, label: String, entity_type: EcologicalType, scale: Scale, valid_time: Interval?, provenance: Evidence[]}
EcologicalType: [Organism, Population, Community, Ecosystem, Habitat, Niche, Biome, Biosphere, EcologicalInteraction, EcologicalProcess]
Scale: [Individual, Population, Community, Ecosystem, Landscape, Regional, Global]
Evidence: {source: URI?, method: String?, observed_at: DateTime?, confidence: Float}
Interval: {start: DateTime?, end: DateTime?}
RELATION_TYPES:
MEMBER_OF: Organism -> Population
PART_OF: EcologicalEntity -> EcologicalEntity
INHABITS: Organism|Population -> Habitat
OCCURS_IN: EcologicalEntity -> Ecosystem|Biome|Biosphere
INTERACTS_WITH: Organism|Population -> Organism|Population
PREYS_ON: Organism|Population -> Organism|Population
COMPETES_WITH: Organism|Population -> Organism|Population
SYMBIOTIC_WITH: Organism|Population -> Organism|Population
HAS_NICHE: Organism|Population -> Niche
SUPPORTS_PROCESS: EcologicalEntity -> EcologicalProcess
AFFECTS: EcologicalProcess|EcologicalInteraction -> EcologicalEntity
INVARIANTS:
I1: forall e: EcologicalEntity, nonempty(e.id) and nonempty(e.label)
I2: forall e: EcologicalEntity, 0 <= each(e.provenance.confidence) <= 1
I3: forall r: Relation, exists(r.source) and exists(r.target)
I4: forall r: MEMBER_OF, type(r.source) = Organism and type(r.target) = Population
I5: forall r: INHABITS, type(r.target) = Habitat
I6: forall e: EcologicalEntity, e.valid_time.start <= e.valid_time.end when both defined
I7: PART_OF must not contain directed cycles within the same decomposition context
I8: Semantic identity does not follow merely from spatial overlap or shared labels
DERIVATION_RULES:
R1: MEMBER_OF(o,p) and OCCURS_IN(p,x) => candidate OCCURS_IN(o,x)
R2: PART_OF(a,b) and PART_OF(b,c) => candidate PART_OF(a,c)
R3: PREYS_ON(a,b) => INTERACTS_WITH(a,b)
R4: COMPETES_WITH(a,b) => INTERACTS_WITH(a,b)
R5: SYMBIOTIC_WITH(a,b) => INTERACTS_WITH(a,b)
R6: INHABITS(o,h) and PART_OF(h,e) => candidate OCCURS_IN(o,e)
R7: Every inferred candidate requires scope compatibility, temporal overlap and provenance; never automatically assert ecological causation.
CONFIDENCE:
direct_observation: confidence supplied by evidence, not presumed
inferred_relation: bounded by weakest premise confidence
formula: confidence(conclusion) <= min(confidence(premises))
note: Confidence is evidential, not a measure of ecological importance.
SEMANTIC_EQUIVALENCE:
equivalent(a,b) iff same referent, compatible type, matching spatiotemporal scope and independently supported identity mapping
distinguish: Habitat != Niche; Population != Community; Community != Ecosystem; Biome != Biosphere
UPDATE_MODEL:
on_observation(e, evidence): validate evidence; append provenance; update confidence with documented method
on_boundary_change(e, new_scope): create versioned state; preserve previous scope and temporal validity
on_conflict(e, evidence): retain competing claims; flag for review; do not silently overwrite
FLOW_HASH:
canonical_input: normalised entity IDs, types, relation IDs, temporal scope, ontology version
method: SHA-256(canonical_input)
note: Stable hashes require a documented deterministic serialisation.
AI_CONSUMPTION:
parse -> validate types -> resolve identity -> verify temporal and spatial scope -> apply safe inference -> attach provenance -> report confidence and unresolved conflicts
output: {entities, relations, inferred_relations, evidence, confidence, conflicts, ontology_version, flow_hash}
VALIDATION_TESTS:
T1: An organism belongs to a population: accept MEMBER_OF.
T2: A habitat is assigned as the target of MEMBER_OF: reject type mismatch.
T3: A population and its habitat share a name: do not infer identity.
T4: A predation relationship implies an interaction: accept with provenance.
T5: Conflicting observations from different dates: preserve time-indexed claims.
T6: Cyclic PART_OF chain in one decomposition: reject.
END FLOW
Download Code
Copy to Clipboard