Data Bahrain

v0.2.1
io.github.pipeworx-io/data-bahrain Checked 1 day ago Published 1 month ago

Bahrain government open data — population and census statistics, education, GDP and labor market…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_datasets

Search Bahrain government open data for datasets by keyword (population, census, education, GDP, labor market, industry). Returns dataset_ids (pass to query/dataset_info), titles and record counts.

ParameterTypeDescription
limitnumberMax datasets (1-100, default 20).
offsetnumberPagination offset (default 0).
querystringKeyword(s) to search dataset titles/descriptions, e.g. "population".

dataset_info

Get metadata for one Bahrain government open data dataset (field schema, record count, description) — call before query to learn the column names.

ParameterTypeDescription
dataset_id *stringDataset id from search_datasets.

query

Query records from a Bahrain government open data dataset with ODSQL. Filter (where), aggregate (group_by/select), sort (order_by), paginate (limit/offset).

ParameterTypeDescription
dataset_id *stringDataset id from search_datasets.
group_bystringODSQL group_by field(s).
limitnumberMax records (1-100, default 20).
offsetnumberPagination offset (default 0).
order_bystringSort, e.g. `year desc`.
querystringFree-text keyword across all fields (optional).
selectstringODSQL select/aggregation, e.g. `count(*) as n, sum(amount)`.
wherestringODSQL filter, e.g. `year >= 2020` (overrides query).