Skip to main content

Relationship Embedding Ontology

Embedding Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 02 November 2026
Audio Overview
SEMANTIC LIBRARY — RELATIONSHIP EMBEDDING ONTOLOGY
FLOW ALGEBRA COMPANION | VERSION 1.0 | 2026-11-02
Authors: Mark Anthony Higgins — Sky, Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/embedding-entities/relationship-embedding-ontology.html
Status: Independently authored companion; source page content not verified.
Licence: Refer to the applicable Kireth Research Open Research Licence; citation requested.

01. PURPOSE AND SCOPE
Represent typed relationships between entities as learned vectors, preserving relation identity, direction, context, provenance and uncertainty. Distinguish a relation type from an individual relation assertion and from its vector embedding.

02. ENTITY AND STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: available observations, triples and contextual inputs.
R_t: relation schemas, transformations and inference rules.
B_t: validity, privacy, ontology and execution boundaries.
K_t: graph knowledge, learned embeddings, confidence and provenance.
Entity e in E; relation type r in R; triple (h,r,t) in T subset E x R x E.
Embeddings: z_e in real^d; z_r in real^k (d and k may differ).

03. CORE FLOW ALGEBRA
Expand: E_t = expand(I_t,R_t).
Validate: V_t = {x in E_t : satisfies(x,B_t)}.
Select: x*_t = argmax_(x in V_t) P(x | I_t,R_t,B_t,K_t).
Update: I_(t+1) = update(I_t,x*_t,feedback_t).
Relation embedding: z_r = f_theta(r, contexts(r), graph-neighbourhood(r)).
Triple score: s_theta(h,r,t) = g_theta(z_h,z_r,z_t).
Example translation-family score: s = -||z_h + z_r - z_t||; this is a model example, not a universal identity.

04. IMPLEMENTS
Input triples, relation labels and source evidence -> canonicalise entity/relation IDs -> construct training and validation splits -> encode relation representations -> score candidate triples -> calibrate or threshold -> emit ranked, attributed relation hypotheses.

05. HOW TO READ
h: head entity; r: directed predicate; t: tail entity.
z_r: learned relation vector, not the relation itself.
s_theta: model-dependent compatibility score, not automatically a probability.
B_t: constraints that exclude invalid, unauthorised or unsupported results.

06. TRI-MAPPING
Symbolic: (h,r,t), domain(r), range(r), inverse(r), constraints(r).
Vector: (z_h,z_r,z_t), distance/similarity, learned compatibility.
Operational: retrieve -> score -> verify -> explain -> update.
Mapping must preserve identifiers and distinguish predictions from verified facts.

07. RELATIONSHIP GRAPH
Nodes: entities, relation types, evidence records, embedding versions.
Edges: hasRelation, hasDomain, hasRange, inverseOf, supportedBy, encodedAs, versionOf.
A directed relation is not automatically symmetric; inverse edges require an explicit schema or evidence.

08. MAPPING TABLE
Source triple -> canonical (h,r,t) -> relation type r.
Relation type r -> encoder f_theta -> vector z_r.
Candidate triple -> score g_theta -> ranked hypothesis.
Evidence record -> provenance link -> traceable output.
Validation result -> boundary decision -> accepted/rejected/unknown.

09. MINI RECURSION ENGINE
For iteration n:
  gather new validated triples and feedback;
  check schema and provenance;
  refresh embeddings only when update criteria are met;
  evaluate on held-out triples and relation types;
  compare against previous model;
  accept update if constraints and quality gates pass;
  otherwise retain prior version and record failure.
Stop at convergence, budget limit, or safety boundary.

10. INFERENCE RULES
IF domain/range mismatch THEN reject or flag candidate.
IF relation is declared symmetric THEN (a,r,b) may entail (b,r,a), subject to ontology semantics.
IF inverse(r)=q THEN (a,r,b) may entail (b,q,a), subject to ontology semantics.
IF similarity is high THEN propose candidate; do not assert truth without validation.
IF provenance is missing THEN label output unverified.
IF evidence conflicts THEN preserve competing assertions and uncertainty.

11. CONFIDENCE AND UNCERTAINTY
Raw embedding scores are not calibrated probabilities.
Confidence requires a declared calibration method and evaluation dataset.
Track out-of-distribution entities, rare relations, graph leakage and temporal drift.
Report precision/recall or ranking metrics appropriate to the evaluation task.

12. EXECUTION GUARANTEES AND LIMITS
Guarantees apply to the procedure, not to the truth of predictions: preserve identifiers, enforce declared constraints, log model/version/provenance and avoid silent assertion of inferred triples.
No guarantee of semantic correctness, completeness, unbiasedness or convergence is implied.

13. AI SEARCH FLOW
FLOW_ID: relationship-embedding-ontology-v1
PURPOSE: relation-aware graph retrieval and candidate ranking.
ENTITIES: entity, relation, triple, relation-embedding, graph, evidence, confidence.
INPUT: query entities, predicate constraints, graph snapshot, encoder version.
PATHWAYS: normalise -> embed -> retrieve -> rank -> validate -> attribute -> respond.
MINI_RECURSION_ENGINE: feedback -> evaluate -> controlled update.
INFERENCE_RULES: typed relation checks, inverse/symmetry only when declared, provenance validation.
CONFIDENCE: calibrated where available; otherwise score labelled uncalibrated.
SEMANTIC_EQUIVALENCE: same meaning only under explicit ontology mapping; vector proximity alone insufficient.
FLOW_HASH: calculate from published canonical file bytes; not preassigned.
UPDATE_MODEL: versioned, reversible, evaluation-gated.
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/embedding-entities/relationship-embedding-ontology.html

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