CN112818638A - Dynamic configuration method for government affair information resource code rules - Google Patents
Dynamic configuration method for government affair information resource code rules Download PDFInfo
- Publication number
- CN112818638A CN112818638A CN202110086013.5A CN202110086013A CN112818638A CN 112818638 A CN112818638 A CN 112818638A CN 202110086013 A CN202110086013 A CN 202110086013A CN 112818638 A CN112818638 A CN 112818638A
- Authority
- CN
- China
- Prior art keywords
- code
- information resource
- codes
- government affair
- resource code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 230000011218 segmentation Effects 0.000 claims description 15
- 238000000926 separation method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/126—Character encoding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Human Resources & Organizations (AREA)
- Strategic Management (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Tourism & Hospitality (AREA)
- Health & Medical Sciences (AREA)
- Operations Research (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Economics (AREA)
- Data Mining & Analysis (AREA)
- Quality & Reliability (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Machine Translation (AREA)
Abstract
The invention particularly relates to a method for dynamically configuring government affair information resource code rules. The dynamic configuration method of the government affair information resource code rule comprises the steps of firstly defining codes in a segmented mode according to rule requirements, and then combining the codes into classified directory coding rules according to the sequence defined by each segment of codes; when cataloguing, automatically generating the government affair information resource codes of the current cataloguing catalog according to the selected dictionary value and the started government affair information resource code rule; checking the manually input government affair information resource codes, and detecting whether the codes accord with the enabled government affair information resource code rules; if not, a prompt is given, and the government affair information resource code which is modified to meet the rule is required to be subjected to catalogue compiling. The dynamic configuration method for the government affair information resource code rules can transform a directory system and perfect the system function, so that the directory system has the configuration capability of the government affair information resource codes, the system has universality and can adapt to various coding requirements.
Description
Technical Field
The invention relates to the technical field of data sharing, in particular to a dynamic configuration method for government affair information resource code rules.
Background
In recent years, in order to integrate and share government information resources, each department has started to build a catalog system to create a catalog. When the catalog is prepared, a government affair information resource code is needed to uniquely mark the catalog.
In order to make the system adapt to different government affair information resource code requirements of each place and dynamically adjust the government affair information resource code rules as required, a dynamic configuration method of the government affair information resource codes is needed.
Based on the situation, the invention provides a dynamic configuration method for government affair information resource code rules.
The directory system is modified based on the method, and the system function is perfected, so that the directory system has government affair information resource code configuration capacity. By applying the technical scheme, the system has universality and can adapt to various different coding requirements.
Disclosure of Invention
In order to make up for the defects of the prior art, the invention provides a simple and efficient dynamic configuration method for government affair information resource code rules.
The invention is realized by the following technical scheme:
a dynamic configuration method for government affair information resource code rules is characterized in that: the method comprises the following steps:
first step, define government affairs information resource code rule
Creating and configuring directory coding rules, and when configuring the directory coding rules, firstly defining codes in a segmented manner according to rule requirements, and then combining the codes into classified directory coding rules according to the sequence defined by each segment of codes;
second, automatically generating government affair information resource code
During catalogue compiling, if the enabled government affair information resource code rule has a dictionary item, displaying the dictionary item on a page according to configuration; automatically generating a government affair information resource code of a current compilation catalog according to the selected dictionary value and the started government affair information resource code rule;
thirdly, checking government affair information resource codes
Checking according to the manually input government affair information resource codes, and detecting whether the codes accord with the enabled government affair information resource code rules; if not, a prompt is given, and the government affair information resource code which is modified to meet the rule is required to be subjected to catalogue compiling.
In the first step, the definition of each segment comprises rule type, length, sequence, segment name and special setting content; the rule types include fixed content, dictionaries, delimiters, and sequential codes.
The special setting content comprises the following three parts:
(1) specifying specific encoded content (such as administrative division code, home code, region identification, etc.) for a fixed content type;
(2) selecting corresponding dictionary codes for the dictionary types (such as fields, industries and the like);
(3) the delimiter is uniformly configured as "/" or custom delimiter content.
In the second step, firstly, the started information resource code rule is inquired, the code type is judged according to the type of the segmentation rule, different coding measures are taken for the segmentation codes of different code types, and finally, all the obtained segmentation codes are spliced to automatically generate the information resource code.
If the segmented code is a fixed code type, directly taking the configured fixed code, such as 370103;
if the segmented code is of a dictionary code type, generating dictionary codes according to a dictionary selected by the catalogue compiling page, for example, selecting a tourism industry, wherein the corresponding code is 1001;
if the segment code is of the delimiter type, directly using the configured delimiter symbols, such as/;
if the segmented code is a sequential code type, inquiring the maximum sequential number of the database according to the content in front of the separation symbol, adding 1, for example, if 000012 is found, and automatically generating to take 000013;
finally, all the segment codes in the above example are spliced to automatically generate the information resource code 3701031001/000013.
In the second step, the user can automatically generate the information resource code by automatically generating the coding button or manually input the information resource code when compiling the catalog; when manually inputting, the legality of the input information resource code needs to be checked.
And in the third step, when the information resource code is checked, the input information resource code is firstly obtained, then the started information resource code rule is inquired, and the checking is carried out in a segmented mode according to the started information resource code rule.
In the third step, checking the codes before the separators, and if the codes before the separators pass the checking, checking whether the length of the sequential codes is correct and whether the corresponding codes exist;
if the check before the separator is failed, a detail prompt message is sent to a user, wherein the detail prompt message comprises length errors, dictionary coding errors, separator errors and/or unqualified content from the first digit to the second digit.
When the delimiter is checked, whether the length and the content of the information resource code meet the rules or not is checked, which specifically comprises the following steps:
if the segmented code is of a fixed code type, judging whether the code of the corresponding digit is consistent with a fixed code value;
if the segmented code is of a dictionary code type, judging whether the code of the corresponding digit is a certain dictionary item;
if the segmentation code is of the delimiter type, it is determined whether the segmentation code coincides with the delimiter symbol.
The invention has the beneficial effects that: the dynamic configuration method for the government affair information resource code rules can transform a directory system and perfect the system function, so that the directory system has the configuration capability of the government affair information resource codes, the system has universality and can adapt to various coding requirements.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of the present invention for automatically generating government affairs information resource codes.
FIG. 2 is a schematic view of a code flow for checking government affair information resources according to the present invention.
Fig. 3 is a schematic diagram of a code structure of a government affair information resource of province a.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the embodiment of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The dynamic configuration method for the government affair information resource code rules comprises the following steps:
first step, define government affairs information resource code rule
Creating and configuring directory coding rules, and when configuring the directory coding rules, firstly defining codes in a segmented manner according to rule requirements, and then combining the codes into classified directory coding rules according to the sequence defined by each segment of codes;
second, automatically generating government affair information resource code
During catalogue compiling, if the enabled government affair information resource code rule has a dictionary item, displaying the dictionary item on a page according to configuration; automatically generating a government affair information resource code of a current compilation catalog according to the selected dictionary value and the started government affair information resource code rule;
thirdly, checking government affair information resource codes
Checking according to the manually input government affair information resource codes, and detecting whether the codes accord with the enabled government affair information resource code rules; if not, a prompt is given, and the government affair information resource code which is modified to meet the rule is required to be subjected to catalogue compiling.
In the first step, the definition of each segment comprises rule type, length, sequence, segment name and special setting content; the rule types include fixed content, dictionaries, delimiters, and sequential codes.
The special setting content comprises the following three parts:
(1) specifying specific encoded content (such as administrative division code, home code, region identification, etc.) for a fixed content type;
(2) selecting corresponding dictionary codes for the dictionary types (such as fields, industries and the like);
(3) the delimiter is uniformly configured as "/" or custom delimiter content.
In the second step, firstly, the started information resource code rule is inquired, the code type is judged according to the type of the segmentation rule, different coding measures are taken for the segmentation codes of different code types, and finally, all the obtained segmentation codes are spliced to automatically generate the information resource code.
If the segmented code is a fixed code type, directly taking the configured fixed code, such as 370103;
if the segmented code is of a dictionary code type, generating dictionary codes according to a dictionary selected by the catalogue compiling page, for example, selecting a tourism industry, wherein the corresponding code is 1001;
if the segment code is of the delimiter type, directly using the configured delimiter symbols, such as/;
if the segmented code is a sequential code type, inquiring the maximum sequential number of the database according to the content in front of the separation symbol, adding 1, for example, if 000012 is found, and automatically generating to take 000013;
finally, all the segment codes in the above example are spliced to automatically generate the information resource code 3701031001/000013.
In the second step, the user can automatically generate the information resource code by automatically generating the coding button or manually input the information resource code when compiling the catalog; when manually inputting, the legality of the input information resource code needs to be checked.
And in the third step, when the information resource code is checked, the input information resource code is firstly obtained, then the started information resource code rule is inquired, and the checking is carried out in a segmented mode according to the started information resource code rule.
In the third step, checking the codes before the separators, and if the codes before the separators pass the checking, checking whether the length of the sequential codes is correct and whether the corresponding codes exist;
if the check before the separator is failed, a detail prompt message is sent to a user, wherein the detail prompt message comprises length errors, dictionary coding errors, separator errors and/or unqualified content from the first digit to the second digit.
When the delimiter is checked, whether the length and the content of the information resource code meet the rules or not is checked, which specifically comprises the following steps:
if the segmented code is of a fixed code type, judging whether the code of the corresponding digit is consistent with a fixed code value;
if the segmented code is of a dictionary code type, judging whether the code of the corresponding digit is a certain dictionary item;
if the segmentation code is of the delimiter type, it is determined whether the segmentation code coincides with the delimiter symbol.
The above-described embodiment is only one specific embodiment of the present invention, and general changes and substitutions by those skilled in the art within the technical scope of the present invention are included in the protection scope of the present invention.
Claims (8)
1. A dynamic configuration method for government affair information resource code rules is characterized in that: the method comprises the following steps:
first step, define government affairs information resource code rule
Creating and configuring directory coding rules, and when configuring the directory coding rules, firstly defining codes in a segmented manner according to rule requirements, and then combining the codes into classified directory coding rules according to the sequence defined by each segment of codes;
second, automatically generating government affair information resource code
During catalogue compiling, if the enabled government affair information resource code rule has a dictionary item, displaying the dictionary item on a page according to configuration; automatically generating a government affair information resource code of a current compilation catalog according to the selected dictionary value and the started government affair information resource code rule;
thirdly, checking government affair information resource codes
Checking the manually input government affair information resource codes, and detecting whether the codes accord with the enabled government affair information resource code rules; if not, a prompt is given, and the government affair information resource code which is modified to meet the rule is required to be subjected to catalogue compiling.
2. The dynamic configuration method of government information resource code rules according to claim 1, wherein: in the first step, the definition of each segment comprises rule type, length, sequence, segment name and special setting content; the rule types include fixed content, dictionaries, delimiters, and sequential codes.
3. The dynamic configuration method of government information resource code rules according to claim 2, wherein: the special setting content comprises the following three parts:
(1) specifying specific encoded content for a fixed content type;
(2) selecting corresponding dictionary codes for the dictionary types;
(3) the delimiter is uniformly configured as "/" or custom delimiter content.
4. The dynamic configuration method of government information resource code rules according to claim 3, wherein: in the second step, firstly, the started information resource code rule is inquired, the code type is judged according to the type of the segmentation rule, different coding measures are taken for the segmentation codes of different code types, and finally, all the obtained segmentation codes are spliced to automatically generate the information resource code;
if the segmented code is a fixed code type, directly taking the configured fixed code;
if the segmented code is the dictionary code type, generating dictionary codes according to the dictionary selected by the catalogue compiling page;
if the segmented code is the separator type, directly using the configured separator symbol;
if the segmented code is of the sequential code type, the database is queried for the largest sequence number based on the content preceding the separator symbol and incremented by 1.
5. The dynamic configuration method of government information resource code rules according to claim 1, wherein: in the second step, the user can automatically generate the information resource code by automatically generating the coding button or manually input the information resource code when compiling the catalog; when manually inputting, the legality of the input information resource code needs to be checked.
6. The dynamic configuration method of government information resource code rules according to claim 5, wherein: and in the third step, when the information resource code is checked, the input information resource code is firstly obtained, then the started information resource code rule is inquired, and the checking is carried out in a segmented mode according to the started information resource code rule.
7. The dynamic configuration method of government information resource code rules according to claim 6, wherein: in the third step, checking the codes before the separators, and if the codes before the separators pass the checking, checking whether the length of the sequential codes is correct and whether the corresponding codes exist;
if the check before the separator is failed, a detail prompt message is sent to a user, wherein the detail prompt message comprises length errors, dictionary coding errors, separator errors and/or unqualified content from the first digit to the second digit.
8. The dynamic configuration method of government information resource code rules according to claim 7, wherein: when the delimiter is checked, whether the length and the content of the information resource code meet the rules or not is checked, which specifically comprises the following steps:
if the segmented code is of a fixed code type, judging whether the code of the corresponding digit is consistent with a fixed code value;
if the segmented code is of a dictionary code type, judging whether the code of the corresponding digit is a certain dictionary item;
if the segmentation code is of the delimiter type, it is determined whether the segmentation code coincides with the delimiter symbol.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110086013.5A CN112818638A (en) | 2021-01-22 | 2021-01-22 | Dynamic configuration method for government affair information resource code rules |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110086013.5A CN112818638A (en) | 2021-01-22 | 2021-01-22 | Dynamic configuration method for government affair information resource code rules |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112818638A true CN112818638A (en) | 2021-05-18 |
Family
ID=75858796
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110086013.5A Pending CN112818638A (en) | 2021-01-22 | 2021-01-22 | Dynamic configuration method for government affair information resource code rules |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112818638A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113762917A (en) * | 2021-08-02 | 2021-12-07 | 浪潮软件股份有限公司 | Method and system for intelligently examining business admission of market subject |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7610192B1 (en) * | 2006-03-22 | 2009-10-27 | Patrick William Jamieson | Process and system for high precision coding of free text documents against a standard lexicon |
CN105550219A (en) * | 2015-12-04 | 2016-05-04 | 航天科工智慧产业发展有限公司 | Information resource automatic cataloguing method |
CN108228690A (en) * | 2017-06-30 | 2018-06-29 | 勤智数码科技股份有限公司 | A kind of directory management system and its management method |
CN108428108A (en) * | 2018-02-09 | 2018-08-21 | 深圳太极云软技术股份有限公司 | Government affairs information dissemination method, device and terminal device |
CN109145001A (en) * | 2018-08-16 | 2019-01-04 | 北京奥技异科技发展有限公司 | Real-time data-coding method based on KKS coding rule |
CN109254971A (en) * | 2018-08-31 | 2019-01-22 | 新华三大数据技术有限公司 | Resource inventory method and device |
-
2021
- 2021-01-22 CN CN202110086013.5A patent/CN112818638A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7610192B1 (en) * | 2006-03-22 | 2009-10-27 | Patrick William Jamieson | Process and system for high precision coding of free text documents against a standard lexicon |
CN105550219A (en) * | 2015-12-04 | 2016-05-04 | 航天科工智慧产业发展有限公司 | Information resource automatic cataloguing method |
CN108228690A (en) * | 2017-06-30 | 2018-06-29 | 勤智数码科技股份有限公司 | A kind of directory management system and its management method |
CN108428108A (en) * | 2018-02-09 | 2018-08-21 | 深圳太极云软技术股份有限公司 | Government affairs information dissemination method, device and terminal device |
CN109145001A (en) * | 2018-08-16 | 2019-01-04 | 北京奥技异科技发展有限公司 | Real-time data-coding method based on KKS coding rule |
CN109254971A (en) * | 2018-08-31 | 2019-01-22 | 新华三大数据技术有限公司 | Resource inventory method and device |
Non-Patent Citations (1)
Title |
---|
李伟等: "医疗行业中信息资源目录体系建设的探索", 《医疗卫生装备》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113762917A (en) * | 2021-08-02 | 2021-12-07 | 浪潮软件股份有限公司 | Method and system for intelligently examining business admission of market subject |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11042427B2 (en) | Automated consolidation of API specifications | |
CN111090417B (en) | Binary file analysis method, binary file analysis device, binary file analysis equipment and binary file analysis medium | |
CN111178079B (en) | Triplet extraction method and device | |
CN105678129B (en) | A kind of method and apparatus of determining subscriber identity information | |
CN111797594B (en) | Character string processing method based on artificial intelligence and related equipment | |
CN107329765B (en) | Program file processing method and device | |
CN109165209B (en) | Data verification method, device, equipment and medium for object types in database | |
CN104866985A (en) | Express bill number identification method, device and system | |
CN105187475A (en) | Method and system for data synchronization | |
CN112818638A (en) | Dynamic configuration method for government affair information resource code rules | |
CN104426868A (en) | Request processing method and processing apparatus | |
CN110806973A (en) | Automatic generation method and device of interface message | |
CN115982416A (en) | Data processing method and device, readable storage medium and electronic equipment | |
CN113923268B (en) | Resolution method, device and storage medium for multi-version communication protocol | |
CN107291521B (en) | Method and apparatus for compiling computer language | |
CN108876314B (en) | Career professional ability traceable method and platform | |
CN111984684B (en) | Data processing method and device | |
CN110162309B (en) | Parameter checking method and device | |
CN109726204B (en) | Data management method and device based on user-defined data table | |
CN116205233A (en) | Method, device, equipment and storage medium for identifying key fields in document | |
CN113377917A (en) | Multi-mode matching method and device, electronic equipment and storage medium | |
CN112990466A (en) | Redundancy rule detection method and device and server | |
US12014169B2 (en) | Software recognition using tree-structured pattern matching rules for software asset management | |
CN114679504B (en) | UDP message parsing method and device and computer equipment | |
CN118152485A (en) | ER diagram generation method, electronic device, storage medium, and program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210518 |
|
RJ01 | Rejection of invention patent application after publication |