Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.28 KB

singularity-import.md

File metadata and controls

30 lines (23 loc) · 1.28 KB

Importing datasets from Singularity

If you have generated CAR files via Singularity, you can import them into Delta for dealmaking.

To do this, ensure your Singularity database is running and you have the DELTA_AUTH environment variable set to your Delta auth token

Prerequisites

Importing CIDs from Singularity

  • First, create datasets and wallets in Delta (see docs/howto.md)
  • Edit the script singularity-import.sh - replace localhost:27017 with your singularity database URL, if it's not the default
    • Tip: You can find this information in ~/.singularity/config.toml
  • Run the script in scripts/singularity-import.sh to import CIDs from Singularity into DDM. This will add the CIDs to the dataset.
  • Note that the script may take a few minutes to run

Script Usage

./singularity-import.sh <SINGULARITY datasetName> <DELTA datasetID> <deltaToken>

Where

  • SINGULARITY datasetName - the name of the dataset in Singularity (aka the slug)
  • DELTA datasetID - the ID of the dataset in Delta (you can obtain this with delta-dm dataset list)
  • deltaToken - your delta auth token

Example

./singularity-import.sh common-crawl 1 EST-XXX-ARY