[Wikidata-bugs] [Maniphest] T291659: Get machine readable information that an item in Wikidata is flagged for deletion

2021-10-05 Thread dshorthouse
dshorthouse added a comment.


  Oh cool! So, if I understand this correctly, the title of the page mentioned 
on the Request for deletion is queried. Here's what I would run using the 
Bionomia ID property, P6944 <https://phabricator.wikimedia.org/P6944>:
  
SELECT DISTINCT ?item ?itemLabel WHERE {
SERVICE wikibase:mwapi
{
  bd:serviceParam wikibase:endpoint "www.wikidata.org".
  bd:serviceParam wikibase:api "Generator".
  bd:serviceParam mwapi:generator "links".
  bd:serviceParam mwapi:titles "Wikidata:Requests for deletions".
  bd:serviceParam mwapi:gpllimit "max".
  bd:serviceParam mwapi:gplnamespace "0".
  ?item wikibase:apiOutputItem mwapi:title.
}
   
?item wdt:P6944 ?id .
   SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
  
  Does this seem correct? Are there any limitations here that I should be aware 
of (eg perhaps a title used in a request for deletion that would slip through, 
undetected)?

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

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

To: dshorthouse
Cc: Vojtech.dostal, dshorthouse, Aklapper, Salgo60, Invadibot, maantietaja, 
Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, 
_jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T291659: Get machine readable information that an item in Wikidata is flagged for deletion

2021-09-23 Thread dshorthouse
dshorthouse added a comment.


  Thanks @Salgo60. What I'm looking here, specifically, is some mechanism to 
have tighter interaction between wikidata (SPARQL maybe?) and the activity that 
takes place on https://www.wikidata.org/wiki/Wikidata:Requests_for_deletions. 
While of course a user who created the item may receive notification in their 
wikidata account, the existence of an item mentioned on Requests for Deletion 
is not discoverable through an API. My work-around is to screen-scrape that 
page such that I can cross-reference the Q numbers to ones I care about.

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

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

To: dshorthouse
Cc: dshorthouse, Aklapper, Salgo60, Invadibot, maantietaja, Akuckartz, Nandana, 
Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, 
Scott_WUaS, Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org