jsonld-cli 0.23.0

Command line interface for JSON-LD
jsonld-cli-0.23.0 is not a library.

jsonld-cli

Crate Docs MSRV License

Command line interface to jsonld: expand, compact and flatten JSON-LD documents, or fetch one over HTTP.

cargo install jsonld-cli

jsonld-cli expand document.jsonld
jsonld-cli compact context.jsonld document.jsonld
jsonld-cli flatten document.jsonld
cat document.jsonld | jsonld-cli expand --base-url https://example.org/

Documents are read from a path, an IRI or standard input. Expansion can relabel blank nodes, put the result in canonical form, and report terms it had to guess at through @vocab or leave undefined. Remote contexts are fetched as needed, so a document that references one needs network access.

Status: experimental. Version numbers move fast and there is no compatibility promise before 1.0. The workspace README says what that means in practice.

Feature flags

Flag Default Enables
ahash, gxhash a different hasher for the internal collections

License

Dual-licensed, same as upstream. Pick whichever fits: