-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdataset.yaml
executable file
·64 lines (57 loc) · 2.44 KB
/
dataset.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# This file defines a qri dataset. Change this file, save it, then from a terminal run:
# $ qri add --file=dataset.yaml
# For more info check out https://qri.io/docs
# Name is a short name for working with this dataset without spaces for example:
# "my_dataset" or "number_of_cows_that_have_jumped_the_moon"
# name is required
name: 2014_Democratic_Gubernatorial_Primary_Results
# Commit contains notes about this dataset at the time it was saved
# all commit stuff is optional (one will be generated for you if you don't provide one)
commit:
title: initial commit
message: use transform to pull down json from repo that parses pdf data
# Structure contains the info a computer needs to interpret this dataset
# qri will figure structure out for you if you don't one
# and later you can change structure to do neat stuff like validate your
# data and make your data work with other datasets.
# Below is an example structure
structure:
# Syntax in JSON format:
format: json
# Schema defines the "shape" data should take, here we're saying
# data should be an array of strings, like this: ["foo", "bar", "baz"]
schema:
type: array
items:
type: array
items:
- description: county
title: county
type: string
- description: votes for candidate Zephyr R. Teachout
title: Zephyr R. Teachout
type: integer
- description: votes for candidate Andrew M. Cuomo
title: Andrew M. Cuomo
type: integer
- description: votes for candidate Randy A. Credico
title: Randy A. Credico
type: integer
meta:
title: Gubernatorial Democratic Primary Results 2014
description: Pulled from a repo that parsed the official pdf containing the 2014 Democratic Gubernatorial Primary voting results.
# Transform contains instructions for creating repeatable, auditable scripts
# that qri can execute for you. Currently transforms are written in the skylark
# scripting language, which is modeled after the python programming language
# for more info check https://qri.io/docs/transforms
transform:
scriptpath: tf.sky
# use viz to provide custom a HTML template of your dataset
# the currently accepted syntax is 'html'
# scriptpath is the path to your template, relative to this file:
# viz:
# syntax: html
# scriptpath: template.html
# the body of a dataset is data itself. either a path to a file on your computer,
# or a URL that leads to the raw data
# bodyPath: