Thanks for the heads up!
- Feed Queries
- All Stories
- Search
- Feed Search
- Transactions
- Transaction Logs
Apr 3 2023
Mar 31 2023
Made some changes regarding the jquery UI library
Mar 30 2023
Mar 25 2023
Mar 24 2023
Apr 24 2021
I sent my task 6 code by email.
Apr 23 2021
What if certain articles don't have the id written anywhere? Do I skip those ones? Or are the articles in the categories hand-picked in a way where every article has to have the id?
Just for clarification, are we meant to hardcode the ids in? I don't see a way to get the ids through code unless that specific category has an API tied to it.
Hello, I would like to pick the L'Équipe football player ID not in Wikidata category
I have submitted my task 5 code through email.
Apr 19 2021
Hello, I sent my task 4 code through email.
Apr 14 2021
I submitted my task 3 code through email, looking forward to the feedback!
Apr 13 2021
In T278997#6993037, @Mike_Peel wrote:In T278997#6992891, @Nizz009 wrote:In T278997#6992887, @Aminehassou wrote:In T278997#6992884, @Nizz009 wrote:In T278997#6992880, @Aminehassou wrote:Since we are parsing through the article text on wikipedia, are we also meant to get the property id as shown in the example?
"P31 = radio telescope"If so, how is this possible without accessing wikidata?
Hello @Aminehassou ! What I think that we have to do is that, we search for 'specific information' (especially those that we searched for in Task 1) in the Wikipedia article. And since we know what kind of information we searched for, we can assign the corresponding property ID which is appropriate for it.
Hey, thanks for the response, so in other words, we hardcode the value in since we have already found it during task 1?
No problem. And yes, that's pretty much what we have to do.
Not quite. You hard-code 'P31' ('instance of'), since that is what you are looking for. But then you extract 'radio telescope' directly from the article (e.g., by retrieving the "Lovell Telescope" article and finding "is a [[radio telescope]]" in the first sentence). So you hard-code the question ('what is this an instance of?'), find the answer from the article by python, and then get your code to print it out in terms of Wikidata value 'P31 = value".
In T278997#6992884, @Nizz009 wrote:In T278997#6992880, @Aminehassou wrote:Since we are parsing through the article text on wikipedia, are we also meant to get the property id as shown in the example?
"P31 = radio telescope"If so, how is this possible without accessing wikidata?
Hello @Aminehassou ! What I think that we have to do is that, we search for 'specific information' (especially those that we searched for in Task 1) in the Wikipedia article. And since we know what kind of information we searched for, we can assign the corresponding property ID which is appropriate for it.
Since we are parsing through the article text on wikipedia, are we also meant to get the property id as shown in the example?
Apr 11 2021
In T278863#6989788, @Momor72 wrote:Can anyone point me to where I can find documentation for the reload function in line 15 of example.py? It seems to be causing the above error when I execute my code. My terminal defaults to UTF-8, so I could for the sake of the project just comment out the code I'm sure just to take a look at things. However, I've been through documentation for the imported modules and can't find anything, nor could I find the code defined in the script itself. Thanks
Apr 5 2021
Hello, I submitted my task 2 code by email.
Thanks,
Apr 2 2021
No problem. :)
Make sure you're running the command line as administrator. If you are and it's still giving you an error, it might be an issue with your PATH variables. Try doing a fresh install of Python 3 through the official website https://www.python.org/downloads/
then trying again from scratch.
What error did you get when running
pip install -U --force requests
If the other fixes don't work, try this fix as well:
https://stackoverflow.com/questions/37220055/pip-fatal-error-in-launcher-unable-to-create-process-using
This seems to be the same error you are having, try the suggested fixes given by the answers.
Can you post a screenshot of the full error when running
pip install "requests>=2.20.1"
Ok, thanks for the clarification!
Apr 1 2021
Load a Wikidata item (use 'Q4115189' to start with - it is the sandbox), and print out information from it. You could also try loading some of the other items you looked at in the first task.
In T278863#6966172, @Mike_Peel wrote:It's generally better to write code that is stand-alone and others can run, so in this case it's worth including '('en', 'wikidata')' in the main script, even if it's not strictly needed for you to run it. You shouldn't normally share your user config file.
When submitting my code, should I also send my user_config.py file privately? Since I picked Wikidata as my default family of sites. When I write my script, I don't have to write:
Mar 31 2021
Here is my Wikidata Page
