Comments (8)
@niconoe can you add a NUMBER_OF_RECORDS
to your output?
I'll aggregate everything from one dataset together and compare the total sum with the API.
@peterdesmet how important is it that these match? i.e. what should happen if these numbers are not equal?
from gbif-dataset-metrics.
Yep, will include NUMBER_OF_RECORDS
in first iteration of the data_extraction_module.
from gbif-dataset-metrics.
@bartaelterman, then the percentages would be too low.
from gbif-dataset-metrics.
The API might not be a good idea after all. Since the plan is to do this in the backend scripts, that means it will be done for every dataset we index. The goal is: all of them. That's about 14.000 datasets and thus 14.000 API calls we'll be sending to GBIF. We can do stuff in parallel with requests asynchronous support but we'll have to set a limit to the number of calls to prevent being blocked.
Personally, I would leave API calls for the front end only, because then you only do calls for the dataset you're viewing.
The total number of records is still valuable, but we'll just get it from the metrics, and don't perform a check. (unless you really insist, but then I would do that in the front end).
from gbif-dataset-metrics.
This does bring me to the following issue:
Since we're using chunks of the download, and I don't know how these were cut, it's possible that the data for one dataset is spread over several chunks. If not, then my point will not be valid, but then there would also be no use for aggregating data coming from different chunks. So I assume it does happen.
The problem is, we never know when we have all the data for one dataset except when we have processed all chunks. The only other option is what @peterdesmet suggests, but that is challenging because of the sheer number of API calls. The other option would be instead of working with one big download and cutting it ourselves, working with smaller downloads because then we know that the datasets in one download are complete.
from gbif-dataset-metrics.
My plan to circumvent this issue (ensure we have fully covered a given dataset) was:
- First step: working with only a few selected datasets, 1 archive per dataset.
- Later, split the whole archive and process ALL chunks.
from gbif-dataset-metrics.
Ok @niconoe . Then I would leave the check with the API call.
from gbif-dataset-metrics.
OK.
from gbif-dataset-metrics.
Related Issues (20)
- Add metrics for SAMPLING_EVENT datasets with occurrences
- Get metrics from facets
- Please update stats of http://www.gbif.org/dataset/83598aa6-f762-11e1-a439-00145eb45e9a/stats HOT 3
- please re-process TNHC Ichthyology GBIF data set HOT 4
- Request for metrics HOT 2
- improve taxonomic overview HOT 1
- Request for metrics HOT 4
- Update metrics for Belgium HOT 1
- Sample of images: url HOT 9
- Run aggregator on EC2
- Reduce vulnerability with HTTPS on CartoDB
- Push code to gh-pages HOT 1
- Move data to production
- Updated metrics HOT 1
- http://www.gbif.org/dataset/3c428404-893c-44da-bb4a-6c19d8fb676a/stats HOT 3
- Recursive loop never ends when number of downloads is too low
- Update metrics request: INBO Bird tracking dataset HOT 7
- updating of metrics HOT 4
- Dataset metrics, please HOT 7
- Let's update metrics from Belgian datasets HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gbif-dataset-metrics.