Connects to the ONS Geography Linked Date SPARQL interface to retrieve descriptions statistical geographies.

get_geography(
  geography_uri,
  endpoint = "http://statistics.data.gov.uk/sparql",
  include_geometry = FALSE
)

Arguments

geography_uri

A character vector of URIs

endpoint

A string for the sparql endpoint

include_geometry

A boolean indicating whether the geometries should be downloaded (defaults to FALSE).

Value

A data frame of geography descriptions

Details

The description includes the official name, GSS-code and optionally the URI of the parent geography and WKT geometry (if it exists).

Examples

if (FALSE) { get_geography("http://statistics.data.gov.uk/id/statistical-geography/K02000001") }