<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Dear Eli,</p>
    <p>I don't know why it is this way, according to our API the term
      publishingOrgKey is "not exposed in user downloads":
<a class="moz-txt-link-freetext" href="http://gbif.github.io/dwc-api/apidocs/org/gbif/dwc/terms/GbifInternalTerm.html">http://gbif.github.io/dwc-api/apidocs/org/gbif/dwc/terms/GbifInternalTerm.html</a></p>
    <p>Given a datasetKey (which is in the DwCA format), you can query
      for the publishingOrganizationKey with a query like
      <a class="moz-txt-link-freetext" href="http://api.gbif.org/v1/dataset/2814930a-3b93-48d6-b887-00979481ac9e">http://api.gbif.org/v1/dataset/2814930a-3b93-48d6-b887-00979481ac9e</a>,
      for example using "curl" and "jq":</p>
    <p>curl -Ss
      <a class="moz-txt-link-freetext" href="http://api.gbif.org/v1/dataset/2814930a-3b93-48d6-b887-00979481ac9e">http://api.gbif.org/v1/dataset/2814930a-3b93-48d6-b887-00979481ac9e</a>
      | jq .publishingOrganizationKey</p>
    <p>There are 20,000 datasets in a complete download, so making these
      queries and caching the result will probably be faster than using
      both download formats.</p>
    <p>Best regards,</p>
    <p>Matt Blissett<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 12/08/18 20:40, Eli Agbayani wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFP_DUdyQ7WEvtp9=sGoC74dRQrA=kY3fuD9fznm3AuERGX47w@mail.gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div dir="ltr">
        <div>Dear GBIF,<br>
        </div>
        <div>Is there a reason why the Asynchronous download DwCA format
          doesn't have publishingOrgKey while the CSV format has it.</div>
        <div><br>
        </div>
        <div>We want to use the DwCA format because of the multimedia
          addition but realized the publishingOrgKey was missing.</div>
        <div><br>
        </div>
        <div>Hopefully publishingOrgKey will be included in the DwCA
          format so we don't need to download both formats.<br>
        </div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Eli</div>
        <div><br>
        </div>
        <div>
          <div><br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
API-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:API-users@lists.gbif.org">API-users@lists.gbif.org</a>
<a class="moz-txt-link-freetext" href="https://lists.gbif.org/mailman/listinfo/api-users">https://lists.gbif.org/mailman/listinfo/api-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>