Divooka Reference

Datasets

2 nodes

On this page 2

Dataset Cache Folder

Function

Where 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

FolderText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Datasets
Package
Data Analytics

Download Dataset

Function

A 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: Text
string DownloadDataset(
    string url,
    string sha256,
    string entry,
    out string fingerprint)

Parameters

nametypedefaultdescription
URLText—Where the dataset is published: the http or https address of the file itself.
SHA-256Text—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.
entryText—For a zip archive, the file inside it to read, such as "hour.csv"; empty for the downloaded file itself.

Returns

PathText
fingerprintText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Datasets
Package
Data Analytics