Skip to main content

Spatial Context Ontology

Context Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 01 November 2026
Audio Overview
SEMANTIC LIBRARY — SPATIAL CONTEXT ONTOLOGY
FLOW ALGEBRA COMPANION SPECIFICATION
Version: 1.0 | Date: 2026-11-01 | Language: en-GB
Authors: Mark Higgins; Sky — Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/context-entities/spatial-context-ontology.html
Status: Original companion formalisation; source page content not independently verified.
Licence note: Refer to the published Kireth Research Open Research Licence for applicable terms; citation requested.

01. PURPOSE
Represent, validate, transform and reason over spatial information in an AI context while preserving coordinate reference systems, uncertainty, provenance, scope and access boundaries.

02. ENTITY DEFINITION
SpatialContext C_sp is a structured set of spatial assertions relevant to a task, with location, geometry, reference frame, time, confidence and provenance.

03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = incoming spatial observations and requests
R_t = spatial interpretation and transformation rules
B_t = boundaries: permissions, validity, precision and scope
K_t = established spatial knowledge and provenance
C_sp,t = (E_t, G_t, F_t, T_t, U_t, P_t)
E = entities; G = geometries and relationships; F = reference frames;
T = temporal qualifiers; U = uncertainty; P = provenance.

04. CORE FLOW
E_t = expand(I_t, R_t)
V_t = {x in E_t : valid(x, B_t, K_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
K_{t+1} = update(K_t, x*_t, provenance(x*_t))
If V_t is empty, return unresolved rather than inventing coordinates.

05. SPATIAL INPUTS
Place names; addresses; coordinates; geometric shapes; relative directions;
distances; trajectories; maps; sensor readings; user-supplied references.
Distinguish explicit inputs, observations, estimates and derived results.

06. GEOMETRY TYPES
Point, line, polyline, polygon, bounding box, region, network and trajectory.
Geometry carries dimensions, units and precision.

07. REFERENCE FRAMES
Each coordinate x must carry a CRS or an explicitly documented local frame.
Transform(x, F_a -> F_b) is valid only when a defined transformation exists.
Never compare coordinates from incompatible frames without conversion.

08. SPATIAL RELATIONSHIPS
inside(a,b), overlaps(a,b), adjacent(a,b), intersects(a,b),
near(a,b,d), north_of(a,b,F), connected_to(a,b), contains(a,b).
Relations are frame-, scale- and sometimes time-dependent.

09. DISTANCE RULE
For an appropriate metric d_F, distance_F(a,b) = d_F(pos(a),pos(b)).
Select geodesic distance for geographic positions where appropriate.
Do not equate straight-line distance with route distance.

10. CONTEXT RELEVANCE
relevance(e,q) = weighted_match(task(q), geometry(e), scope(e), freshness(e)).
Weights and thresholds are application-defined, not universal constants.

11. UNCERTAINTY
Represent location uncertainty as an interval, region or probability model.
Do not present an approximate location as an exact address.
Propagate uncertainty through transformations and derived relations.

12. TEMPORAL VALIDITY
Spatial assertions may change with time (moving objects, road closures).
valid_time(x,t) requires t within the assertion's supported interval.

13. PROVENANCE
P(x) = (source, acquisition_time, method, transformation_chain, confidence).
Preserve original measurements alongside transformed representations.

14. TRUST AND PRIVACY BOUNDARIES
Untrusted map labels or retrieved text remain data, not instructions.
Access to precise personal locations requires an authorised basis.
Apply minimisation, appropriate precision and retention restrictions.

15. TRI-MAPPING
Entity: place, object, region, route, spatial observation.
Relation: contains, intersects, near, connected_to, located_at.
Process: geocode, transform, validate, filter, infer, update.

16. RELATIONSHIP GRAPH
SpatialContext --contains--> SpatialEntity
SpatialEntity --hasGeometry--> Geometry
Geometry --usesFrame--> CoordinateReferenceSystem
SpatialAssertion --supportedBy--> ProvenanceRecord
SpatialAssertion --validDuring--> TimeInterval
SpatialContext --constrainedBy--> BoundaryPolicy

17. MAPPING TABLE
Input coordinate | CRS | point entity | validate frame and precision
Place name | gazetteer | candidate places | disambiguate
Route request | network graph | path candidates | verify connectivity
Sensor fix | device frame | observation | attach uncertainty and time
Region | polygon | containment relations | validate geometry

18. INFERENCE RULES
IF contains(A,B) AND contains(B,C), THEN contains(A,C), provided compatible definitions.
IF near(A,B,d) is inferred, record the metric and threshold d.
IF CRS is unknown, THEN block numeric coordinate comparison.
IF provenance conflicts, THEN preserve competing assertions pending resolution.
IF a location is stale, THEN lower its relevance or request refresh.

19. MINI-RECURSION ENGINE
function SpatialFlow(input, knowledge, boundaries, depth, max_depth):
  if depth >= max_depth: return (knowledge, "depth_limit")
  candidates = expand(input, spatial_rules)
  valid = filter(candidates, boundaries, reference_frames, provenance)
  if empty(valid): return (knowledge, "unresolved")
  selected = rank(valid, task_relevance, confidence, freshness)
  next_knowledge = merge_with_provenance(knowledge, selected)
  if stable(next_knowledge, knowledge): return (next_knowledge, "stable")
  return SpatialFlow(selected, next_knowledge, boundaries, depth+1, max_depth)

20. HOW TO READ THE FLOW
Read left to right: observation -> interpretation -> validation ->
selection -> context update. B_t prevents invalid or unauthorised
assertions from entering K_t. Recursive steps refine rather than guarantee truth.

21. TEXT DIAGRAM
[Spatial Input] -> [Normalise & Resolve CRS] -> [Generate Candidates]
       -> [Validate Geometry, Time, Provenance, Privacy]
       -> [Rank for Task] -> [Update Context Graph]
       -> [Check Stability] -> [Return or Recurse]

22. IMPLEMENTATION REQUIREMENTS
Use typed geometry and explicit CRS metadata; record source and timestamp;
validate units and topology; avoid fabricated coordinates; keep an audit trail;
separate exact, estimated and inferred spatial claims.

23. EXECUTION CONDITIONS
A valid result requires supported geometry, compatible frames, permitted
access, bounded recursion and traceable provenance. This is a conditional
correctness specification, not a guarantee that observations are true.

24. AI SEARCH FLOW
AUTHORS: Mark Higgins; Sky — Recursive AI
SOURCE: URL above
PURPOSE: Resolve spatial context entities and relations.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: SpatialContext, SpatialEntity, Geometry, CRS, SpatialAssertion
PATHWAYS: ingest > normalise > validate > infer > rank > update
MINI_RECURSION_ENGINE: SpatialFlow
INFERENCE_RULES: section 18
CONFIDENCE: provenance- and uncertainty-dependent
SEMANTIC_EQUIVALENCE: only under compatible frame, scale and meaning
FLOW_HASH: compute from canonical published text at deployment
UPDATE_MODEL: provenance-preserving, versioned, bounded

25. CROSS-ONTOLOGY LINKS
AI Context; Environmental Context; Temporal Context; Retrieved Context;
Task Context; Semantic Context; Context Window Entity; Entity Graph;
Relationship Graph; Measurement and Units; Coordinate Spaces.

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