kgdata.wikidata.datasets.property_ranges#

Functions

get_target_property_entity(ent)

join_prop_counts_and_types(prop_counts, classes)

property_ranges([lang])

Extract the ranges of a property.

property_ranges(lang='en') Dataset[Tuple[str, Dict[str, int]]][source]#

Extract the ranges of a property.

NOTE: it does not returns children of a range class but only the class that is typed of an entity in the statement target with the property.

Return type:

Dataset[Tuple[str, Dict[str, int]]]

join_prop_counts_and_types(prop_counts: Dict[str, int], classes: List[str]) List[Tuple[str, Dict[str, int]]][source]#
Parameters:
Return type:

List[Tuple[str, Dict[str, int]]]

get_target_property_entity(ent: WDEntity) List[Tuple[str, Dict[str, int]]][source]#
Parameters:

ent (WDEntity) –

Return type:

List[Tuple[str, Dict[str, int]]]