void flush() {
    try {
      Timer timer = Timer.start();
      LongObjectMap<Map<String, String>> results = queryWikidata(qidsToFetch);
      batches.inc();
      LOGGER.info("Fetched batch {} ({} qids) {}", batches.get(), qidsToFetch.size(), timer.stop());
      writeTranslations(results, Hppc.newLongObjectHashMap());
    } catch (InterruptedException e) {
      Thread.currentThread().interrupt();
      throwFatalException(e);
    } catch (IOException e) {
      throwFatalException(e);
    }
    wikidatas.incBy(qidsToFetch.size());
    qidsToFetch.clear();
  }
Only pass elements that the profile cares about to next step in pipeline.
planetiler-core/src/main/java/com/onthegomap/planetiler/util/Wikidata.java