R/correspondenceTableList.R
correspondenceTableList.RdReturns a data frame listing available correspondence tables (mappings between statistical classifications) published by one or more supported online services.
Use this function to discover valid `prefix` and `ID_table` values before calling `retrieveCorrespondenceTable()`.
correspondenceTableList(endpoint = "ALL", showQuery = FALSE)Character. Which service(s) to query. One or more of the supported endpoints (e.g. "CELLAR", "FAO"), or "ALL" to query all available services. Case-insensitive. If multiple endpoints are supplied (including "ALL"), a **named list** is returned; otherwise a single `data.frame`.
Logical. If `TRUE`, the SPARQL queries used are emitted via `message()` (suppress with `suppressMessages()`).
If a single endpoint is requested, a `data.frame` (one row per correspondence). If multiple endpoints are requested (including "ALL"), a **named list** of data frames, one per endpoint.
Read-only queries; no side effects (no file writes or caching).
retrieveCorrespondenceTable()
if (FALSE) { # \dontrun{
# List correspondence tables available in CELLAR
ct <- correspondenceTableList(endpoint = "CELLAR")
head(ct)
# List correspondence tables available in FAO
ct_fao <- correspondenceTableList(endpoint = "FAO")
head(ct_fao)
# Get correspondence tables from both repositories
ct_all <- correspondenceTableList(endpoint = "ALL")
names(ct_all)
} # }