Function sources data sets available at https://statistics.gov.scot/.
get_available_datasets(pattern)
pattern | A optional pattern to match data set name. |
---|---|
... | Other options passed to |
A data frame with data set names and URIs.
The functions executes simple SPARQL query to source distinct
values for the objects of rdf:type
defines as
<http://publishmydata.com/def/dataset#Dataset>
. The sourced
values can be used in function
get_geography_data
and other functions to
filter the query results to a specific data set.
# NOT RUN { get_available_datasets(pattern = "health") # }