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, labelled = FALSE, ...)

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.

labelled

logical. To indicate whether to include 'refAreaLabelled' column.

...

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 Oct. 16, 2024, 6 p.m.