ontometer_corpus.store.cli¶
ontometer-corpus store: index, verify and exchange the object store.
Attributes¶
Classes¶
Functions:¶
cli()
¶
index_cmd(paths)
¶
Write corpus/objects.tsv from corpus.db and the local store.
Source code in ontometer_corpus/store/cli.py
verify_cmd(deep, rev, if_indexed, orphans_to, paths)
¶
Check the local store against the object index; exit 1 if anything is missing.
Source code in ontometer_corpus/store/cli.py
status_cmd(rev, remote_url, paths)
¶
What the remote and the local store lack for an index; exit 1 if anything.
Source code in ontometer_corpus/store/cli.py
push_cmd(caches, limit, remote_url, cache_remote_url, paths)
¶
Upload indexed objects the remote lacks; exit 1 if any was corrupt or missing.
Source code in ontometer_corpus/store/cli.py
pull_cmd(rev, caches, limit, remote_url, cache_remote_url, paths)
¶
Download indexed objects the local store lacks; exit 1 if any could not be had.
Source code in ontometer_corpus/store/cli.py
tag_cmd(name, remote_url, paths)
¶
Tag the remote with git tag NAME, once it holds every object that tag indexes.
Source code in ontometer_corpus/store/cli.py
gc_cmd(remote_url, paths)
¶
List objects no corpus-* tag references. Deletes nothing.
Source code in ontometer_corpus/store/cli.py
licenses_cmd(policy_path, emails, out, paths)
¶
Report the redistribution verdict of every object under the policy.
Source code in ontometer_corpus/store/cli.py
publish_cmd(rev, public_url, policy_path, paths)
¶
Publish a tagged version: redistributable objects, full index, tables, card.
Source code in ontometer_corpus/store/cli.py
fetch_withheld_cmd(rev, policy_path, paths)
¶
Download withheld objects from their sources, keeping only identical bytes.
Source code in ontometer_corpus/store/cli.py
bundle_cmd(rev, base, public, level, out_dir, policy_path, paths)
¶
Write a solid tar.zst of a tagged version (or of what is new since --base).
Source code in ontometer_corpus/store/cli.py
zenodo_cmd(rev, base, record, sandbox, out_dir, token, policy_path, paths)
¶
Create a Zenodo draft with the public bundle of a tagged version. Never publishes.