Datasets
2 nodes
On this page 2
Dataset Cache Folder
FunctionWhere downloaded datasets are kept: a Datasets folder in the user's local application data, or the folder the DIVOOKA_DATASET_CACHE environment variable names. Deleting it costs nothing but downloading again.
Signature
DatasetCacheFolder() -> Text
string DatasetCacheFolder()
Returns
| Folder | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Datasets
- Package
- Data Analytics
Download Dataset
FunctionA published dataset as a file on this machine. The first run downloads it into the dataset cache - a folder of Divooka's own, outside every document - and checks its SHA-256 fingerprint; every run after that reads the cached copy and needs no network. A zip archive is opened at the file named in Entry. When the address cannot be reached the run stops with "Dataset not reachable" and says why.
Signature
DownloadDataset -> (Path: Text, fingerprint: Text)
URL: Text
SHA-256: Text
entry: Textstring DownloadDataset(
string url,
string sha256,
string entry,
out string fingerprint)Parameters
| name | type | default | description |
|---|---|---|---|
| URL | Text | — | Where the dataset is published: the http or https address of the file itself. |
| SHA-256 | Text | — | The file's SHA-256 fingerprint, 64 hexadecimal digits. A download that is anything else is refused, so the analysis always reads the data it was written for. Empty takes whatever the address holds; its fingerprint is then the Fingerprint output, ready to be pasted here. |
| entry | Text | — | For a zip archive, the file inside it to read, such as "hour.csv"; empty for the downloaded file itself. |
Returns
| Path | Text |
| fingerprint | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Datasets
- Package
- Data Analytics