johnpeart / lgbt-councillors

Other
1 stars 0 forks source link

Create data structures #2

Open johnpeart opened 2 years ago

johnpeart commented 2 years ago

The site will generate from a CSV file using Jekyll as a static site generator.

The data structure needs to be defined in order to build out the rest of the code for the generator to make its pages.

This file needs to be updated to reflect the desired structure.

johnpeart commented 2 years ago

The dataset currently requires:

  1. name – name of the councillor
  2. local-authority – the name of the local authority the councillor is in
  3. ward – the ward (is there any other descriptor for council 'constituencies'?)
  4. party– the party the councillor is affiliated with
  5. start-date – the data the councillor was elected
  6. end-date – the data the councillor finished in office
  7. identity – the declared identity of the councillor (will default to LGBT+ if not stated)
  8. source-description – a description of where the source of the data comes from (i.e. a newspaper title)
  9. source-date – the date the source was published
  10. source-url – the URL of the source if available
  11. id – a unique identifier for the councillor (note: unlike the parliament website where each MP has a unique number, this will likely need to be generated manually)
  12. official-website – a URL for the councillor if they have an official profile or website
  13. notes – any notes added by the contributor
  14. image-source – the name of the source for the councillor's portrait photo
  15. image-source-url – the URL for the portrait photo
  16. image-license – the license the photo is used under
  17. image-license-url – the URL of the license itself

What else should be included?

maxxturing commented 2 years ago

RE Question 2...Wikipedia suggests the below...

England

Wales

Scotland

Northern Ireland

...given the above it might be best to use Electoral District as a catch-all?

There might also be a case to introduce "Region" or "Council Type" (or something similar) to the table too.

At the same time I don't want to overcomplicate things before we've started, as I'm sure these things can be adjusted later...

johnpeart commented 2 years ago

The data.csv has been amended to:

If you're happy with that data structure, I'll crack on with building out the code to do the sorting.