Guides¶
KGLite has a set of how-to guides. Most projects only need three.
Coming from 0.13? The code-graph builder (now codingest) and dataset loaders (now kglite-datasets) moved out of the wheel in 0.14 — see the 0.13 → 0.14 migration guide.
Start here (the load-bearing path)¶
Every project that loads its own data and queries it goes through these three, in this order:
Shape DataFrames, bulk-load with |
|
The query surface — MATCH/WHERE/RETURN, aggregations, subqueries, mutations. Every other guide leans on this one. |
|
Ship the graph to Claude / Cursor / any MCP-capable agent. The bundled |
|
Teach agents how and when to use each tool with bundled/operator skills — methodology that injects into tool descriptions, gated per-graph. Use this instead of hand-rolling |
Add as needed¶
Domain-specific surfaces — pull them in when your data has the shape:
Guide |
Read this if… |
|---|---|
…the graph is long-lived state your app reopens across runs. |
|
…your “data” is a markdown knowledge base — an OKF bundle, a Claude memory dir, a skills folder, an Obsidian vault. Frontmatter → nodes, links → typed edges. |
|
…your nodes have coordinates. R-tree indexing, distance-based filters, GeoJSON I/O. |
|
…property values change over time. Snapshot history, valid_at / valid_during temporal filters. |
|
…you want fuzzy / meaning-based lookup. |
|
…you need PageRank, community detection, shortest paths, centrality. |
|
…your graph has parent-child / ancestor structure. |
Power-user / less common¶
Guide |
When |
|---|---|
The fluent-API alternative to Cypher ( |
|
Declarative graph schemas — nodes/edges defined once in a CSV-driven config. Best for repeated builds of the same shape. |
|
Round-trip with Neo4j, JSON, N-Triples; CSV bulk export. |
|
|
|
Short snippets for “how do I do X” patterns that span multiple guides. |
If you want to know why¶
Background reading — not required, but the design decisions explain why APIs look the way they do:
Core Concepts — storage modes (memory / mapped / disk), return types, the fluent / Cypher split.
Architecture — Rust core + PyO3 bindings + petgraph, where each subsystem lives.
Design decisions — the label model, columnar storage, Cypher subset choices.