$npx -y skills add ma-compbio-lab/SkillFoundry --skill rocrate-metadata-bundle-starterUse this skill to package a small local data file into an RO-Crate directory with basic provenance-rich metadata and a compact summary of the generated graph.
| 1 | # RO-Crate Metadata Bundle Starter |
| 2 | |
| 3 | Use this skill to package a small local data file into an RO-Crate directory with basic provenance-rich metadata and a compact summary of the generated graph. |
| 4 | |
| 5 | ## What it does |
| 6 | |
| 7 | - copies one local data file into a fresh RO-Crate directory |
| 8 | - writes `ro-crate-metadata.json` with a named root dataset and measurement metadata |
| 9 | - reports the crate path, graph entity counts, and bundled data files |
| 10 | |
| 11 | ## When to use it |
| 12 | |
| 13 | - you need a verified starter for `data-provenance-tracking` |
| 14 | - you want a lightweight pattern for packaging outputs with reusable metadata |
| 15 | - you need a deterministic RO-Crate fixture for tests or demos |
| 16 | |
| 17 | ## Example |
| 18 | |
| 19 | ```bash |
| 20 | ./slurm/envs/data-tools/bin/python skills/data-acquisition-and-dataset-handling/rocrate-metadata-bundle-starter/scripts/build_rocrate_metadata_bundle.py \ |
| 21 | --input skills/data-acquisition-and-dataset-handling/rocrate-metadata-bundle-starter/examples/toy_measurements.csv \ |
| 22 | --crate-dir scratch/rocrate/toy_bundle \ |
| 23 | --summary-out scratch/rocrate/toy_bundle_summary.json |
| 24 | ``` |
| 25 | |
| 26 | ## Verification |
| 27 | |
| 28 | - Skill-local tests: `python3 -m unittest discover -s skills/data-acquisition-and-dataset-handling/rocrate-metadata-bundle-starter/tests -p 'test_*.py'` |
| 29 | - Expected summary: `has_metadata_file == true`, `data_entity_count == 1`, `root_dataset_name == "Toy Measurement Bundle"` |