TechArticle

wiki export

Infobox

headline
wiki export
description
Export document frontmatter as RDF or JSON-LD.

Serialize parsed frontmatter (and RDF derived from it) for one file or the whole wiki.

Usage

wiki export
wiki export wiki/Page.md
wiki export wiki/A.md wiki/B.md
wiki export wiki/Page.md -f turtle
wiki export -f json-ld -o wiki.json
wiki export wiki/Page.md --mode compacted -f json-ld

Options

Flag Default Description
FILE... all wiki docs One or more wiki documents, or omit for entire wiki
-f, --format dict dict, json-ld, turtle, xml, n3, nt, trig, nquads
--mode expanded expanded or compacted serialization mode
-o, --output stdout Output file

Output shape

For dict and json-ld, each entry is {"name": "<filename>", "rdf": ...}.

Raw RDF formats (turtle, etc.) on a single FILE write plain serialization without a JSON wrapper. Multiple FILE args or whole-wiki export with raw formats is not supported — use dict or json-ld, or export one file at a time.

--mode compacted is most visible for JSON-LD, where it emits @context and compacted terms when the wiki context provides them.

ContentsOn this page

[hide]

Backlinks