ITIS综合生物分类信息系统数据库中文说明以及查询sql

ITIS综合生物分类信息系统全称为Integrated Taxonomic Information System,曾为《生命百科全书》(EOL)提供了分类学基础。ITIS的目标是创建一个易于访问、包含有关物种名称及其等级分类的可靠信息并定期进行审核的数据库,以确保ITIS对新描述的物种进行有效的分类,修订和添加,从而确保高质量。ITIS包括来自有关北美和世界各地的植物,动物,真菌和微生物的权威分类学信息,为物种分类提供了重要的文献资料。ITIS官网网址:https://www.itis.gov/。在其官网上可以下载其数据:https://www.itis.gov/downloads/index.html。

itisMySQLBulk.zip是mysql数据库的sql文件,下面介绍几张重要的的表:


select * from longnames ;-- 名称表,总数据量91万,存储了所有物种以及分类名称的所有拉丁名

select * from strippedauthor; -- 命名人

select * from taxonomic_units; -- 分类单元

select * from taxon_unit_types where rank_id=220; -- 分类类型

Kingdom 界

Subkingdom 亚界

Infrakingdom 下界

Superphylum 总门

Phylum 门

Subphylum 亚门

Class 纲

Subclass 亚纲

Infraclass 下纲

Superorder 总目

order 目

Suborder 亚目

Infraorder 下目

Superfamily 总科

Family 科

Subfamily 亚科

Tribe 族

Genus 属

Species 种


-- 查询一个物种的所处分类

select b.rank_name

,a.taxon_author_id

,c.shortauthor

,t.*

from longnames t -- 所有拉丁名

left join taxonomic_units a -- 分类单元

on t.tsn =a.tsn

left join taxon_unit_types b -- 分类类别

on a.kingdom_id =b.kingdom_id

and a.rank_id =b.rank_id

left join strippedauthor c -- 命名人

on a.taxon_author_id =c.taxon_author_id

where t.tsn in ( SELECT substring_index( substring_index( replace(hierarchy_string,'-',','), ',', b.help_topic_id + 1 ), ',',- 1 ) name

FROM hierarchy a

JOIN mysql.help_topic b ON b.help_topic_id < ( length( replace(hierarchy_string,'-',',') ) - length( REPLACE ( replace(hierarchy_string,'-',','), ',', '' ) ) + 1 )

where a.tsn=702522

) ;

版权声明:

作者: freeclashnode

链接: https://www.freeclashnode.com/news/article-1247.htm

来源: FreeClashNode

文章版权归作者所有,未经允许请勿转载。

免费节点实时更新

热门文章

最新文章

归档