Monthly datasets problem
What is the problem?
Many publishers are creating a new ‘dataset’ in data.gov.uk for every monthly update of some data, which is now considered bad practice. It is particularly common for the £25k spend data. You can see it floods the search page:
How can it be done better?
Create just one ‘dataset’, and all the months of data are linked form within it. You can see other datasets clearly in the search results:
And all the links are handily together on the dataset page: In addition, it tidies away previous years’ data to make the page manageable. Many users will still want access to the historical data and they can reveal it by clicking on the year.
This is a far better experience for users and is actually an easier process for the publisher to update.
How do I create or convert to a ‘time-series’ dataset?
This assumes you having clicked “Add a new dataset” or “Edit dataset properties” - for more details see Dataset Form.
Click on the “Data Files” tab.
Select “A timeseries record”. This adds the “Date” column to the table below.
Select the correct “Update frequency”.
Fill in the table. Each row corresponds to one month, with the unique URL for that month’s data. If you have any existing rows then they will need the “Date” field completing before the page can be submitted.
In the “Date” column add the date that the download refers to. A top tip for monthly data is to type in just the month e.g. type “6/14” for June 2014. Or data applying to a particular year, just put the year e.g. “2014”. i.e. you don’t have to click on the calendar that pops up.
In the “File Title” column you don’t need to repeat the date if the date field is clear. You could just put “Monthly spend data” for every row.
NB You don’t need to put them in order with the arrow buttons - a time series will display in the correct order automatically.
Click ‘Save and finish’.
How do I add new months to a time-series dataset?
When a new month’s data comes out you simply Edit the dataset, click on the “Data files” tab and fill in a new row. Finally click ‘Save and finish’.
There is a fuller description for spend data on this page: £25k Spend data - publishing by central government: How do I put this onto data.gov.uk?
What about converting lots of datasets?
NB As of September 2015, the data.gov.uk team has developed a semi-automatic tool to merge datasets together into a time series. It has been run on all publishers that had spend data spread across multiple datasets, and publishers informed individually. You can also ask for other datasets to be merged in this way - to do this contact us with the URLs of the datasets to merge.
Alternatively, to manually merge datasets:
Create a new dataset that will be the timeseries (don’t try and convert an existing dataset because that will have a month/year embedded in its URL).
In a separate browser tab or window, find the monthly data URLs and copy and paste them into the new datasets form.
Ask the data.gov.uk team to delete the old datasets. Use the data.gov.uk Contact form. Explain that you’ve aggregated several datasets into a new timeseries one, providing the link to it, and that you want the old ones deleted.