Skip to main content

Knowledge Subgraph Ontology

Knowledge Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 02 November 2026
Audio Overview
KNOWLEDGE SUBGRAPH ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Knowledge Entities
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/knowledge-entities/knowledge-subgraph-ontology.html
AUTHORS: Mark Anthony Higgins — Sky Recursive AI
SOURCE DATE: 11 October 2025 | Revised 29 July 2026
COMPANION FORMALISATION: This file models the ontology concept; the page's full hidden code is not available in the retrieved HTML.

01. PURPOSE
Represent a knowledge subgraph as an identifiable, bounded, provenance-aware portion of a knowledge graph, supporting retrieval, reasoning, updates and validation.

02. ENTITY DEFINITION
KnowledgeSubgraph SG = (id, V_s, E_s, G, B, P, M, T, C)
id: stable subgraph identifier
V_s: selected knowledge nodes
E_s: selected knowledge edges
G: parent knowledge graph
B: selection/boundary policy
P: provenance metadata
M: semantic metadata
T: version and temporal metadata
C: constraints and confidence metadata

03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = candidate nodes, edges, query and context
R_t = graph relations, inference and membership rules
B_t = boundary, access, scope and consistency constraints
K_t = accepted subgraph knowledge and provenance

04. FORMAL FLOW
Candidates_t = Expand(I_t, R_t)
V_t = {v in Candidates_t.nodes | AcceptNode(v, B_t)}
E_t = {e=(u,p,v) in Candidates_t.edges | u in V_t and v in V_t and AcceptEdge(e,B_t)}
SG_t = Assemble(V_t, E_t, P_t, M_t)
SG*_t = argmax_{SG in ValidCandidates} Score(SG | I_t,R_t,B_t,K_t)
K_(t+1) = Update(K_t, SG*_t, Evidence_t)

05. GRAPH MEMBERSHIP
V_s subseteq V_G
E_s subseteq E_G
For each e=(u,p,v) in E_s: u in V_s and v in V_s.
An external reference is recorded as a boundary link, not silently included as an internal edge.

06. SUBGRAPH SELECTION
SelectByEntity(seed, depth, predicates, constraints)
SelectByQuery(pattern, filters)
SelectByProvenance(source, confidence)
SelectByTime(valid_from, valid_to)
Selection must state whether it is induced, edge-selected or query-derived.

07. BOUNDARY RULES
B = (allowed_types, allowed_relations, depth_limit, time_window, access_policy, confidence_floor)
Reject candidates that violate B.
Retain unresolved boundary links with explicit status.

08. RELATIONSHIP SEMANTICS
ContainsNode(SG,v)
ContainsEdge(SG,e)
SubgraphOf(SG,G)
DerivedFrom(SG,source)
Overlaps(SG1,SG2)
ConnectedTo(SG1,SG2,edge)

09. INFERENCE RULES
IF ContainsEdge(SG,(u,p,v)) THEN ContainsNode(SG,u) AND ContainsNode(SG,v).
IF SubgraphOf(SG,G) AND ContainsNode(SG,v) THEN ContainsNode(G,v).
IF SubgraphOf(SG,G) AND ContainsEdge(SG,e) THEN ContainsEdge(G,e).
IF provenance is missing THEN Flag(SG,provenance_incomplete).
IF conflicting assertions occur THEN PreserveConflictWithSources(SG).

10. RECURSIVE ENGINE
Seed_0 = ResolveSeed(I_t)
Frontier_0 = Seed_0
Frontier_(n+1) = Neighbours(Frontier_n,R_t) minus Visited_n
Visited_(n+1) = Visited_n union Filter(Frontier_(n+1),B_t)
Stop when Frontier is empty, depth limit is reached, or resource budget is exhausted.
Cycle detection prevents infinite traversal.

11. TRI-MAPPING
Entity map: knowledge node -> canonical entity identity.
Relation map: knowledge edge -> typed predicate and direction.
Context map: provenance, time, scope and boundary -> interpretation constraints.

12. MAPPING TABLE
INPUT                    OPERATION                OUTPUT
Seed entity              Resolve identity         Canonical node
Graph edge               Validate endpoints       Accepted edge
Boundary policy          Filter candidate         In-scope element
Evidence reference       Attach provenance        Traceable assertion
Graph query              Traverse/filter          Knowledge subgraph
Update event             Revalidate/version       Revised subgraph

13. KNOWLEDGE INTEGRITY
Preserve node and edge identifiers.
Do not convert inferred statements into observed facts.
Keep contradictory claims distinct with their sources.
Enforce referential integrity and access controls.

14. PROVENANCE
Each accepted assertion should record source identifier, extraction method, observed or inferred status, timestamp and confidence when available.
Unknown provenance must be represented as unknown, not fabricated.

15. CONFIDENCE
Confidence(SG) is an assessment based on evidence coverage, provenance quality, consistency and boundary completeness; it is not automatically the average confidence of constituent edges.

16. AI SEARCH FLOW
QUERY -> ENTITY RESOLUTION -> GRAPH EXPANSION -> BOUNDARY FILTER -> SUBGRAPH ASSEMBLY -> EVIDENCE VALIDATION -> RANK -> EXPLAIN -> UPDATE.
Return matched nodes, edges, supporting sources, exclusions and uncertainty.

17. SEMANTIC EQUIVALENCE
Two subgraphs are equivalent only relative to an explicit equivalence criterion (e.g. graph isomorphism preserving node types, predicates and provenance). Similar text labels alone do not establish equivalence.

18. VALIDATION CONDITIONS
Unique subgraph ID; valid parent graph; endpoints present for every internal edge; declared boundary policy; traceable provenance where available; no unauthorised elements; consistent version metadata.

19. EXECUTION CONDITIONS
Execution succeeds when graph access is available, boundary constraints are satisfiable, graph membership checks pass and results include uncertainty flags. Otherwise return a typed partial-result or failure status, never an unsupported guarantee.

20. UPDATE MODEL
Delta_t = (added_nodes, removed_nodes, added_edges, removed_edges, metadata_changes)
SG_(t+1) = Validate(ApplyDelta(SG_t,Delta_t),B_(t+1))
Retain revision history and provenance for changes.

21. MINI EXAMPLE
G contains (A, relatedTo, B), (B, supports, C), (C, sourcedFrom, D).
Seed=A, depth=1, permitted predicate=relatedTo.
Result: V_s={A,B}; E_s={(A,relatedTo,B)}.
The edges B->C and C->D are outside the selected boundary.

22. HOW TO READ
S_t describes reasoning state. Expand generates candidates. B filters candidates. Assemble forms the subgraph. Score ranks valid alternatives. Update incorporates validated evidence. The process is recursive but bounded.

23. IMPLEMENTATION NOTES
Store node IDs, edge IDs, predicate types, parent graph ID, boundary policy, provenance and version. Index entity identities and predicates for efficient retrieval. Treat inferred links as separately typed assertions.

24. CITATION AND LICENCE
Source ontology: Mark Anthony Higgins — Sky Recursive AI, Kireth Research.
Use subject to the applicable Open Research Licence and citation requirements stated by the publisher.

25. STATUS
Companion formalisation prepared 2 November 2026. This is not a verbatim copy of inaccessible embedded source code.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ