Skip to content
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

Need ability to add a User-Agent to SPARQL query requests #62

Open
hsolbrig opened this issue Nov 19, 2019 · 1 comment
Open

Need ability to add a User-Agent to SPARQL query requests #62

hsolbrig opened this issue Nov 19, 2019 · 1 comment
Assignees

Comments

@hsolbrig
Copy link
Owner

Wikidata has put a set of query limits into place, including the ability to recognize and respond to a HTTP 429 response accompanied by a RETRY-AFTER parameter. It also requires compliance with the USER-AGENT Policy, failure to do as much will result in being "blocked completely".

@hsolbrig hsolbrig self-assigned this Nov 19, 2019
hsolbrig added a commit that referenced this issue Nov 19, 2019
Fixes Issues #52 and part of #62. We still haven't addressed error 419's
@ross-spencer
Copy link

@hsolbrig thanks for the changes in 2617cd0.

I was receiving 429 responses from Wikidata today. I was trying an example like in: https://github.com/hsolbrig/PyShEx/blob/master/notebooks/SPARQLEndpoints.ipynb. If it look at the agent, something like:

sparql_query = SPARQLQuery(endpoint, sparql)
print(sparql_query.endpoint.agent)

Then I am seeing the sparqlwrapper agent return, e.g. sparqlwrapper 1.8.5 (rdflib.github.io/sparqlwrapper). I am wondering if you're seeing the same as me when importing PyShex as a library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants