<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Michael,
<div class=""><br class="">
</div>
<div class="">You should be able to get the ontology filename by calling the latest submission endpoint with the display=all flag turned on:</div>
<div class=""><br class="">
</div>
<div class=""><a href="http://data.bioontology.org/ontologies/BTO/latest_submission?display=all" class="">http://data.bioontology.org/ontologies/BTO/latest_submission?display=all</a> </div>
<div class=""><br class="">
</div>
<div class="">The property uploadFilePath will give you the file extension</div>
<div class="">
<ul class="obj collapsible" style="list-style: none; margin: 0px 0px 0px 2em; padding: 0px; font-family: monospace; font-size: 14.3px; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2;">
<li style="position: relative;" class=""><span class="prop" style="font-weight: bold;"><br class="">
</span></li><li style="position: relative;" class=""><span class="prop" style="font-weight: bold;">uploadFilePath<span class="q" style="display: inline-block; width: 0px; color: transparent;">"</span></span>:
<span class="string" style="color: green;">"/srv/ncbo/repository/BTO/33/BrendaTissue.obo”</span>,</li></ul>
<div style="orphans: 2; widows: 2;" class=""><span style="font-size: 14.300000190734863px; white-space: pre-wrap; font-family: monospace;" class=""><br class="">
</span></div>
<div style="orphans: 2; widows: 2;" class="">
<div class="">Hope this helps!</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class=""><br class="">
</div>
<div class="">Michael</div>
</div>
<div style="orphans: 2; widows: 2;" class=""><font face="monospace" class=""><span style="font-size: 14.300000190734863px; white-space: pre-wrap;" class=""><br class="">
</span></font></div>
<ul class="obj collapsible" style="list-style: none; margin: 0px 0px 0px 2em; padding: 0px; font-family: monospace; font-size: 14.3px; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2;">
<li class=""></li></ul>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Dec 14, 2018, at 10:26 AM, Michael Liu <<a href="mailto:megapode32559@gmail.com" class="">megapode32559@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hi,<br class="">
<br class="">
<blockquote type="cite" class="">Yes - this REST API call:<br class="">
<br class="">
<a href="http://data.bioontology.org/ontologies/BTO/download" class="">http://data.bioontology.org/ontologies/BTO/download</a><br class="">
</blockquote>
<br class="">
Is there a way to get the file format of the downloaded file without<br class="">
having to download the file?<br class="">
<br class="">
-- <br class="">
Best wishes,<br class="">
Michael<br class="">
_______________________________________________<br class="">
bioontology-support mailing list<br class="">
<a href="mailto:bioontology-support@lists.stanford.edu" class="">bioontology-support@lists.stanford.edu</a><br class="">
https://mailman.stanford.edu/mailman/listinfo/bioontology-support<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>