FLOW ALGEBRA
Medicinal Plant Ontology — Kireth Semantic Library
Version: 1.0 | Date: 2026-10-19 | Locale: en-GB
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/plant-entities/medicinal-plant-ontology.html
Authors: Mark Higgins — Sky (Recursive AI)
PURPOSE
Represent medicinal plants, traditional uses, botanical identity, bioactive constituents, preparation methods, research evidence and safety constraints as typed, provenance-aware semantic relationships. Traditional use is not proof of clinical efficacy.
FLOW "MedicinalPlantOntology" v1.0
ENTITY_TYPES:
MedicinalPlant <: PlantOrganism
Taxon <: BiologicalTaxon
PlantPart <: AnatomicalStructure
Phytochemical <: ChemicalCompound
Extract <: PlantPreparation
PreparationMethod <: Process
TraditionalUse <: HistoricalUseClaim
TherapeuticClaim <: EvidenceDependentClaim
ClinicalStudy <: ScientificStudy
PharmacologicalActivity <: BiologicalActivity
BiologicalTarget <: MolecularOrPhysiologicalEntity
AdverseEffect <: SafetyOutcome
Contraindication <: SafetyConstraint
DrugInteraction <: InteractionClaim
Habitat <: EcologicalLocation
CultivationPractice <: AgriculturalProcess
ConservationStatus <: Assessment
EvidenceSource <: ProvenanceRecord
ATTRIBUTES:
MedicinalPlant: [scientific_name, common_names, taxon_id, voucher_id?, origin?, conservation_status?]
PlantPart: [part_type, developmental_stage?, collection_method?]
Phytochemical: [chemical_identifier?, compound_class, concentration?, units?]
Extract: [plant_part, solvent?, extraction_method, concentration?, batch_id?]
TherapeuticClaim: [claimed_outcome, population?, dose?, route?, evidence_grade, uncertainty]
EvidenceSource: [citation, publication_date?, source_type, method?, access_date?]
RELATIONSHIPS:
IS_A(MedicinalPlant, PlantOrganism)
BELONGS_TO_TAXON(MedicinalPlant, Taxon)
HAS_PART(MedicinalPlant, PlantPart)
CONTAINS(PlantPart, Phytochemical)
PREPARED_FROM(Extract, PlantPart)
USES_METHOD(Extract, PreparationMethod)
HAS_TRADITIONAL_USE(MedicinalPlant, TraditionalUse)
INVESTIGATED_FOR(Phytochemical|Extract, PharmacologicalActivity)
ACTS_ON(Phytochemical, BiologicalTarget)
EVALUATED_BY(TherapeuticClaim, ClinicalStudy)
MAY_CAUSE(Extract|Phytochemical, AdverseEffect)
CONTRAINDICATED_WITH(Extract, Contraindication)
MAY_INTERACT_WITH(Extract|Phytochemical, DrugInteraction)
GROWS_IN(MedicinalPlant, Habitat)
CULTIVATED_USING(MedicinalPlant, CultivationPractice)
SUPPORTED_BY(Claim|Relationship, EvidenceSource)
TYPED_RULES:
R1: BELONGS_TO_TAXON(p,t) AND ACCEPTED_NAME(t,n) -> LABEL(p,n)
R2: PREPARED_FROM(e,part) AND PART_OF(part,p) -> DERIVED_FROM(e,p)
R3: CONTAINS(part,c) AND PREPARED_FROM(e,part) -> POSSIBLY_CONTAINS(e,c)
# Do not infer confirmed presence without chemical analysis.
R4: HAS_TRADITIONAL_USE(p,u) -/-> CLINICALLY_EFFECTIVE(p,u)
R5: IN_VITRO_ACTIVITY(c,a) -/-> HUMAN_CLINICAL_BENEFIT(c,a)
R6: EVALUATED_BY(claim,study) AND STUDY_SUPPORTS(study,claim)
-> EVIDENCE_FOR(claim,study)
# Scope must retain dose, formulation, population and study limitations.
R7: MAY_INTERACT_WITH(e,drug) -> FLAG_SAFETY_REVIEW(e,drug)
R8: THREATENED(p) AND WILD_HARVESTED(p) -> FLAG_CONSERVATION_RISK(p)
CONSTRAINTS:
C1: Scientific names must resolve to a taxon authority; record synonyms separately.
C2: Distinguish botanical species, cultivar, chemotype, plant part and extract.
C3: Do not transfer evidence between different preparations or doses automatically.
C4: Separate ethnobotanical records, preclinical findings and human clinical evidence.
C5: Never infer safe dosage, effectiveness or suitability from traditional use alone.
C6: Missing evidence must remain UNKNOWN, not FALSE or TRUE.
C7: Flag uncertainty, toxicity, interactions and vulnerable populations explicitly.
SEMANTIC_EQUIVALENCE:
exact: same accepted taxon identifier AND same entity scope
synonym: taxonomic synonym linked through authority record
related: shared plant genus, compound class or traditional use
not_equivalent: raw plant != extract; traditional claim != clinical outcome
CONFIDENCE:
record: [score: 0.0..1.0, evidence_grade, source_quality, reproducibility, applicability]
aggregation: source-aware; correlated sources are not independent confirmations
rule: confidence(inferred) <= minimum confidence of required premises
clinical_claim: assess study design, replication, effect size, bias and population relevance
PROVENANCE:
each_assertion: [assertion_id, source_id, author_or_custodian?, observed_at?, recorded_at,
method?, jurisdiction?, taxonomic_version?, licence?, review_status]
retain_original: true
conflict_policy: preserve conflicting claims with separate evidence and timestamps
FLOW_HASH:
canonicalise: UTF-8, stable key order, normalised identifiers, normalised whitespace
digest: SHA-256(canonical_entity + canonical_relationships + provenance_refs + version)
note: computed at implementation time; no precomputed hash asserted
UPDATE_MODEL:
trigger: [taxonomic_revision, new_study, safety_alert, corrected_identification,
new_conservation_assessment, provenance_correction]
steps: [validate_input, preserve_prior_version, update_assertions, recalculate_confidence,
re-evaluate_inferences, recompute_flow_hash, publish_change_log]
recursion: repeat until fixed_point OR max_iterations
termination: detect_cycles; retain audit trail
AI_CONSUMPTION:
input: natural_language_query | structured_entity_query
pipeline: [entity_resolution, taxonomic_validation, relation_traversal,
evidence_filtering, constraint_checking, uncertainty_calibration,
provenance_attachment, answer_generation]
output: [resolved_entities, evidence_qualified_relations, confidence, limitations,
safety_flags, provenance, flow_version]
safeguards: do_not_generate_medical_advice_from_unverified_claims
EXAMPLE_INSTANCES (illustrative, not treatment recommendations):
p1: MedicinalPlant {scientific_name: "Matricaria chamomilla"}
p2: MedicinalPlant {scientific_name: "Digitalis purpurea"}
r1: HAS_TRADITIONAL_USE(p1, "herbal infusion")
r2: SAFETY_FLAG(p2, "contains potent cardiac glycosides; ingestion can be dangerous")
# No efficacy or safe-use conclusion follows from these example records.
VALIDATION:
require: [entity_type_integrity, valid_relation_domains, provenance_for_claims,
explicit_uncertainty, taxonomic_identifier_checks, safety_flags]
reject: [unsupported_efficacy_inference, fabricated_citation, unqualified_dose_transfer]
END FLOW
Download Code
Copy to Clipboard