Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
stefanb opened this issue Apr 13, 2018 · 1 comment
Closed

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

stefanb opened this issue Apr 13, 2018 · 1 comment

Comments

@stefanb
Copy link
Contributor

stefanb commented Apr 13, 2018

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 #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 json with required attribution (a sort of updated local countrywide.json distributed with the zip file itself)
  • include attribution with every row in the .csv (machine would collect them, and list all the unique attributions in the final attribution)
  • include date with every row in the .csv (machine would collect them, and list all the unique attributions in the final metadata, or provide a range)
  • check the timestamp of csv within the zip file

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).

@stefanb
Copy link
Contributor Author

stefanb commented Apr 15, 2018

Ticket moved to openaddresses/machine#698

@stefanb stefanb closed this as completed Apr 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant