Summary of the invention
In view of this, the embodiment of the invention provides a kind of processing method of power grid meteorological disaster data, device and sharing
System, to solve due to power grid meteorological disaster data deficiency unified planning, the skimble-scamble problem of data standard.
According in a first aspect, the embodiment of the invention provides a kind of processing methods of power grid meteorological disaster data, comprising: obtain
Take power grid meteorological disaster data;The power grid meteorological disaster data are divided into according to the type of the power grid meteorological disaster data
Structural data and/or unstructured data;For the structural data, the structural data is formatted envelope
Dress generates encapsulation of data;For the unstructured data, the unstructured data is converted into data flow, by the number
The parameter object file for generating preset format is encapsulated according to stream;According to the encapsulation of data and/or the parameter object file generated
Power grid meteorological disaster metadata.
With reference to first aspect, in first aspect first embodiment, the power grid meteorological disaster metadata is for characterizing
The essential information of power grid meteorological disaster data set;The essential information includes: data name, data type, time range, space
Range, space-time reference system, frequency acquisition, statistical nature, quality testing, storage format, data volume size, data source,
Data set languages, contact information, storage place, data set ask for mode.
With reference to first aspect, in first aspect second embodiment, the power grid meteorological disaster data include: public gas
Image data, power grid disaster fining monitoring data and power grid calamity emergency monitoring data.
With reference to first aspect, in first aspect third embodiment, the method also includes: according to preset format standard
The data that corresponding format is extracted from the power grid meteorological disaster data, are divided into the structural data.
Third embodiment with reference to first aspect, in the 4th embodiment of first aspect, according to the power grid meteorology calamity
The power grid meteorological disaster metadata is divided into unstructured data by the type of evil data, comprising: by the power grid meteorology calamity
The data that the preset format standard is not met in evil data are divided into the unstructured data.
According to second aspect, the embodiment of the invention provides a kind of processing units of power grid meteorological disaster data, comprising: number
According to module is obtained, for obtaining power grid meteorological disaster data;Data categorization module, for according to the power grid meteorological disaster member number
According to type the power grid meteorological disaster data are divided into structural data and/or unstructured data;First package module,
For the structural data to be formatted encapsulation, Cheng Suoshu encapsulation of data;Second package module is used for the non-knot
Structure data are converted to data flow, and the data stream is generated to the parameter object file of preset format;Metadata generates
Module, for according to the encapsulation of data and/or the parameter object file generated power grid meteorological disaster metadata.
According to the third aspect, the embodiment of the present invention provides a kind of shared system of power grid meteorological disaster data, comprising: packet
It includes: the place of power grid meteorological disaster data described in server, metadatabase, metadata gateway, entity data bak and second aspect
Manage device;The metadatabase stores the power grid meteorological disaster metadata, and the entity data bak stores the encapsulation of data
And/or the parameter object file, the server pass through the net by metadatabase described in the metadata gateway access
The corresponding encapsulation of data and/or the parameter object file in entity data bak described in meteorological disaster metadata query.
In conjunction with the third aspect, in third aspect first embodiment, the entity data bak includes: first memory,
For storing the encapsulation of data and/or the parameter object file;Data update module, for updating the encapsulation of data
And/or the parameter object file.
In conjunction with the third aspect, in third aspect second embodiment, stating metadatabase includes;Second reservoir, is used for
Store the power grid meteorological disaster metadata;Metadata updates module, for updating the power grid meteorological disaster metadata.
In conjunction with the third aspect, in third aspect third embodiment, the entity data bak further include: upper entity number
According to library and at least one junior's entity data bak;At least one described junior's entity data bak and the upper entity database it
Between pass through encapsulation of data and/or the parameter object file described in the server transport, the upper entity database purchase
The encapsulation of data and/or the parameter object file of all junior's entity data bak storages.
Compared with prior art, the invention has the following advantages: the power grid meteorological disaster data of separate sources are pressed
It is divided into structural data and unstructured data according to unified standard, and structural data and unstructured data are sealed
Then dress generates power grid meteorological disaster metadata, carry out power grid calamity using unified data sharing mode, then by shared system
Evil meteorological data is shared, difficult so as to solve distributed heterogeneous power grid meteorological disaster data sharing between electric power enterprises at different levels
The problem of, when accessing metadatabase, carry out handover access agreement using gateway, it is total in data to improve power grid meteorological disaster metadata
Information Security when enjoying.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those skilled in the art are not having
Every other embodiment obtained under the premise of creative work is made, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that term " center ", "upper", "lower", "left", "right", "vertical",
The orientation or positional relationship of the instructions such as "horizontal", "inner", "outside" be based on the orientation or positional relationship shown in the drawings, merely to
Convenient for description the present invention and simplify description, rather than the device or element of indication or suggestion meaning must have a particular orientation,
It is constructed and operated in a specific orientation, therefore is not considered as limiting the invention.In addition, term " first ", " second ",
" third " is used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance.
In the description of the present invention, it should be noted that unless otherwise clearly defined and limited, term " installation ", " phase
Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can
To be mechanical connection, it is also possible to be electrically connected;It can be directly connected, can also indirectly connected through an intermediary, it can be with
It is the connection inside two elements, can be wireless connection, be also possible to wired connection.For those of ordinary skill in the art
For, the concrete meaning of above-mentioned term in the present invention can be understood with concrete condition.
As long as in addition, the non-structure each other of technical characteristic involved in invention described below different embodiments
It can be combined with each other at conflict.
The embodiment of the present invention provides a kind of processing method of power grid meteorological disaster data, and this method can be applied to electric power at different levels
Between enterprise isomery power grid meteorological disaster data it is shared in, as shown in Figure 1, method includes the following steps:
Step S101: power grid meteorological disaster data are obtained;Specifically, it can be from electric power enterprise from meteorological department, online
The power grid meteorological disaster solid data of the acquisition such as monitoring station relative region;
Step S102: power grid meteorological disaster data are divided by structural data according to the type of power grid meteorological disaster data
And/or unstructured data;The type of the power grid meteorological disaster data can be according to whether power grid meteorological disaster metadata accords with
It closes preset format standard to be divided, or is also possible to be divided according to the Type division standard of other data, this hair
It is bright to be not limited thereto.
Step S103: for structural data, the structural data is formatted encapsulation, generates encapsulation of data;
E.g., structural data is packaged according to designed XML format, generates encapsulation of data;
Step S104: for unstructured data, being converted to data flow for unstructured data, and it is pre- to encapsulate data generation
If the parameter object file of format;
Step S105: according to encapsulation of data and/or parameter object file generated power grid meteorological disaster metadata;Power grid is meteorological
Disaster metadata is to describe the essential information of encapsulation of data and/or parameter object file, is looked by power grid meteorological disaster metadata
Ask corresponding encapsulation of data and/or parameter object file.
The processing method of power grid meteorological disaster data through the embodiment of the present invention, by the power grid meteorological disaster of separate sources
Data are structural data and unstructured data according to Type division, are packaged in different ways, and using unified
Mode sent, so as to solve due to data source difference, data standard disunity, power grid meteorological disaster data without
The shared problem of method.
In embodiments of the present invention, power grid meteorological disaster metadata is used to characterize the basic letter of power grid meteorological disaster data set
Breath, as shown in table 1:
Table 1
The essential information includes: data name, data type, time range, spatial dimension, space-time reference system, acquisition frequency
Rate, statistical nature, quality testing, storage format, data volume size, data source, data set languages, contact information,
Storage place, data set ask for mode, and the essential information of power grid meteorological disaster data set mainly includes;Identification information, data matter
Amount information, reference system information, distribution information and restricted information, identification information, data quality information and reference system information are
Essential subset, distributes information and restricted information is optional subset, and power grid meteorological disaster metadata is for describing power grid meteorological disaster
The essential information of data, has data navigation effect, and user passes through power grid meteorological disaster metadata query to corresponding power grid gas
As disaster data.
In embodiments of the present invention, according to data acquisition source, power grid meteorological disaster data can be divided into: Public meteorology number
According to, power grid disaster fining monitoring data and power grid calamity emergency monitoring data;In practical applications, Public meteorology data refer to
The meteorological data purchased to meteorological departments at different levels mainly includes weather information, numerical weather forecast, hazard weather early warning, typhoon
Forecast, climatic prediction and other reports etc.;Power grid disaster fining monitoring data refer to the online prison that power grid enterprises independently build
The meteorological data of device acquisition is surveyed, mainly includes six element automatic meteorological observing station data, device for monitoring icing data, mountain fire prison
Survey device data etc.;Locality power grid enterprises survey cloud using mobile when power grid calamity emergency monitoring data refer to generation natural calamity
The meteorological data of the emergency monitorings such as radar truck equipment acquisition, mainly there is radar map, scene photograph, infrared photograph, live video etc..
In an embodiment of the present invention, above-mentioned steps S102: according to the type of power grid meteorological disaster data that power grid is meteorological
Disaster data is divided into structural data and/or unstructured data, specifically according to preset format standard from power grid disaster
The data that corresponding format is extracted in data, are divided into structural data, the data for not meeting preset format standard are divided into non-knot
Structure data.In practical applications, structural data include: surface-based observing station weather information, six element automatic meteorological observing stations,
The fixed row data of formats such as icing monitoring station, conventional weather forecast, hazard weather forecast, typhoon forecast, power grid hazard forecasting,
Mainly storage and management can be carried out by relevant database;Unstructured data includes: Doppler radar picture mosaic, visible Shekinah
Figure, infrared cloud image, satellite remote sensing images, scene photograph, live video etc. are unsuitable for the data showed by database bivariate table.
Unstructured data only saves abstract and routing information in relevant database, and specifying information uses unstructured data pipe
Platform is stored.
The present invention implements embodiment and provides a kind of processing unit 1 of power grid meteorological disaster data, as shown in Fig. 2, the processing
Device includes: data acquisition module 101, data categorization module 102, the first package module 103, the second package module 104, first number
According to generation module 105.
Wherein, data acquisition module 101, for obtaining power grid meteorological disaster data, detailed content refers to the above method
Described in the step S101 of embodiment;Data categorization module 102, it is for the type according to power grid meteorological disaster data that power grid is meteorological
The step of disaster data is divided into structural data and/or unstructured data, and detailed content refers to above method embodiment
Described in S102;First package module 103 generates encapsulation of data, detailed content for structural data to be formatted encapsulation
It refers to described in the step S103 of above method embodiment;Second package module 104, for unstructured data to be converted to number
According to stream, and by the parameter object file of data stream generation preset format, detailed content refers to above method embodiment
Described in step S104;Metadata generation module 105, for meteorological according to encapsulation of data and/or parameter object file generated power grid
Disaster metadata;Detailed content refers to described in the step S105 of above method embodiment.
The processing unit 1 of power grid meteorological disaster data through the embodiment of the present invention, according to preset standard by different marks
Quasi- power grid meteorological disaster metadata is divided into structural data and unstructured data, is packaged in two ways, and
Power grid meteorological disaster metadata is generated, unified data sharing interface specification can be used, in order to subsequently data sharing.
The embodiment of the present invention provides a kind of shared system of power grid meteorological disaster data, which can be applied at different levels
Between electric power enterprise isomery power grid meteorological disaster data it is shared in, as shown in figure 3, the system includes: server 2, metadata
The processing unit 1 of library 3, metadata gateway 4, entity data bak 5 and power grid meteorological disaster data;
Metadatabase 3 stores power grid meteorological disaster metadata, and entity data bak 5 stores the encapsulation of data and/or described
Parameter object file, server 2 access the metadatabase by the metadata gateway 4, pass through net meteorological disaster metadata
Corresponding encapsulation of data and/or the parameter object file in query entity database.In practical applications, user uses browsing
Device or client pass through the power grid meteorological disaster metadata of server access metadatabase, inquire and download corresponding power grid gas
As disaster data, user access server uses HTTPS agreement, using HTTPS agreement to the power grid meteorological disaster member number of transmission
According to Confidentiality protection is carried out, accomplish rights management, input and output verifying, session management, exception management etc., the shared system of full protection
System safety.The network inquiry of power grid meteorological disaster metadata uses Z39.50 agreement, and gateway is assisted for Z39.50 agreement and HTTPS
Conversion between view is the hinge for connecting HTTPS agreement and Z39.50 network.
Optionally, in some embodiments of the invention, as shown in figure 4, entity data bak 5 includes;First memory 501
With data update module 502;Memory 501 is used for storage enclosure data and/or the parameter object file;Data update module
502 for updating format data and/or the parameter object file;As shown in figure 5, first number library 4 includes: second memory
401 and metadata updates module 402.In practical applications, metadatabase is used to save and handle power grid meteorological disaster metadata,
Net Hazard Meteorological data are searched for user and meteorological data resource provides support, and entity data bak stores power grid Hazard Meteorological
Data, after the power grid Hazard Meteorological data got change, in 502 real-time update entity data bak of data update module
Power grid Hazard Meteorological data, metadata updates module 401 changes corresponding power grid meteorological disaster metadata simultaneously, so as to mention
The reliability of high power grid meteorological disaster data.
Optionally, in some embodiments of the invention, as shown in figure 4, entity data bak 5 can be divided into: upper entity number
According to library 5A and multiple junior's entity data bak 5B etc.;Between multiple junior's entity data bak 5B and the upper entity database 5A
Encapsulation of data and/or parameter object file are transmitted by server 2, upper entity database 5A stores all junior's solid datas
The encapsulation of data and/or parameter object file of library 5B storage.In practical applications, electric power enterprise includes: parent company, provincial company
With city-level company, the entity data bak of city-level company corresponds to junior entity data bak 5B, and the entity data bak of provincial company is corresponding
Upper entity database 5A, different entities database are packaged the biography of data and/or parameter object file by server 2
It is defeated, as shown in fig. 6, the power grid meteorological disaster data that city-level company will acquire are uploaded to the entity data bak of provincial company, it is provincial
Power grid meteorological disaster data in its entity data bak are uploaded in the entity data bak of parent company by company;Or by parent company
It to the power grid meteorological disaster data in China Meteorological Administration's buying whole nation, and is stored in entity data bak, then passes through 2 timing of server
It is sent to provincial company, provincial company is periodically sent to city-level company again;When provincial company or city-level company need to inquire it is adjacent
Provincial company or city-level company, so that it may superior company application after, inquired by server 2, if city-level company
Entity data bak in power grid meteorological disaster data occur lose or go wrong, can belong to upwards provincial company application restore,
Same provincial company can apply restoring to parent company.
By implementing the shared system of one of embodiment of the present invention power grid meteorological disaster data, by the electricity of unified format
It nets meteorological metadata to be stored in metadatabase, different metadatabases and entity data bak are total by server realization data
It enjoys, user can access metadatabase inquiry and downloading power grid meteorological disaster metadata by browser or client, solve at different levels
The sharing problem of distributed heterogeneous power grid meteorological disaster data between electric power enterprise.
It is that can lead to it will be understood by those skilled in the art that realizing all or part of the process in above-described embodiment method
Computer program is crossed to instruct relevant hardware and complete, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can for magnetic disk,
CD, read-only memory (Read-Only Memory, ROM), random access memory (Random Access
Memory, RAM), flash memory (Flash Memory), hard disk (Hard DiskD rive, abbreviation: HDD) or solid state hard disk
(Solid-State Drive, SSD) etc.;The storage medium can also include the combination of the memory of mentioned kind.
Although being described in conjunction with the accompanying the embodiment of the present invention, those skilled in the art can not depart from the present invention
Spirit and scope in the case where various modifications and variations can be made, such modifications and variations are each fallen within by appended claims institute
Within the scope of restriction.