Please unsubscribe me from Wikidata, Wikipedia, whatever you call it.
I am getting far too many emails from you.

        -----------------------------------------From: "Thad Guidry" 
To: "Discussion list for the Wikidata project"
Cc: 
Sent: Wednesday January 27 2021 9:29:14AM
Subject: Re: [Wikidata] Does the Wikidata Query Service provide a REST
API?

  Docs please? Can someone point me to the Wikidata docs on this?
 I'd imagine it's somewhere buried under subpages from  
[1]https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help
[2]
 ??? 
       Thad  [3]https://www.linkedin.com/in/thadguidry/ [4] 
[5]https://calendly.com/thadguidry/ [6]

 On Wed, Jan 27, 2021 at 9:04 AM Lucas Werkmeister  wrote:

        If you look through the code examples the query service UI generates
for you, you can see that several of them (including the PHP one and
the two JavaScript ones) don’t use any special SPARQL libraries. You
can also see the “URL” option, which is just the URL you’re
looking for. The returned format depends on the Accept request header
(or “format” query parameter), so if you add a request header
“Accept: text/csv”, you’ll get CSV back. 

        Cheers,
 Lucas
 On 27.01.21 15:49, Yaron Koren wrote:
  Hi,

 After you run a SPARQL query in the Wikidata Query Service (
[7]https://query.wikidata.org [8]), the interface provides a lot of
options - you can download the results in formats like CSV and JSON,
and it even provides code to let you run that query directly in a
variety of different computer languages. What I don't know, though, is
whether there is some URL that, when accessed, will directly retrieve
the results, in some format like CSV or JSON. The idea is that some
code - in any language - can get the results without needing any
SPARQL-related libraries or special handling, by just going to the
"CSV URL" (for instance) and retrieving the results. Does such a thing
exist?

 -Yaron

 --
WikiWorks · MediaWiki Consulting ·  [9]http://wikiworks.com [10]  
 _______________________________________________
 Wikidata mailing list
 "_blank">Wikidata@lists.wikimedia.org
 [11] target="_blank">
"https://lists.wikimedia.org/mailman/listinfo/wikidata"; target=
 "_blank">https://lists.wikimedia.org/mailman/listinfo/wikidata
  _______________________________________________
 Wikidata mailing list
Wikidata@lists.wikimedia.org
 [12]https://lists.wikimedia.org/mailman/listinfo/wikidata [13]
  

Links:
------
[1]
https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help
[2]
https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help
[3] https://www.linkedin.com/in/thadguidry/
[4] https://www.linkedin.com/in/thadguidry/
[5] https://calendly.com/thadguidry/
[6] https://calendly.com/thadguidry/
[7] https://query.wikidata.org
[8] https://query.wikidata.org
[9] http://wikiworks.com
[10] http://wikiworks.com
[11] https://lists.wikimedia.org/mailman/listinfo/wikidata
[12] https://lists.wikimedia.org/mailman/listinfo/wikidata
[13] 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