Skip to main content

Search Query Ontology

Search and Retrieval Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 02 November 2026
Audio Overview
SEARCH QUERY ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Search and Retrieval Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/search-and-retrieval-entities/search-query-ontology.html
Attribution: Mark Anthony Higgins — Sky Recursive AI
Date: 2026-11-02
Status: Supplementary formalisation; not a verified transcription of the source ontology.

1. PURPOSE
Represent a search query as a structured, context-dependent entity that can be parsed, constrained, transformed, executed, evaluated and refined while preserving its provenance.

2. ENTITY MODEL
Q = (id, raw_text, language, intent, entities, constraints, context, embedding, provenance, timestamp)
A query may contain exact phrases, boolean operators, filters, semantic concepts, temporal and geographic qualifiers, and user-provided context.

3. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: current query and retrieved evidence.
R_t: query interpretation, retrieval and ranking rules.
B_t: permissions, scope, safety, time and resource boundaries.
K_t: known concepts, index metadata, history and provenance.

4. FORMAL FLOW
Q_0 = Capture(user_input)
Q_1 = Normalise(Q_0, language)
Q_2 = Parse(Q_1) -> (intent, entities, operators, filters)
Q_3 = Resolve(Q_2, K_t, context)
Q_4 = Validate(Q_3, B_t)
Candidates_t = Retrieve(Q_4, index, R_t)
Results_t = Rank(Candidates_t, relevance, evidence, constraints)
Output_t = Present(Results_t, citations, uncertainty)
Q_(t+1) = Refine(Q_t, feedback, unmet_intent)

5. HST-ALIGNED TRANSITION
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)
These expressions specify a conceptual selection model, not a calibrated probability guarantee.

6. TRI-MAPPING
Entity graph: SearchQuery -> Intent -> Concept -> SearchResult.
Relationship graph: query HAS_INTENT intent; query HAS_FILTER filter; result MATCHES_QUERY query; result DERIVED_FROM source.
Execution graph: Capture -> Parse -> Resolve -> Validate -> Retrieve -> Rank -> Present -> Refine.

7. MINI RECURSION ENGINE
Initialise Q_0 and iteration budget N.
For t = 0 ... N-1:
  interpret Q_t;
  retrieve and rank evidence;
  test relevance, coverage, provenance and boundary compliance;
  if acceptance criteria met: return results and trace;
  otherwise construct Q_(t+1) using justified reformulation.
Stop on acceptance, no improvement, exhausted budget, or boundary violation.

8. INFERENCE RULES
IF query has an explicit exact-match operator THEN preserve literal matching semantics.
IF query is ambiguous THEN maintain multiple interpretations or request clarification.
IF a filter is mandatory THEN exclude non-conforming results.
IF a retrieved assertion lacks provenance THEN mark it unverified.
IF refinement broadens the query THEN record the changed scope.
IF no relevant evidence is found THEN report insufficiency; do not fabricate results.

9. MAPPING TABLE
Input text | Capture | Raw query entity
Intent phrase | Parse | Intent node
Named concept | Resolve | Entity graph node
Constraint | Validate | Boundary predicate
Candidate document | Retrieve | Result node
Source citation | Trace | Provenance edge
User feedback | Refine | Next query state

10. EXECUTION GUARANTEE — CONDITIONAL
Given a finite index, deterministic operators, valid access rights and bounded recursion, the process terminates and produces either ranked candidates or an explicit no-result/error state. This does not guarantee factual correctness, relevance, completeness or optimality.

11. AI SEARCH FLOW
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/search-and-retrieval-entities/search-query-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/
PURPOSE: Semantic interpretation and controlled execution of search queries.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: SearchQuery, Intent, Filter, Context, Concept, CandidateResult, Evidence, Source, Feedback.
PATHWAYS: Capture > Parse > Resolve > Validate > Retrieve > Rank > Present > Refine.
MINI_RECURSION_ENGINE: Bounded feedback-guided query reformulation.
INFERENCE_RULES: Preserve explicit constraints; distinguish evidence from assumptions; trace transformations.
CONFIDENCE: Based on evidence quality and retrieval diagnostics; not presumed calibrated.
SEMANTIC_EQUIVALENCE: Two queries are equivalent only relative to defined index, filters, interpretation and retrieval semantics.
FLOW_HASH: Generate from canonical UTF-8 content when deployed; no hash asserted here.
UPDATE_MODEL: Version query interpretation and preserve provenance of refinements.

END OF FLOW
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ