You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @jvfe. Thanks so much for posting this. I had been searching all over the web for some examples and didn't find the OpenRefine or Reconcilliation Service API W3C Community Report particularly helpful for getting the wikidata.reconci.link API to work in Python. Using your code here and the Reconcilliation Service example for a reconciliation query, I assembled this minimal Python script:
I had been unable to get anything but a 404 from the API when I tried making the call using Postman. Using this script I did get an error message from the server:
This script and query is so incredibly simple and stripped down, I cannot see what the problem is. The actual construction of the query in your code is spread around enough that I can't really compare my query_string with one your code generates. But based on the error message, the problem doesn't seem to be a malformed query. Rather, the API seems to not be seeing the query at all. I didn't see anything in the documentation or your code about any particular required Content-Type headers or authorization being required. So I am mystified as to why it doesn't work.
I don't know how closely you monitor this issue tracker, but if you have any advice on what I'm doing wrong, I would greatly appreciate it. Thanks!
Steve Baskauf
Vanderbilt University Libraries
Nashville, Tennessee, USA
The text was updated successfully, but these errors were encountered:
Hi @jvfe. Thanks so much for posting this. I had been searching all over the web for some examples and didn't find the OpenRefine or Reconcilliation Service API W3C Community Report particularly helpful for getting the
wikidata.reconci.link
API to work in Python. Using your code here and the Reconcilliation Service example for a reconciliation query, I assembled this minimal Python script:I had been unable to get anything but a 404 from the API when I tried making the call using Postman. Using this script I did get an error message from the server:
This script and query is so incredibly simple and stripped down, I cannot see what the problem is. The actual construction of the query in your code is spread around enough that I can't really compare my query_string with one your code generates. But based on the error message, the problem doesn't seem to be a malformed query. Rather, the API seems to not be seeing the query at all. I didn't see anything in the documentation or your code about any particular required Content-Type headers or authorization being required. So I am mystified as to why it doesn't work.
I don't know how closely you monitor this issue tracker, but if you have any advice on what I'm doing wrong, I would greatly appreciate it. Thanks!
Steve Baskauf
Vanderbilt University Libraries
Nashville, Tennessee, USA
The text was updated successfully, but these errors were encountered: