Class Entity.label_description_aliases_mixin

Mixin for labels, descriptions, and aliases

method label : lang -> string

Given 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 option

Given a Wikidata language code, returns the label of the Entity in that language as an option type, returning None if no label is found for that language.

method all_labels : (lang * string) list

Returns an association list between language codes and labels.

method aliases : lang -> string list

Given 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) list

Returns an association list between language codes and labels.

method description : lang -> string

Given 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 option

Given a Wikidata language code, returns the description for the Entity in that language as an option type, returning None if none is found for that language.

method all_descriptions : (lang * string) list

Returns an association list between language codes and descriptions.