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

Get metrics from facets #101

Open
peterdesmet opened this issue Jun 17, 2016 · 0 comments
Open

Get metrics from facets #101

peterdesmet opened this issue Jun 17, 2016 · 0 comments

Comments

@peterdesmet
Copy link
Member

GBIF has just released occurrence facets (occ. counts for a certain aspect of the data). I just realized that we can potentially recreate all our metrics using those facets. For example, the coordinate bar could be recreated by running this call:

http://api.gbif.org/v1/occurrence/search?datasetKey=0debafd0-6c8a-11de-8225-b8a03c50a862&facet=issue&issue.facetLimit=200&facet=hasCoordinate&hasCoordinate.facetLimit=200&limit=0

... and then summing some counts to get the same meaningful categories we use.

That would mean we can run all metrics live! In addition we can create metrics for any aspect (not only datasets), such as species, countries, and live queries. Things that wouldn't scale with the backend we needed to have last year.

Some features still require a backend, such as the image preview or having one comprehensive metrics store (which we currently don't use), but have think the advantages of running live metrics outweigh those losses.

Thoughts?

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

1 participant