tibbs001 / ctwiki-loader

Ruby on Rails app to help populate a wiki devoted to Clinical Trials
MIT License
1 stars 0 forks source link

Can only create 1000 quickstatements at a time. Iterate over batches of 1,000 #12

Closed tibbs001 closed 5 years ago

tibbs001 commented 5 years ago

There seems to be a limit on the number of times we can hit a sparql endpoint before it starts declining requests. Seems it basically rejects requests from our IP for a certain period of time. This is causing the process to extract loadable data manual, cumbersome, time consuming.

Wrap the process in method that batches studies in groups of 1000, waiting 5 minutes between each batch. Then we can create all files to upload to wikidata with one command.