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: [email protected]
          Reporter: [email protected]
       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 on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to