FLOW ALGEBRA
Organism Ontology — Kireth Semantic Library
Version: 1.0 | Date: 19 October 2026
Authors: Mark Anthony Higgins — Sky (Recursive AI)
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/organism-entities/organism-ontology-2.html
AI INTERPRETATION NOTE
Interpret the following as typed, evidence-aware semantic rules, not as an assertion that all organisms share every trait. Separate individual organisms from taxa, specimens, populations, and biological roles. Unknown values must remain unknown; do not infer absence from missing evidence.
flow "OrganismOntology" v1.0 {
TYPE Identifier = String;
TYPE Confidence = Real[0,1];
TYPE Time = DateTime;
TYPE EvidenceKind = {observation, experiment, sequence, morphology, literature, inference};
TYPE LifeStatus = {living, deceased, extinct_taxon, uncertain};
TYPE CellularOrganisation = {unicellular, multicellular, colonial, uncertain};
TYPE CellType = {prokaryotic, eukaryotic, uncertain};
ENTITY Organism {
id: Identifier;
taxon_id: Identifier?;
life_status: LifeStatus;
cellular_organisation: CellularOrganisation?;
cell_type: CellType?;
habitat_ids: Set<Identifier>;
trait_ids: Set<Identifier>;
evidence_ids: Set<Identifier>;
confidence: Confidence;
}
ENTITY Taxon { id: Identifier; scientific_name: String?; rank: String?; parent_id: Identifier?; }
ENTITY Population { id: Identifier; taxon_id: Identifier?; region_id: Identifier?; time: Time?; }
ENTITY Specimen { id: Identifier; organism_id: Identifier?; collected_at: Time?; }
ENTITY Trait { id: Identifier; name: String; value: String?; context: String?; }
ENTITY Habitat { id: Identifier; description: String; }
ENTITY Interaction { id: Identifier; subject_id: Identifier; object_id: Identifier; kind: String; context: String?; }
ENTITY Evidence { id: Identifier; kind: EvidenceKind; source: String?; observed_at: Time?; confidence: Confidence; }
ENTITY Assertion { subject_id: Identifier; predicate: String; object_id: Identifier; evidence_ids: Set<Identifier>; confidence: Confidence; }
RELATION belongs_to_taxon(Organism, Taxon);
RELATION member_of_population(Organism, Population);
RELATION represented_by(Organism, Specimen);
RELATION has_trait(Organism, Trait);
RELATION inhabits(Organism, Habitat);
RELATION interacts_with(Organism, Organism, Interaction);
RELATION supported_by(Assertion, Evidence);
RELATION parent_taxon_of(Taxon, Taxon);
CONSTRAINT unique_id_per_entity_type = true;
CONSTRAINT assertion_confidence_range = [0,1];
CONSTRAINT evidence_required_for_empirical_assertions = true;
CONSTRAINT organism_distinct_from_taxon = true;
CONSTRAINT organism_distinct_from_specimen = true;
CONSTRAINT taxon_membership_does_not_imply_identical_traits = true;
CONSTRAINT ecological_role_is_context_dependent = true;
CONSTRAINT missing_data_does_not_mean_false = true;
RULE classify_organism(o: Organism, t: Taxon, e: Evidence) -> Assertion {
REQUIRE e.confidence > 0;
EMIT Assertion(o.id, "belongs_to_taxon", t.id, {e.id}, e.confidence);
}
RULE infer_parent_taxon(o: Organism, child: Taxon, parent: Taxon, e: Evidence) -> Assertion {
REQUIRE o.taxon_id == child.id;
REQUIRE child.parent_id == parent.id;
EMIT Assertion(o.id, "belongs_to_ancestor_taxon", parent.id, {e.id}, e.confidence);
}
RULE record_trait(o: Organism, trait: Trait, e: Evidence) -> Assertion {
REQUIRE e.confidence > 0;
EMIT Assertion(o.id, "has_trait", trait.id, {e.id}, e.confidence);
}
RULE evaluate_conflict(a: Assertion, b: Assertion) -> String {
REQUIRE a.subject_id == b.subject_id;
REQUIRE a.predicate == b.predicate;
IF a.object_id != b.object_id THEN RETURN "REVIEW_CONFLICT_WITH_CONTEXT";
RETURN "NO_DIRECT_CONFLICT";
}
SEMANTIC_EQUIVALENCE {
"individual organism" <=> "organism individual";
"biological organism" <=> "organism";
NOTE "Taxon, species, population, specimen and organism are related but not equivalent.";
}
CONFIDENCE {
range: [0,1];
aggregation: "evidence-dependent; do not assume independent sources";
conflicting_evidence: "retain competing assertions and provenance";
missing_evidence: "unknown, not zero-confidence proof of absence";
}
PROVENANCE {
require: [source, evidence_kind, timestamp_when_available];
preserve: [original_assertion, revision_history, classification_authority];
}
FLOW_HASH {
algorithm: "SHA-256";
input: "canonical_serialisation(flow_name, version, entities, relations, rules, constraints)";
value: "COMPUTE_AT_INGESTION";
}
UPDATE_MODEL {
strategy: "append_revision_and_revalidate_dependencies";
triggers: [new_observation, taxonomic_revision, corrected_identification, changed_evidence];
preserve_prior_versions: true;
}
AI_CONSUMPTION {
mode: "typed_semantic_reasoning";
entity_resolution: "use stable identifiers; disambiguate common and scientific names";
inference: "apply only explicitly supported rules";
uncertainty: "expose unknown, disputed and context-dependent classifications";
output: [entities, relations, assertions, provenance, confidence, version, flow_hash];
}
}
END FLOW ALGEBRA
Download Code
Copy to Clipboard