-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Upload a picture directly from list of nearby places needing photos #252
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
Great idea! |
For both list and map, ideally. |
Adding this to the renewal proposal:
A few questions
|
1: Great idea! I am sure that people who are actually at that place (GPS) have much lower chances of being vandals than people hiding somewhere on the Internet. |
|
@VojtechDostal |
We should definitely monitor the Wikidata items where P18 was set. At least in the beginning, we want to ensure we are not creating chaos in Wikidata :) |
Awesome, thanks guys. Will add to proposal draft. |
I've been thinking about the P18 modification and have a couple of concerns:
|
|
Great questions Josephine. I agree with Nicolas. |
Ah, good points, thanks. I wonder if we should add this as a measure of success, then - something like a 10% reduction in Wikidata places with p18 not set, maybe? Is there an easy way of measuring that, and would it be a reasonably reliable measure (for instance, if the number just fluctuates wildly every year, it wouldn't be a reliable measure)? |
Achieving such decrease through our app would be huge but I don't think it's achievable in short-term. There are millions items in need of a picture (and hundreds of thousands are geocoordinated so that they appear in our app) so 10% would probably amount to hundreds/tens of thousands of uploaded pictures. I think even 1000-2000 Wikidata P18 edits would be a huge success in one year's time (that's about 3-6 P18 edits per day!), but even 500 would still be a success. We should measure in absolute numbers as I suggest above. The current % number often goes up and down, especially when new geocoordinated items are added through mass data donations. It won't be difficult to get this metric in absolute numbers because we definitely need to track the edits somewhere - either by adding a qualifier to Wikidata (not sure if that would be by Wikidata's standards) or by logging it on an external page. |
Thanks @VojtechDostal . I agree, in that case using an absolute number would be best. The renewal can only be for 6 months though I think, so in that case we should probably aim for 500? What do you guys think would be the best way to log the edits? @nicolas-raoul |
We have to ask (on project chat I guess) for a new tag: https://www.wikidata.org/wiki/Special:Tags |
I've been writing the renewal proposal and thinking about one of the proposed improvements:
I actually think it might be a good idea to keep this for the 2018 proposal with WMCZ. What do you think guys? For the 2017 renewal it might be best to focus on the Wikidata edits first, and after we have successfully tracked those and concluded that it works well, then Wikipedia edits can be considered for 2018? (I'm also finding the time budget for the 2017 renewal a bit tough so am having to take 1 or 2 planned items out, haha) |
Updated opening post to add use case, scope, and steps. Feedback welcome! Questions: Do we want to use Wikidata's description to allow the user to autofill the "Description" field with it? From what I've seen, Wikidata's descriptions are not very, uh, descriptive. |
As a pre-filled Commons description I would be in favour of:
|
That would be really cool. As for descriptions, we can even do multilanguage descriptions eg. {{en|castle in Czechia}}{{cs|hrad v Česku}} - Wikimedia Commons supports that. |
@nicolas-raoul and @VojtechDostal sounds great! Do you guys know which other open-source programs do that? Would be good if we could "reuse" some parts of their code, haha. |
@nicolas-raoul @VojtechDostal I've been thinking about how to do the P18 edits - I think the API we are using currently is solely for querying (query.wikidata.org/sparql) and cannot be used for editing Wikidata, right? What about a tool like AutoList that was described here: http://magnusmanske.de/wordpress/?p=128 ? It seems that with the AutoList tool, we can "claim" a property-value set to modify. However, I haven't found an API yet to replace the web interface. Or is there a much more obvious solution that I'm missing? |
IMO the Wikibase API is just for that. https://www.mediawiki.org/wiki/Wikibase/API |
Thanks @VojtechDostal ! |
At that page "Add a claim with a string data value" sounds like the most appropriate method :-) |
The Wikibase API at first look is very intimidating. From what I could gather from the above discussions and as @nicolas-raoul points out, we need to "Add a claim with a string data value". This means editing the P18 property for it and setting the uploaded image link as the value. @nicolas-raoul @VojtechDostal please correct me if my understanding is wrong. :) |
Not sure that helps, but Wikishootme adds an image to an item like this in PHP:
I wonder whether a similar Java non-OAuth library exists. Probably not, actually. |
I have found https://www.mediawiki.org/wiki/Wikidata_Toolkit , a Wikidata/Wikibase Java library for bots and other non-user actors (ie not OAuth).
Adding statements to an entity: |
Have you tried using the toolkit on Android? I have some concerns that there are libraries that might not be compatible - valid choices for desktop / server use but not conducive to mobile usage. Also noticed (in the "release notes" for WDTK)
Android hasn't made it to version 9 yet. |
@psh I haven't seen anything saying that it is usable on Android, indeed. |
@maskaravivek I've been looking through the API and that looks right to me, too. My guess is that we would do something like this:
Also, for Filename I think you will likely need to check for the actual filename, not the title the user inputs. As currently we increment filenames if we find a duplicate, so title alone is not enough. However, I am new to this API too. @tobias47n9e and @whym , any chance you guys can help us? :) |
Guys am stuck at making the wiki data edit from the app. Am able to make the edit using the API sandbox: The above works perfectly and I am able to see the P18 property added to the entity as expected. Am stuck at doing the same thing from the app. Our App doesn't use any of the wikidata APIs as of now. To make the edit I need the
|
Anonymous edits are allowed. Would you like me to ask the Wikidata team at Wikimedia Deutschland to maybe help you? They offered us their help when I talked to some of them during Wikimedia Conference. |
@VojtechDostal That would be wonderful if possible, thanks! :) |
Any help on making wikidata edits work would be great @VojtechDostal. @nicolas-raoul Do you have any idea if the central auth token is currently supported by our app or will we have to do some changes to make it work? |
I am making good progress in a rewrite of the API layer - building JsonMediaWikiApi - and been considering pushing it to a feature branch in our main repo so the rest of the team can get your hands on things. There are still things to do to finish it, but I think the new code would very easily support coding queries to the WikiData API. Also, there's a method to get an edit token from the JSON wikimedia API :) With a little effort it would be possible to split the underlying fluent API and data model out and build our own WikiData toolkit. How do you feel about the feature branch approach? |
@psh Having the code in a feature branch sounds like a good idea to me. :) |
@nicolas-raoul @VojtechDostal I am trying to test #1495 , but first I need to remove the P18 claims on https://www.wikidata.org/wiki/Q13406268 , in order to start from scratch like a real user would. Trying to remove Example.png gives me the error:
Is there a better way to go about this? |
Weird, I just tried again and was able to remove it. :/ Sorry about that. |
@misaochan, In fact, every time I try to remove the image, it fails for the first time and works the second time. :D |
Response I got from WMDE: It would be great if Vivek could come to the Technical Advice IRC meeting - https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting - a weekly technical support office hour with our developers. I just talked to the Wikidata team: someone who could help him with that is going to host the meeting on Wed May 16, 5 pm our time zone :-) In general, Wikidata experts are hosting this meeting quite frequently (but not the one on Wed May 9). Alternatively: If he or one of the people working on this is coming to the Hackathon, real life support would definitely be possible there! If it can't wait until May 16, it might be worth posting on https://lists.wikimedia.org/pipermail/wikidata-tech/. Does that sound reasonable? Hope it helps a bit. |
@maskaravivek Sorry I don't know anything about Wikidata authentication :-/ I would advise against anonymous edition because it would leak the user's IP address. |
@VojtechDostal Thanks a lot for reaching out to WMDE for help. I was able to figure out the authentication bit after @psh's comment. The PR is already up for review. #1495. I have attached a video to show how the flow would look. @nicolas-raoul Yes, I didn't do an anonymous edit. I was able to figure out the authentication. :) |
Thanks for the tip, @VojtechDostal ! Good to know about the wikidata-tech mailing list, we will post there if we have further questions. :) |
I was wrong in assuming that the edits are happening from the user account. Right now they are happening anonymously and as @nicolas-raoul pointed out, it would be leaking user's IP address. I will try to attend this week's WMDE IRC meeting and ask them about the authentication. In the worst case will getting user consent before making wikidata edits be a good alternative? The consent would be one time and based on user's preference the edits can be made or else skipped. |
Thanks so much everyone! It seems our minimum viable product for P18 edits and logging is complete. :) Shall we merge the |
Uh oh!
There was an error while loading. Please reload this page.
Update: This is in the IEG renewal and work will begin on it shortly. I have edited the opening post to add the scope and use case. Also making a list of steps as this is a pretty long and involved task.
Use case:
The current process of contributing images for nearby places that need pictures is rather cumbersome. The user would have to go to the list or map of nearby places, and after finding a location that they want to photograph based on that, they would need to go back to the main screen of the app and submit their image via the standard upload process. None of the wealth of information available in the Wikidata item for that location is utilized in the upload process.
Scope:
We intend to implement direct uploads, where the process would be:
Steps:
The text was updated successfully, but these errors were encountered: