@@ -7,10 +7,20 @@ title: graph
77Run graph-specific workflows.
88
99## Usage
10- - ` worai graph sync --profile <name> [--debug] `
11- - ` worai --config <path> graph sync --profile <name> [--debug] `
10+ - ` worai graph sync run --profile <name> [--debug] `
11+ - ` worai --config <path> graph sync run --profile <name> [--debug] `
12+ - ` worai graph sync create <destination> [--template <src>] [--defaults] [--data-file <path>] [--vcs-ref <ref>] [--non-interactive] [--force] `
13+ - ` worai graph property delete <predicate> [--dry-run] [--yes] [--workers <n>] [--retries <n>] [--rate-delay <s>] [--limit <n>] `
1214
1315## Notes
16+ - ` graph sync run ` executes the graph sync workflow for a profile in ` worai.toml ` .
17+ - ` graph sync create ` bootstraps a new graph sync project from a Copier template.
18+ - ` graph sync create ` enables Copier trusted mode by default, so template ` _tasks ` run automatically.
19+ - ` graph property delete ` removes one predicate from all matching entities.
20+ - accepts full IRI (` https://w3id.org/seovoc/html ` ) or CURIE (` seovoc:html ` ).
21+ - includes private fields by default (` X-include-Private: true ` ) for both matching-entity discovery and deletion PATCH requests.
22+ - ` --dry-run ` reports matching entities without patching.
23+ - without ` --yes ` , the command asks for confirmation before patching.
1424- Supported input sources:
1525 - ` urls ` (explicit URL list)
1626 - ` sitemap_url ` (+ optional ` sitemap_url_pattern ` )
@@ -24,6 +34,23 @@ Run graph-specific workflows.
2434 - profile value overrides global value.
2535 - default is ` false ` when unset.
2636 - mapped to SDK setting ` GOOGLE_SEARCH_CONSOLE ` .
37+ - SDK 5 ingestion settings are forwarded when configured:
38+ - ` ingest.source ` : ` auto|urls|sitemap|sheets|local `
39+ - ` ingest.loader ` : ` auto|simple|proxy|playwright|premium_scraper|web_scrape_api|passthrough `
40+ - ` ingest.passthrough_when_html ` : default ` true `
41+ - Loader default behavior is ` web_scrape_api ` .
42+ - legacy ` web_page_import_mode=default ` maps to ` web_scrape_api `
43+ - legacy ` proxy ` and ` premium_scraper ` keep the same value
44+ Example ingestion config:
45+ ``` toml
46+ [profile .acme ]
47+ api_key = " wl_..."
48+ sitemap_url = " https://example.com/sitemap.xml"
49+ ingest.source = " sitemap"
50+ ingest.loader = " web_scrape_api"
51+ ingest.passthrough_when_html = true
52+ web_page_import_timeout = " 60s"
53+ ```
2754- ` sheets_service_account ` is required only when using Google Sheets source (` sheets_url ` + ` sheets_name ` ).
2855- Failure cases for ` sheets_service_account ` (Sheets source only):
2956 - value is missing or empty
@@ -41,6 +68,9 @@ sheets_service_account = "./service-account.json"
4168```
4269
4370## Examples
44- - ` worai graph sync --profile acme `
45- - ` worai --config ./worai.toml graph sync --profile acme `
46- - ` worai graph sync --profile acme --debug `
71+ - ` worai graph sync run --profile acme `
72+ - ` worai --config ./worai.toml graph sync run --profile acme `
73+ - ` worai graph sync run --profile acme --debug `
74+ - ` worai graph sync create ./acme-graph `
75+ - ` worai graph property delete seovoc:html --dry-run `
76+ - ` worai graph property delete https://w3id.org/seovoc/html --yes --workers 4 `
0 commit comments