paulovn / sparql-kernel

A Jupyter kernel to launch queries against SPARQL endpoints
BSD 3-Clause "New" or "Revised" License
98 stars 17 forks source link

query sparql endpoint with apikey #18

Closed zhiboz closed 6 years ago

zhiboz commented 7 years ago

thanks for a great tool! Is it feasible to query a sparql endpoint requiring an apikey?

paulovn commented 7 years ago

That depends on the mechanism. If the way the API key is specified is via a query parameter (i.e. the endpoint URL to use is something like http://server.com/sparql&api_key=346e3f21) then it would be easy. Just adding the capacity to include extra parameters in the endpoint URL would do the trick.

Do you know a (public) SPARQL endpoint that requires an api key, so that this can be tested?

paulovn commented 6 years ago

Version 1,1.0 contains a %qparam magic that can be used to add arbitrary parameters to the query string