/rete-graph:dataset-downloadfrom rete — cloud-native RDF graphs
Acquires and organizes raw datasets under ./data/<name>/ with standard folder layout, robust downloading, and schema documentation. Use for downloading datasets from APIs, S3 buckets, or download pages.
Ships in rete — cloud-native RDF graphs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
./data/<name>/This is the acquisition step that comes before rete-from-graph. The goal:
land all of a source's data under a predictable folder layout, reproducibly,
so a future <name>.rete build is a clean hand-off.
investigate ─▶ scaffold ─▶ download ─▶ verify ─▶ profile ─▶ document ─▶ (rete-from-graph)
(§1) (§2) (§3) (§4) (§5) (§6)
Repo conventions that bind here (see skills/README.md): run everything in Docker (python/uv/npm/cargo) — only plain
curl/hfmay run on the host;data/is gitignored (the scripts get committed, not the downloaded bytes); never scrape robots-blocked sites — go to the official dump / API / open bucket. Commit without the Claude co-author trailer.
Every dataset gets exactly this shape:
data/<name>/
README.md # provenance, license, schema, layout, reproduce steps
SHA256SUMS.txt # checksums of the raw file(s)
raw/ # the downloaded bytes, AS-IS (never hand-edited)
<source-file(s)>
assets/ # only if the source links out to files (see §3.3)
<type>/…
*.urls.txt, all_assets.tsv # asset manifests
scripts/ # every script used, committed to git
download.sh # reproducible re-download of the primary file(s)
inspect_csv.py # schema/statistics profiler (NOT inspect.py — see gotchas)
… # extract/convert/harvest helpers as needed
Scaffold it in one shot:
bash skills/dataset-download/scripts/scaffold.sh <name>
# creates data/<name>/{raw,scripts}, a README.md skeleton, SHA256SUMS.txt,
# and a download.sh stub to fill in.
A "download page" almost always hides more than the one button. Work through reference/investigate.md; the essentials:
curl -sSL <page> -o page.html
then extract every link: grep -oE 'https?://[^"'\''<> ]+' page.html | sort -u.
Look for storage hosts (*.s3.*, *.t3.storage.dev, storage.<site>,
*.r2.dev, zenodo.org/record), and .csv/.json/.parquet/.zip/.nt/.ttl.?list-type=2 → AccessDenied) — then the page URL is the only entry point.
If listing is allowed, page through it for other files / older snapshots.curl -sSLI <url> gives Content-Length, Content-Type,
Last-Modified, Accept-Ranges. Record the size; note dated snapshot names.{"url": …} or {"file": {"url": …}}), so a naive top-level URL scan
finds nothing. Profile the file (§5) and extract those links (§3.3)...._28_01_2026.csv) is the
snapshot; note the date and whether newer ones are reachable.bash skills/dataset-download/scripts/scaffold.sh <name>
Then fill scripts/download.sh with the real URL(s) you found in §1.
Put the real download in scripts/download.sh (a curl -sSL --fail per file into
raw/, writing SHA256SUMS.txt). Plain curl on the host is fine. Run it:
bash data/<name>/scripts/download.sh
df -h . # confirm free space >> total download size
A full bind-mount surfaces as OSError: [Errno 5] Input/output error on write
(not a network error) — it means the disk is full, not the server failing. Never
start a tens-of-GB harvest onto a near-full drive.
If the primary file references external files (§1), extract them to a URL list per type, then download resumably in Docker:
# 1. extract URLs into data/<name>/raw/assets/<type>.urls.txt (write a small
# per-source extractor; model on data/proteinbase/scripts/extract_asset_urls.py)
# 2. harvest — parallel, resumable, atomic, retries; stdlib-only so plain python:slim works
MSYS_NO_PATHCONV=1 docker run --rm -v "$PWD:/w" -w //w python:3.12-slim \
python skills/dataset-download/scripts/fetch_urls.py \
data/<name>/raw/assets/<type>.urls.txt data/<name>/raw/assets/<type> --workers 16
fetch_urls.py skips already-present files, writes .part then renames (no
half-files), retries with backoff, and logs misses to download_failures.txt
(re-run to retry only those). Use fewer workers (~8) for large files (multi-MB
each) — high concurrency of big writes is what tips a bind-mount over.
Map s3://<bucket>/<key> URIs to the bucket's public https host before fetching.
cd data/<name>/raw && sha256sum <file> | tee ../SHA256SUMS.txt # matches download.sh?
wc -c <file> # == Content-Length from §1?
find assets -name '*.part' # none = clean
For asset sets, confirm the on-disk file count equals the manifest line count per
type, and that download_failures.txt is absent (or empty) — if present, re-run
the harvester until it's clean, then delete the stale list.
Write scripts/inspect_csv.py (a real profiler, run in Docker) that reports
columns, fill/uniqueness, category distributions, and — for embedded JSON — the
object keys/types. Model on data/proteinbase/scripts/inspect_csv.py. This report
is what you paste into the README and reuse when modelling the graph in
rete-from-graph.
MSYS_NO_PATHCONV=1 docker run --rm -v "$PWD:/w" -w //w python:3.12-slim \
python data/<name>/scripts/inspect_csv.py
Fill data/<name>/README.md: source URL, license + attribution string,
snapshot date, the layout tree, the schema table (from §5), the asset inventory
(counts + sizes + status), and the exact reproduce commands. Record a memory
entry for the dataset (type project) noting what's non-obvious — the entry
point, gotchas, and that the .rete is pending. Then hand off to
rete-from-graph.
-v /d/...:/w -w /w gets rewritten
to W:/. Fix: MSYS_NO_PATHCONV=1 docker run -v "D:/pro/rete:/w" -w //w …
(Windows-style mount, double-slash workdir).[Errno 5] I/O error on write == disk full, not a network fault. df -h .
before and after; free space before resuming.AccessDenied on ?list-type=2 is normal — the download
page URL is then the only handle. s3://bucket/key → https://bucket.<host>/key.utf-8-sig, or
the first column name comes back as \ufeffid.inspect.py, profile.py,
code.py, types.py, json.py. Python puts the script's own dir on
sys.path[0], so it shadows the real module and unrelated imports crash later
(e.g. attrs doing inspect.signature → AttributeError). Use inspect_csv.py.download.sh + extract +
fetch_urls.py must reconstruct raw/ from scratch — data/ is gitignored, so
the scripts are the dataset in the repo.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub caviri/rete --plugin rete-graph7 skills in this plugin
/rete-catalogFind, inspect, and open the published .rete datasets from the rete catalog — 60+ public knowledge graphs on range-readable hosting. Use when a task needs an existing dataset (query it, download it, federate it, wire it into an app) rather than building a new one./rete-clientsSet up a rete client in a NEW project — Python, Pyodide/JupyterLite, JavaScript/Node, browser script-tag, your own wasm build, or Rust. Use when wiring .rete querying into an application, notebook, or script; covers install, a verified first query, and the per-runtime gotchas./rete-from-graphBuild a queryable `.rete` file from ANY graph-based data source — an RDF dump (.nt/.nq/.ttl/.rdf/.owl), a SPARQL endpoint, a Wikibase, an OWL ontology, GeoJSON, tabular/CSV, a GBIF Darwin-Core archive, a TEI corpus, or a JSON API. Use whenever the task is "turn this dataset/graph/ontology/endpoint into a .rete" (then hand off to the rete-publish skill to register it in the playground). Covers source→N-Triples conversion, the `rete build` flags, the Docker-only build, and verification./rete-local-queryQuery a LOCAL .rete file efficiently — the lazy range-read path that opens a multi-GB file without loading it whole, which CLI commands are lazy vs read-whole, the tuning knobs (RETE_BLOCK_KB, RETE_LOCAL_LAZY_ABOVE_MB, the 256 MiB block-cache cap), how to preview a query's byte/RAM cost (rete cost / rete why), how to prove a memory bound, and the real memory-scaling limits at billion-triple scale. Use whenever a local query is slow, OOMs, or you need to bound/preview its I/O and RAM. Complements rete-sparql (which is about writing the query)./rete-publishPublish a built `.rete` dataset to the rete playground: generate optional Parquet/DuckDB/SQLite companions, upload files to Cloudflare R2, register the dataset in the catalog, and verify the public Range/CORS contract. Use after rete-from-graph has produced and verified a `.rete` whenever the task is to make a dataset explorable in the playground./rete-sparqlWrite correct SPARQL for .rete graphs — the supported SPARQL 1.1 surface, rete's extensions (OWL 2 QL reasoning, RDF-star, SERVICE federation, text index), result formats, and the recurring gotchas that silently return 0 rows. Use whenever authoring or debugging a SPARQL query against a .rete file, the playground, the Space API, or any client.Other plugins' skills for the same job