CLI¶
Requires pip install PyLD[cli]
PyLD ships a pyld command-line tool for JSON-LD 1.1 transformations.
JSON-LD inputs accept a local path, URL, or explicit - for standard input.
Contexts and frames accept a local path, URL, or -. Only one operand in an
invocation may consume standard input. Raw N-Quads input accepts only a local
path or -, and N-Quads output is written directly to standard output without
JSON quoting or terminal styling.
-
Retrieve a JSON-LD document from a path, URL, or explicit stdin input (
-). -
Expand a JSON-LD document into full IRI-based form.
-
Compact a JSON-LD document using a context.
-
Flatten a JSON-LD document into a single node map.
-
Frame a JSON-LD document into a selected tree shape.
-
Convert JSON-LD to raw N-Quads.
-
Convert raw N-Quads to JSON-LD.
-
Manage the CLI HTTP cache for remote JSON-LD contexts.