opensanctions / opensanctions/poliloom
Import position inception and dissolved dates from Wikidata
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 22
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Wikidata has temporal data on position entities that tells us when a position was created and when it was abolished:
- P571 (inception) — when the position was established
- P576 (dissolved/abolished) — when the position ceased to exist
For example, "Member of the House of Lords of Great Britain" (Q110314996) has P571: 1707 and P576: 1800. Without this data, we can suggest historically invalid positions during enrichment.
What to do
- Add
inceptionanddissolveddate columns to thepositionstable - Extract P571/P576 from the Wikidata dump during position import
- Use dissolved dates during enrichment to avoid mapping to abolished positions
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the positions table, the Wikidata position-import path, and the enrichment logic. Trace how position properties are extracted and how candidates are mapped; done means P571/P576 populate the new columns and enrichment avoids positions abolished before the relevant date.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data, databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100