Open Knowledge Format (OKF) Ingestion
Overview
Read, validate, and load Open Knowledge Format (OKF) bundles (a directory of markdown files with YAML frontmatter) into a portable DuckDB catalog, build the concept graph, render to HTML, and optionally embed concept bodies for semantic search. Deterministic and agent-free: the same bundle always yields the same catalog, graph, and render, with no LLM calls in the core. Conformant and permissive per the OKF v0.1 specification.
- New
okf_diff(): deterministic concept-level changelog between two states of a bundle. Each side can be a bundle directory, anokf_read()bundle, a DuckDB catalog path, or an open connection — so it covers both "what drifted since the last ingest" (catalog vs directory) and snapshot-vs-snapshot comparison. Reports concepts added/removed/changed (bycontent_hash), frontmattertype/titlechanges, and link-graph deltas (edges added/removed, links newly broken or fixed). - CLI: new
diffverb (okf diff <a> <b> [--json]), exit 0 when identical / 1 when different, for use as a CI change gate.
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-30
- ERROR12 OK, 1 ERROR2026-09-04
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK7 OK2026-07-01
Documentation
- Help pages
- 26 (1 internal)includes a package overview page
- Examples that run
- no examples
- Exported functions with examples
- 0%
- Documented parameters
- 98%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.7.0Latest
- 0.5.22026-06-30
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-06-30
- Total releases
- 2 / 1 yrs
- License
- Apache License (>= 2)
- Minimum R
- ≥ 4.1.0
- Download size
- 35 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("okf")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.