Last modified: 2014-09-02 20:54:27 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T72302, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70302 - Get property name from label
Get property name from label
Status: NEW
Product: Pywikibot
Classification: Unclassified
Wikidata (Other open bugs)
core-(2.0)
All All
: Unprioritized enhancement
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-02 20:54 UTC by Cristian Consonni
Modified: 2014-09-02 20:54 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Cristian Consonni 2014-09-02 20:54:27 UTC
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).

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links