Automatic generation method of biodiversity assessment report

文档序号:1567747 发布日期:2020-01-24 浏览:10次 中文

阅读说明:本技术 一种生物多样性评估报告自动生成方法 (Automatic generation method of biodiversity assessment report ) 是由 王雅洁 张成梅 陈恺 杨冰 黄伟 郝淼 李世华 陈全州 于 2019-07-15 设计创作,主要内容包括:本发明公开了一种生物多样性评估报告自动生成方法。按下述步骤进行:根据需求,设置用于评估生物多样性的评估报告模板,对各评估报告模板进行编号、保存;当用户输入创建需求时,系统根据需求访问不同的评估报告模板,采用Ajax、Redis、Spring Batch、Apache Storm、Apache Spark等技术从采集的数据库中调取物种、标本、动植物园、生态环境、植被群落、保育、生态产品、生物企业数据并进行实时的“云”上并行计算,将最终的动态数据返回到报告模板中,得到生物多样性评估报告。本发明能够自动生成评估报告,节约了大量的人力成本,而且节约了时间成本,同时避免数据遗漏问题,使得计算更加精准高效,提高了工作效率。(The invention discloses an automatic generation method of a biodiversity assessment report. The method comprises the following steps: setting an assessment report template for assessing biodiversity according to requirements, numbering and storing each assessment report template; when a user inputs a creation demand, the system accesses different evaluation report templates according to the demand, and adopts technologies such as Ajax, Redis, Spring Batch, Apache Storm, Apache Spark and the like to call data of species, specimens, animal and plant gardens, ecological environments, vegetation communities, conservation, ecological products and biological enterprises from an acquired database, perform real-time cloud-up parallel computation, and return final dynamic data to the report templates to obtain a biodiversity evaluation report. The method and the device can automatically generate the evaluation report, save a large amount of labor cost, save time cost, and simultaneously avoid the problem of data omission, so that the calculation is more accurate and efficient, and the working efficiency is improved.)

1. An automatic generation method of a biodiversity assessment report is characterized by comprising the following steps:

a. according to requirements, provincial, city, county/district and protection district evaluation report templates for evaluating biodiversity are set, and the evaluation report templates are numbered and stored in a database; the evaluation report template comprises static content and dynamic content, wherein the dynamic content is temporarily replaced by placeholders;

b. according to the operation of a user on a page, page refreshing and the refreshing time period, the page adopts the Ajax technology to asynchronously send a request and calls a control layer interface of a background; the control layer receives the calling request, firstly calls an evaluation report template interface corresponding to the request to obtain a template, stores the template in a Cache by using a Spring Cache technology, and then calls a corresponding function method of the Service layer according to the received request parameters; the function method transmits the parameters to the DAO interface, and the DAO interface performs data interaction with the database by adopting a Spring DataJPA technology;

c. after the data interaction is completed, the system returns the interaction result to the function method, and the function method performs data verification on the received interaction result and returns the interaction result to the control layer;

d. the control layer returns the checked interaction result to the evaluation report template, replaces the placeholders in the evaluation report template with data returned by the control layer, and generates an evaluation report;

e. and after the evaluation report is generated, the control layer returns the evaluation report to the page, the webpage presents the evaluation report, and the evaluation report is numbered and stored in the database.

2. The method of claim 1, wherein in step b, the database comprises 8 databases including a species library, a specimen library, a digital zoo, an ecological environment library, a conservation library, a vegetation library, an enterprise library and a product library; the interaction process of the database is as follows: the method comprises the steps that data tables of 8 databases are created in the databases, and relevance exists among the data tables; correspondingly, 8 entity classes are created by using an automatic generation tool created when a Spring Roo framework is built on a background Model layer, and fields of the entity classes are in one-to-one correspondence with fields of the 8 databases; and (3) associating the entity class with the 8 databases by using an ORM technology, and finishing Data manipulation on the databases by using a Spring Data JPA technology.

3. The method according to claim 1, wherein in the step d, when replacing the placeholder, the control layer invokes a placeholder replacement interface according to the invocation request, the placeholder replacement interface adopts Redis, Spring Batch, Spring Data JPA, Apache Storm and Apache Spark technologies to perform real-time parallel computation on the Data acquired from the database, remove redundant Data, and return the final dynamic Data to the report template, thereby generating the final assessment report.

4. The method as claimed in claim 1, wherein in step e, after the evaluation report is numbered and saved, when other users generate new evaluation reports after defined conditions, the system matches the evaluation reports in the database according to the defined conditions of the users.

5. The method of claim 1, wherein the static content of the evaluation report template is updated periodically.

Technical Field

The invention relates to the technical field of cloud computing application, in particular to an automatic generation method of a biodiversity evaluation report.

Background

Cloud computing is a distributed computing mode for realizing mass data, and provides storage and computing capacity of mass ecological data by aggregating data resources which are distributed in different time and different places and are created by different ecological experts. Cloud computing includes two aspects: (1) the cloud computing platform infrastructure is the foundation for constructing upper application programs; (2) and the cloud computing application program is constructed on the basic platform. The cloud computing platform provides on-demand services of data computing to supervision departments, enterprises, detection mechanisms, media and the public of the ecological industry through technologies such as virtualization and dynamic resource allocation, so that resource waste is avoided, and the utilization rate and application performance of the cloud server are improved. In popular terms, cloud computing uses a large number of computers which are connected with the internet at low cost to process tasks as required, and provides required storage resources, computing resources and the like for ecological big data. All users need not be aware of the management of the cloud computing infrastructure. Meanwhile, cloud computing provides dynamic load balancing and lateral scaling capabilities, and as the data volume increases, more data nodes are needed for computing. The cloud computing supports adding nodes to the data center as required during operation, and automatically transferring some loads to the new nodes as required for operation. Meanwhile, the load balance among the nodes is kept, and the service bearing capacity is improved.

In a cloud computing environment, all data resources are divided into a pattern of multiple data centers. A data center is provided with thousands of data nodes, and the data nodes are efficiently connected through the Internet and can provide storage and computing resources for users. Nowadays, with the rapid development of cloud computing, an inexpensive and large-scale computing platform can be realized by using virtualization, and storage resources, network resources, computing resources, application programs, and the like are used as virtualized entities. Virtualization technology can be applied to effectively utilize and organize idle computing platforms, abstract idle computing resources, enable the computing resources to form mutually independent virtual server instances, and accordingly independently complete distributed data processing and computing, and therefore virtualization of bottom hardware is achieved.

And the cloud computing-based method can realize the efficient processing and analysis of large-scale data. When the large-scale data are subjected to parallelization calculation by using a MapReduce calculation framework, the structure needs to be kept consistent. For the mining of mass data, the method is usually related to complex algorithms with large computational difficulty, such as approximate solution, data dimension reduction, program iteration and the like. And often the data mining algorithm needs to be customized according to industry data according to different collective industries. Therefore, mass data mining technologies based on cloud computing and industry-specific have attracted high attention from academia and various industries.

Nowadays, as the amount of data increases, the amount of data information can generally reach the GB or TB level. The cloud computing platform supports large-scale data by adopting the HDFS, can be expanded in large-scale distributed cheap computing cluster nodes, and provides high-data bandwidth.

The biodiversity refers to the ecological complex formed by organisms and the environment and the sum of various ecological processes related to the ecological complex, and comprises three levels of diversity of species, ecosystem and heredity, and the content of the number, spatial distribution, composition structure, abundance and the like of the organisms. Biodiversity is an important concept with wide connotation, and has the following major significance: genetic diversity, species diversity, ecosystem diversity and landscape diversity. Genetic diversity refers to the variation of genes within a species, including significantly different populations within a species and genetic variations within the same population; species diversity is the manifestation of biodiversity at the species level; ecosystem diversity refers to the diversification of habitats, biological communities and ecological processes in biospheres, and the striking diversity of habitat differences and ecological process changes in ecosystems; landscape diversity refers to the diversity or variability in spatial structure, functional mechanisms, and temporal dynamics of landscapes made up of different types of landscape elements or ecosystems.

Biodiversity is the material basis on which humans live and develop, and plays a very important role in maintaining human survival.

However, with the rapid development of economy and the growth of population, the biodiversity of China is seriously threatened.

Of the universe stars we know, scientists now find that there is life only on the earth. Life on earth has evolved over billions of years, forming a biosphere consisting of numerous types of organisms suitable for human survival. Clearly, it is this profound biodiversity that supports human survival and development. The problem is that due to the improper development of human beings, we are experiencing a disaster in which a large number of biological species have gone extinct since the 6500 ten thousand years ago dinosaur extinct. If this process is not contained, it will gradually collapse life support systems on earth, which may have been the biggest challenge facing human society since history. In this regard, we cannot do nothing. In the environment and development congress of the united nations of fever, Lu in Brazil in 1992, the "biodiversity convention" was signed by the first leader or government headquarter of over 150 countries.

Along with the gradual deepening of biodiversity management and fulfillment of biodiversity convention in China, the biodiversity protection work in China also faces serious challenges. Biodiversity management is extensive, and many regions have the problems of unclear families, unclear threats and unadvantaged measures. Biodiversity evaluation is a generalized data and information tool that reflects complex environmental issues, the overall situation and trends that characterize biodiversity. Biodiversity assessment can be used to assess different levels of biodiversity protective measures, to improve relevant measures based on assessment results, and to improve or cure problems involved through policy intervention and other actions. In order to improve the management level of the biodiversity, innovate the management mode, promote the management mode to change from the extensive type to the fine type, make the biodiversity management step forward to a higher step, carry on biodiversity assessment very necessary.

China is one of the most abundant countries in the world, and has various land ecosystems such as forests, bushes, meadows, grasslands, deserts and wetlands, and ocean ecosystems such as yellow sea, east sea, south sea and black tide river basin. It possesses 35,112 higher plants (3 rd in the world), 6,445 vertebrates (13.7% in the world), and about 1 million fungal species (14% in the world) have been identified; according to incomplete statistics, 1,339 cultivated crops and 576 domestic animal varieties exist.

Gathering biodiversity information is a laborious task due to the enormous size and complexity of biodiversity information. Obviously, it is impossible for an evaluator to personally perform field monitoring on all the evaluated contents to acquire data, and the evaluator mainly relies on existing data. Because the biodiversity assessment report is wide in related scope and complex in data, and the traditional report generation mode depends on manpower too much, the requirement for batch, quick and intelligent report issuing cannot be met, and the working efficiency is greatly reduced. Therefore, it is an urgent need to provide a method and system for rapidly generating a biodiversity assessment report according to the requirement.

Disclosure of Invention

The invention aims to provide an automatic generation method of a biodiversity assessment report. The method and the device can automatically generate the evaluation report, save a large amount of labor cost, save time cost, and avoid the problem of data omission, so that the calculation is more accurate and efficient, and the scientific research and decision efficiency is improved.

The technical scheme of the invention. An automatic generation method of a biodiversity assessment report comprises the following steps:

a. according to requirements, provincial, city, county/district and protection district evaluation report templates for evaluating biodiversity are set, and the evaluation report templates are numbered and stored in a database; the evaluation report template comprises static content and dynamic content, wherein the dynamic content is temporarily replaced by placeholders;

b. according to the operation of a user on a page, page refreshing and the refreshing time period, the page adopts the Ajax technology to asynchronously send a request and calls a control layer interface of a background; the control layer receives the calling request, firstly calls an evaluation report template interface corresponding to the request to obtain a template, stores the template in a Cache by using a Spring Cache technology, and then calls a corresponding function method of the Service layer according to the received request parameters; the function method transmits the parameters to the DAO interface, and the DAO interface performs data interaction with the database by adopting a SpringData JPA technology;

c. after the data interaction is completed, the system returns the interaction result to the function method, and the function method performs data verification on the received interaction result and returns the interaction result to the control layer;

d. the control layer returns the checked interaction result to the evaluation report template, replaces the placeholders in the evaluation report template with data returned by the control layer, and generates an evaluation report;

e. and after the evaluation report is generated, the control layer returns the evaluation report to the page, the webpage presents the evaluation report, and the evaluation report is numbered and stored in the database.

In the step b of the automatic generation method of the biodiversity assessment report, the databases include 8 databases of a species library, a specimen library, a digital animal and plant garden, an ecological environment library, an incubator library, a vegetation library, an enterprise library and a product library; the interaction process of the database is as follows: creating data tables of 8 databases in the database, wherein the data tables have relevance; correspondingly, 8 entity classes are created by using an automatic generation tool created when a Spring Roo framework is built on a background Model layer, and fields of the entity classes are in one-to-one correspondence with fields of the 8 databases; and (3) associating the entity class with the 8 databases by using an ORM technology, and finishing Data manipulation on the databases by using a Spring Data JPA technology.

In step d, when replacing placeholders, the control layer calls a placeholder replacement interface according to the calling request, the placeholder replacement interface adopts the techniques of Redis, Spring Batch, Spring data JPA, Apache Storm and Apache Spark to perform real-time parallel computation on data acquired from the database, remove redundant data, and return final dynamic data to the report template, thereby generating a final evaluation report.

In the step e of the aforementioned method for automatically generating a biodiversity assessment report, after the assessment report is numbered and saved, when other users generate new assessment reports after the conditions have been defined, the system matches the assessment reports in the database according to the conditions defined by the users.

The automatic generation method of the biodiversity assessment report comprises the regular updating of the static content of the assessment report template.

Advantageous effects

Compared with the prior art, the invention has the following beneficial effects:

the invention creates a biodiversity assessment report template based on cloud computing; when the system is used, a user can automatically select an evaluation report template corresponding to conditions after self-defining the conditions, and the evaluation report is generated by calling data from 8 databases of a species library, a specimen library, a digital animal and plant park, an ecological environment library, a conservation library, a vegetation library, an enterprise library and a product library and filling the calculated data into the evaluation report template through cloud computing according to a computing logic relation. By the method, the assessment report template can meet the requirements of most of administrative staff, and general administrative staff can directly select different administrative divisions to generate the regional biodiversity assessment report without modifying the report template. Meanwhile, with the increase of the use frequency, the evaluation report of the database is more and more abundant, when the condition selected by other users is consistent with the condition of the report generated before, the background can directly skip the calculation step to directly acquire the report from the database, the report information desired by the user can be more quickly given, and the working efficiency is further improved. In addition, because the data of each database is updated continuously, each time a report is created, the system determines whether to directly call the existing report according to whether the data of the corresponding part in the system is updated or to re-calculate the latest report to the user in real time.

The method for automatically generating the biodiversity assessment report based on the cloud computing is adopted, so that a large amount of labor cost is saved, scientific research and decision efficiency is improved, the problems of complex computation and low speed caused by excessively large data volume and cannot be solved by the traditional computer, and the accuracy of data is ensured.

The cloud computing can endow the user with unprecedented computing capacity; the cloud computing supports a user to acquire application services at any position and by using various terminals. The requested resource comes from the "cloud" rather than a fixed tangible entity. The application runs somewhere in the "cloud," but in practice the user does not need to know, nor worry about, the specific location where the application runs. User requirements can be met through the cloud platform only by one notebook or one mobile phone; the cloud ensures high reliability of service by using measures such as multi-copy fault tolerance of data, isomorphic and interchangeable computing nodes and the like, and is more reliable by using the cloud computing than a local computer; the cloud computing is high in universality and high in expandability.

Based on the cloud platform, relevant administrative and scientific personnel in different spaces and different times can efficiently select different assessment report templates according to different task requirements (such as regions, species and the like) by accessing the cloud platform website, so that the system can automatically generate and download assessment reports, and efficient resource sharing is realized.

The automatic biodiversity generation method integrates data of 8 large databases of a species library, a specimen library, an ecological environment library, a vegetation library, a digital animal and plant park, a product library, an enterprise library and an incubator from a biological ecological cloud large data platform, can realize scientific evaluation on diversity of an ecological system, diversity of biological species and diversity of genetic resources, and actually solves the problem of pain of scientific researchers and industries.

In conclusion, the method can automatically generate the biodiversity assessment report meeting professional requirements, actually solve the problems of complex data, difficult analysis and large data amount, scientifically and objectively evaluate the biodiversity and the current state, spatial distribution and variation trend of the ecological environment, clearly determine the protection key objects and contents of the biodiversity and the ecological environment of each region, and provide decision basis and consultation service for governments and related departments in the fields of ecological civilization construction, ecological compensation, biodiversity protection and the like. Meanwhile, a large amount of labor cost and time cost are saved, the problem of data omission is avoided, calculation is more accurate and efficient, and scientific research and decision-making efficiency is improved.

Detailed Description

The present invention is further illustrated by the following examples, which are not to be construed as limiting the invention.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:数据报表生成方法、装置、介质及电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!