Government affair information issuing method and device and electronic equipment

By constructing structured knowledge card data, the problems of information data reuse and diversified content release in the government affairs industry are solved, and efficient utilization of government affairs information and improvement of editing efficiency are achieved.

CN118885686AInactive Publication Date: 2024-11-01CAPITAL CLOUD TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410930270.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-11-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing content management system has too single text information processing methods in the government affairs industry, resulting in low utilization rate of government information data and difficulty in tracing the source of history, which cannot meet the needs of information data reuse and diversified content release.

Method used

Structured knowledge card data is constructed through various methods such as information subject construction, module data construction and internal and external link annotation operations, and government affairs web pages are generated to realize the reuse of government affairs information and the release of diversified content.

Benefits of technology

It improves the reuse rate and utilization rate of government information data, meets the needs of diversified content release, and improves the effectiveness and editing efficiency of information data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118885686A_ABST
    Figure CN118885686A_ABST
Patent Text Reader

Abstract

The invention provides a government affair information publishing method and device and electronic equipment, and the method comprises the steps: generating site architecture information in response to site architecture information construction operation for a government affair webpage; the site architecture information comprises a plurality of nodes in a tree structure form; in response to template creation editing operation for the target node, generating a static file corresponding to the target node; generating government affair information corresponding to the government affair webpage in response to a knowledge card construction operation for the government affair information; the knowledge card construction operation comprises an information subject construction operation, a module data construction operation and an inner chain and outer chain labeling operation; and in response to government affair webpage publishing operation for the static file, realizing government affair information publishing. In the application, the government affair information is structured knowledge card data constructed through various operation modes of the information subject construction operation, the module data construction operation and the inner-link and outer-link labeling operation, so that the government affair information data can be conveniently reused, and the requirements of diversified content publishing are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information technology, and in particular to a method, device and electronic equipment for publishing government information. Background Art

[0002] The existing content management system is a software system located between the Web front-end service and the back-end office system or process (content creation, editing). Content creators, editors, and publishers use the content management system to submit, modify, approve, and publish content. The "content" here includes files, tables, pictures, data in databases, and even videos, all information that needs to be published to the Internet, Intranet, and Extranet websites. The existing content management system is too single-minded in its processing of text information. In the government industry, entire policy documents, articles, and other text information are stored as unstructured data, resulting in low government utilization of information data and difficulty in historical tracing, which in turn cannot meet the needs of information data reuse and co-construction, knowledge base construction, and diversified content publishing. Summary of the invention

[0003] The purpose of this application is to provide a method, device and electronic device for publishing government information. Government information is structured knowledge card data constructed through multiple operation methods such as information subject construction operation, module data construction operation and internal and external link annotation operation, so that government information data can be easily reused to meet the needs of diversified content publishing.

[0004] In the first aspect, the present application provides a method for publishing government information, the method comprising: responding to a site architecture information construction operation for a government web page, generating site architecture information; the site architecture information comprises multiple nodes in a tree structure; wherein the root node corresponds to the site homepage; the branch nodes under the root node correspond to the site columns; the child nodes under the branch nodes correspond to the list page and / or the details page; responding to a template creation and editing operation for a target node, generating a static file corresponding to the target node; the static file comprises: page format information and a government data retrieval method; responding to a knowledge card construction operation for government information, generating government information corresponding to the government web page; wherein the knowledge card construction operation comprises: information body construction operation, module data construction operation and internal and external link annotation operation; responding to a government web page publishing operation for a static file, to obtain government information through the government data retrieval method, and displaying the page containing the government information in the format corresponding to the page format information, so as to realize government information publishing.

[0005] Furthermore, the above-mentioned step of responding to the template creation editing operation for the target node and generating the static file corresponding to the target node includes: responding to the upload operation for the specified information of the directory file to generate the corresponding directory file; the specified information includes: style information, js script information; the directory file includes: site directory file, column directory file and details page directory file; responding to the editing operation for the template editor to generate static files under the directory file; the editing operation includes: copying operation of html code, calling the editing operation of built-in instructions and custom instructions.

[0006] Furthermore, the above-mentioned step of generating government information corresponding to the government webpage in response to the knowledge card construction operation for the government information includes: generating the knowledge card government information in response to the information body construction operation for the government information; generating the government information after loading the module data in response to the module data construction operation for the knowledge card government information; and / or generating the annotated government information in response to the internal and external link marking operation for the knowledge card government information.

[0007] Furthermore, the above-mentioned response is for the information body construction operation of government information, and the step of generating knowledge card government information includes: based on the slate editor, according to the overall nested recursive structure principle, using DOM to construct Node objects to form a directory tree corresponding to the initial government data; using the diff algorithm, by parsing the Document object in the directory tree, the directory and text of the initial government data are split and stored to obtain the knowledge card government information.

[0008] Furthermore, the above-mentioned response to the module data construction operation for the knowledge card government information generates the step of loading the module data and the government information, including: constructing different module data models according to different field classifications, combining the mapped source data resources, generating information blocks displayed in at least one of the forms of tables, lists, graphics, and maps, inserting the information blocks into the designated positions in the knowledge card government information, and obtaining modularized government information.

[0009] Furthermore, the above method also includes: persistently storing the information block in the form of triple data; the triple data form includes: title-data model field name-field value.

[0010] Furthermore, the above-mentioned step of responding to the internal and external link annotation operation of the knowledge card government information and generating the annotated government information includes: responding to the selection operation of the target text in the knowledge card government information, and displaying the internal and external link annotation controls; responding to the touch operation of the internal link annotation control, completing data screening within the system to form an internal link annotation at the target text; responding to the touch operation of the external link annotation control, scanning the external link data, forming an external link annotation at the target text after the data is updated, and generating an alarm log when the data does not exist.

[0011] In the second aspect, the present application also provides a government information publishing device, which includes: a site information construction module, which is used to respond to the site architecture information construction operation for the government web page and generate the site architecture information; the site architecture information includes multiple nodes in the form of a tree structure; wherein the root node corresponds to the site homepage; the branch nodes under the root node correspond to the site columns; the child nodes under the branch nodes correspond to the list page and / or the details page; a file generation module, which is used to respond to the template creation and editing operation for the target node and generate a static file corresponding to the target node; the static file includes: page format information and a government data retrieval method; an information generation module, which is used to respond to the knowledge card construction operation for the government information and generate the government information corresponding to the government web page; wherein the knowledge card construction operation includes: information body construction operation, module data construction operation and internal and external link annotation operation; a publishing module, which is used to respond to the government web page publishing operation for the static file, so as to obtain the government information through the government data retrieval method, and display the page containing the government information in the format corresponding to the page format information, so as to realize the government information release.

[0012] In a third aspect, the present application further provides an electronic device, comprising a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method described in the first aspect above.

[0013] In a fourth aspect, the present application further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the method described in the first aspect above.

[0014] In a government information publishing method, device and electronic device provided by the present application, first respond to the site architecture information construction operation for the government webpage, generate site architecture information; the site architecture information includes multiple nodes in the form of a tree structure; wherein the root node corresponds to the site homepage; the branch node under the root node corresponds to the site column; the child node under the branch node corresponds to the list page and / or the detail page; respond to the template creation and editing operation for the target node, generate a static file corresponding to the target node; the static file includes: page format information and government data retrieval method; respond to the knowledge card construction operation for government information, generate government information corresponding to the government webpage; wherein the knowledge card construction operation includes: information body construction operation, module data construction operation and internal and external link annotation operation; respond to the government webpage publishing operation for the static file, so as to obtain government information through the government data retrieval method, and display the page containing government information in the format corresponding to the page format information, so as to realize the release of government information. In this method, the government information is structured knowledge card data constructed by multiple operation modes such as information body construction operation, module data construction operation and internal and external link annotation operation, so that the government information data can be reused conveniently to meet the needs of diversified content release. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0016] Figure 1 A flowchart of a method for publishing government information provided in an embodiment of the present application;

[0017] Figure 2 A schematic diagram of the overall process of a method for publishing government information provided in an embodiment of the present application;

[0018] Figure 3 A schematic diagram of site architecture information provided in an embodiment of the present application;

[0019] Figure 4 A schematic diagram of a template engine execution process provided in an embodiment of the present application;

[0020] Figure 5 A schematic diagram of a knowledge card related process provided in an embodiment of the present application;

[0021] Figure 6 A schematic diagram of a module data correlation process provided in an embodiment of the present application;

[0022] Figure 7 A schematic diagram of an internal link and external link related process provided in an embodiment of the present application;

[0023] Figure 8 A schematic diagram of an overall information publishing process provided in an embodiment of the present application;

[0024] Fig. 9 A structural block diagram of a government information publishing device provided in an embodiment of the present application;

[0025] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] The technical solution of the present application will be described clearly and completely below in conjunction with the embodiments. Obviously, the described embodiments are 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 the field without creative work are within the scope of protection of the present application.

[0027] Currently, natural language processing and generative big model technologies can automatically identify unstructured data and generate key-value structured data, but the data results are not rigorous enough, the boundaries are unclear, and they do not meet the requirements of the government industry.

[0028] Based on this, the embodiment of the present application provides a method, device and electronic device for publishing government information. The government information is structured knowledge card data constructed through a variety of operation modes, such as information subject construction operation, module data construction operation and internal and external link annotation operation, so that the government information data can be reused conveniently to meet the needs of diversified content publishing. To facilitate understanding of this embodiment, a method for publishing government information disclosed in the embodiment of the present application is first introduced in detail.

[0029] Figure 1 A flowchart of a method for publishing government information provided in an embodiment of the present application, combined with Figure 2 The overall process diagram shown in FIG. 1 includes the following steps:

[0030] Step S102, generating site architecture information in response to a site architecture information construction operation for a government webpage;

[0031] Take the creation of livelihood service topic as an example. First, the website production staff logs in to the system, creates site information and builds livelihood column structure information through the system, that is, the site architecture information of the tree structure mentioned above. Figure 3As shown, the site architecture information includes multiple nodes in the form of a tree structure; the root node corresponds to the site homepage; the branch nodes under the root node correspond to the site columns; the child nodes under the branch nodes correspond to the list page and / or detail page; the tree structure of the website can effectively organize the content of the website, facilitate navigation, and improve user experience. At the same time, considering the SEO strategy, the search engine can quickly understand the website content through the tree structure.

[0032] Step S104, in response to the template creation and editing operation for the target node, a static file corresponding to the target node is generated; the static file includes: page format information and a method for retrieving government data;

[0033] After the site architecture is built, enter the template workbench, which consists of a directory file upload and a template editor. Upload static files such as style sheets, images, and js scripts to the corresponding directory. Create a template file, copy the html code to the template editor, and write built-in instructions and custom instructions to obtain the data information required for publishing.

[0034] Step S106, in response to the knowledge card construction operation for government information, generating government information corresponding to the government webpage; wherein the knowledge card construction operation includes: information body construction operation, module data construction operation and internal and external link annotation operation;

[0035] Content editors log in to the system and start building government data information. After the aforementioned structure of the people's livelihood column is completed, editors can build government data under the column. The data consists of knowledge card information, module information, and information body. Knowledge card is a kind of metadata that defines the classification of government information. The system extracts triple information from the knowledge card and stores it in the structure of information body-key-value. Module information is a kind of metadata that defines the content of the information body. Combined with the collected third-party data, it constitutes a part of the information body. When editing the information body, knowledge card information, module information, directory information, internal and external links, reference information, etc. are integrated to disassemble the main information into large blocks for easy information release and use.

[0036] Step S108, responding to the government web page publishing operation for static files, obtaining government information through the government data retrieval method, and displaying the page containing the government information in the format corresponding to the page format information, so as to realize the government information publishing.

[0037] In the government information publishing method provided in the embodiment of the present application, the government information is structured knowledge card data constructed through multiple operation methods such as information subject construction operation, module data construction operation and internal and external link annotation operation, so that the government information data can be reused conveniently to meet the needs of diversified content publishing.

[0038] The embodiment of the present application also provides another method for publishing government information, which is implemented on the basis of the above embodiment; this embodiment focuses on describing the process of constructing government information.

[0039] Furthermore, the above-mentioned step of responding to the template creation editing operation for the target node and generating the static file corresponding to the target node includes: responding to the upload operation for the specified information of the directory file to generate the corresponding directory file; the specified information includes: style information, js script information; the directory file includes: site directory file, column directory file and details page directory file; responding to the editing operation for the template editor to generate static files under the directory file; the editing operation includes: copying operation of html code, calling the editing operation of built-in instructions and custom instructions.

[0040] See also Figure 4 As shown in the figure, after the site architecture information is created, based on the freemarker template engine, the data call method is extended to build a complex data model into a data structure that is easy for template traversal. The directory structure of the extended site is that the site directory is a first-level directory, the style files and script files are generated in the first-level directory, the column directory is generated layer by layer according to the tree structure, and the static html files are generated in the corresponding directory. Add a distributed publishing module to synchronize the entire site directory to each node server through the ftp file transfer protocol.

[0041] Furthermore, the above step of generating government information corresponding to the government webpage in response to the knowledge card construction operation for government information includes:

[0042] (1) In response to the information body construction operation for government information, knowledge card government information is generated; specifically, based on the slate editor, DOM can be used to construct Node objects according to the overall nested recursive structure principle to form a directory tree corresponding to the initial government data; the diff algorithm is used to parse the Document object in the directory tree to split and store the directory and text of the initial government data to obtain the knowledge card government information.

[0043] The above-mentioned initial government data can be obtained through web crawler technology and automatically matched to the metadata of the system. The initial government data can be standard data in the government website, such as activities, telephone numbers of commissions and bureaus, addresses of commissions and bureaus, etc.

[0044] See also Figure 5 As shown, knowledge cards are a collection of key information in the text. Different card data models are constructed according to different information categories and topics. According to the card data model, the text information is structured manually or automatically to facilitate machine understanding and presentation.

[0045] (2) responding to the module data construction operation for the government affairs information of the knowledge card, generating government affairs information after loading the module data;

[0046] Specifically, different module data models are constructed according to different field classifications, and the mapped source data resources are combined to generate information blocks displayed in at least one of the following forms: tables, lists, graphics, and maps; the information blocks are inserted into the designated positions in the government information of the knowledge card to obtain modularized government information. The information blocks are persistently stored in the database in the form of triple data, and users can jointly build or reuse modules. The triple data form includes: title-data model field name-field value. The specific process is as follows: Figure 6 shown.

[0047] (3) and / or, responding to the internal and external link annotation operation of the government affairs information on the knowledge card, generating annotated government affairs information.

[0048] Specifically, in response to the selection operation on the target text in the government information of the knowledge card, the internal link and external link annotation controls are displayed; in response to the touch operation on the internal link annotation control, data screening is completed within the system to form an internal link annotation at the target text; in response to the touch operation on the external link annotation control, the external link data is scanned, and an external link annotation is formed at the target text after the data is updated. An alarm log is generated when the data does not exist.

[0049] See also Figure 7 As shown, in the text, by triggering the mouse to select the text change event, the internal link and external link annotation button pops up. After selecting the text, the existing data is filtered in the internal database, and the duplicate data is distinguished by the meaning name. The user selects the internal link data, and the system generates a triple (this article information title-includes-target data title) and saves the data. External link annotation is used for information tracing. Through the system timing trigger task program, traverse the external link, use crawler technology to obtain external link response data, judge the response code or data status to trigger the event event, and the listener asynchronously generates an alarm log.

[0050] The above method increases the reuse rate through technical means, and at the same time combines with the knowledge base to build a model to assist in generating triple data storage. Through the new construction method, the previously unstructured data can be quickly structured and stored through data models and automatic filling technical means. Combined with the template engine, data can be flexibly reorganized and published. The editing efficiency of the editors of the previous content management system and the effective use of information data have been improved.

[0051] See also Figure 8As shown, this solution is a knowledge base construction and publishing system formed by information technology by combining content collection, editing and publishing with government information construction methods. Content collection, editing and publishing include third-party data collection and storage, information editing and site construction and publishing, applying style sheets and template engines, and finally presenting content data in the form of web pages. In the above process, information editing adopts the government data construction method, which includes knowledge card construction method, module data construction method, information subject construction method and data object matching method. The system is based on mainstream web application frameworks, front-end technology frameworks, rich text editors, relational and non-relational databases, template engine programming languages ​​and other technologies, and presents a set of methods for government information knowledge base construction and publishing in the form of an information system.

[0052] After the above-mentioned government information is released, a timeliness monitoring step may also be included. For example, the released government information is compared with the third-party data on the government website (i.e., the updated data of the above-mentioned initial government data). If the time data in the government information determines that the timeliness of the currently released government information has expired or has changed, an alarm is issued, and the government information is modified and republished. For example, the Education Commission has released the examination time of XXX matter. The government information release method provided in the embodiment of the present application has modified and edited the above-mentioned government data and released it. Later, it was monitored that the examination time of XXX matter released by the Education Commission had changed. At this time, there will be an alarm, and the time information will be modified and republished. In this way, the accuracy and efficiency of government information can be improved.

[0053] The advantages of the government information publishing method provided by the embodiment of the present application are as follows:

[0054] 1. A methodology that integrates content management processes and effective data accumulation.

[0055] 2. Based on the expansion of the editor, the original unstructured data processing tool has added the ability to build structured data, and at the same time, combined with the pre-mapped source data resource fields, it can automatically fill in data, allowing editors to form knowledge data more quickly.

[0056] 3. A more flexible content building method, combined with a content publishing engine, can form a set of more diverse web sites without further development by expanding the content publishing method.

[0057] Based on the above method embodiment, the present application embodiment also provides a government information publishing device, see Fig. 9As shown, the device includes: a site information construction module 92, which is used to respond to the site architecture information construction operation for the government web page and generate the site architecture information; the site architecture information includes multiple nodes in the form of a tree structure; wherein the root node corresponds to the site homepage; the branch nodes under the root node correspond to the site columns; the child nodes under the branch nodes correspond to the list page and / or the details page; a file generation module 94, which is used to respond to the template creation and editing operation for the target node and generate a static file corresponding to the target node; the static file includes: page format information and a government data retrieval method; an information generation module 96, which is used to respond to the knowledge card construction operation for the government information and generate the government information corresponding to the government web page; wherein the knowledge card construction operation includes: information body construction operation, module data construction operation and internal and external link annotation operation; a publishing module 98, which is used to respond to the government web page publishing operation for the static file, so as to obtain the government information through the government data retrieval method, and display the page containing the government information in the format corresponding to the page format information, so as to realize the government information publishing.

[0058] Furthermore, the above-mentioned file generation module 94 is used to respond to the upload operation of specified information of the directory file and generate the corresponding directory file; the specified information includes: style information, js script information; the directory file includes: site directory file, column directory file and details page directory file; respond to the editing operation of the template editor to generate static files under the directory file; the editing operation includes: copying operation of html code, calling built-in instructions and editing operation of custom instructions.

[0059] Furthermore, the above-mentioned information generation module 96 is used to respond to the information body construction operation for the government information and generate the knowledge card government information; respond to the module data construction operation for the knowledge card government information and generate the government information after loading the module data; and / or respond to the internal and external link annotation operation for the knowledge card government information and generate the annotated government information.

[0060] Furthermore, the above-mentioned information generation module 96 is used to construct Node objects based on the slate editor, according to the overall nested recursive structural principle, using DOM to form a directory tree corresponding to the initial government data; using the diff algorithm, by parsing the Document object in the directory tree, the directory and text of the initial government data are split and stored to obtain the knowledge card government information.

[0061] Furthermore, the above-mentioned information generation module 96 is used to construct different module data models according to different field classifications, and combine the mapped source data resources to generate information blocks displayed in at least one of the following forms: tables, lists, graphics, and maps; and insert the information blocks into the designated positions in the knowledge card government information to obtain modularized government information.

[0062] Furthermore, the above-mentioned information generation module 96 is used to persistently store the information block in the form of triple data; the triple data form includes: title-data model field name-field value.

[0063] Furthermore, the above-mentioned information generation module 96 is used to respond to the selection operation of the target text in the government information of the knowledge card, and display the internal link and external link annotation controls; respond to the touch operation of the internal link annotation control, complete data screening within the system to form an internal link annotation at the target text; respond to the touch operation of the external link annotation control, scan the external link data, form an external link annotation at the target text after the data is updated, and generate an alarm log when the data does not exist.

[0064] The device provided in the embodiment of the present application has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the embodiment of the device, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0065] The present application also provides an electronic device, such as Fig.10 As shown, it is a schematic diagram of the structure of the electronic device, wherein the electronic device includes a processor 101 and a memory 100, the memory 100 stores computer executable instructions that can be executed by the processor 101, and the processor 101 executes the computer executable instructions to implement the above method.

[0066] exist Fig.10 In the illustrated embodiment, the electronic device further includes a bus 102 and a communication interface 103 , wherein the processor 101 , the communication interface 103 and the memory 100 are connected via the bus 102 .

[0067] Among them, the memory 100 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 102 can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 102 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.10 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0068] The processor 101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 101. The above processor 101 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor can be combined and performed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor 101 reads the information in the memory and completes the steps of the method of the above embodiment in combination with its hardware.

[0069] An embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above method. The specific implementation can be found in the aforementioned method embodiment, which will not be repeated here.

[0070] The computer program products of the methods, devices, and electronic devices provided in the embodiments of the present application include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.

[0071] Unless otherwise specifically stated, the relative steps, numerical expressions and values ​​of the components and steps set forth in these embodiments do not limit the scope of the present application.

[0072] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0073] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present application. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0074] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A method for publishing government information, It is characterized in that The method comprises: In response to the site architecture information construction operation for the government webpage, the site architecture information is generated; the site architecture information includes a plurality of nodes in a tree structure; wherein the root node corresponds to the site homepage; the branch nodes under the root node correspond to the site columns; and the child nodes under the branch nodes correspond to the list page and / or the detail page; In response to the template creation and editing operation for the target node, a static file corresponding to the target node is generated; the static file includes: page format information and a method for retrieving government data; In response to the knowledge card construction operation for government information, the government information corresponding to the government webpage is generated; wherein the knowledge card construction operation includes: information body construction operation, module data construction operation and internal and external link marking operation; In response to the government web page publishing operation for the static file, the government information is obtained through the government data retrieval method, and a page containing the government information is displayed in a format corresponding to the page format information to realize the government information publishing.

2. The method according to claim 1, It is characterized in that In response to a template creation and editing operation on a target node, a step of generating a static file corresponding to the target node includes: In response to the upload operation of the specified information of the directory file, a corresponding directory file is generated; the specified information includes: style information, js script information; the directory file includes: site directory file, column directory file and detail page directory file; Respond to the editing operation on the template editor to generate a static file under the directory file; the editing operation includes: copying operation on HTML code, calling editing operation of built-in instructions and custom instructions.

3. The method according to claim 1, It is characterized in that In response to the knowledge card construction operation for government information, the step of generating government information corresponding to the government webpage includes: In response to the information subject construction operation for government affairs information, knowledge card government affairs information is generated; In response to the module data building operation for the government affairs information of the knowledge card, the government affairs information after the module data is loaded is generated; And / or, respond to the internal and external link annotation operation of the government information on the knowledge card to generate the annotated government information.

4. The method according to claim 3, It is characterized in that In response to the information subject construction operation for government information, the steps of generating knowledge card government information include: Based on the slate editor, the overall nested recursive structural principle is followed, and DOM is used to construct Node objects to form a directory tree corresponding to the initial government data; the diff algorithm is used to parse the Document objects in the directory tree, and the directory and text of the initial government data are split and stored to obtain the knowledge card government information.

5. The method according to claim 3, It is characterized in that In response to the module data building operation for the knowledge card government affairs information, the step of generating government affairs information after loading the module data includes: Construct different module data models according to different field classifications, and generate information blocks displayed in at least one of the following forms: tables, lists, graphics, and maps, combined with mapped source data resources; The information block is inserted into a designated position in the government affairs information of the knowledge card to obtain modularized government affairs information.

6. The method according to claim 5, It is characterized in that The method further includes: persistently storing the information block in the form of triple data; the triple data form includes: title-data model field name-field value.

7. The method according to claim 3, It is characterized in that In response to the internal and external link annotation operation of the knowledge card government information, the steps of generating the annotated government information include: In response to the selection operation of the target text in the government affairs information of the knowledge card, the internal link and external link annotation controls are displayed; In response to a touch operation on an internal link annotation control, data screening is completed within the system to form an internal link annotation at the target text; In response to the touch operation on the external link annotation control, the external link data is scanned, and after the data is updated, an external link annotation is formed at the target text to obtain the annotated government information.

8. A device for publishing government information, It is characterized in that The device comprises: A site information construction module, for responding to a site architecture information construction operation for a government webpage, and generating site architecture information; the site architecture information includes a plurality of nodes in a tree structure; wherein a root node corresponds to a site homepage; branch nodes under the root node correspond to site columns; and child nodes under the branch nodes correspond to list pages and / or detail pages; A file generation module, for responding to a template creation and editing operation on a target node, and generating a static file corresponding to the target node; the static file includes: page format information and a method for retrieving government data; The information generation module is used to respond to the knowledge card construction operation for government information and generate government information corresponding to the government webpage; wherein the knowledge card construction operation includes: information body construction operation, module data construction operation and internal and external link annotation operation; The publishing module is used to respond to the government web page publishing operation for the static file, obtain the government information through the government data retrieval method, and display the page containing the government information in the format corresponding to the page format information to realize the government information publishing.

9. An electronic device, It is characterized in that The method comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Website page generation method and device and electronic device

    CN109815435A

  • Knowledge card construction method and device

    CN112905612A

  • Website page modification method and device, electronic equipment and storage medium

    CN113779469A

  • Site content publishing management method and device, computer equipment and storage medium

    CN117874384A

  • ADAPTIVE EXTRACTION METHOD FOR WEBPAGE STRUCTURED DATA

    NL2029878A