https://bugzilla.wikimedia.org/show_bug.cgi?id=70302
Bug ID: 70302 Summary: Get property name from label Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: enhancement Priority: Unprioritized Component: Wikidata Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: kikkocristian@gmail.com Web browser: --- Mobile Platform: ---
IS it possible to add a method to get the property number from its label name in a given language.
For example item.getPropertyFromName('en', 'country') to return 'P17' since the English label of the property P17 is, indeed, country (see: https://www.wikidata.org/wiki/Property:P17).