Skip to main content

Knowledge Graph Triple 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 TRIPLE ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | 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-triple-ontology.html
SOURCE NOTE: Original interpretative formalisation. The public page identifies the ontology but does not expose its full embedded specification in the retrieved text. The rules below are a proposed formal model, not a verbatim reproduction.
LICENCE: Refer to the source site's Open Research Licence for applicable reuse terms.
VERSION: 1.0 | DATE: 2026-11-05 | LANGUAGE: en-GB

1. PURPOSE
Represent a knowledge-graph triple as a typed, provenance-aware assertion linking a subject to an object through a predicate, and provide deterministic validation, retrieval, inference, and update pathways.

2. ENTITY MODEL
Triple T = (s,p,o,g,pi,v,tau,q)
  s: subject identifier (IRI or blank node)
  p: predicate identifier (IRI)
  o: object (IRI, blank node, or literal with optional datatype/language)
  g: named graph or default graph
  pi: provenance / source record
  v: ontology or dataset version
  tau: assertion time / validity interval
  q: evidence and confidence metadata (not part of the RDF triple itself)
Core RDF triple = (s,p,o); other fields belong to a contextual assertion record.
ENTITIES = {KnowledgeGraph, KnowledgeGraphNode, KnowledgeGraphEdge,
  KnowledgeGraphTriple, OntologyClass, OntologyProperty, OntologyInstance,
  SemanticRelationship, Evidence, Provenance, NamedGraph, ValidationResult}

3. FORMAL STATE MODEL
S_t = (I_t, R, B, K_t)
I_t = current candidate triples, queries and evidence.
R = admissible relation, typing, inference and normalisation rules.
B = boundaries: graph scope, identity, authorisation, ontology version, trust policy.
K_t = accepted graph, indexes, provenance and validation history.
E_t = expand(I_t,R)
V_t = {x in E_t | valid(x,B,K_t)}
x*_t = argmax_{x in V_t} P(x | I_t,R,B,K_t), when ranking is required.
K_(t+1) = update(K_t,x*_t), subject to commit and consistency checks.
For deterministic insertion, no argmax is necessary: accept every valid candidate permitted by the transaction policy.

4. TRIPLE CONSTRUCTION
CreateTriple(s,p,o) -> (s,p,o)
PRECONDITIONS:
  validSubject(s) AND isIRI(p) AND validObject(o)
  AND permitted(p,s,o,B)
NORMALISE:
  resolve namespace prefixes; preserve literal datatype and language;
  canonicalise identifiers only under an explicitly configured policy.
POSTCONDITION:
  an assertion record exists with a stable identity and provenance pointer.

5. RELATIONSHIP SEMANTICS
(s, rdf:type, C) => s is an instance of class C.
(s, rdfs:subClassOf, C) => s denotes a class subordinate to C.
(s, p, o) => subject s is linked to object o by predicate p.
Do not infer an inverse, symmetry, transitivity, or equivalence unless a governing rule explicitly licences it.
A graph edge is the structural projection of a triple; a triple also fixes predicate identity and direction.

6. VALIDATION AND BOUNDARIES
VALID(T) iff:
  syntacticForm(T) AND identifierPolicy(T) AND scopePolicy(T)
  AND accessPolicy(T) AND versionPolicy(T) AND constraintsSatisfied(T).
Validation can include RDF term constraints, SHACL shapes, cardinality,
range/domain checks and application-specific integrity conditions.
RDFS domain/range statements may support inference rather than rejection;
reject only where an explicit validation policy requires it.
A conflicting statement is not automatically false in an open-world graph.

7. FLOW ALGEBRA
F_ingest: RawStatement -> CandidateTriple
F_parse: CandidateTriple -> TypedTerms
F_validate: TypedTerms x B x K -> ValidationResult
F_provenance: ValidTriple x Evidence -> AssertionRecord
F_commit: AssertionRecord x K_t -> K_(t+1)
F_query: Query x K_t -> MatchingTriples
F_infer: MatchingTriples x R -> DerivedTriples
F_audit: StateTransition -> AuditRecord
F = F_audit o F_commit o F_provenance o F_validate o F_parse o F_ingest
The composition is defined only when each preceding operation succeeds.

8. TRI-MAPPING
ONTOLOGY: subject — predicate — object, with class/property semantics.
GRAPH: source node — directed labelled edge — target node/literal.
EXECUTION: input assertion — validation/inference — stored or rejected result.
Mapping invariants:
  preserve term identity, predicate direction, graph scope and provenance;
  do not collapse literals into resource identifiers;
  record whether a triple is asserted or inferred.

9. INFERENCE RULES (ILLUSTRATIVE)
R1: (x,rdf:type,C) AND (C,rdfs:subClassOf,D)
    => (x,rdf:type,D).
R2: (p,rdfs:subPropertyOf,q) AND (s,p,o)
    => (s,q,o).
R3: (p,rdfs:domain,C) AND (s,p,o)
    => (s,rdf:type,C).
R4: (p,rdfs:range,C) AND (s,p,o) AND resource(o)
    => (o,rdf:type,C).
R5: If a candidate triple duplicates an existing triple in the same graph,
    avoid duplicate structural storage while retaining distinct provenance.
Each inference must carry a derivation trace, governing rule and source premises.

10. RECURSIVE RESOLUTION ENGINE
Input: seed triples Q, rules R, boundaries B, graph K.
frontier := Q; visited := empty; depth := 0
WHILE frontier is not empty AND depth < maxDepth:
  validate frontier against B
  emit valid, previously unseen assertions
  derive next frontier using enabled rules
  remove previously visited assertion identities
  update visited and depth
END
Termination is guaranteed only for finite materialisation domains with
bounded depth or a finite fixpoint and duplicate suppression.

11. RELATIONSHIP MAPPING TABLE
Triple -> KnowledgeGraph: memberOfGraph
Triple -> KnowledgeGraphNode: hasSubject
Triple -> KnowledgeGraphEdge: projectsToEdge
Triple -> OntologyProperty: usesPredicate
Triple -> OntologyInstance: mayReferenceInstance
Triple -> Evidence: supportedBy
Triple -> Provenance: assertedFrom
Triple -> ValidationResult: evaluatedBy
Triple -> SemanticRelationship: expressesRelation
DerivedTriple -> InferenceRule: generatedBy

12. FLOW DIAGRAM
[Input statement]
      |
      v
[Parse RDF terms] -> [Normalise identifiers]
      |
      v
[Validate boundary and shape constraints]
      | PASS                         | FAIL
      v                              v
[Attach evidence/provenance]    [Reject / quarantine + reason]
      |
      v
[Commit to named graph]
      |
      v
[Query / bounded inference] -> [Trace + audit + result]

13. EXECUTION GUARANTEE (CONDITIONAL)
Given valid RDF terms, consistent identifier policies, deterministic rule
selection, authorised graph access and bounded inference, the flow returns
an auditable accepted/rejected result for each input assertion. It does NOT
guarantee real-world truth, global logical consistency, completeness of
knowledge, or termination for arbitrary unrestricted inference rules.

14. AI SEARCH FLOW
QUERY -> parse entities and predicates -> select graph and version
-> retrieve matching triples -> expand via authorised ontology rules
-> filter by context, evidence, access and constraints
-> rank where needed -> return answer + triple IDs + provenance
-> record unresolved ambiguity and uncertainty.
Never represent inferred relationships as directly sourced assertions.

15. SEMANTIC EQUIVALENCE AND IDENTITY
Exact triple identity requires identical (s,p,o) within the chosen graph
and RDF term equality rules. Semantic equivalence is a separate claim and
requires explicit mapping/equivalence evidence. Similarity alone does not
justify owl:sameAs or predicate equivalence.

16. UPDATE MODEL
INSERT(T): validate -> provenance -> atomic commit -> index refresh.
DELETE(T): check authorisation -> remove scoped assertion -> audit.
REVISE(T,T'): retain change history and affected inference dependencies.
RETRACT(E): remove or downgrade evidence-dependent assertions according
to explicit truth-maintenance policy.

17. EXAMPLE
(:ModelA, :usesFramework, :FrameworkB)
Subject = :ModelA; predicate = :usesFramework; object = :FrameworkB.
This is an illustrative graph assertion, not a verified factual claim.

18. CITATION AND INTERPRETATION
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ontology-and-knowledge-graph-entities/knowledge-graph-triple-ontology.html
CITATION: Higgins, Mark Anthony; Sky — Recursive AI, Knowledge Graph Triple Ontology, Kireth Research.
INTERPRETATION: Independent Flow Algebra extension for the Semantic Library.
END OF FLOW
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ