Use the /revision
endpoint of the OGD server to get a list
of all datasets that have changed since a certain timestamp.
Arguments
- since
(optional) A timestamp. If supplied, only datasets updated later will be returned. Otherwise, all datasets are retured. Can be in either one of the following formats
a native R time type that is compatible with
strftime()
such as the return values ofSys.Date()
,Sys.time()
andfile.mtime()
.a string of the form
YYYY-MM-DD
to specify a day.a string of the form
YYYY-MM-DDThh:mm:ss
to specify a day and a time.
- exclude_ext
If
TRUE
(default) exclude all results that haveOGDEXT_
as a prefix- server
the open data server to use. Either
ext
for the external server (the default) orred
for the editing server. The editing server is only accessible for employees of Statistics Austria
Examples
# get all datasets (including OGDEXT_*)
ids <- od_revisions(exclude_ext = FALSE)
ids
#> 383 datasets are available ([2022-12-20 10:34:42])
#> ids: OGDEXT_AEST_GEMTAB_1, OGDEXT_AMB_1, OGDEXT_BINNENWAND_1, …,
#> OGD_vpilhki45_VPI_LHKI45_1, and OGD_zlf_komm_ZLF_KOM_1
sample(ids, 6)
#> [1] "OGD_tli06kvg_TLI_106"
#> [2] "OGD__steuer_lst_ab_2008_2_LST_2"
#> [3] "OGD_bevwan020_AUSSENWAND_201"
#> [4] "OGD_sgv_daten_international_SGV_INT_1"
#> [5] "OGD_hpi2010_HPI_10_1"
#> [6] "OGD_invpi10_Invpi10_1"
# get all the datasets since the fifteenth of august
od_revisions("2022-09-15")
#> 158 changes between [2022-09-15] and [2022-12-20 10:34:42]
#> ids: OGD_1905fue_FUE_B1905FUE_1, OGD__steuer_kst_KST_1,
#> OGD__steuer_kst_KST_2, …, OGD_vpilhki45_VPI_LHKI45_1, and
#> OGD_zlf_komm_ZLF_KOM_1