Skip to main content

patch

Patch WordLift entities from RDF (Turtle or JSON-LD).

Usage

  • worai patch <file.ttl|file.jsonld> [options]

Arguments

ArgumentTypeDescription
`file.ttlfile.jsonld`string

Options

OptionTypeDefaultDescription
--dry-runboolfalsePrint curl commands instead of executing them.
--add-typesboolfalseUse 'add' for rdf:type properties instead of replace.
--types-onlyboolfalseOnly process rdf:type triples.
--subjects-filestringnoneFile containing subject URIs to process (one per line).
--workersint2Number of concurrent requests.
--retriesint3Number of retries for failed requests.

Examples

  • worai patch ./data.ttl --dry-run --add-types
  • worai patch ./data.jsonld --types-only --workers 4

Notes

  • Requires WORDLIFT_KEY (or wordlift.api_key in config).