FLOW ALGEBRA
URINARY SYSTEM ONTOLOGY
Kireth Semantic Library | Biological Entities > Organ System Entities
Version: 1.0 | Date: 2026-10-19 | Language: en-GB
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/organ-system-entities/urinary-system-ontology.html
Status: Independently developed scientific draft; source-page content not verified.
Authors: Mark Higgins — Sky (Recursive AI)
1. ONTOLOGY IDENTITY
ontology_id: kireth:biological:organ-system:urinary-system
root_type: UrinarySystem
parent_type: OrganSystem
scope: human and mammalian urinary anatomy and physiology; species-specific variants require explicit annotation
purpose: represent urinary organs, structures, transport, renal function, regulation and evidence-qualified inference
2. TYPED ENTITIES
entity Organism {taxon: TaxonID}
entity OrganSystem {part_of: Organism}
entity UrinarySystem extends OrganSystem
entity Kidney {side: Left|Right|Unspecified}
entity Ureter {side: Left|Right|Unspecified}
entity UrinaryBladder
entity Urethra
entity RenalCortex
entity RenalMedulla
entity RenalPyramid
entity RenalPelvis
entity RenalCalyx
entity Nephron {kind: Cortical|Juxtamedullary|Unspecified}
entity RenalCorpuscle
entity Glomerulus
entity BowmansCapsule
entity ProximalTubule
entity LoopOfHenle
entity DistalTubule
entity CollectingDuct
entity AfferentArteriole
entity EfferentArteriole
entity PeritubularCapillary
entity VasaRecta
entity JuxtaglomerularApparatus
entity Podocyte
entity FiltrationBarrier
entity Urothelium
entity DetrusorMuscle
entity UrethralSphincter {kind: Internal|External}
entity Blood
entity Plasma
entity Filtrate
entity Urine
entity Solute {name: String}
entity Hormone {name: String}
entity PhysiologicalProcess {name: String}
entity Observation {value: Number?, unit: String?, context: String?, timestamp: DateTime?, provenance: EvidenceRef}
entity EvidenceRef {source: URI, date: DateTime?, method: String?}
3. TYPE-SAFE RELATIONSHIPS
part_of(Organ|AnatomicalStructure, OrganSystem|Organ|AnatomicalStructure)
contains(AnatomicalStructure, AnatomicalStructure)
connected_to(AnatomicalStructure, AnatomicalStructure)
flows_to(Fluid, AnatomicalStructure, AnatomicalStructure)
filters(Kidney|Glomerulus, Plasma, Filtrate)
reabsorbs(NephronSegment, Solute|Water)
secretes(NephronSegment, Solute)
produces(Kidney, Urine)
stores(UrinaryBladder, Urine)
expels(Urethra, Urine)
regulates(Hormone|PhysiologicalProcess, PhysiologicalProcess)
supported_by(Assertion, EvidenceRef)
4. CANONICAL ANATOMICAL GRAPH
UrinarySystem contains Kidney[Left], Kidney[Right], Ureter[Left], Ureter[Right], UrinaryBladder, Urethra.
Kidney contains RenalCortex, RenalMedulla, Nephron, RenalPelvis.
Nephron contains RenalCorpuscle, ProximalTubule, LoopOfHenle, DistalTubule.
RenalCorpuscle contains Glomerulus, BowmansCapsule.
CollectingDuct receives tubular fluid from distal nephron pathways; it is anatomically associated with, but not universally classified as part of, the nephron.
Urine route: collecting ducts -> papillary ducts -> minor calyces -> major calyces -> renal pelvis -> ureter -> urinary bladder -> urethra -> exterior.
Blood route: renal artery -> segmental/interlobar/arcuate/interlobular arteries -> afferent arteriole -> glomerulus -> efferent arteriole -> peritubular capillaries or vasa recta -> renal veins.
5. FUNCTIONAL FLOWS
flow GlomerularFiltration:
input: plasma at glomerular capillaries
mechanism: pressure-dependent passage through glomerular filtration barrier
output: largely cell-free, low-protein ultrafiltrate in Bowmans space
constraint: barrier selectivity varies with molecular size, charge and pathological state
flow TubularReabsorption:
input: tubular fluid, epithelial transport gradients
mechanism: selective movement of water and solutes towards interstitium and blood
output: reclaimed substances; modified tubular fluid
flow TubularSecretion:
input: peritubular blood/interstitium and epithelial transport systems
mechanism: movement of selected solutes into tubular lumen
output: altered tubular fluid composition
flow UrineConcentration:
inputs: corticomedullary osmotic gradient, collecting duct water permeability, vasopressin signalling
outputs: urine of context-dependent osmolality and volume
flow Micturition:
inputs: bladder filling, sensory afferents, spinal and supraspinal control
mechanism: coordinated detrusor contraction and sphincter relaxation
output: urine expelled through urethra
6. REGULATORY RELATIONSHIPS
Renin-angiotensin-aldosterone system influences sodium balance, extracellular fluid volume and arterial pressure.
Vasopressin (ADH) influences collecting duct water permeability through aquaporin trafficking.
Natriuretic peptides influence renal sodium excretion and volume regulation.
Kidneys contribute to acid-base homeostasis through bicarbonate handling and net acid excretion.
Kidneys participate in erythropoietin production and vitamin D activation.
7. FORMAL INFERENCE RULES
RULE R01: IF part_of(x, Kidney) AND part_of(Kidney, UrinarySystem) THEN part_of_transitive(x, UrinarySystem).
RULE R02: IF instance_of(x, Glomerulus) THEN anatomical_role(x, FiltrationSite).
RULE R03: IF instance_of(x, UrinaryBladder) THEN functional_role(x, TemporaryUrineStorage).
RULE R04: IF flows_to(Urine, Ureter, UrinaryBladder) THEN pathway_stage(Ureter, PreBladderTransport).
RULE R05: IF observed(eGFR, low) THEN flag(PossibleReducedFiltration) ONLY; DO NOT infer chronic kidney disease without duration and clinical context.
RULE R06: IF observed(urine_output, low) THEN flag(PossibleOliguria) ONLY when time, body size and relevant clinical context are supplied.
RULE R07: IF evidence_missing(assertion) THEN confidence(assertion, Unverified).
RULE R08: IF species_unspecified(assertion) THEN restrict_scope(assertion, ReferenceMammalianModel).
8. INVARIANTS AND VALIDATION
- Left and right kidneys are separate instances; anatomical variation must be representable.
- A nephron and a collecting duct must not be silently treated as identical.
- Urine, filtrate, plasma and whole blood are distinct fluid types.
- Anatomy, normal physiology, measured findings and clinical diagnosis are distinct assertion categories.
- Pathological and species-specific exceptions must not overwrite baseline definitions.
- Every numeric observation requires a unit, time/context and evidence provenance where available.
- No isolated laboratory observation is sufficient for definitive clinical diagnosis.
9. SEMANTIC_EQUIVALENCE
UrinarySystem ~ RenalAndUrinarySystem [near_equivalent; renal is narrower in some contexts]
Kidney ~ RenalOrgan [exact in anatomical context]
UrinaryBladder ~ Bladder [context_dependent; disambiguate from gallbladder]
Ureter != Urethra
GlomerularFiltrate != FinalUrine
RenalCorpuscle != Nephron
10. CONFIDENCE
confidence_schema: {score: Float[0,1], evidence_grade: Curated|Primary|Secondary|Inferred|Unverified, context: String}
confidence_policy:
curated anatomical definitions: require verified reference before labelling Curated
inferred relations: retain derivation and source confidence
conflicts: preserve competing assertions with evidence and timestamps
unknown: represent explicitly; do not fabricate measurements
11. PROVENANCE
provenance_fields: {assertion_id, source_uri, source_title?, source_date?, extraction_date?, method, author, revision}
source_page_status: not_verified
source_claim_policy: no assertion that this draft reproduces the webpage verbatim
12. FLOW_HASH
algorithm: SHA-256
canonicalisation: UTF-8; Unicode NFC; normalise LF line endings; exclude FLOW_HASH output field; preserve ordered semantic rules
FLOW_HASH: COMPUTE_ON_PUBLICATION
Note: hash value intentionally not fabricated.
13. UPDATE_MODEL
versioning: semantic-versioning
change_events: add_entity | modify_relation | revise_rule | add_evidence | deprecate_term
requirements:
preserve stable identifiers and previous revisions
validate graph typing and invariants after each update
re-evaluate dependent inferences and confidence
regenerate FLOW_HASH after canonical publication
14. AI_CONSUMPTION
formats: plain-text Flow Algebra; convertible to RDF/OWL/JSON-LD with explicit mappings
retrieval_keys: urinary system, kidney, nephron, ureter, bladder, urethra, filtration, reabsorption, secretion, micturition
reasoning_mode: typed, provenance-aware, uncertainty-preserving
safety: educational/scientific knowledge representation only; not autonomous diagnosis or treatment
output_contract: {entity, relation, context, supporting_evidence, confidence, derivation, version}
END FLOW ALGEBRA
Download Code
Copy to Clipboard