kgdata.wikidata.datasets.entities#
Functions
|
|
|
Normalize Wikidata entity from Wikidata entity json dumps. |
|
|
|
Get entities that are children of an entity and properties/qualifiers used by the entity. |
|
- entities(lang: str = 'en') Dataset[WDEntity][source]#
Normalize Wikidata entity from Wikidata entity json dumps.
In the json dumps, an entity can linked to an entity that either: 1. in the dump 2. not in the dump but in a redirection list 3. not in the dump and not in a redirection list (e.g., deleted entity or lexeme that is not included in the dump).
Similarly, property of an entity can also not in the dump.
This dataset fixed all the issues mentioned above by resolving redirection and removed unknown entities (including properties).