Skip to main content

Knowledge Graph Update Ontology

Ontology and Knowledge-Graph Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 05 November 2026
Audio Overview
KNOWLEDGE GRAPH UPDATE ONTOLOGY — FLOW ALGEBRA
Semantic Library | Ontology and Knowledge-Graph Entities
Authors: Mark Anthony Higgins — Sky, Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ontology-and-knowledge-graph-entities/knowledge-graph-update-ontology.html
Formalisation date: 05 November 2026
Status: Original interpretative formalisation; not a verbatim extraction of hidden site code.

1. PURPOSE
Represent a knowledge-graph update as a bounded, validated, auditable transition from graph state G_t to G_(t+1). Support insertion, deletion, correction, merge, versioning, provenance and rollback without silently violating ontology constraints.

2. ENTITY DEFINITIONS
KnowledgeGraphUpdate U: identified proposal for changing a graph.
Graph G=(V,E,T,M): vertices, edges, RDF-like triples and metadata.
UpdateOperation o: ADD, REMOVE, REPLACE, MERGE, or ANNOTATE.
UpdateSet Delta=(Delta_plus,Delta_minus): assertions to add/remove.
UpdateTarget: named graph, node, edge, triple or property.
UpdatePrecondition: required graph version, permissions and facts.
UpdateConstraint: schema, identity, cardinality and integrity requirements.
UpdateEvidence: provenance and source justification for the change.
UpdateResult: applied, rejected, conflicted, rolled back or pending.
UpdateAudit: immutable record of proposal, validation and outcome.

3. FORMAL STATE MODEL
S_t=(I_t,R_t,B_t,K_t)
I_t = update request, target graph, proposed delta and evidence.
R_t = update and inference rules, conflict-resolution policy.
B_t = authorisation, ontology constraints, transaction boundaries.
K_t = current graph, versions, provenance, audit history.

U=(id,target,operations,expected_version,actor,evidence,time)
G_t=(V_t,E_t,T_t,M_t)
Delta_minus subseteq T_t
Delta_plus subseteq T_candidate
G_candidate = (G_t minus Delta_minus) union Delta_plus
The same approach applies to nodes and edges with referential-integrity checks.

4. FLOW ALGEBRA
E_t = expand(I_t,R_t)
C_t = {u in E_t : authorised(u,B_t) AND preconditions(u,K_t)}
V_t = {u in C_t : schema_valid(apply(G_t,u)) AND integrity_valid(apply(G_t,u))}
u* = argmax_(u in V_t) P(u | I_t,R_t,B_t,K_t)
G_(t+1) = commit(apply(G_t,u*)) if V_t nonempty and transaction succeeds
G_(t+1) = G_t otherwise
I_(t+1) = update(I_t, result(u*), audit(u*), G_(t+1))

P is a policy-defined ranking score, not necessarily a calibrated probability.
No update is executed merely because it is highest ranked: every required validation and authorisation gate must pass.

5. UPDATE TRANSITION RULES
R1 ADD(s,p,o): insert triple only when identifiers and relation typing are valid.
R2 REMOVE(s,p,o): delete only if present and permitted; apply orphan checks.
R3 REPLACE(old,new): atomically remove old and add new, or do neither.
R4 MERGE(a,b): unify only after identity evidence, collision and provenance checks.
R5 ANNOTATE(x,m): attach provenance, timestamp or confidence metadata.
R6 CONFLICT: reject or resolve explicitly; never silently overwrite concurrent edits.
R7 ROLLBACK: restore the prior committed snapshot or execute verified compensating operations.
R8 AUDIT: record actor, time, input hash, validation, previous/new version and result.
R9 INFERENCE: re-evaluate derived statements affected by changed base facts.
R10 IDEMPOTENCE: repeated requests with the same idempotency key must not duplicate effects.

6. TRI-MAPPING
Semantic layer: update intent -> affected entity/relation -> meaning change.
Structural layer: graph node/edge/triple -> schema constraints -> versioned delta.
Execution layer: authenticate -> compare version -> validate -> transact -> audit.
Mapping T(U) = (meaning(U), structure(U), execution(U)).
Consistency condition: the three projections describe the same committed change.

7. RECURSIVE RESOLUTION ENGINE
function ResolveUpdate(G,U,depth,visited):
  if depth > max_depth: return REJECTED_BOUNDARY
  if U.id in visited: return REJECTED_CYCLE
  validate identity, actor, version, provenance and constraints
  compute affected neighbours and dependent inferences
  for each affected dependency d:
    ResolveDependency(d,depth+1,visited union {U.id})
  construct candidate graph
  validate candidate, commit atomically, record audit
  return updated graph and outcome

The recursion is bounded; dependency exploration is not permission to change unrelated facts.

8. FLOW DIAGRAM
[Update Request]
      |
      v
[Identify Target and Delta]
      |
      v
[Authenticate + Version Check]
      |
      v
[Expand Rules and Dependencies]
      |
      v
[Validate Schema, Integrity, Evidence]
      |
      +---- invalid/conflict ---> [Reject + Audit]
      |
      v
[Atomic Commit] ---> [Recompute Derived Facts]
      |                         |
      +-------------------------+
      v
[Version + Provenance + Audit]
      |
      v
[Update Result / Next State]

9. RELATIONSHIP MAPPING TABLE
Update -> modifies -> Knowledge Graph
Update -> targets -> Node / Edge / Triple
Update -> contains -> Update Operation
Update -> constrainedBy -> Ontology Constraint
Update -> justifiedBy -> Evidence / Provenance
Update -> checkedAgainst -> Graph Schema
Update -> produces -> Graph Version
Update -> recordedIn -> Audit Log
Update -> mayInvalidate -> Derived Assertion
Update -> returns -> Update Result

10. CONDITIONAL EXECUTION GUARANTEE
Given a consistent initial graph, correct validators, serialisable or equivalent atomic commit, enforced permissions and version checks, a successful update preserves the stated constraints and yields an auditable new version. This is a conditional system property, not a guarantee against defective implementations, false evidence or incomplete ontology rules.

11. AI SEARCH FLOW
FLOW_NAME: KnowledgeGraphUpdate
FLOW_VERSION: 1.0
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ontology-and-knowledge-graph-entities/knowledge-graph-update-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ontology-and-knowledge-graph-entities/knowledge-graph-update-ontology.html
PURPOSE: Resolve and validate graph mutations with provenance and rollback.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: Update, Graph, Node, Edge, Triple, Delta, Constraint, Evidence, Version, Audit, Result
PATHWAYS: Request > Authorise > Expand > Validate > Commit > Audit > Report
MINI_RECURSION_ENGINE: Traverse affected dependencies with cycle detection and depth bound.
INFERENCE_RULES: R1-R10 above.
CONFIDENCE: Derived from evidence quality and validation; not an execution substitute.
SEMANTIC_EQUIVALENCE: Equivalent requests require equivalent graph effects under identical state and policy.
FLOW_HASH: Calculate from canonical serialisation on publication; not asserted here.
UPDATE_MODEL: Optimistic version checks, atomic transaction, provenance-preserving append-only audit.

12. EXAMPLE
Initial: (ModelA, deployedIn, Environment1)
Proposal: replace Environment1 with Environment2.
Precondition: current graph version = 12; actor has edit permission.
Validate: Environment2 exists and deployment relation permits it.
Commit: remove old triple and add new triple in one transaction.
Result: graph version 13, provenance retained, audit record created.
Failure: graph stays at version 12; conflict or validation error recorded.

13. NOTES
This document formalises the topic of the public page. The page's full downloadable/embedded specification was not exposed in the accessible HTML, so terminology and rules here are an original companion interpretation. Distinguish asserted graph facts from inferred facts and preserve their provenance.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ