ods_print_query: Generate a SPARQL query to call on API

View source: R/ods_print_query.R

ods_print_queryR Documentation

Generate a SPARQL query to call on API

Description

ods_print_query returns a valid SPARQL query to call on the statistics.gov.scot API

Usage

ods_print_query(dataset, geography = NULL, ...)

Arguments

dataset

string. The identifying final part of a URI for a dataset on statistics.gov.scot.

geography

string. A valid SG geography code, or portion thereof.

...

Arbitrary filters requiring valid scheme = value structure.

Details

The dataset parameter must be passed a valid dataset name (a full list can be obtained by calling ods_all_datasets(). Other parameters can also be used to filter the dataset.

Value

string. A valid SPARQL query.

Examples

ods_print_query("average-household-size")


jsphdms/scotgov documentation built on Feb. 2, 2024, 1:06 a.m.