duescope
v0.1.0Read-only queries over a published website-change dataset: search, rows, stats and provenance.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
dataset_columns Dataset columns and shape
The columns, which of them are numeric, the row count and the provenance banner of the Duesvo dataset. Call this first to learn the schema.
dataset_search Search the dataset
Rows of the Duesvo dataset whose cells contain the query (case-insensitive), up to 50.
| Parameter | Type | Description |
|---|---|---|
query * | string | text to look for in any cell |
limit | integer | Maximum number of results to return |
dataset_row Look a row up by an exact key
The rows of the Duesvo dataset where a column equals a value exactly (case-insensitive).
| Parameter | Type | Description |
|---|---|---|
column * | string | Dataset column to use |
value * | string | Value to match in the column |
dataset_compare Compare rows side by side
The rows of the Duesvo dataset whose column is any of the given values, in the order given — for "X vs Y" questions.
| Parameter | Type | Description |
|---|---|---|
column * | string | Dataset column to use |
values * | array | Values to compare in the column |
dataset_stats Summary statistics for a numeric column
count, min, max, mean, median and sum of a numeric column of the Duesvo dataset (grouping commas and currency are handled; non-numeric rows are excluded and counted).
| Parameter | Type | Description |
|---|---|---|
column * | string | Dataset column to use |
dataset_top Rank rows by a numeric column
The highest (or lowest) rows of the Duesvo dataset by a numeric column — "which is the most/least X".
| Parameter | Type | Description |
|---|---|---|
column * | string | Dataset column to use |
ascending | boolean | true for the lowest first; default highest first |
limit | integer | Maximum number of results to return |
dataset_provenance Where this data comes from, and how to cite it
The source, the date it was computed, the licence and the citation for the Duesvo dataset. Read this to attribute a figure correctly.