> If you're a tool builder and encountering issues with WDQS at the moment,
> please check that your tool is compliant with those guidelines.

I like and I am using the WDQS - code generator parts.    ( [image:
image.png] )

And as I see -   2 Python related code can be generated - but I don't see
any "user agent" in the generated codes.

Is it possible to add an example "user agent" to the generated code ?
 (  ~ default is the logged user name  or my IP address   )


from SPARQLWrapper import SPARQLWrapper, JSON
endpoint_url = "https://query.wikidata.org/sparql";
sparql_user_agent = "myWikidataUserName"     # see User-Agent policy
query = """#Cats
....
}"""

thanks in advance,
  Imre




Léa Lacroix <lea.lacr...@wikimedia.de> ezt írta (időpont: 2019. júl. 4.,
Cs, 15:53):

> Hello all,
>
> Since we recently received several messages about tools unable to access
> the Query Service, I wanted to remind you about this email from Guillaume,
> and especially this part:
>
> "As a reminder, any bot should use a user agent that allows to identify
> it: https://meta.wikimedia.org/wiki/User-Agent_policy.";
>
> If you're a tool builder and encountering issues with WDQS at the moment,
> please check that your tool is compliant with those guidelines.
>
> Thanks for your understanding,
> Léa
>
> ---------- Forwarded message ---------
> From: Guillaume Lederrey <gleder...@wikimedia.org>
> Date: Thu, 13 Jun 2019 at 19:53
> Subject: [Wikidata] Overload of query.wikidata.org
> To: Discussion list for the Wikidata project. <
> wikidata@lists.wikimedia.org>
>
>
> Hello all!
>
> We are currently dealing with a bot overloading the Wikidata Query
> Service. This bot does not look actively malicious, but does create
> enough load to disrupt the service. As a stop gap measure, we had to
> deny access to all bots using python-request user agent.
>
> As a reminder, any bot should use a user agent that allows to identify
> it [1]. If you have trouble accessing WDQS, please check that you are
> following those guidelines.
>
> More information and a proper incident report will be communicated as
> soon as we are on top of things again.
>
> Thanks for your understanding!
>
>    Guillaume
>
>
> [1] https://meta.wikimedia.org/wiki/User-Agent_policy
>
> --
> Guillaume Lederrey
> Engineering Manager, Search Platform
> Wikimedia Foundation
> UTC+2 / CEST
>
> _______________________________________________
> Wikidata mailing list
> Wikidata@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikidata
>
>
> --
> Léa Lacroix
> Project Manager Community Communication for Wikidata
>
> Wikimedia Deutschland e.V.
> Tempelhofer Ufer 23-24
> 10963 Berlin
> www.wikimedia.de
>
> Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V.
>
> Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg
> unter der Nummer 23855 Nz. Als gemeinnützig anerkannt durch das Finanzamt
> für Körperschaften I Berlin, Steuernummer 27/029/42207.
> _______________________________________________
> Wikidata mailing list
> Wikidata@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikidata
>
_______________________________________________
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata

Reply via email to