<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
 <meta http-equiv='Content-Type' content='text/html;charset=iso-8859-1'>
 <style>BODY{font:10pt Tahoma, Verdana, sans-serif;}</style>
</head>
<body>
Hi Markus and Tim,<br><br>Thanks a lot for your help! I followed your instructions and successfully added my DRAFT version of a DarwinCore extension for germplasm to the IPT. I have listed a brief summary of each of the steps I followed below.<br><br>If you are interested, you may visit the IPT from NordGen with a DEMO dataset mapped to terms from this DRAFT Darwin Core extension for germplasm at:<br>&nbsp; http://atlas.nordgen.org/ipt/occResource.html?resource_id=77<br><br><br>1. Schema<br>&nbsp;&nbsp;&nbsp; I built a suggestion to a DRAFT Darwin Core extansion for germplasm<br>&nbsp;&nbsp;&nbsp; http://code.google.com/p/darwincore/source/browse/trunk/xsd/profiles/germplasm/dwc_germplasm.xsd<br>&nbsp;&nbsp;&nbsp; http://wwwdev.ngb.se/portal/rs/dwc_germplasm.xsd<br><br>2. XML definition for IPT<br>&nbsp;&nbsp;&nbsp; Listing the terms to use from the suggested DRAFT DarwinCore extension<br>&nbsp;&nbsp;&nbsp; http://wwwdev.ngb.se/portal/rs/ipt_germplasm.xml<br><br>3. Add this XML definition to a copy of extensions.json<br>&nbsp;&nbsp;&nbsp; Starting with "http://gbrds.gbif.org/registry/ipt/extensions.json"<br>&nbsp;&nbsp;&nbsp; Add text {"title":"Germplasm","url":"http://wwwdev.ngb.se/portal/rs/ipt_germplasm.xml","id":9}<br>&nbsp;&nbsp;&nbsp; Saved as: http://wwwdev.ngb.se/portal/rs/ipt/extensions.json<br><br>4. Modify ipt.properties<br>&nbsp;&nbsp;&nbsp; PATH_TO_TOMCAT_WEBAPPS/ipt/WEB-INF/classes/ipt.properties<br>&nbsp;&nbsp;&nbsp; Line 7: "registryUrl=http://gbrds.gbif.org/registry" modified to<br>&nbsp;&nbsp;&nbsp; "registryUrl=http://wwwdev.ngb.se/portal/rs"<br><br>5. Restart Tomcat (reload ipt)<br>&nbsp;&nbsp;&nbsp; The new ipt.properties settings does not seem to be loaded without restart of tomcat<br><br>6. Add/load the new extension to IPT<br>&nbsp;&nbsp;&nbsp; Login with admin permissions<br>&nbsp;&nbsp;&nbsp; http://your_server_name/ipt/admin/extensions.html<br>&nbsp;&nbsp;&nbsp; Click "Check for all available extensions"<br>&nbsp;&nbsp;&nbsp; Select the name of the new extension<br>&nbsp;&nbsp;&nbsp; Select "install" and "Done"<br><br>7. Mapping of terms to your data<br>&nbsp;&nbsp;&nbsp; Select the new extension under "Add New Mapping"<br>&nbsp;&nbsp;&nbsp; Click "Add" button to the right<br>&nbsp;&nbsp;&nbsp; Select and map terms<br><br>I selected the "publish" button and hope that this will not cause this dataset to be registered at the GBIF registry...? Without selecting the "publish" button the dataset is not listed from the menu item "explore". I was missing the option to publish a dataset under this "explore", but not not to register with the GBIF registry...? Should there not be one more step to this procedure?<br><br>Cheers<br>Dag Terje<br><br>PS. I have noticed that the right side context menu is very sensitive to missing data (Navigate Taxonomy, Navigate Geography). If some of the higher taxonomic levels is missing I get an error message instead of the context menu. For example I did not have phylum for the genebank dataset and the error message on "Navigate Taxonomy" untill I added data for this term. Similar I did not have continent causing the "Navigate Geography" context menu to start at country. When continent and/or country is missing, the "Navigate Geography" context menu creates a top node for the lowest level available - sometimes even the coordinate is displayed as the top node here. Would be cute if the IPT could default to "unknown continent", "unknown country"; "unknown phylum", ... or something similar.<br><br>PPS. NB! This DRAFT extension for germplasm is still under development and I am sure that I still duplicate some terms from DarwinCore or other extensions! I did not yet work much with the terms for trait observations on germplasm, but added most of the terms from the new proposed draft standard for these data for the European genebank community.<br><br><blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;"><hr><b>From:</b> "Markus Döring (GBIF)" [mailto:mdoering@gbif.org]<br><b>To:</b> Dag Terje Filip Endresen [mailto:dag.endresen@nordgen.org], Eli Agbayani [mailto:eagbayani@eol.org]<br><b>Cc:</b> ipt@lists.gbif.org<br><b>Sent:</b> Wed, 13 May 2009 00:05:33 +0200<br><b>Subject:</b> Re: [IPT] IPT connection problem<br><br>Dag, Eli,<div>I've checked the IPT code again for the extension registry URL and I was actually wrong.</div><div>The current version *does* make use of the ipt.properties settings.</div><div><br></div><div>The standard GBIF URL that is used in the ipt.properties should be:</div><div>registryUrl=<a href="http://gbrds.gbif.org/registry">http://gbrds.gbif.org/registry</a></div><div><br></div><div>The registry then returns a JSON list of all known extensions located at:</div><div><a href="http://gbrds.gbif.org/registry">http://gbrds.gbif.org/registry</a><span class="Apple-style-span" style="color: rgb(42, 0, 255); font-family: Monaco; font-size: 11px;">/ipt/extensions.json</span></div><div><br></div><div>So to test your own extensions you can modify this json list to include entries for your own (pointing to your extension xml definitions hosted on some URL), upload that json file to some http server and modify the ipt.properties setting to point to your registry, e.g.:</div><div><div>registryUrl=<a href="http://dev.eol.org/ipt">http://dev.eol.org/ipt</a></div><div><br></div><div>that will finally point to the file</div><div><a href="http://dev.eol.org/ipt/ipt/extensions.json">http://dev.eol.org/ipt/ipt/extensions.json</a></div><div><br></div><div>To get everything working this registry base URL should also deal with other things, e.g. the registry of resources, organisations, services, etc.</div><div>But in order to test the extensions this should still work.</div><div><br></div><div>If you give it a try, please report your findings back to this list.</div><div><br></div><div>cheers,</div><div>Markus</div><div><br></div><div><br></div><div><br></div><div><br><div><div>On May 12, 2009, at 6:05 PM, Markus Döring (GBIF) wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style=""><div><blockquote type="cite"><div style=""><div><div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><div style="font-family: Tahoma,Verdana,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">PS. I agree with Jörg that a convenient way to keep the old data directory when upgrading the IPT would be cute.</div></span></blockquote><div><br></div><div>This is indeed the case. &nbsp;We will aim wherever possible to make upgrading as simple as it can be. &nbsp;</div><div>For bug fix releases, such as this snapshot, with no structural change the data directory can be migrated directly. &nbsp; In future releases, we might require a "one time" migration task be run. &nbsp;I anticipate the first one being required when the DwC standard is ratified.</div></div></div></div></blockquote><div><br></div><div>if you look into your ipt.properties file you can modify the following settings:</div><div><br></div><div><div style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; color: rgb(42, 0, 255);"><span style="color: rgb(0, 0, 0);">dataDir=</span>${ipt.datadir}</div><div style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; min-height: 15px;"><span class="Apple-style-span" style="color: rgb(42, 0, 255);"><span style="color: rgb(0, 0, 0);">registryUrl=</span>${ipt.registry.url}</span></div><div><font class="Apple-style-span" color="#2a00ff" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div></div></div>the dataDir should be an absolute path pointing to your data dir (defaults to the ipt webapp data subfolder).<div>the registry URL can point to a development registry - unfortunately the extensions and vocabs currently dont use this setting, only the UDDI style registration of resources and organisations. We will make sure that the IPT uses this setting also for the extension registration, so you can easily point it to an alternative extension site for testing.</div><div><br></div><div><br></div><div>markus</div><div><br></div><div><br></div></div></blockquote></div><br></div></div></blockquote><style>
 * {word-wrap:break-word;-webkit-nbsp-mode:space;-webkit-line-break:after-white-space;;}
</style>
</body></html>