Wikidata:Bureaucrats' noticeboard/Archive/2017/11

From Wikidata
Jump to navigation Jump to search
This page is an archive. Please do not modify it. Use the current page, even to continue an old discussion.

Flood flag request

Hi, I'm coming to request a temporary flood flag. I've been involved with deprecating P794 (P794) (see this discussion) and I'm about to run a batch operation that will migrate 6436 items from regulates (molecular biology) (P128)P794 to regulates (molecular biology) (P128)subject has role (P2868). I think 6436 is large enough to need a flooder flag so I'm coming here to request it for this operation. Deryck Chan (talk) 18:10, 24 November 2017 (UTC)

P.S. relevant SPARQL:
SELECT DISTINCT ?item ?asObject ?asObjectLabel
WHERE
{
  ?prop pq:P794 ?asObject .
  hint:Query hint:optimizer "None" .	
  ?item ?p ?prop . 
  ?property wikibase:claim ?p .  
  ?property wikibase:statementProperty ?ps .
  ?prop ?ps ?value .      
  wd:P128 wikibase:claim ?p .   
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en"  }    
}
LIMIT 10000
Try it!
--Deryck Chan (talk) 18:12, 24 November 2017 (UTC)
What tool will you use to run the batch operation? Did you consider that these statements have references which should not be dropped? --Pasleim (talk) 18:43, 24 November 2017 (UTC)

Hello Pasleim. I have written a PAWS script specifically for qualifier migration. It only changes the qualifier that I specify towards the top of the script and preserves all other qualifiers and references of the same statement. I have already used this script in small batches totalling over 1000 edits and can confirm that it behaves as I have described above.

The source code is reproduced below (PAWS's "make notebook public" button is currently broken). The first three lines refer to the migration of Wikidata property (P1687)P794 to Wikidata property (P1687)criterion used (P1013) which I performed earlier today. As you can see, I have a "no_promptbox" option which I set to 0 to manually check the first few items of a batch operation, then rerun the rest with no_promptbox=1 when I'm confident the script is behaving as I expect.--Deryck Chan (talk) 19:10, 24 November 2017 (UTC)

 Support ok, looks good to me --Pasleim (talk) 19:17, 24 November 2017 (UTC)
✓ Done, please remove the flag after the task has been completed.--Ymblanter (talk) 20:32, 24 November 2017 (UTC)

✓ Done. I have finished the large-volume batch edits and removed my flooder flag. Between Pasleim's PLbot and me, we have emigrated all use cases of P794 (P794) that affect more than 1000 items per use case, totalling almost 20,000 edits in the last two days. The remaining changes will happen in small enough batches that shouldn't require the flooder flag. Deryck Chan (talk) 12:41, 26 November 2017 (UTC)