binbot created this task.
binbot added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  **Feature summary**: Pywikibot.Page should have an is_person_wd() method to 
determine if the article is about a person.
  
  Return True, if the page instantiates a person, i.e. value of P31 
<https://phabricator.wikimedia.org/P31> is Q5 (the simpliest way)
  Return False, if
  
  - it is not a person
  - namespace is not 0
  - page is not connected to Wikidata
  - project is other than Wikipedia
  
  _wd postfix emphasizes for users that the method is based on Wikidata.
  
  **Use case(s)**: Deciding if the article is about a person is a frequent 
tasks as biographies may have several properties, categories, tasks to do with. 
Usually it is painful, as there are no obvious and easy-to-parse properties in 
the article text, and most Wikipedias don't have a simple category. Biographies 
form a main field of articles, not just one theme of million.
  
  **Benefits**: The method would make the decision easy. Additional advantages: 
we could create pagegenerators or subclass Page with special methods.

TASK DETAIL
  https://phabricator.wikimedia.org/T328769

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: binbot
Cc: Xqt, Aklapper, pywikibot-bugs-list, binbot, PotsdamLamb, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, 
jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org

Reply via email to