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(a)lists.wikimedia.org
Reporter: kikkocristian(a)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).
--
You are receiving this mail because:
You are the assignee for the bug.