Improve metadata: add descriptions, fix field types, add wikidata_id to schema#102
Merged
Conversation
… Wikidata source - Add package-level description - Add resource-level description for country-codes - Add wikidata_id field to schema (was in CSV but missing from schema) - Fix M49 and Geoname ID types from number to integer - Add Wikidata SPARQL endpoint to sources - Fix README UN Protocol URL to match actual data source - Add Wikidata to README data sources Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Use https for ODC-PDDL license URL - Fix ISO3166-1-numeric, Global Code, Intermediate Region Code, Sub-region Code, Region Code types from string to integer (all values are whole numbers) - Update CLDR source path to raw content URL (matches what scripts actually fetch) - Remove orphaned Developed/Developing Countries from config.py COLUMN_NAMES (not present in CSV output or schema) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
These are identifier codes, not quantities. ISO3166-1-numeric in particular is a 3-digit code with leading zeros per the standard (004, 008) — integer type would silently drop those if the data is ever corrected. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
descriptionat package level (was missing)descriptionat resource level forcountry-codes(was missing)wikidata_idfield toschema.fields— column exists indata/country-codes.csv(written bywd_countries.py) but had no schema entryM49field type fromnumbertointeger(all values are whole numbers)Geoname IDfield type fromnumbertointeger(all values are whole integers)sources(used bywd_countries.shto populatewikidata_idbut previously absent from sources)