Convert
lokf convert projects a concept or a whole bundle to Turtle,
N-Triples, JSON-LD, or RDF/XML.
LOKF keeps OKF’s markdown-plus-frontmatter authoring model but binds every concept, field, and relationship to schema.org, W3C DCAT, and W3C PROV-O, so a bundle of markdown files is also valid JSON-LD that expands losslessly to RDF. The format is defined once in LinkML; the JSON-LD context, JSON Schema, SHACL shapes, and OWL ontology are all generated from that single source.
Ordinary OKF markdown, where every key has a defined RDF meaning:
---type: Metric # -> rdf:type lokf:Metricid: https://acme.example/knowledge/metrics/weekly-active-users # -> @id (subject)title: Weekly Active Users # -> schema:nameunit: users # -> schema:unitTexttimestamp: 2026-06-30T12:00:00Z # -> schema:dateModifiedderivedFrom: [ .../tables/user-events ] # -> prov:wasDerivedFromdependsOn: [ .../glossary/active-user ] # -> dcterms:requiresmeasures: [ .../glossary/active-user ] # -> lokf:measures---# DefinitionDistinct users with a qualifying event in a trailing 7-day window.Attach the published lokf.context.jsonld and this expands to RDF triples
using schema:, prov:, dcterms:, and lokf: predicates — no separate file.
Convert
lokf convert projects a concept or a whole bundle to Turtle,
N-Triples, JSON-LD, or RDF/XML.
Query
lokf query runs SPARQL over a bundle loaded into an in-process
Oxigraph store.
Serve
lokf serve publishes a local SPARQL endpoint and a live graph
explorer.
Automate
An MCP server and bundled agent skills let agents drive the whole toolkit.