Package: okf 0.14.2

okf: Open Knowledge Format (OKF) Ingestion

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. Implements the OKF v0.3 specification; bundles that declare an earlier version are read with the fallbacks the specification allows.

Authors:Travis Jakel [aut, cre]

okf_0.14.2.tar.gz
okf_0.14.2.zip(r-4.7-any)okf_0.14.2.zip(r-4.6-any)okf_0.14.2.zip(r-4.5-any)
okf_0.14.2.tgz(r-4.6-any)okf_0.14.2.tgz(r-4.5-any)
okf_0.14.2.tar.gz(r-4.7-any)okf_0.14.2.tar.gz(r-4.6-any)
okf_0.14.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
okf/json (API)

# Install 'okf' in R:
install.packages('okf', repos = c('https://travisjakel.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/travisjakel/okf-ingest/issues

On CRAN:

Conda:

ai-agentsduckdbknowledge-baseokfopen-knowledge-formatpythonrag

3.30 score 5 stars 443 downloads 37 exports 5 dependencies

Last updated from:e3ea349b16. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK155
source / vignettesOK212
linux-releaseOK162
macos-releaseOK106
macos-oldrelOK139
windows-develOK77
windows-releaseOK67
windows-oldrelOK83
wasm-releaseOK112

Exports:okf_backlinksokf_bindokf_canonicalizeokf_chunk_bodyokf_clustersokf_computationsokf_conceptsokf_contextokf_diffokf_doctorokf_doctor_fixokf_embedokf_extract_linksokf_extract_wikilinksokf_fetchokf_findingsokf_graph_dfokf_graph_htmlokf_graph_jsonokf_graph_mermaidokf_htmlokf_ignoredokf_impactokf_ingestokf_linksokf_ollama_embedderokf_parse_fileokf_ragokf_rankokf_readokf_resolve_linkokf_resolve_pathokf_searchokf_seedsokf_sourcesokf_trustokf_validate

Dependencies:DBIdigestduckdbjsonliteyaml

Readme and manuals

Help Manual

Help pageTopics
Concepts that link to a given concept ("linked from" / backlinks).okf_backlinks
Bind parameter values into an Attested Computation, deterministically.okf_bind
Canonicalize a computation artifact for comparison.okf_canonicalize
Split a concept body into chunks on paragraph boundaries.okf_chunk_body
Deterministic community labels via synchronous label propagation.okf_clusters
Read the Attested Computation contracts in a bundle (SPEC 10).okf_computations
Assemble an index-first, link-following slice of a bundle as one markdown blob for direct LLM consumption.okf_context
Concept-level diff between two states of an OKF knowledge base.okf_diff
Health / maintenance report for an ingested OKF catalog.okf_doctor
Apply only unambiguously-safe maintenance fixes to a bundle's source files.okf_doctor_fix
Chunk and embed concept bodies into the catalog for semantic search.okf_embed
Extract markdown link targets from a concept body (SPEC 6.1).okf_extract_links
Extract `[[wikilink]]` targets from a concept body.okf_extract_wikilinks
Materialize an OKF bundle from a directory, git URL, or tar/zip archive.okf_fetch
Render the concept graph as one self-contained interactive HTML page.okf_graph_html
Export the concept graph as portable JSON (nodes and edges).okf_graph_json
Render the concept graph as a Mermaid `graph LR` diagram.okf_graph_mermaid
Render an ingested OKF catalog to HTML for viewing.okf_html
Which `.md` files in a bundle its `.okfignore` excludes.okf_ignored
Link-impact ("ripple") of a concept.okf_impact
Ingest an OKF bundle into a DuckDB catalog.okf_ingest
Build the concept graph (resolved and broken links) for a bundle.okf_links
Build an embedder backed by a local Ollama embeddings model.okf_ollama_embedder
Parse the YAML frontmatter and body of a single OKF concept file.okf_parse_file
Query helpers over an ingested OKF catalog.okf_concepts okf_findings okf_graph_df okf_query okf_search
Semantic search over an embedded catalog.okf_rag
Personalized PageRank scores for the concept graph.okf_rank
Read an OKF bundle from a directory into an in-memory representation.okf_read
Resolve a markdown link target to a bundle-relative concept path.okf_resolve_link
Resolve a path field to a bundle-relative path.okf_resolve_path
Deterministic lexical seed selection for a free-text query.okf_seeds
Extract the `sources` provenance entries of a bundle (SPEC 5.1).okf_sources
Derive the OKF v0.3 trust and lifecycle state of every concept.okf_trust
Validate a bundle against the OKF v0.3 conformance rules (permissively).okf_validate