opensanctions / opensanctions/poliloom

Import position inception and dissolved dates from Wikidata

Open
#142 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

loom
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
  1. Add inception and dissolved date columns to the positions table
  2. Extract P571/P576 from the Wikidata dump during position import
  3. Use dissolved dates during enrichment to avoid mapping to abolished positions

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.