Skip to main content

Biological Community 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
Biological Community 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/biological-community-ontology.html
Status: Proposed formalisation; not a verified transcription of webpage contents.

flow "BiologicalCommunityOntology" v1.0

namespace: "kireth.semantic_library.biological_entities.ecological_entities"
locale: "en-GB"

# 1. ENTITY MODEL
entity BiologicalCommunity {
  id: URI
  label: String
  definition: "Assemblage of populations of different species co-occurring in a defined place and time, considered through their ecological relationships."
  habitat: HabitatRef
  spatial_extent: Geometry?
  temporal_extent: Interval
  constituent_populations: Set<PopulationRef>
  community_type: CommunityType?
  provenance: EvidenceRef[]
}

entity PopulationRef { id: URI; taxon: TaxonRef; abundance: NonNegativeReal? }
entity HabitatRef { id: URI; environment: String? }
entity TaxonRef { id: URI; scientific_name: String? }
entity Interaction { id: URI; source: PopulationRef; target: PopulationRef; kind: InteractionType; evidence: EvidenceRef[] }
entity EvidenceRef { id: URI; source: URI?; observed_at: DateTime? }
entity CommunityObservation { id: URI; community: BiologicalCommunity; time: DateTime; sampling_method: String; sampled_area: Real?; detected_populations: Set<PopulationRef> }

CommunityType := terrestrial | freshwater | marine | microbial | host_associated | other
InteractionType := predation | herbivory | competition | mutualism | commensalism | parasitism | facilitation | other

# 2. TYPED RELATIONSHIPS
relation HAS_POPULATION(BiologicalCommunity, PopulationRef)
relation OCCURS_IN(BiologicalCommunity, HabitatRef)
relation INTERACTS_WITH(PopulationRef, PopulationRef, InteractionType)
relation OBSERVED_BY(BiologicalCommunity, CommunityObservation)
relation OVERLAPS_WITH(BiologicalCommunity, BiologicalCommunity)
relation PART_OF(BiologicalCommunity, EcosystemRef)
relation CHANGES_TO(BiologicalCommunity, BiologicalCommunity, Interval)

# 3. CONSTRAINTS / INVARIANTS
invariant unique_identity: community.id is unique
invariant temporal_validity: community.temporal_extent.start <= community.temporal_extent.end
invariant constituent_consistency: each HAS_POPULATION target belongs to community.constituent_populations
invariant evidence_traceability: observations and inferred interactions retain provenance
invariant sampling_distinction: undetected taxon != proven_absent_taxon
invariant identity_not_equivalence: shared habitat or species does not imply identical communities
invariant no_forced_richness: a community may be incompletely sampled; observed richness is a lower bound on true richness

# 4. DERIVED MEASURES
function observed_species_richness(o: CommunityObservation) -> Integer:
  return count(unique(taxon(p) for p in o.detected_populations if taxon(p) known))

function relative_abundance(p: PopulationRef, C: BiologicalCommunity) -> Real?:
  require p in C.constituent_populations
  require all compared population abundances are measured, compatible and nonnegative
  let total = sum(abundance(q) for q in C.constituent_populations)
  return abundance(p) / total if total > 0 else undefined

function shannon_diversity(C: BiologicalCommunity) -> Real?:
  require valid comparable abundance observations
  let proportions = nonzero relative abundances of distinct taxa
  return -sum(p * ln(p) for p in proportions)

function jaccard_similarity(A: BiologicalCommunity, B: BiologicalCommunity) -> Real?:
  let taxa_A = observed taxon set of A
  let taxa_B = observed taxon set of B
  require comparable survey coverage and nonempty union
  return size(taxa_A intersect taxa_B) / size(taxa_A union taxa_B)

# 5. INFERENCE RULES
rule membership:
  IF population p is documented within community C over C's spatial and temporal scope
  THEN HAS_POPULATION(C,p) with source-linked confidence

rule interaction_network:
  IF verified interaction i joins populations p and q in C
  THEN include edge (p,i.kind,q) in community interaction network

rule community_change:
  IF comparable observations of C at t1 and t2 show composition differences
  THEN infer observed compositional_change(C,t1,t2)
  WITH qualification for sampling bias, detection probability and seasonality

rule community_overlap:
  IF C1 and C2 share confirmed populations or spatial extents
  THEN propose OVERLAPS_WITH(C1,C2)
  NOT infer community identity

# 6. CONFIDENCE
CONFIDENCE:
  value: Real in [0,1]
  dimensions: [taxonomic_identification, observation_quality, sampling_coverage, temporal_relevance, provenance_quality]
  policy: "Calibrate against evidence; do not assign numerical certainty without data."
  missing_evidence: unknown

# 7. SEMANTIC_EQUIVALENCE
SEMANTIC_EQUIVALENCE:
  preferred_term: "biological community"
  candidate_aliases: ["ecological community", "biotic community"]
  match_conditions: [compatible definition, geographic scope, temporal scope, population membership]
  non_equivalences: ["population", "habitat", "ecosystem", "biome"]
  note: "Aliases may be terminologically equivalent; instances require separate identity tests."

# 8. FLOW_HASH
FLOW_HASH:
  algorithm: SHA-256
  canonicalisation: "UTF-8; Unicode NFC; deterministic key ordering; stable identifiers; exclude hash field"
  input: canonical(entity_schema, relation_schema, constraints, rules, version)
  output: lowercase_hex_digest
  note: "Computed at implementation time; no fabricated digest."

# 9. UPDATE_MODEL
UPDATE_MODEL:
  versioning: semantic
  event_types: [population_added, population_removed, abundance_updated, interaction_verified, observation_added, habitat_changed, taxonomy_revised]
  procedure:
    - validate incoming observation and provenance
    - preserve prior state and observation timestamps
    - reconcile taxonomic synonyms without overwriting historical records
    - recalculate affected derived measures
    - propagate confidence and dependency updates
    - compute new FLOW_HASH
    - publish versioned change log

# 10. AI_CONSUMPTION
AI_CONSUMPTION:
  input: [community identifier, habitat, temporal scope, observations, population records, interaction evidence]
  outputs: [typed entity graph, diversity summaries, interaction network, qualified ecological inferences]
  safeguards:
    - distinguish observed from inferred claims
    - label missing values as unknown
    - retain spatial and temporal qualifiers
    - never treat sampling absence as proof of ecological absence
    - include provenance and confidence in exported claims
  serialisation: [JSON-LD, RDF, typed graph, plain text]

# 11. EXAMPLE (SCHEMATIC, NOT FIELD DATA)
example:
  community: "community:woodland_plot_A"
  habitat: "habitat:woodland_plot_A"
  populations: ["population:oak_A", "population:fungus_A", "population:beetle_A"]
  note: "Illustrative entity identifiers only; no assertion of actual observations."

# 12. VALIDATION
validate:
  - identifiers_resolve
  - typed_relationships_match
  - observations_have_time_and_provenance
  - abundance_units_and_sampling_are_comparable
  - derived_metrics_only_when_preconditions_met
  - confidence_is_evidence_based
  - version_and_hash_are_reproducible

end flow
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ