<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
For now, I have put this script into the REST API samples at <br class="">
<div class=""><a href="https://github.com/ncbo/ncbo_rest_sample_code/blob/master/ruby/bioportal_ontologies_import.rb" class="">https://github.com/ncbo/ncbo_rest_sample_code/blob/master/ruby/bioportal_ontologies_import.rb</a>, </div>
<div class="">and referenced it in the Virtual Appliance FAQ at <a href="https://www.bioontology.org/wiki/index.php/Virtual_Appliance_FAQ#How_can_I_migrate_ontologies_from_BioPortal_or_previous_NCBO_Virtual_Appliance_versions_into_a_new_Appliance.3F" class="">https://www.bioontology.org/wiki/index.php/Virtual_Appliance_FAQ#How_can_I_migrate_ontologies_from_BioPortal_or_previous_NCBO_Virtual_Appliance_versions_into_a_new_Appliance.3F</a></div>
<div class=""><br class="">
</div>
<div class="">Thanks much Vincent for this code!</div>
<div class=""><br class="">
</div>
<div class="">John</div>
<div class=""><br class="">
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Nov 9, 2015, at 5:36 PM, John Graybeal <<a href="mailto:jbgmeta1@stanford.edu" class="">jbgmeta1@stanford.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Thank you Emonet, this is a great contribution. We’ll see how we can best fit it in to the appropriate distributions.
<div class=""><br class="">
</div>
<div class="">John</div>
<div class=""><br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Nov 9, 2015, at 12:53 PM, Emonet <<a href="mailto:vincent.emonet@lirmm.fr" class="">vincent.emonet@lirmm.fr</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div text="#000000" bgcolor="#FFFFFF" class="">Hi,<br class="">
<br class="">
Here is a little and easy Ruby script to load ontologies from a BioPortal Appliance to another (using pullLocation when it can so the ontology will be automatically updated)<br class="">
<br class="">
All the variables used for the configuration are at the top of the script (APIs URL and keys, list of ontologies to import)<br class="">
<br class="">
Have a good day!<br class="">
<br class="">
Vincent Emonet<br class="">
<br class="">
<small class="">SIFR Project, University of Montpellier</small><br class="">
</div>
<span id="cid:22EA5CF2-6FED-4300-BF4E-6A94CD146FFB@stanford.edu" class=""><bioportal_ontologies_import.rb></span>_______________________________________________<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="">
<a href="https://mailman.stanford.edu/mailman/listinfo/bioontology-support" class="">https://mailman.stanford.edu/mailman/listinfo/bioontology-support</a><br class="">
</div>
</blockquote>
</div>
<br class="">
<div class="">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
========================
<div class="">John Graybeal</div>
<div class="">Technical Program Manager</div>
<div class="">Center for Expanded Data Annotation and Retrieval /+/ NCBO BioPortal</div>
<div class="">Stanford Center for Biomedical Informatics Research<br class="">
650-736-1632  <br class="">
skype: graybealski<br class="">
<br class="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br class="">
</div>
</div>
_______________________________________________<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>
</blockquote>
</div>
<br class="">
<div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
========================
<div class="">John Graybeal</div>
<div class="">Technical Program Manager</div>
<div class="">Center for Expanded Data Annotation and Retrieval /+/ NCBO BioPortal</div>
<div class="">Stanford Center for Biomedical Informatics Research<br class="">
650-736-1632  <br class="">
skype: graybealski<br class="">
<br class="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br class="">
</div>
</div>
</body>
</html>