<!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>
Dear Eli,<br><br>The instructions I received from Markus is actually already included here below as included in your email. I have also added the instructions from Tim, as also posted to the IPT mailing list.<br><br>Basically what (I think) the IPT does is to contact the registry as defined in "ipt.properties". By default the GBIF registry in Copenhagen is defined here, but you may modify this to point to your own registry. I did not mimic the complete features of the registry - ONLY the list of extensions "extensions.json" to add the new draft germplasm extension I made. You may want to add your own thesaurus "thesauri.json" of controlled vocabulary or more features in the similar way. After loading my new extension to my IPT at NordGen, I modified the "properties.ipt" back to point to the GBIF registry in Copenhagen again.<br><br>To mimic the registry feature for adding the extension, I made a copy of the file from "<a href="http://gbrds.gbif.org/registry/ipt/extensions.json" target="_blank">http://gbrds.gbif.org/registry/ipt/extensions.json</a>" and added my application schema from the extension as you will see at "<a href="http://wwwdev.ngb.se/portal/rs/ipt/extensions.json" target="_blank">http://wwwdev.ngb.se/portal/rs/ipt/extensions.json</a>".<br><br>The application schema (as defined in "extensions.json") and online from: "http://wwwdev.ngb.se/portal/rs/ipt_germplasm.xml", creates a namespace (for the use by IPT) as well as inclides the URL for the actual draft germplasm extension I made:<br><br>&nbsp; "http://ipt.gbif.org/extension/germplasm/ http://wwwdev.ngb.se/portal/rs/dwc_germplasm.xsd"<br><br><span style="text-decoration: underline;"></span>The application schema itself (ipt_germplasm.xml) only lists the terms I want to use in IPT, with the property name to be displayed in the IPT mapping interface. To create this file I started with one of the other extensions "http://gbrds.gbif.org/resources/extensions/vernacularName.xml". I just made a copy of this file and replaced the names and terms for vernacular name extension with the terms I wanted from the draft germplasm extension.<br><br>I hope that my description of what I think it was I did is more or less correct. I copy the IPT mailing list so that Markus and Tim may have a chance to correct me or to add more information to the procedure.<br><br>Cheers<br>Dag Terje<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> Eli Agbayani [mailto:eagbayani@eol.org]<br><b>To:</b> Dag Terje Filip Endresen [mailto:dag.endresen@nordgen.org]<br><b>Sent:</b> Tue, 26 May 2009 22:52:35 +0200<br><b>Subject:</b> Re: Adding an extension for germplasm to IPT<br><br>Dear Tag,<br>
Thanks for your email. Can you please forward to me the instructions you said you followed in testing your own extension. That is the instructions the GBIF guys gave you.<br>
Thanks.<br>
Eli<br>
<br>
<br>
----- Original Message -----<br>
From: "Dag Terje Filip Endresen" &lt;<a href="mailto:dag.endresen@nordgen.org">dag.endresen@nordgen.org</a>&gt;<br>
To: "\"Markus Döring (GBIF)\"" &lt;<a href="mailto:mdoering@gbif.org">mdoering@gbif.org</a>&gt;, "Eli Agbayani" &lt;<a href="mailto:eagbayani@eol.org">eagbayani@eol.org</a>&gt;<br>
Cc: <a href="mailto:ipt@lists.gbif.org">ipt@lists.gbif.org</a><br>
Sent: Friday, May 15, 2009 9:07:29 AM (GMT-0500) America/New_York<br>
Subject: Adding an extension for germplasm to IPT<br>
<br>
<br>
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>
<a href="http://atlas.nordgen.org/ipt/occResource.html?resource_id=77" target="_blank">http://atlas.nordgen.org/ipt/occResource.html?resource_id=77</a> <br>
<br>
<br>
1. Schema <br>
I built a suggestion to a DRAFT Darwin Core extansion for germplasm <br>
<a href="http://code.google.com/p/darwincore/source/browse/trunk/xsd/profiles/germplasm/dwc_germplasm.xsd" target="_blank">http://code.google.com/p/darwincore/source/browse/trunk/xsd/profiles/germplasm/dwc_germplasm.xsd</a> <br>
<a href="http://wwwdev.ngb.se/portal/rs/dwc_germplasm.xsd" target="_blank">http://wwwdev.ngb.se/portal/rs/dwc_germplasm.xsd</a> <br>
<br>
2. XML definition for IPT <br>
Listing the terms to use from the suggested DRAFT DarwinCore extension <br>
<a href="http://wwwdev.ngb.se/portal/rs/ipt_germplasm.xml" target="_blank">http://wwwdev.ngb.se/portal/rs/ipt_germplasm.xml</a> <br>
<br>
3. Add this XML definition to a copy of extensions.json <br>
Starting with " <a href="http://gbrds.gbif.org/registry/ipt/extensions.json" target="_blank">http://gbrds.gbif.org/registry/ipt/extensions.json</a> " <br>
Add text {"title":"Germplasm","url":" <a href="http://wwwdev.ngb.se/portal/rs/ipt_germplasm.xml" target="_blank">http://wwwdev.ngb.se/portal/rs/ipt_germplasm.xml</a> ","id":9} <br>
Saved as: <a href="http://wwwdev.ngb.se/portal/rs/ipt/extensions.json" target="_blank">http://wwwdev.ngb.se/portal/rs/ipt/extensions.json</a> <br>
<br>
4. Modify ipt.properties <br>
PATH_TO_TOMCAT_WEBAPPS/ipt/WEB-INF/classes/ipt.properties <br>
Line 7: "registryUrl= <a href="http://gbrds.gbif.org/registry" target="_blank">http://gbrds.gbif.org/registry</a> " modified to <br>
"registryUrl= <a href="http://wwwdev.ngb.se/portal/rs" target="_blank">http://wwwdev.ngb.se/portal/rs</a> " <br>
<br>
5. Restart Tomcat (reload ipt) <br>
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>
Login with admin permissions <br>
<a href="http://your_server_name/ipt/admin/extensions.html" target="_blank">http://your_server_name/ipt/admin/extensions.html</a> <br>
Click "Check for all available extensions" <br>
Select the name of the new extension <br>
Select "install" and "Done" <br>
<br>
7. Mapping of terms to your data <br>
Select the new extension under "Add New Mapping" <br>
Click "Add" button to the right <br>
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>
<br>
<br>
<br>
From: "Markus Döring (GBIF)" [mailto: <a href="mailto:mdoering@gbif.org">mdoering@gbif.org</a> ] <br>
To: Dag Terje Filip Endresen [mailto: <a href="mailto:dag.endresen@nordgen.org">dag.endresen@nordgen.org</a> ], Eli Agbayani [mailto: <a href="mailto:eagbayani@eol.org">eagbayani@eol.org</a> ] <br>
Cc: <a href="mailto:ipt@lists.gbif.org">ipt@lists.gbif.org</a> <br>
Sent: Wed, 13 May 2009 00:05:33 +0200 <br>
Subject: Re: [IPT] IPT connection problem <br>
<br>
Dag, Eli, <br>
I've checked the IPT code again for the extension registry URL and I was actually wrong. <br>
The current version *does* make use of the ipt.properties settings. <br>
<br>
<br>
The standard GBIF URL that is used in the ipt.properties should be: <br>
registryUrl= <a href="http://gbrds.gbif.org/registry" target="_blank">http://gbrds.gbif.org/registry</a> <br>
<br>
<br>
The registry then returns a JSON list of all known extensions located at: <br>
<a href="http://gbrds.gbif.org/registry" target="_blank">http://gbrds.gbif.org/registry</a> /ipt/extensions.json <br>
<br>
<br>
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.: <br>
<br>
registryUrl= <a href="http://dev.eol.org/ipt" target="_blank">http://dev.eol.org/ipt</a> <br>
<br>
<br>
that will finally point to the file <br>
<a href="http://dev.eol.org/ipt/ipt/extensions.json" target="_blank">http://dev.eol.org/ipt/ipt/extensions.json</a> <br>
<br>
<br>
To get everything working this registry base URL should also deal with other things, e.g. the registry of resources, organisations, services, etc. <br>
But in order to test the extensions this should still work. <br>
<br>
<br>
If you give it a try, please report your findings back to this list. <br>
<br>
<br>
cheers, <br>
Markus <br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On May 12, 2009 , at 6:05 PM, Markus Döring (GBIF) wrote: <br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
PS. I agree with Jörg that a convenient way to keep the old data directory when upgrading the IPT would be cute. <br>
<br>
<br>
This is indeed the case. We will aim wherever possible to make upgrading as simple as it can be. <br>
For bug fix releases, such as this snapshot, with no structural change the data directory can be migrated directly. In future releases, we might require a "one time" migration task be run. I anticipate the first one being required when the DwC standard is ratified. <br>
<br>
<br>
if you look into your ipt.properties file you can modify the following settings: <br>
<br>
<br>
<br>
dataDir= ${ipt.datadir} <br>
registryUrl= ${ipt.registry.url} <br>
<br>
the dataDir should be an absolute path pointing to your data dir (defaults to the ipt webapp data subfolder). <br>
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. <br>
<br>
<br>
<br>
<br>
markus <br>
<br>
<br>
<br>
<br></blockquote><br><br>---------------------------------------------------------------------<br>-------- Some more useful instructions from Tim -----------<br>---------------------------------------------------------------------<br><br><br><hr><b>From:</b> Tim Robertson [mailto:trobertson@gbif.org]<br><b>To:</b> Dag Terje Filip Endresen [mailto:dag.endresen@nordgen.org]<br><b>Cc:</b> ipt@lists.gbif.org<br><b>Sent:</b> Tue, 12 May 2009 15:11:10 +0200<br><b>Subject:</b> Re: [IPT] IPT connection problem<br><br>Hi all,&nbsp;<div><br></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;">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><br></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;">PPS.
And a convinient way to add a thematic extension to the DwC (for
testing and demonstration) would also be very useful. I am thinking of
the draft DwC germplasm extension - as well as a new draft for
germplasm trait observation data I have started to work on. I assume
this perhaps could be done as an addition in the IPT code somewhere
around "WEB-INF/classes/org/gbif/provider/model/" ...?</div></span></blockquote><div><br></div><div>A good suggestion. &nbsp;We should look at setting up some sandbox repository for exactly this purpose.</div><div><br></div><div>Dag,
for testing and demonstration you could do the following, but please be
very careful not to register these datasets with GBIF.</div><div>- The IPT will call (<a href="http://gbrds.gbif.org/registry/ipt/extensions.json">http://gbrds.gbif.org/registry/ipt/extensions.json</a> and&nbsp;<a href="http://gbrds.gbif.org/registry/ipt/thesauri.json%29">http://gbrds.gbif.org/registry/ipt/thesauri.json)</a> to get the extensions and the thesauri. &nbsp;</div><div>-
The response is fairly self&nbsp;explanatory, and for a test, you could
override gbrds.gbif.org in you host file, and put up a different
version locally for example referencing your test extensions.&nbsp;&nbsp;</div><div>- Then simply update your extensions through the IPT.</div><div>-
Sorry, not the easiest work around, but might get you able to
demonstrate how you can start to build your community without waiting
for the sandbox repository.</div><div><br></div><div>Best wishes,</div><div><br></div><div>Tim</div><blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;"><span></span><br>
</blockquote><style>
</style>
</body></html>