Skip to main content

AI Entity Retrieval Ontology

AI Semantic Library Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 05 November 2026
Audio Overview
AI ENTITY RETRIEVAL — FLOW ALGEBRA
Semantic Library | AI Semantic Library Entities
Authors: Mark Anthony Higgins — Sky Recursive AI
Date: 05 November 2026
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-semantic-library-entities/ai-entity-retrieval-ontology.html
Status: Companion formalisation; publicly visible page does not expose its complete embedded formal specification.

01. PURPOSE
Resolve a retrieval request into a bounded, ranked, provenance-linked set of canonical semantic-library entities without conflating retrieval with truth verification.

02. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: current retrieval input, query, filters, and conversation context.
R_t: retrieval, equivalence, graph traversal, and ranking rules.
B_t: authorisation, domain, resource, temporal, and safety boundaries.
K_t: indexed entities, canonical IDs, metadata, provenance, and evidence.
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, feedback_t)
The argmax chooses a ranked candidate, not an assertion of verified truth.

03. ENTITY SCHEMA
RetrievalRequest := (request_id, query, requester, context, filters, top_k, timestamp)
RetrievalCandidate := (canonical_id, version_id, matched_fields, score, provenance_ids)
RetrievalResult := (request_id, candidates, exclusions, status, trace_id)
RetrievalTrace := (query_normalisation, index_version, rule_version, traversed_edges, decisions)
RetrievalEvidence := (source_id, observed_at, validity_interval, verification_status)

04. RELATIONSHIPS
RetrievalRequest --targets--> EntityClass
RetrievalRequest --uses--> RetrievalContext
RetrievalCandidate --resolves_to--> CanonicalAIEntity
RetrievalCandidate --supported_by--> RetrievalEvidence
RetrievalResult --contains--> RetrievalCandidate
RetrievalResult --generated_from--> RetrievalRequest
RetrievalTrace --documents--> RetrievalResult
CanonicalAIEntity --has_version--> EntityVersion
CanonicalAIEntity --related_to--> EntityRelationship

05. FORMAL FLOW
F0 Receive(request) -> validate request structure.
F1 Normalise(query) -> preserve original wording and produce semantic representation.
F2 Resolve(filters, context) -> permitted domains, types, versions, and times.
F3 RetrieveLexical(query, K_t) -> lexical candidate set L.
F4 RetrieveSemantic(query, K_t) -> semantic candidate set M.
F5 TraverseGraph(seeds, R_t, B_t) -> bounded graph candidate set G.
F6 Merge(L, M, G) -> candidates with canonical-ID deduplication.
F7 VerifyIdentity(candidates) -> distinguish aliases from different entities.
F8 Filter(candidates, B_t) -> V_t and explicit exclusion reasons.
F9 Score(V_t) -> relevance, provenance quality, temporal validity, and confidence.
F10 Rank(V_t) -> deterministic order using stable tie-breaks.
F11 Select(top_k) -> result set with source and version identifiers.
F12 Validate(result) -> schema, boundaries, provenance, and trace completeness.
F13 Emit(result, trace) -> retrieval output or explicit no-match/error state.
F14 IncorporateFeedback(feedback) -> update retrieval context under authorised rules.

06. RANKING AND UNCERTAINTY
score(x,q) = w_l*lexical(x,q) + w_s*semantic(x,q) + w_g*graph(x,q)
           + w_p*provenance(x) + w_t*temporal_validity(x)
Weights must be declared, non-negative, and normalised for a comparable score.
Relevance score != factual truth probability.
Confidence must identify its calibration method and evaluation dataset when available.
Unknown provenance, stale versions, and ambiguous identities are flagged, not silently repaired.

07. INFERENCE RULES
IF canonical_id matches AND identity evidence passes THEN merge duplicate retrieval hits.
IF names match BUT canonical identity differs THEN preserve separate candidates.
IF validity period excludes requested time THEN exclude or mark historical.
IF requester lacks permission THEN omit restricted content and record non-sensitive exclusion.
IF evidence conflicts THEN retain competing records and flag unresolved contradiction.
IF no candidate survives boundaries THEN return NO_MATCH, not a fabricated entity.
IF index freshness cannot be established THEN report freshness UNKNOWN.
IF candidate lacks a verifiable source THEN mark provenance INCOMPLETE.

08. RECURSIVE RETRIEVAL
Let C_0 = direct candidates.
C_(n+1) = C_n union permitted_neighbours(C_n, R_t, B_t).
Stop when C_(n+1) = C_n, depth limit reached, budget exhausted, or quality threshold met.
Maintain visited canonical IDs and edge IDs to prevent cycles.
Recursion must not expand outside B_t or override explicit user filters.

09. TRI-MAPPING
Entity map: request -> candidate -> canonical entity -> version -> evidence.
Relationship map: matches / resolves_to / supported_by / related_to.
Execution map: validate -> retrieve -> resolve -> filter -> rank -> verify -> emit.
Each output candidate maps back to a source, rule, and retrieval trace.

10. EXECUTION GUARANTEE (CONDITIONAL)
Given a finite indexed corpus, terminating retrieval operators, bounded traversal,
valid inputs, and enforced permissions, the flow terminates with a result or
explicit failure state. It does NOT guarantee completeness, correctness of
external sources, or successful discovery of every relevant entity.

11. VALIDATION INVARIANTS
V1 Every returned candidate has a canonical identifier or is labelled unresolved.
V2 No result violates the requester's access boundaries.
V3 Every ranking decision is reproducible from recorded rule/index versions.
V4 Result ordering is deterministic for identical inputs and fixed system state.
V5 Missing evidence and unresolved ambiguity remain visible.
V6 Temporal and version filters are applied before final emission.
V7 Recursion has a finite budget and cycle detection.
V8 Feedback does not silently overwrite immutable source records.

12. EXAMPLE EXECUTION
Input: retrieve canonical AI entity for 'entity provenance', top_k=3.
Normalise -> entity provenance.
Search -> lexical, semantic, and graph candidates.
Resolve -> canonical IDs; remove exact duplicate hits.
Filter -> authorised, valid versions.
Rank -> relevance plus provenance and temporal criteria.
Output -> up to three candidates with scores, sources, and trace.
If none found -> NO_MATCH with reason and optional reformulation suggestion.

13. INTEROPERABILITY
Connects to AI Entity Search, Entity Resolution, Entity Identity,
Entity Equivalence, Entity Metadata, Entity Provenance, Entity Evidence,
Entity Confidence, Entity Validation, and Entity Versioning ontologies.

14. LICENCE AND CITATION
Open research companion formalisation; cite the source ontology and authors.
No claim is made that this text reproduces inaccessible embedded source code.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ