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

[Concept]: Add ISO 3166-2 subdivision codes #179

Open
coolharsh55 opened this issue Aug 2, 2024 · 1 comment
Open

[Concept]: Add ISO 3166-2 subdivision codes #179

coolharsh55 opened this issue Aug 2, 2024 · 1 comment

Comments

@coolharsh55
Copy link
Collaborator

Specs

Locations (LOC), LEGAL (e.g., IE, US)

New Concept(s)

ISO 3166-2 has subdivision codes to represent regions and cities and other locations. These should be added to LOC extension, and used in LEGAL extension. Relevant concepts for these should be added to DPV as subclasses of dpv:Location e.g. cities, provinces, and others as present in ISO 3166-2.

Changed Concept(s)

No response

@coolharsh55 coolharsh55 added this to the dpv v2.1 milestone Aug 2, 2024
coolharsh55 added a commit that referenced this issue Aug 2, 2024
- adds extensions under `/legal` for the following EU/EEA member states:
  AT, BE, BG, CY, CZ, DK, EE, ES, FI, FR, GB, GR, HR, HU,
  IS, IT, LI, LT, LU, LV, MT, NL, NO, PL, PT, RO, SE, SI, SK,
  which use the ISO 3166-2 codes
- the following extensions already existed in 2.0: IE, IN, DE, US, EU
- each jurisdiction only has the DPA defined, and no laws are defined at
  the moment
- #48 should be used to discuss this - the missing laws and other info
  requires volunteers to collect the data (the work is quite simple)
- Spain (ES) has 3 autonomous regions who have DPAs, whose data is
  present in the spreadsheets but has not been included in this release
  as their jurisdictions utilise regions which are not currently
  represented in LOC
- #179 tracks the addition of ISO 3166-2 subdivisions which are needed
  to add ES data as above
coolharsh55 added a commit that referenced this issue Aug 3, 2024
- adds ISO 3166-2 subdivision codes (e.g. regions in countries) to LOC
- there are approx. 5000 subdivisions - which is massive in terms of
  inflating the RDF and HTML file sizes
- to keep things manageable, the format of HTML for LOC has been changed
  to an extremely minimal page without the full details table present in
  other specifications for each concept
- similarly, the OWL HTML page was also simplified with the same pattern
  as the file size for index.html was 17M - which is unfeasible
- the file sizes for RDF serisalisations cannot be reduced
@coolharsh55 coolharsh55 added review and removed todo labels Aug 3, 2024
@coolharsh55
Copy link
Collaborator Author

I have added in the ISO 3166-2 codes (using data from Wikidata), see live demo at: https://dev.dpvcg.org/2.1-dev/loc/ There is an issue here that needs discussion - there are about 5000 subdivisions present, which means the file sizes get really large (RDF - 10M, HTML - 15M). To reduce the HTML sizes (we cannot change RDF sizes), I have simplified the way concepts are presented in the HTML page by removing the full details table and only providing minimal tables showing which country has which subdivisions and what are their codes. Same for OWL - it only provides a minimal layout and information. A decision has to be made whether to continue with this or use another approach.

coolharsh55 added a commit that referenced this issue Aug 4, 2024
- adds extensions under `/legal` for the following EU/EEA member states:
  AT, BE, BG, CY, CZ, DK, EE, ES, FI, FR, GB, GR, HR, HU,
  IS, IT, LI, LT, LU, LV, MT, NL, NO, PL, PT, RO, SE, SI, SK,
  which use the ISO 3166-2 codes
- the following extensions already existed in 2.0: IE, IN, DE, US, EU
- each jurisdiction only has the DPA defined, and no laws are defined at
  the moment
- #48 should be used to discuss this - the missing laws and other info
  requires volunteers to collect the data (the work is quite simple)
- Spain (ES) has 3 autonomous regions who have DPAs, whose data is
  present in the spreadsheets but has not been included in this release
  as their jurisdictions utilise regions which are not currently
  represented in LOC
- #179 tracks the addition of ISO 3166-2 subdivisions which are needed
  to add ES data as above
coolharsh55 added a commit that referenced this issue Aug 4, 2024
- adds ISO 3166-2 subdivision codes (e.g. regions in countries) to LOC
- there are approx. 5000 subdivisions - which is massive in terms of
  inflating the RDF and HTML file sizes
- to keep things manageable, the format of HTML for LOC has been changed
  to an extremely minimal page without the full details table present in
  other specifications for each concept
- similarly, the OWL HTML page was also simplified with the same pattern
  as the file size for index.html was 17M - which is unfeasible
- the file sizes for RDF serisalisations cannot be reduced
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant