Skip to main content

Knowledge Graph Path 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 PATH 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-path-ontology.html
Formalisation date: 05 November 2026
Status: Original interpretative formalisation; not a verbatim extraction of the page's embedded specification.

1. PURPOSE
Represent, validate, traverse, rank and explain directed paths in a knowledge graph while preserving edge semantics, provenance, boundary constraints and uncertainty.

2. ENTITY DEFINITIONS
Graph G=(V,E,L), where V is the set of nodes, E is the set of directed, labelled edges and L maps edges to relation labels.
Node v: uniquely identified graph entity.
Edge e=(u,r,v): a directed assertion from u to v under relation r.
Path p=(v0,e1,v1,...,en,vn), n>=0, with each ei incident from v(i-1) to vi.
Path length len(p)=n; a zero-edge path connects a node to itself.
Walk: nodes or edges may repeat. Trail: edges do not repeat. Simple path: nodes do not repeat.
Path pattern q: required sequence or regular expression of permitted relation types.
Evidence z: source, timestamp and validation status for an edge.

3. FORMAL STATE MODEL
S_t=(I_t,R_t,B_t,K_t)
I_t: current traversal input (start node, optional target, path pattern and query).
R_t: expansion and inference rules.
B_t: boundaries (authorisation, graph scope, depth, cost, time, relation constraints).
K_t: graph facts, schema, provenance, visited states and prior accepted paths.
Working state W_t=(frontier_t,visited_t,candidates_t,errors_t).

4. FLOW ALGEBRA
Expand_t = expand(I_t,R_t,K_t)
Valid_t = {x in Expand_t | conforms(x,B_t) AND supported(x,K_t)}
Selected_t = argmax_{x in Valid_t} P(x | I_t,R_t,B_t,K_t), when Valid_t is nonempty and a ranking is required.
I_(t+1) = update(I_t,Selected_t,K_t)
K_(t+1) = K_t union verified(Selected_t)
If Valid_t is empty, emit NO_VALID_PATH or continue bounded search; do not fabricate a path.

5. PATH FORMATION AND VALIDITY
Extend(p,e) is defined iff terminal(p)=source(e) and admissible(e,B_t).
ValidPath(p,G) iff every node belongs to V and every consecutive edge belongs to E with correct direction and label.
Match(p,q) iff the sequence of relation labels in p satisfies q.
Reachable_G(a,b) iff there exists a finite valid path from a to b.
Concatenate(p1,p2) iff terminal(p1)=start(p2), subject to path-type constraints.
Reverse(p) is not automatically valid: reverse edges must exist or inverse relations must be explicitly licensed by the ontology.

6. INFERENCE RULES
R1: (a,r,b) in E implies a one-edge path a-[r]->b.
R2: ValidPath(p) AND admissible((terminal(p),r,c)) implies a candidate extension.
R3: A candidate is accepted only if its relation types, access policy, depth and evidence requirements hold.
R4: If an ontology declares r transitive, (a,r,b) and (b,r,c) support derived (a,r,c), with derivation provenance; no general transitivity is assumed.
R5: If r has declared inverse s, (a,r,b) supports (b,s,a); otherwise no inverse is inferred.
R6: Conflicting edge assertions are recorded and assessed; conflict does not silently erase either claim.
R7: A discovered path is evidence of graph connectivity, not automatically of real-world causation or truth.

7. RECURSIVE RESOLUTION ENGINE
INPUT: G, start, target?, pattern?, B, max_depth.
frontier := [(start, empty_path)]
visited := empty set of (node, pattern_state, relevant_constraints)
WHILE frontier not empty AND budget remains:
  take a frontier state (v,p)
  IF target/pattern termination conditions satisfied: record p
  IF len(p) >= max_depth: continue
  FOR each authorised outgoing edge e from v:
    IF e satisfies schema, provenance and pattern constraints:
      p2 := Extend(p,e)
      IF state(p2) not already visited (or revisits explicitly allowed): enqueue p2
RETURN accepted paths, provenance, truncation flag and errors.
Traversal order may be BFS, DFS, Dijkstra or A* when their assumptions are met.

8. PATH RANKING
For path p, define score(p)=w1*relevance(p)+w2*evidence_quality(p)+w3*semantic_fit(p)-w4*cost(p)-w5*uncertainty(p).
Weights are application-specific, declared and nonnegative.
Do not interpret score as a calibrated probability without calibration.
For nonnegative edge costs, shortest path may minimise sum of costs; negative edges require a suitable alternative algorithm.

9. TRI-MAPPING
Entity layer: node IDs, edge IDs, relation labels, path identifiers.
Semantic layer: relation meaning, domain/range, entailment, inverse/transitive declarations.
Execution layer: expansion, filtering, search, ranking, validation and provenance recording.
Mapping: Entity -> Semantic -> Execution -> Verified Path -> Entity/Knowledge update.

10. RELATIONSHIP MAPPING TABLE
Knowledge Graph Path | consistsOf | Knowledge Graph Edge
Knowledge Graph Path | startsAt | Knowledge Graph Node
Knowledge Graph Path | endsAt | Knowledge Graph Node
Knowledge Graph Edge | connects | Source and target nodes
Knowledge Graph Edge | instantiates | Ontology Relationship
Knowledge Graph Path | constrainedBy | Ontology Constraint
Knowledge Graph Path | supportedBy | Semantic Evidence
Knowledge Graph Path | evaluatedBy | Semantic Confidence
Knowledge Graph Path | producedBy | Semantic Execution
Knowledge Graph Path | belongsTo | Knowledge Graph

11. FLOW DIAGRAM
[Query + Start/Target]
        |
        v
[Load Graph + Ontology Rules]
        |
        v
[Expand Candidate Edges]
        |
        v
[Validate Direction, Semantics, Evidence, Boundaries]
        |                      |
       pass                   fail
        |                      |
        v                      v
[Extend Candidate Path]    [Reject / Record Reason]
        |
        v
[Goal / Pattern Satisfied?] -- no --> [Bounded Recursion]
        |
       yes
        v
[Rank + Explain + Preserve Provenance]
        |
        v
[Return Verified Path Set / Status]

12. EXECUTION GUARANTEE — CONDITIONAL
Under a finite graph, finite maximum depth, bounded frontier expansion and terminating validation functions, traversal terminates.
Soundness of returned paths requires correct graph data, valid schema interpretation and correctly implemented checks.
Completeness depends on search strategy, pruning, limits and whether all eligible edges are explored.
A time or depth limit can produce an incomplete result; it must not be reported as proof of non-reachability.

13. AI SEARCH FLOW
FLOW_ID: KnowledgeGraphPathOntology
VERSION: 1.0
LANGUAGE: en-GB
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ontology-and-knowledge-graph-entities/knowledge-graph-path-ontology.html
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
PURPOSE: Explain and execute bounded, provenance-aware knowledge graph path reasoning.
INPUT: graph, source_node, target_node?, relation_pattern?, constraints, ranking_policy
STATE_MODEL: S=(I,R,B,K)
ENTITIES: KnowledgeGraph; KnowledgeGraphNode; KnowledgeGraphEdge; KnowledgeGraphTriple; KnowledgeGraphPath; OntologyRelationship; OntologyConstraint; SemanticEvidence
PATHWAYS: discover -> expand -> validate -> traverse -> rank -> explain -> return
MINI_RECURSION_ENGINE: repeat admissible edge expansion until goal or termination boundary
INFERENCE_RULES: R1-R7 above
CONFIDENCE: Evidence-dependent; not presumed certain
SEMANTIC_EQUIVALENCE: Only under declared mapping and equivalence rules
UPDATE_MODEL: Add validated paths with provenance and version context; preserve conflicts
OUTPUT: paths, edge sequences, scores, evidence, status, truncation_flag

14. CITATION AND LICENCE
Source attribution: Mark Anthony Higgins and Sky — Recursive AI, Kireth Research Semantic Library.
Reuse subject to the applicable Open Research Licence and citation requirements published by the author.
This TXT is a standalone interpretative Flow Algebra representation; it does not claim to reproduce inaccessible embedded page code.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ