openaddresses / machine

Scripts for running OpenAddresses on a complete data set and publishing the results.
http://results.openaddresses.io/
ISC License
97 stars 36 forks source link

Provide a way for attribution to include a source date #698

Open stefanb opened 6 years ago

stefanb commented 6 years ago

Some source licenses require attribution to include a date of the source data. Eg Slovenia: http://www.e-prostor.gov.si/fileadmin/struktura/ANG/General_terms.pdf

The data user shall indicate the data source in every publication of data or products. Such indications shall include the following data: "Surveying and Mapping Authority of the Republic of Slovenia, the type of data and the time to which the data refer and/or the date of the database."

To keep it simple for Slovenia i have reduced the "date" component of attribution to a year-only precision in /sources/si/countrywide.json, but updates have to be done via pull requests and update from 2017 to 2018 is still waiting in https://github.com/openaddresses/openaddresses/pull/3470 (see sources/si/countrywide.json)

Ideally there would be a way to extract some metadata from the source and allow that changes to attribution to be automated.

The daily prepared souce zip file for slovenia contains a .txt file with exact date, but that could easily be changed to provide the date in some other way, eg:

A simple, but not exact solution would be to allow some placeholder replacement within attribution text (eg to replace {yyyy-mm-dd} with current date and {yyyy} with the current year).

(ticked moved over from https://github.com/openaddresses/openaddresses/issues/3961)