AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
KIRETH SEMANTIC LIBRARY — PHENOTYPIC DATA ENTITY ONTOLOGY
FLOW ALGEBRA COMPANION v1.0 | 2026-10-28 | UTF-8
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/biological-data-entities/phenotypic-data-ontology.html
Status: Original subject-based companion formalisation; not a verbatim extraction.
AUTHORS
Kireth Research — Semantic Library
Flow formalisation: Sky — Recursive AI
PURPOSE
Represent observed or measured phenotypes as evidence-linked data entities, retaining organism, trait, context, method, uncertainty, provenance and time.
STATE_MODEL
S_t = (I_t, R, B, K)
I_t: observations, samples, entities, measurements, metadata
R: ontology relationships and inference rules
B: validity, scope, ethics, quality and evidence boundaries
K: accepted background knowledge, controlled vocabularies and reference definitions
E_t = expand(I_t, R)
V_t = {x in E_t | satisfies(x, B)}
x*_t = argmax_{x in V_t} P(x | I_t, R, B, K)
I_{t+1} = update(I_t, x*_t, evidence, provenance)
Note: probabilistic selection is optional; unknown likelihoods must not be fabricated.
ENTITIES
PhenotypicData: typed record of a phenotype observation or measurement
Phenotype: observable characteristic of an organism or biological system
Trait: named characteristic with a defined measurement or observation protocol
TraitState: categorical, ordinal, binary or continuous manifestation
Organism: subject bearing the observed trait
Population: group with explicitly defined membership
Specimen: material sampled from a subject
Observation: event generating a phenotype datum
Measurement: value with unit, precision and uncertainty where relevant
Assay: protocol or instrument used to acquire evidence
Condition: environment, developmental stage, intervention or exposure
TimePoint: timestamp or relative developmental time
Genotype: genetic information, possibly linked but not assumed causal
Dataset: collection of data records and metadata
ProvenanceRecord: source, custody, processing and version history
QualityFlag: missingness, censoring, outlier or protocol limitation
RELATIONSHIPS
PhenotypicData --describes--> Phenotype
PhenotypicData --observed_in--> Organism | Specimen | Population
PhenotypicData --measures--> Trait
PhenotypicData --has_state--> TraitState
PhenotypicData --generated_by--> Observation
Observation --uses--> Assay
Observation --occurs_under--> Condition
Observation --recorded_at--> TimePoint
PhenotypicData --belongs_to--> Dataset
PhenotypicData --has_provenance--> ProvenanceRecord
PhenotypicData --has_quality_flag--> QualityFlag
PhenotypicData --may_be_associated_with--> Genotype
DATA_SCHEMA
id: stable unique identifier
subject_id: organism/specimen/population reference
trait_id: ontology-backed trait identifier
value: numeric or categorical observation
unit: explicit for dimensional values; null for categorical
method_id: protocol/assay identifier
condition_id: environmental and experimental context
time: collection or observation time
replicate_id: biological/technical replicate designation
uncertainty: estimate, interval or missing
quality: validation and missingness flags
provenance: source, licence, date and version
INVARIANTS
- Each measurement has a defined trait and subject.
- Numeric dimensional values require compatible units.
- Missing data remain missing; never impute without an explicit method.
- Biological replicates are not interchangeable with technical replicates.
- Observational association alone does not establish genetic causation.
- Comparisons require compatible trait definitions, methods and contexts.
- Raw observations and derived estimates remain distinguishable.
- Individual-level sensitive information requires appropriate access controls.
INFERENCE_RULES
R1: IF subject, trait and method are defined THEN classify as interpretable observation.
R2: IF value is numeric AND unit matches trait dimension THEN permit unit-normalised comparison.
R3: IF measurement contexts differ THEN flag confounding or comparability limitation.
R4: IF repeated measurements share subject_id THEN model within-subject dependence.
R5: IF replicate labels refer to independent subjects THEN allow biological-replicate grouping, subject to design verification.
R6: IF a genotype-phenotype association is observed THEN record association with uncertainty, not causal proof.
R7: IF provenance is incomplete THEN downgrade traceability confidence.
R8: IF quality checks fail THEN retain original record and attach a failure flag; do not silently discard.
RECURSIVE_PATHWAYS
P1 Observation -> Validation -> Trait Mapping -> Evidence Record -> Dataset
P2 Dataset -> Harmonisation -> Context Check -> Comparative Analysis -> Revised Evidence
P3 Phenotype -> Candidate Mechanism -> Independent Evidence -> Updated Interpretation
P4 New Evidence -> Re-evaluate Prior Inference -> Versioned Knowledge Update
TRI_MAPPING
Entity layer: subject, trait, phenotype, sample, assay, dataset
Relationship layer: observed_in, measures, generated_by, occurs_under, belongs_to
Flow layer: collect -> validate -> contextualise -> compare -> infer -> update
HOW_TO_READ
An observed phenotype becomes a reusable semantic entity only when its subject, trait, context, method and provenance are explicitly represented. Recursive inference updates interpretations without rewriting the source observation.
MAPPING_TABLE
Observation | PhenotypicData | collect/validate
Characteristic | Trait | ontology mapping
Recorded outcome | TraitState | normalise/contextualise
Subject | Organism/Specimen | identity linkage
Experimental setting | Condition | comparability filter
Acquisition | Assay | method validation
Evidence lineage | ProvenanceRecord | audit/version
Interpretation | Inference | confidence update
CONFIDENCE
confidence = f(measurement_quality, sample_size, replication, context_match, provenance, model_fit)
Do not assign numeric confidence without an explicit estimation method and evidence.
Separate confidence in measurement, association and causal explanation.
EXECUTION_GUARANTEE (CONDITIONAL)
Given valid identifiers, explicit trait semantics, preserved source data and compatible comparison conditions, the flow produces traceable, reproducible semantic transformations. It does not guarantee biological truth, causal identification or absence of bias.
AI_SEARCH_FLOW
INPUT: phenotype term, trait identifier, organism, context or dataset
1. Resolve synonyms and ontology identifiers.
2. Retrieve candidate phenotypic records.
3. Filter by organism, trait, assay, condition and provenance.
4. Distinguish measured observations from model-derived interpretations.
5. Rank by evidence quality and relevance without inventing scores.
6. Return matched entities, relations, limitations and source citations.
7. Update the semantic index when verified evidence changes.
OUTPUT: provenance-linked phenotype evidence graph and qualified interpretation.
SEMANTIC_EQUIVALENCE
Phenotypic observation ~ observed trait state (context dependent)
Phenotypic data != phenotype itself
Genotype-phenotype association != causation
Phenotypic similarity != shared ancestry
UPDATE_MODEL
Every correction creates a versioned revision with timestamp, source and reason. Preserve original observations and record the transformation history.
CITATION_BACKLINK
https://kirethresearch.org/booksai-core/entity-graph/biological-entities/biological-data-entities/phenotypic-data-ontology.html
END FLOW