Skip to content

gHashTag/zig-knowledge-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

zig-knowledge-graph

Knowledge Graph server + CLI for Trinity. Part of the Trinity Ecosystem β€” independent Zig libraries for modular development.

Overview

# Repository Status Description
1 zig-olden-float 🟒 Live Numerical core: GF16, TF3, VSA, JIT
2 trinity-training 🟒 Live ML training: HSLM, benchmarks, datasets
3 zig-hdc 🟑 Plan VSA, HRR, hyperdimensional computing
4 zig-sacred-geometry 🟑 Plan Ο†-attention, Beal algebras, sacred constants
5 zig-physics 🟒 Live Quantum, QCD, gravity, dark matter, baryogenesis
6 zig-knowledge-graph 🟒 Live ← THIS REPO
7 zig-crypto-mining 🟒 Live BTC mining + DePIN protocol
8 zig-agents 🟑 Plan MCP, autonomous agents, orchestration
9 trinity 🟒 Live Orchestrator, API, MCP server

Features

  • RDF Storage β€” Triple-based knowledge representation (subject-predicate-object)
  • SPARQL Query Engine β€” Pattern matching, joins, filters
  • HTTP Server β€” REST API for KG operations
  • CLI β€” Command-line interface for management

Quick Start

# Build
zig build

# Run server
./zig-out/bin/kg-server

# Query from CLI
./zig-out/bin/kg-cli "SELECT ?s ?p ?o WHERE { ?s ?p ?o }"

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚         Knowledge Graph Core            β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  knowledge_graph.zig  (26KB)            β”‚
β”‚  - RDF triples storage                  β”‚
β”‚  - Index management                     β”‚
β”‚  - Pattern matching                     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  kg_server.zig  (57KB)                  β”‚
β”‚  - HTTP API                             β”‚
β”‚  - Query processing                     β”‚
β”‚  - Transaction management               β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  kg_cli.zig  (19KB)                     β”‚
β”‚  - Interactive shell                    β”‚
β”‚  - Batch queries                        β”‚
β”‚  - Import/export                        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Dependencies

License

MIT License β€” see LICENSE file.

Related

About

Knowledge Graph server + CLI for Trinity. Zig implementation of RDF storage and SPARQL query engine.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages