Government data sharing and exchange method and device
Through the method of retrieving and querying information resource catalogs in the resource management metadatabase of government service matters, the lack of organization and management of government information sharing information resources is solved, efficient data sharing and utilization of government service matters is realized, and the comprehensive capabilities of government services are improved.
Patent Information
- Application Number
- CN202110224079.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-01
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2041-03-01
AI Technical Summary
The lack of unified organization and management technology for government information sharing resources in the existing technology has made it cumbersome, time-consuming and labor-intensive to connect government units, and the government information sharing resources from the same government service matters overlap and redundant, making it difficult to effectively utilize them.
It provides a method of sharing and exchange of government data. By obtaining real-time data requests from the matter processing terminal, searching resource management metadata in the pre-established resource management metadata based on government service matters, obtaining associated information resource catalogs, and conducting data queries based on the information resource catalog, integrating them into data packets and returning to the matter processing terminal.
It has realized a unified data sharing center for government service matters, provided complete organizational standards and source standards, improved the efficiency of data sharing and the depth of data utilization, avoided overlap and redundant resources, and improved the comprehensive capabilities of government services.
Smart Images

Figure CN112948383B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method and device for sharing and exchanging government data. Background Art
[0002] Matter handling is one of the main tasks of Internet + government services. In the process of matter handling, it is necessary to obtain relevant data from various government departments. For various reasons, many data cannot be shared to the government data resource center or the relevant system of matter handling through data exchange before the matter is handled. They can only be requested through the service interface during the process of matter handling. This method has a large amount of transformation to the existing system, cumbersome processes, confusing standards, time-consuming and labor-intensive, and poor timeliness.
[0003] The government information resource directory is an important part of the national e-government overall framework and one of the basic infrastructures of e-government. The government information resource directory is based on government information resources, relies on the national unified e-government network, uses metadata to describe the characteristics of shared government information resources, forms unified and standardized directory content, and forms an information sharing model in which government information resources between departments are physically dispersed and logically centralized, supporting the discovery, location and sharing of information resources.
[0004] At present, the organization and management of government shared information resources are mainly based on information resource directory technology.
[0005] However, in the process of various government units providing government shared information resources for the handling of government service matters, the sharing method based on information resource directory technology has no unified organization and management technology for government shared information resources. Each unit acts independently, and the connection is cumbersome, time-consuming and labor-intensive. In addition, since there is no unified connection source for government shared information resources, the government shared information resources connected to the same government service matter overlap and are redundant, making it difficult to effectively utilize government service matters. Summary of the invention
[0006] In response to the problems in the prior art, the present invention provides a government data sharing and exchange method and device, an electronic device, and a computer-readable storage medium, which can at least partially solve the problems in the prior art.
[0007] In order to achieve the above object, the present invention adopts the following technical solution:
[0008] In a first aspect, a method for sharing and exchanging government data is provided, comprising:
[0009] Obtain real-time data requests sent by the event handling terminal;
[0010] Retrieving resource management metadata corresponding to the current matter in a pre-established resource management metadata database based on government service matters according to the real-time data request;
[0011] Obtaining the associated information resource directory according to the resource management metadata;
[0012] Data query is performed according to the information resource directory and the real-time data request, and the query results are integrated into a data message and returned to the matter processing terminal.
[0013] Further, the data query is performed according to the information resource directory and the real-time data request, including:
[0014] Determine corresponding information field items, search conditions, and access methods according to the information resource directory and the real-time data request;
[0015] Perform data query based on the information field items, search conditions, and access methods.
[0016] Furthermore, the corresponding information field item, search condition, and access method are determined according to the information resource directory and the real-time data request, including:
[0017] Determine the required information field items and the access method of the source of each information field item according to the information resource directory;
[0018] The corresponding search conditions are determined according to the sharing mode and consistency constraints corresponding to the information resource directory and various types of input information in the real-time data request.
[0019] Furthermore, the government data sharing and exchange method also includes:
[0020] Establish a resource management metadata database based on government service matters.
[0021] Furthermore, a resource management metadata database based on government service items is established, including:
[0022] Synchronize information resource directory data and government service item directory data from external systems;
[0023] Associating a corresponding information resource directory with each government service item in the government service item directory data, and defining input parameters and output parameters for data acquisition for each government service item;
[0024] For each associated information resource directory, select the corresponding sharing method and required information field items;
[0025] Set consistency constraints between all information resource directories associated with the current government service items to form resource management metadata based on government service items.
[0026] In a second aspect, a government data sharing and exchange device is provided, comprising:
[0027] Request acquisition module, which obtains real-time data requests sent by the event handling terminal;
[0028] The metadata acquisition module retrieves the resource management metadata corresponding to the current item in a pre-established resource management metadata database based on government service items according to the real-time data request;
[0029] The directory corresponding module obtains the associated information resource directory according to the resource management metadata;
[0030] The data query module performs data query according to the information resource directory and the real-time data request, and integrates the query results into a data message and returns it to the matter processing terminal.
[0031] Furthermore, the data query module includes:
[0032] A search preparation unit determines corresponding information field items, search conditions, and access methods according to the information resource directory and the real-time data request;
[0033] The data query unit performs data query according to the information field item, search condition and access method.
[0034] Furthermore, the retrieval preparation unit includes:
[0035] The field access determination subunit determines the required information field items and the access method of the source of each information field item according to the information resource directory;
[0036] The search condition determination subunit determines the corresponding search condition according to the sharing mode and consistency constraint corresponding to the information resource directory and various types of input information in the real-time data request.
[0037] According to a third aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned government data sharing and exchange method when executing the program.
[0038] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned government data sharing and exchange method are implemented.
[0039] The present invention provides a method and device for sharing and exchanging government data, which includes: obtaining a real-time data request sent by a matter handling terminal; searching for resource management metadata corresponding to the current matter in a pre-established resource management metadata database based on government service matters according to the real-time data request; obtaining a related information resource directory according to the resource management metadata; performing a data query according to the information resource directory and the real-time data request, and integrating the query results into a data message and returning it to the matter handling terminal. Among them, based on government service matters as units, government data resources are uniformly organized and managed, providing a unified docking source of government shared information resources for matter handling, providing a better resource management and data exchange mode for data sharing and exchange, saving time and effort, preventing overlapping and redundant resources, and enabling efficient processing of government service matters.
[0040] In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0042] Figure 1 This is a schematic diagram of the process of the government data sharing and exchange method in an embodiment of the present invention. Figure 1 ;
[0043] Figure 2 This is a schematic diagram of the process of the government data sharing and exchange method in an embodiment of the present invention. Figure 2 ;
[0044] Figure 3 The specific steps of step S500 in the embodiment of the present invention are shown;
[0045] Figure 4 The specific steps of step S400 in the embodiment of the present invention are shown;
[0046] Figure 5 The specific steps of step S410 in the embodiment of the present invention are shown;
[0047] Figure 6 It is an application architecture diagram for establishing a resource management metadata database based on government service items in an embodiment of the present invention;
[0048] Figure 7It is an application architecture diagram of the government data sharing and exchange process in an embodiment of the present invention;
[0049] Figure 8 is a structural block diagram of a government data sharing and exchange device in an embodiment of the present invention;
[0050] Fig. 9 is a structural diagram of an electronic device according to an embodiment of the present invention;
[0051] Fig.10 The government affairs item catalogue in the embodiment of the present invention is shown;
[0052] Fig.11 The government information resource directory in the embodiment of the present invention is shown;
[0053] Fig.12 The government information resource directory data in the embodiment of the present invention is shown. DETAILED DESCRIPTION
[0054] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0055] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0056] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or apparatuses.
[0057] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0058] At present, in the process of various government units providing government shared information resources for the handling of government service items, the sharing method based on information resource directory technology has no unified organization and management technology for government shared information resources. Each unit acts independently, and the connection is cumbersome, time-consuming and labor-intensive. In addition, since there is no unified connection source for government shared information resources, the government shared information resources connected to the same government service item overlap and are redundant, making it difficult to effectively utilize government service items.
[0059] In order to at least partially solve the above technical problems, the present application embodiment provides a government data sharing and exchange method, see Figure 1 The government data sharing and exchange method specifically includes the following contents:
[0060] Step S100: obtaining a real-time data request sent by the event handling terminal;
[0061] Specifically, the affairs handling terminal may be a terminal or a system server through which a user requests to handle government affairs services. The real-time data request may include: government affairs service affairs information (such as the affairs number), the identity information of the person handling the affairs, and the like.
[0062] Step S200: searching the resource management metadata corresponding to the current item in a pre-established resource management metadata database based on government service items according to the real-time data request;
[0063] External affairs handling systems initiate real-time data requests to the data sharing center through the identity information of the person handling the affairs and the affairs information (affair number).
[0064] Among them, resource management metadata is stored in the resource management metadata database. Each item can correspond to one or more resource management metadata. The pre-processed resource management metadata is obtained by associating the government service item directory information with the information resource directory and setting a series of attributes such as the sharing method of the information resource directory.
[0065] Specifically, according to the matter information (matter number), the resource management metadata corresponding to the current matter is retrieved from the resource management metadata based on the government service matters.
[0066] Step S300: acquiring the associated information resource directory according to the resource management metadata;
[0067] The resource management metadata and the information resource directory are stored in association with each other in the database, and the associated information resource directory can be retrieved based on the resource management metadata.
[0068] Step S400: Perform data query according to the information resource directory and the real-time data request, and integrate the query results into a data message and return it to the matter processing terminal.
[0069] Among them, according to the regulations of resource management metadata based on government service items, data integration is carried out based on the query results of multiple information resource directories to form a complete data message; such data message will be returned to the external system that initiates the data request.
[0070] Specifically, according to the information resource directory and the real-time data request, the corresponding data is queried in the government affairs database of each government unit (such as the industrial and commercial management department, the landscaping department, etc.), wherein the data required by the user may be in one government unit or in multiple government units. After obtaining the corresponding query results, the query results are integrated into a data message according to pre-defined output parameters and returned to the affairs processing terminal.
[0071] By adopting the above-mentioned technical solution, a unified data sharing center is provided, which realizes the organization and real-time exchange of government shared information resources based on government service matters, and provides complete organizational standards and source standards for data sharing and exchange in the process of handling government service matters, thereby improving the efficiency of data sharing, the depth of data utilization, and the utilization rate of data in complex government affairs.
[0072] As a result, the value and utilization efficiency of government basic data will be further released, and the rapidity of resource sharing and the smoothness of operation connection will be achieved, which will fundamentally improve the comprehensive capabilities of government services.
[0073] In an alternative embodiment, see Figure 2 , the government data sharing and exchange method may also include:
[0074] Step S500: Establish a resource management metadata database based on government service items.
[0075] In a further embodiment, see Figure 3 , the step S500 may include the following contents:
[0076] Step S510: Synchronizing information resource directory data and government service item directory data from an external system;
[0077] Specifically, the government service item catalog information can be synchronized from the external item catalog system, and the information resource catalog data can be synchronized from the external system. Fig.10 , see the directory of government information resources Fig.11 .
[0078] Step S520: Associating a corresponding information resource directory with each government service item in the government service item directory data, and defining input parameters and output parameters for data acquisition for each government service item;
[0079] Specifically, for each item in the government service item catalog, the information resource catalog to which the data involved in the item belongs is associated; each item can be associated with one or more information resource catalogs.
[0080] In addition, the input parameters and output parameters for data acquisition are defined for each government service item.
[0081] Among them, the real-time data request sent by the terminal must meet the requirements of the input parameters, and the data fed back to the terminal must be integrated and processed according to the definition of the output parameters.
[0082] Step S530: Select a corresponding sharing method and required information field items for each associated information resource directory;
[0083] It is worth noting that the sharing method refers to the way in which the government agencies’ databases where the data are located share the data when the shared data center obtains the required data, including: relational database, service interface, file, blockchain. There are many information field items under the information resource directory, also known as data items, which are set manually.
[0084] Among them, the sharing method is selected as needed for each related information resource directory; according to the data needs of government service items, the required data items (ie, information field items) are selected in the information resource directory.
[0085] Step S540: Set consistency constraints between all information resource directories associated with the current government service items to form resource management metadata based on the government service items.
[0086] Among them, the consistency constraints between all the information resource directories associated with the current government service items are stipulated; after the definition, resource management metadata based on government service items is finally formed;
[0087] It is worth mentioning that the data sharing center finds data scattered in various government agencies and summarizes them and returns them to users. These data must maintain certain consistency constraints. For example, Zhang San’s information must be consistent in all data sources.
[0088] In an alternative embodiment, see Figure 4 , the step S400 may include the following contents:
[0089] Step S410: determining corresponding information field items, search conditions, and access methods according to the information resource directory and the real-time data request;
[0090] Information field items refer to the data required by the user's request, search conditions refer to the conditions used to retrieve data scattered across various government agencies, and access methods refer to the access methods used to access various government agencies.
[0091] Step S420: perform data query according to the information field items, search conditions, and access methods.
[0092] Among them, the data corresponding to each information resource directory is queried and retrieved in the databases of various government agencies according to the information field items, search conditions, and access methods.
[0093] In an alternative embodiment, see Figure 5 , step S410 may include the following contents:
[0094] Step S411: Determine the required information field items and the access method of the source of each information field item according to the information resource directory;
[0095] Among them, each information resource directory corresponds to certain information field items. According to the information resource directory, the required information field items can be locked, that is, what data information is needed. In addition, the information resource directory also records the data source of each information field item, that is, the access method of each data source can be determined according to the information resource directory, such as: the connection information of the front-end database, the access address and access method of the service interface, etc.
[0096] For example, if the data source is a relational database, that is, the data sharing method of the government agency that stores the data is a relational database, then it is accessed using a database connection; if the government agency provides a service interface, then the http or https protocol is used to access the service interface to obtain the corresponding information field items; if the data sharing method provided by the government agency is in file form, then the relevant protocols of the file service, such as ftp, are used to obtain the required files; if the data sharing method provided by the government agency is blockchain, then data acquisition is achieved by accessing the smart contract.
[0097] Step S412: Determine corresponding search conditions according to the sharing mode and consistency constraints corresponding to the information resource directory and various types of input information in the real-time data request.
[0098] Specifically, various types of input information include identity information, matter number, etc.
[0099] It is worth noting that the sharing method and consistency constraints corresponding to the information resource directory are set when the metadata is established. The retrieval conditions include: database query conditions, query input parameters of the service interface, etc.
[0100] Among them, the corresponding relationship between the sharing method, consistency constraints, various input information and the search conditions is pre-set, or it can be a corresponding relationship table, and the corresponding preset search conditions can be found directly based on the sharing method, consistency constraints, and various input information.
[0101] In an alternative embodiment, see Figure 6 When establishing a resource management metadata database based on government service items, synchronize the item catalog from the item catalog system and synchronize the information resource catalog from the external system (see the government information resource catalog data for details). Fig.12 ), and then for each item in the item directory, associate the relevant resource directory, select the resource directory sharing method that needs to be associated, and select the required data items (data sources) for each resource directory. At the same time, for each item, define the input parameters for data acquisition, for each item, define the output parameters for data acquisition, and specify the consistency constraints between resource directories to obtain resource management metadata.
[0102] In an alternative embodiment, see Figure 7 In the process of government data sharing and exchange, each external matter handling system or terminal sends the matter number and identity information to the data sharing center, and finds the corresponding resource management metadata based on the matter number. Each resource management metadata has a pre-set corresponding matter number. According to the corresponding resource management metadata, the information of a single matter is found, and the current matter is obtained. The information items required by each information resource directory corresponding to the current matter are obtained, and it is clear from which information resources the data needs to be obtained, and the corresponding information resource directory list is found. In addition, based on the information of a single matter, the sharing method of each directory is found, and the constraint information between the information resource directories is found. Based on the sharing method, constraint information, identity information and other input parameters, there are also information resources. The directory list specifies the search conditions, including query conditions, query parameters, etc. The required information items are specified based on the information resource directory list and the information items required by each information resource directory corresponding to the current matter, including: result set fields in the information resource directory (library table), etc. The access information is specified based on the information resource directory list, including the information resource directory (library table) (such as database connection information, such as address, port number, user name, password), information resource directory (interface) (such as interface address, access method). After clarifying the above information, go to the corresponding agency to obtain data, obtain the result set corresponding to each resource directory, and the entire request result obtains the required return message, and sends the message to the corresponding matter processing system or terminal.
[0103] To sum up, the government data sharing and exchange technology provided by the embodiment of the present invention completes the definition of resource management metadata based on government service matters, completes the association between resource management metadata based on government service matters and the national standard information resource directory, completes real-time data exchange based on resource management metadata based on government service matters, completes the integration of government shared information resources based on resource management metadata based on government service matters, completes real-time information resource exchange based on resource management metadata based on government service matters, realizes unified organization and management technology based on government service matters, and is conducive to improving the sharing efficiency and utilization rate of government shared information resources.
[0104] Based on the same inventive concept, the embodiments of the present application also provide a government data sharing and exchange device, which can be used to implement the method described in the above embodiments, as described in the following embodiments. Since the principle of solving the problem by the government data sharing and exchange device is similar to the above method, the implementation of the government data sharing and exchange device can refer to the implementation of the above method, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements predetermined functions. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0105] Figure 8 is a structural block diagram of the government data sharing and exchange device in an embodiment of the present invention. Figure 8 As shown, the government data sharing and exchange device specifically includes: a request acquisition module 10, a metadata acquisition module 20, a directory corresponding module 30 and a data query module 40.
[0106] The request acquisition module 10 acquires the real-time data request sent by the event handling terminal;
[0107] The metadata acquisition module 20 retrieves the resource management metadata corresponding to the current item in a pre-established resource management metadata database based on government service items according to the real-time data request;
[0108] The directory corresponding module 30 obtains the associated information resource directory according to the resource management metadata;
[0109] The data query module 40 performs data query according to the information resource directory and the real-time data request, and integrates the query results into a data message and returns it to the matter handling terminal.
[0110] By adopting the above-mentioned technical solution, a unified data sharing center is provided, which realizes the organization and real-time exchange of government shared information resources based on government service matters, and provides complete organizational standards and source standards for data sharing and exchange in the process of handling government service matters, thereby improving the efficiency of data sharing, the depth of data utilization, and the utilization rate of data in complex government affairs.
[0111] In an optional embodiment, the data query module includes: a retrieval preparation unit and a data query unit.
[0112] A search preparation unit determines corresponding information field items, search conditions, and access methods according to the information resource directory and the real-time data request;
[0113] The data query unit performs data query according to the information field items, search conditions, and access methods.
[0114] In an optional embodiment, the search preparation unit includes: a field access determination subunit and a search condition determination subunit.
[0115] A field access determination subunit determines the required information field items and the access method of the source of each information field item according to the information resource directory;
[0116] The search condition determination subunit determines the corresponding search condition according to the sharing mode and consistency constraint corresponding to the information resource directory and various types of input information in the real-time data request.
[0117] The devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is an electronic device, and the electronic device may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0118] In a typical example, the electronic device specifically includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of the above-mentioned government data sharing and exchange method are implemented.
[0119] Reference below Fig. 9 , which shows a schematic structural diagram of an electronic device 600 suitable for implementing an embodiment of the present application.
[0120] like Fig. 9As shown, electronic device 600 includes a central processing unit (CPU) 601, which can perform various appropriate operations and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage portion 608 into a random access memory (RAM) 603. In RAM 603, various programs and data required for the operation of system 600 are also stored. CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to bus 604.
[0121] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed as needed as the storage section 608.
[0122] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above-mentioned government data sharing and exchange method when executed by a processor.
[0123] In such an embodiment, the computer program may be downloaded and installed from a network via the communication section 609 , and / or installed from the removable medium 611 .
[0124] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0125] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0126] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0127] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0128] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0129] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0130] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0131] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0132] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0133] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for sharing and exchanging government data, characterized in that: include: Obtain real-time data requests sent by the event handling terminal; Retrieving resource management metadata corresponding to the current matter in a pre-established resource management metadata database based on government service matters according to the real-time data request; Acquire an associated information resource directory according to the resource management metadata; Performing data query according to the information resource directory and the real-time data request, and integrating the query results into a data message and returning it to the matter handling terminal; The performing of data query according to the information resource directory and the real-time data request includes: Determine corresponding information field items, search conditions, and access methods according to the information resource directory and the real-time data request; Perform data query according to the information field items, search conditions, and access methods; The determining of corresponding information field items, search conditions, and access methods according to the information resource directory and the real-time data request includes: Determine the required information field items and the access method of the source of each information field item according to the information resource directory; Determine the corresponding search conditions according to the sharing mode and consistency constraint corresponding to the information resource directory and various input information in the real-time data request; the sharing mode and consistency constraint corresponding to the information resource directory are set when establishing metadata, and the search conditions include: query conditions of the database and query input parameters of the service interface; Among them, the corresponding relationship between the sharing mode, consistency constraint, various input information and the search condition is pre-set, and the corresponding preset search condition is found directly according to the sharing mode, consistency constraint and various input information; If the data source is a relational database, that is, the data sharing method of the government agency that stores the data is a relational database, then use the database connection method to access it; if the government agency provides a service interface, use the http or https protocol to access the service interface to obtain the corresponding information field items; if the data sharing method provided by the government agency is in file form, use the relevant protocol of the file service to obtain the required file; if the data sharing method provided by the government agency is blockchain, data acquisition is achieved by accessing the smart contract.
2. The government data sharing and exchange method according to claim 1 is characterized in that: Also includes: Establish a resource management metadata database based on government service matters.
3. The government data sharing and exchange method according to claim 2 is characterized in that: The establishment of a resource management metadata database based on government service items includes: Synchronize information resource directory data and government service item directory data from external systems; Associating a corresponding information resource directory with each government service item in the government service item directory data, and defining input parameters and output parameters for data acquisition for each government service item; For each associated information resource directory, select the corresponding sharing method and required information field items; Set consistency constraints between all information resource directories associated with the current government service items to form resource management metadata based on government service items.
4. A government data sharing and exchange device, characterized in that: include: Request acquisition module, which obtains real-time data requests sent by the event handling terminal; A metadata acquisition module, which retrieves resource management metadata corresponding to the current item in a pre-established resource management metadata database based on government service items according to the real-time data request; A directory corresponding module obtains the associated information resource directory according to the resource management metadata; A data query module performs data query according to the information resource directory and the real-time data request, and integrates the query results into a data message and returns it to the event handling terminal; The data query module includes: A search preparation unit, which determines corresponding information field items, search conditions, and access methods according to the information resource directory and the real-time data request; A data query unit performs data query according to the information field items, search conditions, and access methods; The retrieval preparation unit comprises: A field access determination subunit determines the required information field items and the access method of the source of each information field item according to the information resource directory; A search condition determination subunit determines corresponding search conditions according to the sharing mode and consistency constraints corresponding to the information resource directory and various types of input information in the real-time data request; The sharing mode and consistency constraints corresponding to the information resource directory are set when the metadata is established. The search conditions include: the query conditions of the database and the query input parameters of the service interface; Among them, the corresponding relationship between the sharing mode, consistency constraint, various input information and the search condition is pre-set, and the corresponding preset search condition is found directly according to the sharing mode, consistency constraint and various input information; If the data source is a relational database, that is, the data sharing method of the government agency that stores the data is a relational database, then use the database connection method to access it; if the government agency provides a service interface, use the http or https protocol to access the service interface to obtain the corresponding information field items; if the data sharing method provided by the government agency is in file form, use the relevant protocol of the file service to obtain the required file; if the data sharing method provided by the government agency is blockchain, data acquisition is achieved by accessing the smart contract.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the government data sharing and exchange method described in any one of claims 1 to 3 are implemented.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the government data sharing and exchange method described in any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Catalog management system used for government affairs information platform
CN104933070A