Wikidata:Requests for permissions/Bot/Symac bot
- The following discussion is closed. Please do not modify it. Subsequent comments should be made in a new section. A summary of the conclusions reached follows.
- Approved--Ymblanter (talk) 15:35, 14 October 2014 (UTC)[reply]
Symac bot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Symac (talk • contribs • logs)
Task/s: add properties to items about french movies articles
Code: gist
Function details:
- harvesting fr:Catégorie:Film français par année de sortie subcategories to get all french movies available on fr.wp and for each, the year it was released. (done, 12,326 movies harvested)
- going through all wikidata items to check the following properties :
- instance of (P31), if absent (possible ?) add film (Q11424)
- publication date (P577), if absent, add the year guessed using category name from fr.wp
- country of origin (P495), add France (Q142)
Sample edits in Symac_bot's contribution list
--Symac (talk) 20:56, 8 October 2014 (UTC)[reply]
- Not all the movies in category must be have instance of (P31) = film (Q11424). Some movies must have television film (Q506240) or short film (Q24862) --ValterVB (talk) 21:17, 8 October 2014 (UTC)[reply]
- @ValterVB: I thought that, as television film (Q506240) and short film (Q24862) are subclasses of film (Q11424), if no instance of (P31) had been set yet (my script does nothing if P31 is already set, whatever its value is) I should assume that the item is a film. That's not false, and can be specified later. Am I wrong ? I can also not add P31 (I don't think there will be many movies missing this property, didn't find any in the sampe I tried). Symac (talk) 21:25, 8 October 2014 (UTC)[reply]
- Yes is correct, add P31 if P31 not exist or if P31 <> Q506240 and P31 <> Q24862.--ValterVB (talk) 17:47, 9 October 2014 (UTC)[reply]
- @ValterVB: I thought that, as television film (Q506240) and short film (Q24862) are subclasses of film (Q11424), if no instance of (P31) had been set yet (my script does nothing if P31 is already set, whatever its value is) I should assume that the item is a film. That's not false, and can be specified later. Am I wrong ? I can also not add P31 (I don't think there will be many movies missing this property, didn't find any in the sampe I tried). Symac (talk) 21:25, 8 October 2014 (UTC)[reply]
- Support --ValterVB (talk) 17:47, 9 October 2014 (UTC)[reply]
- @ValterVB: thanks for your support. Is there any delay required to get access if there's no opposition ? Or should I only wait that a bureaucrat takes this request into account ? Symac (talk) 11:13, 14 October 2014 (UTC)[reply]