Skip to main content

link-groups

Convert a link-group CSV to RDF and optionally apply changes via WordLift API.

Usage​

  • worai link-groups <links.csv> [options]

Arguments​

ArgumentTypeDescription
links.csvstringPath to input CSV file.

Options​

OptionTypeDefaultDescription
--formatchoiceturtleOutput RDF format: turtle, json-ld, xml, n3.
--applyboolfalseApply changes via WordLift API.
--dry-runboolfalseWith --apply, show curl commands without executing them. The API key is shown as <API_KEY_HIDDEN>.
--concurrencyint2Number of concurrent API requests.
--retriesint3Number of retries for failed API requests.

Examples​

  • worai link-groups ./links.csv --format turtle
  • worai link-groups ./links.csv --apply --dry-run --concurrency 4

Notes​

  • --apply requires WORDLIFT_API_KEY (or profiles.<name>.api_key in config). --apply --dry-run does not need a key.
  • To run a command printed by --dry-run, replace <API_KEY_HIDDEN> with your API key.