KNOWLEDGE BASE ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | AI Entities | Knowledge Entities
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/knowledge-entities/knowledge-base-ontology-2.html
AUTHORS: Mark Anthony Higgins — Sky Recursive AI
SOURCE COPYRIGHT: © Mark Anthony Higgins 11 October 2025; revised 29 July 2026
DOCUMENT TYPE: Companion formalisation (not a verbatim extraction of hidden page specifications)
VERSION: 1.0 | 2 November 2026 | LANGUAGE: en-GB
01. PURPOSE
Model a knowledge base as a governed collection of identifiable knowledge records, assertions, rules, constraints, sources and relationships. Support retrieval, inference, provenance, revision and conflict handling without equating stored assertions with verified truth.
02. ENTITIES
KB: KnowledgeBase; KI: KnowledgeItem; KU: KnowledgeUnit; KF: KnowledgeFact; KC: KnowledgeClaim; KR: KnowledgeRule; KCT: KnowledgeConstraint; KS: KnowledgeSource; KREC: KnowledgeRecord; KD: KnowledgeDocument; REL: KnowledgeRelation; REV: Revision; QUERY: Query; EVID: Evidence.
03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = incoming assertions, queries and source updates
R_t = typed relationships and inference rules
B_t = boundaries: scope, permissions, validation and provenance requirements
K_t = versioned knowledge base contents, indexes and derivations
Each record k = (id, type, proposition, source, evidence, status, confidence, valid_time, recorded_time, version).
04. FORMAL FLOW
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t)}
Y_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t), where a ranking model is available.
K_(t+1) = update(K_t, Y_t, provenance, revision)
IMPORTANT: argmax selects a preferred candidate, not a guarantee of truth. When ranking is unavailable, return all valid candidates with explicit uncertainty.
05. IMPLEMENTS
Ingest -> normalise -> identify -> classify -> link -> validate -> reconcile -> index -> retrieve -> infer -> cite -> revise -> audit.
06. HOW TO READ
Each arrow denotes a required transformation or check. A rejected assertion remains auditable, but must not silently become an accepted fact. Every inferred conclusion retains links to premises and rule identifiers.
07. KNOWLEDGE BASE BOUNDARY
KB = (scope, schema, records, relations, policies, indexes, history)
Admit(k, KB) iff schema_valid(k) AND authorised(k) AND provenance_acceptable(k) AND scope_compatible(k).
Admission does not imply verification of the proposition.
08. RELATIONSHIP GRAPH
contains(KB, KREC); expresses(KREC, KC); supported_by(KC, EVID); sourced_from(EVID, KS); constrained_by(KC, KCT); derived_by(KC, KR); revises(REV, KREC); references(KD, KREC).
Edges must carry stable identifiers, direction and, where relevant, validity intervals.
09. INFERENCE RULES
R1: accepted(p) AND rule(p -> q) AND permitted(rule) => candidate(q).
R2: candidate(q) AND independently_supported(q) => eligible_for_verification(q).
R3: contradicts(p,q) => flag_conflict(p,q); do not automatically delete either.
R4: source_revoked(s) => re-evaluate all records dependent_on(s).
R5: expired(k) => exclude k from current-valid answers unless historical context requested.
R6: inferred(q) => attach premise IDs, rule ID and inference timestamp.
10. RECURSIVE ENGINE
F(K_t, I_t) = validate(reconcile(infer(retrieve(ingest(K_t, I_t)))))
K_(t+1) = commit(F(K_t, I_t))
Stop when fixed_point(K_(t+1), K_t), a depth limit is reached, or the computation budget is exhausted. Detect cycles and prevent repeated derivations.
11. TRI-MAPPING
ENTITY: knowledge record with stable identity and type.
RELATION: typed provenance, containment, support, contradiction or derivation edge.
BOUNDARY: admissibility, authorisation, temporal validity and epistemic status.
Tri-map: (Entity, Relation, Boundary) -> validated graph operation.
12. MAPPING TABLE
Input assertion | KnowledgeClaim | normalise and attach source
Evidence | KnowledgeSource / Evidence | record provenance
Verified proposition | KnowledgeFact | retain verification criteria
Conditional implication | KnowledgeRule | check premises and scope
Restriction | KnowledgeConstraint | enforce boundary
Stored unit | KnowledgeRecord | assign identity and revision
Collection | KnowledgeBase | index and govern
Query | Query | retrieve and explain
13. QUERY PATHWAY
Q -> parse intent -> check access -> retrieve candidate records -> filter temporal/scope validity -> traverse graph -> apply permitted rules -> rank or enumerate -> return answer + citations + uncertainty.
14. CONFIDENCE
confidence(k) in [0,1] is a calibrated estimate only if calibration evidence exists. Otherwise label confidence as uncalibrated/unknown. Do not add confidence values as if independent evidence were guaranteed.
15. CONFLICT HANDLING
If p and NOT p coexist: mark contested, preserve both provenance chains, inspect scope and time, and request evidence or return uncertainty. No automatic truth selection from recency or popularity alone.
16. VALIDATION CONDITIONS
V1 stable identifiers; V2 typed schema; V3 source traceability; V4 permissions; V5 rule consistency; V6 revision history; V7 no unsupported fact promotion; V8 bounded recursion; V9 temporal coherence; V10 reproducible query explanation.
17. AI SEARCH FLOW
AUTHORS: Mark Anthony Higgins — Sky Recursive AI
SOURCE: URL above
PURPOSE: explain and traverse Knowledge Base Ontology
STATE_MODEL: S=(I,R,B,K)
ENTITIES: KB, KI, KU, KF, KC, KR, KCT, KS, KREC, KD, REL
PATHWAYS: source -> record -> claim -> evidence -> rule -> answer
MINI_RECURSION_ENGINE: retrieve -> validate -> infer -> revalidate -> stop
INFERENCE_RULES: R1-R6
CONFIDENCE: evidence-dependent, not automatically verified
SEMANTIC_EQUIVALENCE: aliases may match only within declared scope
UPDATE_MODEL: versioned, auditable, reversible where supported
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/knowledge-entities/knowledge-base-ontology-2.html
FLOW_HASH: calculate SHA-256 on publication; not asserted here
18. EXECUTION CONDITIONS
Executable only when the host supplies a schema, storage, permissions, provenance checks, inference engine and explicit rule semantics. This text defines a formal model; it does not by itself execute or guarantee correctness.
19. UPDATE MODEL
For each change: validate -> assign new revision -> preserve prior state -> update dependency graph -> invalidate affected derived results -> rebuild relevant indexes -> log actor, time and reason.
20. EXECUTION GUARANTEE / LIMITS
Guarantee sought: every committed operation passes declared checks and every returned derivation is traceable under the specified implementation. No guarantee of factual truth, completeness, decidability or termination beyond configured bounds.
END OF FLOW ALGEBRA
Download Code
Copy to Clipboard