Class Entity.label_description_aliases_mixin
Mixin for labels, descriptions, and aliases
method label : lang -> stringGiven a Wikidata language code, returns the label of the Entity in that language.
- raises NotFound
if no label is found for this language
method label_opt : lang -> string optionGiven a Wikidata language code, returns the label of the Entity in that language as an option type, returning
Noneif no label is found for that language.
method all_labels : (lang * string) listReturns an association list between language codes and labels.
method aliases : lang -> string listGiven a Wikidata language code, returns a list of aliases for the Entity in that language. Returns an empty list if none are found.
method all_aliases : (lang * string list) listReturns an association list between language codes and labels.
method description : lang -> stringGiven a Wikidata language code, returns the description for the Entity in that language.
- raises NotFound
if no label is found for this language
method description_opt : lang -> string optionGiven a Wikidata language code, returns the description for the Entity in that language as an option type, returning
Noneif none is found for that language.
method all_descriptions : (lang * string) listReturns an association list between language codes and descriptions.