kgdata.wikidata.datasets.entity_pagerank#
Functions
|
Generate a weighted graph of Wikidata's entities. |
|
|
|
|
|
|
|
|
|
|
|
Classes
|
- class Edge(source: KeyType, target: KeyType, weight: int)[source]#
Bases:
Generic[KeyType]- Parameters:
source (KeyType) –
target (KeyType) –
weight (int) –
- source: KeyType#
- target: KeyType#
- entity_pagerank(lang: str = 'en') Dataset[Tuple[str, float]][source]#
Generate a weighted graph of Wikidata’s entities. The graph can be used to calculate page rank to determine entity popularity