Function
SP2000China.GetFamiliesByFamilyName — FunctionGetFamiliesByFamilyName(;family_name::String,api_key::String,page::Int=1)
Description
- Query by family name and return a collection of family IDs.
Parameters
family_name: The family name, or a part of it, supporting both Latin and Chinese names.api_key: The API service key for registered users.page: The page number, an integer not less than 1. If not provided, it defaults to 1.
Results
result: A structure of typeGetFamiliesByFamilyNameStruct.result.data: Dictionary converted from JSON information.result.count: Total number of matches.result.page: Current data page.reult.limit: Number of items displayed per page.result.abstract: Refined data frame.
Example
your_family_name = "Coriariaceae";
your_api_key = "Please register an account and obtain an API key";
your_page = 1;
result = GetFamiliesByFamilyName(family_name=your_family_name,api_key=your_api_key,page=your_page);
result.data
result.count
result.page
reult.limit
result.abstractSP2000China.GetSpeciesByFamilyId — FunctionGetSpeciesByFamilyId(;family_id::String,api_key::String,page::Int=1)
Description
- Query species by family ID and return a list of species.
Parameters
family_id:The family ID, a unique value.api_key:The API service key for registered users.page:The page number, an integer not less than 1. Defaults to 1 if not provided.
Results
result: A structure of typeGetSpeciesByFamilyIdStruct.result.data: Dictionary converted from JSON information.result.count: Total number of matches.result.page: Current data page.result.limit: Number of items displayed per page.result.abstract: Refined data frame.
Example
your_family_id = "F20171000000291";
your_api_key = "Please register an account and obtain an API key";
your_page = 1;
result = GetSpeciesByFamilyId(family_id=your_family_id,api_key=your_api_key,page=your_page);
result.data
result.count
result.page
reult.limit
result.abstractSP2000China.GetSpeciesByScientificName — FunctionGetSpeciesByScientificName(;scientific_name::String,api_key::String,page::Int=1)
Description
- Query by scientific name and return species IDs.
Parameters
scientific_name:The scientific name, or a part of it, supporting both Latin and Chinese names.api_key: The API service key for registered users.page: The page number, an integer not less than 1. If not provided, it defaults to 1.
Results
result: A structure of typeGetSpeciesByScientificNameStruct.result.data: Dictionary converted from JSON information.result.count: Total number of matches.result.page: Current data page.reult.limit: Number of items displayed per page.result.abstract: Refined data frame.
Example
your_scientific_name = "Actinidia arg";
your_api_key = "Please register an account and obtain an API key";
your_page = 1;
result = GetSpeciesByScientificName(scientific_name=your_scientific_name,api_key=your_api_key,page=your_page);
result.data
result.count
result.page
reult.limit
result.abstractSP2000China.GetSpeciesByCommonName — FunctionGetSpeciesByCommonName(;common_name::String,api_key::String,page::Int=1)
Description
- Query by common name and return species or subspecies information.
Parameters
common_name: The common name, or a part of it.api_key: The API service key for registered users.page: The page number, an integer not less than 1. If not provided, it defaults to 1.
Results
result: A structure of typeGetSpeciesByCommonNameStruct.result.data: Dictionary converted from JSON information.result.count: Total number of matches.result.page: Current data page.reult.limit: Number of items displayed per page.result.abstract: Refined data frame.
Example
your_common_name = "土人参";
your_api_key = "Please register an account and obtain an API key";
your_page = 1;
result = GetSpeciesByCommonName(common_name=your_common_name,api_key=your_api_key,page=your_page);
result.data
result.count
result.page
reult.limit
result.abstractSP2000China.GetSpeciesByNameCode — FunctionGetSpeciesByNameCode(;name_code::String,api_key::String)
Description
- Retrieve detailed information based on the species ID.
Parameters
name_code: The species ID.api_key: The API service key for registered users.
Results
result: A structure of typeGetSpeciesByNameCodeStruct.result.data: Dictionary converted from JSON information.result.abstract: Refined data frame.
Example
your_name_code = "1ac19d0d82d84dd2900d51a742fa9296";
your_api_key = "Please register an account and obtain an API key";
result = GetSpeciesByNameCode(name_code=your_name_code,api_key=your_api_key);
result.data
result.abstractSP2000China.GetNameByKeyword — FunctionGetNameByKeyword(;keyword::String,api_key::String,page::Int=1)
Description
- Search for name information based on a keyword.
Parameters
keyword: The name keyword (at least 2 characters).api_key: The API service key for registered users.page: The page number, an integer not less than 1. If not provided, it defaults to 1.
Results
result: A structure of typeGetNameByKeywordStruct.result.data: Dictionary converted from JSON information.result.count: Total number of matches.result.page: Current data page.reult.limit: Number of items displayed per page.result.abstract: Refined data frame.
Example
your_keyword="柳莺";
your_api_key = "Please register an account and obtain an API key";
your_page = 1;
result = GetNameByKeyword(keyword=your_keyword,api_key=your_api_key,page=your_page);
result.data
result.count
result.page
reult.limit
result.abstractOther
SP2000China.SP2000China — ModuleThe Julia package for obtaining information on the list of biological species, SP2000China.
SP2000China.GetFamiliesByFamilyNameStruct — TypeConstruct a structure to store the results of the function GetFamiliesByFamilyName.
SP2000China.GetSpeciesByFamilyIdStruct — TypeConstruct a structure to store the results of the function GetSpeciesByFamilyId.
SP2000China.GetSpeciesByScientificNameStruct — TypeConstruct a structure to store the results of the function GetSpeciesByScientificName.
SP2000China.GetSpeciesByCommonNameStruct — TypeConstruct a structure to store the results of the function GetSpeciesByCommonName.
SP2000China.GetSpeciesByNameCodeStruct — TypeConstruct a structure to store the results of the function GetSpeciesByNameCode.
SP2000China.GetNameByKeywordStruct — TypeConstruct a structure to store the results of the function GetNameByKeyword.