-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Log P18 edits after direct Nearby uploads implemented #923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Now that we already have a PR open for making P18 edits(#1495), any ideas on where the logs should be collected? |
Unfortunately I am not sure either. :/ @nicolas-raoul @whym @VojtechDostal @tobias47n9e We would greatly appreciate thoughts on this if possible :) |
Is it possible to automatize edits to wiki pages such as on Wikimedia Commons, eg. https://commons.wikimedia.org/wiki/Commons:Mobile_app/Logs ? |
I guess editing a page through the app should be possible. I can check and confirm the feasibility. What information should be logged if we are able to make edits to this page? |
I would go wth username, wikidata item edited, file title, time that the edit was made. Anything else that anyone would like to add? Oh, and having a counter that increments for each edit logged would be very helpful for our final report. :) |
If maintaining the logs on a commons page sounds good to everyone, I will go ahead and make the changes. |
Sounds good to me. I created the page that Vojtech suggested, we can use that for now. |
We already apply a "tag" called "mobile app edit" to some of our edits (when uploading or editing an image, as seen in the first two edits here). Update: Now I realize that there are already 170,764 mobile app edits on Wikidata. So we might want to ask for a tag that only our app would use. |
Tagging edits in Wikidata seems like a very good idea, @nicolas-raoul . It will provide a very important additional metric. I'm in favour of scrapping the log page on Commons entirely if we are able to use edit tags to measure number of images remaining on Wikidata - and create a list of those images - using the edit tags. However it may be very complicated to deduce (count) this metric with just the edit tag, won't it? Is it possible to list all images (with their file names) added with an edit with a given edit tag? |
@VojtechDostal Yes, here is the list of recent changes with the "mobile app edit" tag on Wikidata: https://www.wikidata.org/w/index.php?hidebots=1&translations=filter&hidecategorization=1&hideWikibase=1&tagfilter=mobile+app+edit&limit=500&days=30&title=Special:RecentChanges&urlversion=2 |
Yes, but will you be able to export it as a list of files added via our app? (Even though some will be later removed, but we still want to count them)? |
How do we go about getting our own Wikidata tag? |
I have created a phab task hoping that someone replies about how to get our own Wikidata tag. |
As pointed out in the phabricator discussion, it should be trivial to add the tags by making another API call just after a successful edit is made. Moreover, I have requested the Wikidata Administrators to create a new tag for us. :) |
Yay! We have our own tag( |
I get the following error while adding the
The same API works for me in the sandbox. |
@VojtechDostal @nicolas-raoul Once the logs are in place, this query can be used to track the edits made using the Commons app. |
@maskaravivek Thanks! I added the URL to the list of things to patrol, at https://commons.wikimedia.org/wiki/Commons:Mobile_app :-) |
Implemented! :) |
I'm having a problem with the log page - it seems that it restricts the logs to the past 30 days. There is no option to choose a larger number of days, and even manually setting the param in the URL defaults to 30. Am I missing something? @nicolas-raoul |
@urbanecm wrote the following Quarry for us: That should work always, not just for the last 30 days |
Woohoo! Thanks @VojtechDostal and @urbanecm . :) |
Thank you! Works now, we have 725 p18 edits! :) |
@urbanecm Hmm, there is another issue - it looks like edits to the same page title count multiple times, for instance Q32110705 is present in 2 rows, so we can't just use the number of rows as our metric. Do you know if it's possible to only count the unique page titles? |
@misaochan With unique page titles: https://quarry.wmflabs.org/query/37568 |
@misaochan Seems you have what you wanted? :-) |
Woo, thanks guys! :) |
@VojtechDostal , is there a way to re-run that query to get an updated map? Would be useful for future reports. :) |
I think that query is executed each time you load it :-). |
Awesome, thanks @VojtechDostal ! Yeah, that is a pretty long URL, haha. 😄 But on the bright side, the map looks great, so many new countries! How do you obtain the list of items (in the appropriate format) to update it with? |
@misaochan Yeah, it's a really cool visualization of what we have achieved with the app. I get the list from @nicolas-raoul 's quarry (https://quarry.wmflabs.org/query/37568) ... and just add "wd:" in front of QIDs using Excel into each line :) |
Hi @nicolas-raoul @VojtechDostal , I'm trying to collect these stats again for the next PG report, but it seems like things have changed again. A database name needs to be entered, and also I'm pretty sure https://quarry.wmflabs.org/query/37568 itself has been changed? Would appreciate any help with the query. :) |
I think I fixed it: https://quarry.wmflabs.org/query/56896 |
@nicolas-raoul Thanks a lot! It works for me now. And according to our results, we have a total of 4564 p18 edits made through our app now, which is pretty impressive IMO! :) @VojtechDostal Wow, that's super cool, so many pics added for the Czech Republic! (But you do mean p18 and not p17... right? :) ) |
Ahh, @nicolas-raoul , I just realized that some QIDs are being counted multiple times (e.g. Q95683884 by Silas), so the number of rows might not be the true number of places with pics added to them. Could we get the fix for unique QIDs again please? |
@misaochan Sure, here are unique QIDs: https://quarry.wmflabs.org/query/56908 By the way P17 is the country property, right before the image property :-) @VojtechDostal I tried generating the world map reusing your 2019 SPARQL above, but I get |
I do it differently now... Using Commons Query service - https://www.wikidata.org/wiki/User:Vojt%C4%9Bch_Dost%C3%A1l/app-Czech_uploads |
Thanks a lot guys! The new query works like a charm. Love the world map too, is it OK to upload it to Commons and use it in the report as well @nicolas-raoul ? :) |
Sure, use it as you like, I doubt there is anything copyrightable about the maps :) . |
Attribution is needed though, I would suggest using license CC-BY-SA and this author: |
I believe this can be closed, as quarry achieves the purpose more or less. |
Strangely this file in Nigeria appears as a result of the query https://quarry.wmcloud.org/query/56896 but does not seem to have been uploaded via the app: https://commons.wikimedia.org/wiki/File:Old_church_buiding,_Kafanchan.jpg |
@nicolas-raoul Actually that item previously really had an image from the Commons app: |
@VojtechDostal Interesting! I wonder if the Quarry script could be modified to not count deleted images, and possibly to have a file column that the SPARQL could show instead of the current picture... |
After #252 is implemented, we will need to log the Wikidata P18 edits made via our app, for collecting metrics (number of edits made), as well as to confirm that we are doing it correctly.
How and where shall these logs be made?
The text was updated successfully, but these errors were encountered: