Vinyeh's picture
Add source_data README
c818786 verified
|
Raw History Blame Contribute Delete
9.25 kB
# AutoOntoBench 20K — Source Data Bundle (`release_20k/source_data/`)
This folder bundles **all pinned raw source data, derived indexes and fetch
receipts** used to build the AutoOntoBench 20,000-task benchmark
(`aob-20000-candidate-dev1`), so the benchmark can be reproduced without
re-downloading ~50 GB of external databases. It is the "raw databases"
companion to the fetch recipes in `source_registry/fetchers/` — per PI
instruction this bundle ships the actual databases, not the recipe only.
## Academic-use statement
This bundle is provided **for academic research and reproducibility purposes
only**, under PI-confirmed academic-use permission. Every bundled source
remains under its **own upstream license** — nothing here is relicensed by
this project. Commercial redistribution, or any use beyond academic research,
requires the recipient to obtain their own permission from each rightsholder.
No warranty is given or implied.
## Layout
| dir | contents |
|---|---|
| `pinned/<source>/<snapshot>/…` | raw pinned snapshots exactly as fetched (hardlinks of `external_knowledge/pinned/`) |
| `indexes/<source>/<snapshot>/…` | derived unit/graph indexes used by the benchmark (hardlinks of `external_knowledge/indexes/`) |
| `fetch_receipts/<source>/…` | per-snapshot fetch receipts: URLs, timestamps, per-file sha256, license verdicts |
| `SOURCE_MANIFEST.json` | machine-readable manifest: per-source release/commit, license, attribution, per-file bytes + sha256, totals |
All files are **hardlinks** to the working-tree copies
(`external_knowledge/…`), so this bundle adds ~no extra disk on the build NAS.
When exporting, copy with `cp -a` (or rsync) so the link structure is
materialized as real files.
## Bundled sources, licenses and attribution
| lane | source | snapshot | license | attribution |
|---|---|---|---|---|
| L01 | gatekeeper-library | commit `a8d4799d8daf` (+ re-pin `1946bc28e133`) | Apache-2.0 | Open Policy Agent / gatekeeper-library contributors |
| L02 | kubernetes-vap-cel | kubernetes/website commit `ed70e311737a` (scoped VAP/CEL docs shard) | CC-BY-4.0 (docs) | The Kubernetes Authors |
| L03 | camunda-dmn-examples | commits `6c7f4c4adb4b`, `ee4826e5e76c` | Apache-2.0 | Camunda Services GmbH |
| L03 | dmn-tck | commit `1e349176e5ae` | Apache-2.0 (`LICENSE-ASL-2.0.txt`) | DMN TCK contributors |
| L04 | rhea-chebi | rhea-142 + chebi-256 | Rhea CC-BY-4.0; ChEBI CC-BY-4.0 | SIB (Rhea); EMBL-EBI (ChEBI) |
| L05 | rdkit-molecules | RDKit `Release_2026_09_1` + ChEBI rel255 3-star SDF | BSD-3-Clause (RDKit); CC-BY-4.0 (ChEBI SDF) | RDKit contributors; EMBL-EBI (ChEBI) |
| L06 | gene-ontology | go 2026-08-05 + GOA GAF 238 | CC-BY-4.0 | Gene Ontology Consortium; GOA/EMBL-EBI |
| L07 | biomodels | api-20261028 (280 curated `BIOMD*` models) | per-model CC0/CC-BY (not machine-readable) — EBI BioModels terms of use | BioModels Team, EMBL-EBI |
| L08 | cql-clinical | commit `bc0c795e4f2a` (+ npm deps) | Apache-2.0 (repo); npm deps per their own licenses | CQFramework |
| L09 | smart-anc | commit `301a6b8b9043` | CC0-1.0 | World Health Organization (SMART guidelines) |
| L10 | behavior-1k-bddl | BEHAVIOR-1K `v3.9.3-post2` (BDDL knowledge base) | MIT | Stanford Vision and Learning Group |
| L12 | pm4py-process | tag `2.7.23.11` | **AGPL-3.0** | Process Intelligence Solutions (PM4Py) |
| L13 | apis-guru | commit `f04b8d0bcd39` | CC0-1.0 (repo); per-spec licenses for individual OpenAPI specs | APIs.guru (openapi-directory) |
| L14 | chembl | **ChEMBL 37** — SQLite `chembl_37.db` (30.48 GB) + `chembl_37_sqlite.tar.gz` (5.76 GB) | **CC-BY-SA-3.0** (ShareAlike) | ChEMBL, EMBL-EBI — cite Mendez et al. 2019, DOI 10.1093/nar/gky1075; preserve ChEMBL IDs + release number (see `REQUIRED.ATTRIBUTION`) |
| L15 | reactome | release-98 (data files + `homo_sapiens.3.1.sbml.tgz`) | **CC0** (database data; artwork CC-BY-4.0 excluded) | Reactome.org |
| L16 | uniprot | Swiss-Prot 2026_03 — `uniprot_sprot.dat.gz` + `uniprot_sprot.xml.gz` (TrEMBL excluded) | CC-BY-4.0 | UniProt Consortium (EMBL-EBI, SIB, PIR) |
| — | dcmi-terms | `dcmi-2012061` (Dublin Core TTL) | DCMI Usage Terms (attribution required) | Dublin Core Metadata Initiative |
Notes:
* **ChEMBL (CC BY-SA 3.0)** is the only ShareAlike source: derived data
redistributed from it must carry the same license plus the attribution
above. `pinned/chembl/chembl-37/REQUIRED.ATTRIBUTION` is bundled verbatim.
* **PM4Py is AGPL-3.0**: the bundled snapshot is the upstream repo at the
pinned tag; keep AGPL terms intact on any redistribution.
* **BioModels** per-model licenses are not machine-readable; the fetch
receipt records the EBI terms-of-use verdict `verify_per_asset`.
* `pinned/uniprot/uniprot-2026_03-sprot/store/` contains the derived L16
indexes (`l16_uniprot_dat.sqlite`, `l16_uniprot_xml.sqlite`,
`l16_uniprot_dat.kb.pkl`) — rebuildable from the bundled `.dat.gz`/`.xml.gz`.
* `pinned/chembl/chembl-37/indexes/pool_cache.json` is the L14 molecule pool
cache; `indexes/rdkit-molecules/…/molecules.jsonl` is the L05 molecule
index; `indexes/gene-ontology/…/` holds the GO graph/annotation indexes;
`indexes/reactome/release-98/reactome.db` is the L15 SQLite index.
## What is bundled vs excluded
**Bundled:** every pinned snapshot listed above (raw downloads, extracted
databases, license files, release notes), the derived indexes under
`indexes/`, and all fetch receipts.
**Excluded (with reasons):**
1. `pinned/*/_cache/` — fetcher download caches (the original codeload
tar.gz archives). The extracted snapshot trees are byte-verified via the
bundled `*.files.sha256.json` manifests and receipts, so the caches are
redundant.
2. `pinned/reactome/release-98/*.part` — 16 incomplete parallel-download
fragments from the Reactome bulk fetch; completed files are hash-pinned in
`SHA256SUMS.txt` and the receipt.
3. `pinned/reactome/release-98/biopax_members*` — empty/partial BioPAX
member fetch caches (0 completed files; receipt field `biopax_members` is
`null`).
4. **BEHAVIOR / OmniGibson full asset set (~31 GB)** — deliberately NOT
bundled (PI instruction). Only the MIT-licensed BEHAVIOR-1K repository
(BDDL knowledge base, lane L10) is bundled. The minimal L11 asset subset
actually used by the 250 L11 tasks had **not been exported by the L11
worker at packaging time** (checked `bank/staging_20k/l11/` and
`data/erule/review5/build8000/expansion/lanes/L11/` — no asset export
exists there); the full set lives in `.envs/omnigibson-data/` and requires
accepting upstream asset licenses. To reproduce L11 assets, follow
https://behavior.stanford.edu/getting_started/installation — do not treat
the absence as missing data: L11 task records reference BDDL scene files
from the bundled repo.
5. `external_knowledge/objects/` content-addressed blob store —
deduplication store for the fetchers; every object is already materialized
in the pinned snapshots.
## Integrity
`SOURCE_MANIFEST.json` records, for every bundled file: path, bytes, and
sha256 (full digest for all files ≤ 4 GiB; for the two ChEMBL giants the
digest recorded at fetch/extraction time is reused, with provenance, plus a
head+tail sample digest proving readability). Totals and per-source byte
counts are included. Verify with:
```bash
cd release_20k/source_data
python3 - <<'EOF'
import json, hashlib, pathlib, random
man = json.load(open("SOURCE_MANIFEST.json"))
rng = random.Random(0)
for f in rng.sample(man["files"], 50):
p = pathlib.Path(f["path"])
h = hashlib.sha256(p.read_bytes()).hexdigest()
assert h == f["sha256"], f["path"]
print("sample OK:", man["totals"])
EOF
```
## Reproduction
Two routes:
1. **From this bundle (offline):** point the benchmark at these snapshots.
The working tree layout mirrors `external_knowledge/{pinned,indexes,
fetch_receipts}`, so the lane plugins (`benchmark/plugins/*/l*/`) resolve
them directly.
2. **Re-fetch from upstream (online):** each snapshot has a fetch receipt
with the exact URL and pinned sha256. The fetchers live in
`source_registry/fetchers/l01…l16_*.py`; e.g.
```bash
# verify a pinned snapshot against its receipt
python -m source_registry.fetchers.l14_chembl
python -m source_registry.fetchers.l16_uniprot
```
Raw curl commands for some sources are recorded in `sources/<source>/`
(e.g. `sources/chebi/fetch.sh` pins ChEBI rel256 via `PINNED.sha256`).
## Provenance summary
* Generated: 2026-11-01 (BJT) from `external_knowledge/` of the working tree.
* **Totals: 18 sources, 40,117 files, 54,243,638,968 bytes (54.24 GB decimal);
40,115 files with full sha256 + 2 ChEMBL giants with fetch/extraction-time
digests (provenance recorded); 0 hashing errors.** See `totals` in
`SOURCE_MANIFEST.json`.
* Disk cost: ~0 — every regular file is a hardlink of the working-tree copy.
* No task data, oracle answers, evaluation keys or model outputs are
included — raw external sources only. Filename/secret scans of the bundle
find only upstream content (e.g. camunda's Oracle-DB DDL scripts, BDDL
`polish_gold` activity, OpenAPI example passwords); nothing from `bank/`
or the 8K/20K builds is bundled.