Giter Site home page Giter Site logo

Big Queries supported? about ads HOT 4 CLOSED

aaronlauterer avatar aaronlauterer commented on June 9, 2024
Big Queries supported?

from ads.

Comments (4)

jonnybazookatone avatar jonnybazookatone commented on June 9, 2024

This client doesn't currently have any API interface to the bigquery end point. However, you can look at the ADS help pages on how to interact with the bigquery end point directly using the requests package.

The fastest option is to open an issue on the ADS help pages, or send them an e-mail at [email protected] to ask them the best way to do this.

If you prefer to try it anyway, you can do the following that should work:

They used to have a policy of not encouraging the use of bigquery, so the examples on https://github.com/adsabs/adsabs-dev-api/blob/47b1b2dd561c2930df3aec7a5df1f12408499826/search.md won't work, as the biquery end point is limited to internal use at the moment (iirc; https://github.com/adsabs/solr-service/blob/master/solr/views.py#L149).

Instead, it was encouraged to use the myads/vault end point:

  1. create a query, and store it in their store-query end point
  2. execute the bigquery via execute-query end point
  3. retrieve the results and conform it to an ads.Article object

You can see an "implementation" of that here: https://github.com/adsabs/tugboat/blob/master/tugboat/views.py#L73

If you implement it then open a PR, it would be much appreciated by many :).

from ads.

jonnybazookatone avatar jonnybazookatone commented on June 9, 2024

I should note, the second step uses a queryid to carry out the search on the search engine. This doesn't always have the same behaviour as normal searches.

from ads.

aaronlauterer avatar aaronlauterer commented on June 9, 2024

Okay, thanks! I'll look into it and see what I can contribute.

from ads.

jonnybazookatone avatar jonnybazookatone commented on June 9, 2024

Cool, I'll close this ticket then.

from ads.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.