<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum — Pisces in new Dictionary]]></title>
	<link rel="self" href="https://forums.nbn.org.uk/extern.php?action=feed&amp;tid=468&amp;type=atom" />
	<updated>2007-12-11T10:32:01Z</updated>
	<generator version="1.4.6">PunBB</generator>
	<id>https://forums.nbn.org.uk/viewtopic.php?id=468</id>
		<entry>
			<title type="html"><![CDATA[Re: Pisces in new Dictionary]]></title>
			<link rel="alternate" href="https://forums.nbn.org.uk/viewtopic.php?pid=2248#p2248" />
			<content type="html"><![CDATA[<p>Hi Tim</p><p>This does seem very strange - John from Dorset Software might be able to shed some light.</p><p>John - under what circumstances would an entry in Nameserver not be included in the Index_Taxon_Name table when it is rebuilt?</p><p>We&#039;ve had a look at the stored procedure - usp_IndexTaxonName_ApplyNameServer but we can&#039;t find the syntax for populating the table initially with Taxon_list_item_keys (only the syntax to update the recommended_taxon_list_item_keys etc. for each entry).</p><p>Is this initial population done elsewhere?</p><p>Many thanks,</p>]]></content>
			<author>
				<name><![CDATA[Sarah Shaw]]></name>
				<uri>https://forums.nbn.org.uk/profile.php?id=72</uri>
			</author>
			<updated>2007-12-11T10:32:01Z</updated>
			<id>https://forums.nbn.org.uk/viewtopic.php?pid=2248#p2248</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Pisces in new Dictionary]]></title>
			<link rel="alternate" href="https://forums.nbn.org.uk/viewtopic.php?pid=2245#p2245" />
			<content type="html"><![CDATA[<p>Right, here goes.</p><p>In the NAMESERVER Table<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;INPUT_TAXON_VERSION_KEY&nbsp; &nbsp; &nbsp; &nbsp; RECOMMENDED_TAXON_VERSION_KEY&nbsp; &nbsp; &nbsp; &nbsp;RECOMMENDED_TAXON_LIST_ITEM_KEY<br />Pisces&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NHMSYS0000841378&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NHMSYS0000841378&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NBNSYS0000154965<br />Leptocera breviceps&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NBNSYS0000029139&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NBNSYS0100027509&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NBNSYS0100074911<br />Arthrocnodax acarisuga&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NBNSYS0100027509&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NBNSYS0100027509&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NBNSYS0100074911</p><p>Curiouser and curiouser.</p><p>The RECOMMENDED_TAXON_LIST_ITEM_KEYs are all present.</p><p>Tim</p>]]></content>
			<author>
				<name><![CDATA[timmay]]></name>
				<uri>https://forums.nbn.org.uk/profile.php?id=210</uri>
			</author>
			<updated>2007-12-10T16:35:15Z</updated>
			<id>https://forums.nbn.org.uk/viewtopic.php?pid=2245#p2245</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Pisces in new Dictionary]]></title>
			<link rel="alternate" href="https://forums.nbn.org.uk/viewtopic.php?pid=2239#p2239" />
			<content type="html"><![CDATA[<p>Hi Tim</p><p>This does sound very strange.</p><p>Could you check that you have entries for these taxon_version_keys in your NAMESERVER table?</p><p>It would also be worth checking that you have the recommended Taxon_list_item_keys in your database too.</p><p>Many thanks,</p>]]></content>
			<author>
				<name><![CDATA[Sarah Shaw]]></name>
				<uri>https://forums.nbn.org.uk/profile.php?id=72</uri>
			</author>
			<updated>2007-12-07T15:22:32Z</updated>
			<id>https://forums.nbn.org.uk/viewtopic.php?pid=2239#p2239</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Pisces in new Dictionary]]></title>
			<link rel="alternate" href="https://forums.nbn.org.uk/viewtopic.php?pid=2158#p2158" />
			<content type="html"><![CDATA[<p>OK, now I&#039;m confused. Those TLIKs aren&#039;t in my export of the dictionary, but they do exist in the TAXON_LIST_ITEM table within Recorder 6. However, the view I have created to export the dictionary to a flat file doesn&#039;t pick it up as it doesn&#039;t have an entry in the INDEX_TAXON_NAME table, despite having rebuilt the indexes.</p><p>My view does an inner join on the TAXON_LIST_ITEM and INDEX_TAXON_NAME tables using the TAXON_LIST_ITEM_KEY present in both, meaning that as the INDEX_TAXON_NAME table doesn&#039;t have an entry, I don&#039;t get anything out for that item.</p><p>Everything else appears to be working well - it&#039;s just those three entries.</p><p>Thanks,</p><p>Tim</p>]]></content>
			<author>
				<name><![CDATA[timmay]]></name>
				<uri>https://forums.nbn.org.uk/profile.php?id=210</uri>
			</author>
			<updated>2007-11-21T10:49:01Z</updated>
			<id>https://forums.nbn.org.uk/viewtopic.php?pid=2158#p2158</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Pisces in new Dictionary]]></title>
			<link rel="alternate" href="https://forums.nbn.org.uk/viewtopic.php?pid=2156#p2156" />
			<content type="html"><![CDATA[<p>Hi Tim</p><p>In my copy of the dictionary (V6.10) the situation is as follows:</p><p>- Pisces (Taxon_Version_Key &#039;NHMSYS0000841378&#039;) has a Recommended_Taxon_List_Item_Key of &#039;NBNSYS0000154965&#039; (Pisces) in the Index_Taxon_Name table (the recommended entry is on the Priority Species List (1998) which isn&#039;t ideal but the choices for this Taxon_Version are limited)</p><p>- Leptocera breviceps (Taxon_Version_Key &#039;NBNSYS0000029139&#039;) has a Recommended_Taxon_List_Item_Key of &#039;NBNSYS0100074911&#039; (Rachispoda breviceps) in the Index_Taxon_Name table</p><p>- Arthrocnodax acarisuga (Taxon_Version_Key &#039;NBNSYS0100027509&#039;) has a Recommended_Taxon_List_Item_Key of &#039;NBNSYS0100057875&#039; (Arthrocnodax acarisuga) in the Index_Taxon_Name table</p><p>Are all of the above Taxon_List_Item_Keys missing in your copy??</p><p>For info this is the query I can ran:-</p><div class="codebox"><pre><code>--PISCES EXAMPLE
--Query finds all TLIK&#039;s with a TVK of NHMSYS0000841378 (Pisces)
select TLI.Taxon_list_item_key,
    TV.Taxon_Version_Key,
    T.Item_Name,
    TL.Item_Name
from Taxon_List_Item TLI
inner join taxon_version TV
on TLI.Taxon_Version_key = TV.Taxon_Version_Key
inner join Taxon T
on TV.Taxon_Key = T.Taxon_Key
inner join Taxon_List_Version TLV
on TLI.Taxon_List_Version_Key = TLV.Taxon_List_Version_Key
inner join Taxon_List TL
on TLV.Taxon_List_Key = TL.Taxon_list_key
where TLI.Taxon_Version_Key = &#039;NHMSYS0000841378&#039;

-- Query finds all entries in Index_Taxon_Name for all TLIK&#039;s of Pisces
select *
from Index_Taxon_Name ITN
where ITN.Taxon_list_item_key IN ( 
&#039;NBNSYS0000154965&#039;,
&#039;NBNSYS0000002103&#039;,
&#039;NBNSYS0000151610&#039;,
&#039;EHSSYS0000000042&#039;,
&#039;NBNSYS0000170555&#039;)

-- Query looks at the Recommended_Taxon_List_Item_key for all TLIK&#039;s of Pisces
select TLI.Taxon_list_item_key,
    TV.Taxon_Version_Key,
    T.Item_Name,
    TL.Item_Name
from Taxon_List_Item TLI
inner join taxon_version TV
on TLI.Taxon_Version_key = TV.Taxon_Version_Key
inner join Taxon T
on TV.Taxon_Key = T.Taxon_Key
inner join Taxon_List_Version TLV
on TLI.Taxon_List_Version_Key = TLV.Taxon_List_Version_Key
inner join Taxon_List TL
on TLV.Taxon_List_Key = TL.Taxon_list_key
where TLI.Taxon_list_item_Key = &#039;NBNSYS0000154965&#039;</code></pre></div><p>Please let me know if you don&#039;t have these TLIK&#039;s.</p><p>Kind regards,</p>]]></content>
			<author>
				<name><![CDATA[Sarah Shaw]]></name>
				<uri>https://forums.nbn.org.uk/profile.php?id=72</uri>
			</author>
			<updated>2007-11-20T11:21:11Z</updated>
			<id>https://forums.nbn.org.uk/viewtopic.php?pid=2156#p2156</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Pisces in new Dictionary]]></title>
			<link rel="alternate" href="https://forums.nbn.org.uk/viewtopic.php?pid=2155#p2155" />
			<content type="html"><![CDATA[<p>Hi Sarah,</p><p>Sorry, we have changed the names in our DB to make them a bit less of a mouthful. What I call the Taxon Key is the INDEX_TAXON_NAME.TAXON_LIST_ITEM_KEY, Version Key is TAXON_LIST_ITEM.TAXON_VERSION_KEY, and Recommended Key is INDEX_TAXON_NAME.RECOMMENDED_TAXON_LIST_ITEM_KEY.</p><p>Thanks,</p><p>Tim</p>]]></content>
			<author>
				<name><![CDATA[timmay]]></name>
				<uri>https://forums.nbn.org.uk/profile.php?id=210</uri>
			</author>
			<updated>2007-11-12T11:11:52Z</updated>
			<id>https://forums.nbn.org.uk/viewtopic.php?pid=2155#p2155</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Pisces in new Dictionary]]></title>
			<link rel="alternate" href="https://forums.nbn.org.uk/viewtopic.php?pid=2131#p2131" />
			<content type="html"><![CDATA[<p>Hi Tim</p><p>Could you give me a bit more detail on the keys/query you are using?</p><p>For example, when you say recommended_key do you mean the Recommended_Taxon_List_Item_key from the Index_Taxon_Name table? Similarly, what is meant by the Taxon_Key?</p><p>If you could post abit more info I can do some investigating here.</p><p>Many thanks and best wishes,</p>]]></content>
			<author>
				<name><![CDATA[Sarah Shaw]]></name>
				<uri>https://forums.nbn.org.uk/profile.php?id=72</uri>
			</author>
			<updated>2007-11-05T14:06:59Z</updated>
			<id>https://forums.nbn.org.uk/viewtopic.php?pid=2131#p2131</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Pisces in new Dictionary]]></title>
			<link rel="alternate" href="https://forums.nbn.org.uk/viewtopic.php?pid=2118#p2118" />
			<content type="html"><![CDATA[<p>Hmm, no answers to be had!</p><p>I&#039;ve just run a search and found two other species which also suffer from the same symptoms - They are &#039;Leptocera breviceps&#039; and &#039;Arthrocnodax acarisuga&#039;. For now I&#039;ve got around it by updating the Recommended Key to point to my own particular favourite.</p><p>Tim</p>]]></content>
			<author>
				<name><![CDATA[timmay]]></name>
				<uri>https://forums.nbn.org.uk/profile.php?id=210</uri>
			</author>
			<updated>2007-10-31T14:24:40Z</updated>
			<id>https://forums.nbn.org.uk/viewtopic.php?pid=2118#p2118</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Pisces in new Dictionary]]></title>
			<link rel="alternate" href="https://forums.nbn.org.uk/viewtopic.php?pid=2071#p2071" />
			<content type="html"><![CDATA[<p>I&#039;ve just installed the Recorder 6 dictionary from the Upgrades web page (although I have to admit I was a bit confused by the heading &#039;Upgrades since V6.9.3&#039;, as I have 6.10.4, and didn&#039;t know if some of these updates would have been included in the update from 6.9.3 to 6.10.4 - I selected all these options anyway, and now have an updated version of the dictionary that seems ok, except for one point.</p><p>I export the dictionary into a flat file to use with our own systems, and use two joins on the Recommended Key and the Taxon Key in the flat file to ensure that the name that is returned is always the most up-to-date name. I check with each update that the dictionary still tallies with the records we have stored. One of our records was entered as Pisces, which has a Version Key of NHMSYS0000841378, and a Recommended Key of NBNSYS0000151610 (in the old dictionary). This corresponds correctly with the preferred entry on the MCNR list. In the updated version of the dictionary this Recommended Key has been changed to NBNSYS0000154965, which doesn&#039;t exists as a Taxon Key, even though the record with the previous recommended name still exists.</p><p>Although a &#039;Pisces&#039; record isn&#039;t really of that much value(!), I am slightly concerned that this might not be the only item pointing to the wrong place.</p><p>Any help would be much appreciated.</p><p>Thanks,</p><p>Tim</p>]]></content>
			<author>
				<name><![CDATA[timmay]]></name>
				<uri>https://forums.nbn.org.uk/profile.php?id=210</uri>
			</author>
			<updated>2007-10-16T12:36:16Z</updated>
			<id>https://forums.nbn.org.uk/viewtopic.php?pid=2071#p2071</id>
		</entry>
</feed>
