Movatterモバイル変換


[0]ホーム

URL:


CN112182138A - Method and device for cataloging - Google Patents

Method and device for cataloging
Download PDF

Info

Publication number
CN112182138A
CN112182138ACN201910595726.7ACN201910595726ACN112182138ACN 112182138 ACN112182138 ACN 112182138ACN 201910595726 ACN201910595726 ACN 201910595726ACN 112182138 ACN112182138 ACN 112182138A
Authority
CN
China
Prior art keywords
classification
information resource
information
code
directory
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
Application number
CN201910595726.7A
Other languages
Chinese (zh)
Inventor
曾文杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co LtdfiledCriticalBeijing Jingdong Century Trading Co Ltd
Priority to CN201910595726.7ApriorityCriticalpatent/CN112182138A/en
Publication of CN112182138ApublicationCriticalpatent/CN112182138A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种目录编制方法和装置,涉及计算机技术领域。该方法的一具体实施方式包括生成分类目录编码表,分类目录编码表记录信息资源的每个分类的编码信息,由编码信息得到分类的分类目录代码;根据编码信息确定每个分类在分类目录中位置,以生成分类目录树;获取信息资源表,信息资源表包括多条信息资源记录,每条信息资源记录包括信息资源的分类目录代码和版本号;将每个信息资源的最新版本对应的信息资源记录挂载到分类目录树的与该信息资源对应相同分类目录代码的叶子节点下,得到信息资源目录树。该实施方式能够自动系统化编制信息资源目录,克服效率低下缺陷,并支持查看历史版本,可多版本并存,支持变更日志信息查看,历史可追溯。

Figure 201910595726

The invention discloses a catalog compilation method and device, and relates to the technical field of computers. A specific implementation of the method includes generating a classification directory coding table, the classification directory coding table records the coding information of each classification of the information resource, and obtaining the classification catalog code of the classification from the coding information; according to the coding information, it is determined that each classification is in the classification directory location to generate a classification tree; obtain an information resource table, which includes multiple information resource records, and each information resource record includes the classification catalog code and version number of the information resource; the information corresponding to the latest version of each information resource The resource record is mounted under the leaf node of the classification directory tree corresponding to the same classification directory code as the information resource to obtain the information resource directory tree. This embodiment can automatically and systematically compile an information resource catalog, overcome the defect of low efficiency, and supports viewing historical versions, which can coexist with multiple versions, and support the viewing of change log information, and the history can be traced back.

Figure 201910595726

Description

Catalog making method and device
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for compiling a catalog.
Background
When an enterprise develops to a certain stage, information resources become more and more important, the problem that the information resources shared among different departments and services face multi-head acquisition and repeated acquisition of information sources, data naming, types and format differences, data cannot be updated synchronously in time, data among the departments are inconsistent, the technology is diversified and the like is solved, and the information resources which can be shared among all levels of departments and among all the services and are physically dispersed need to be cataloged to generate an information resource catalog capable of being managed and served uniformly. In the existing scheme, information resource catalog documents are manually compiled, and the method can cause slow information communication among compiling personnel and low efficiency. Since the general information resource catalog is documented, the updating is difficult, and the A team reserves the catalog of 1.0 version and the B team reserves the catalog of 2.0 version. In actual work, some information resources may have situations which require coexistence of multiple versions, and manual programming is difficult to deal with.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
the catalog making efficiency is low, the coexistence of multiple versions of information resources cannot be supported, and the history is not traceable.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for cataloguing, which can automatically and systematically compile information resource catalogues, overcome the defect of low efficiency in manually compiling catalogues, and support viewing of historical versions of information resources through catalogues, so that multiple versions can coexist, and also support viewing of change log information of information resources of each version, so that history can be traced.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a catalog making method.
A method of inventory, comprising: generating a classification directory code table, wherein the classification directory code table records code information of each classification of information resources, and the classified classification directory codes are obtained from the code information; determining the position of each classification in a classification directory according to the coding information to generate a classification directory tree, wherein the root node of the classification directory tree is a classification directory name, other nodes respectively correspond to one piece of classified coding information, and the node without the subsequent node in the classification directory tree is called a leaf node; acquiring an information resource table, wherein the information resource table comprises a plurality of information resource records, and each information resource record comprises a classification directory code and a version number of an information resource; and mounting the information resource record corresponding to the latest version of each information resource under the leaf node of the classification directory tree corresponding to the same classification directory code as the information resource to obtain the information resource directory tree.
Optionally, the step of generating a classification directory encoding table includes: acquiring a level information specification table, wherein the level information specification table records the corresponding relation among the classified classification names, the coding sequence IDs, the coding lengths and the coding sequence IDs of parent classifications of the classifications; and generating coding information of each classification of the information resources according to the bit information specification table to obtain the classification directory coding table, wherein the classification coding information comprises classification names of the classifications, bit actual codes, coding order IDs of parent classifications of the classification and classification directory codes of parent classifications of the parent classifications, the classified bit actual codes refer to a section of codes corresponding to the classified coding order IDs in the classification directory codes, the length of the bit actual codes is the coding length, and each classification directory code is a combination of the classification directory codes of the parent classification and the bit actual codes of the classification and indicates a classification path of the classification.
Optionally, the step of determining a position of each category in the category directory according to the encoding information to generate a category directory tree includes: defining the classification directory name and taking the classification directory name as a root node of the classification directory tree; searching the coding information of each classification from the classification directory coding table, and sequencing the coding information of each classification according to the classification directory code of the father classification of each classification; and mounting the code information of the classification without the father classification in each classification under the root node, and sequentially mounting the code information of other classifications under the nodes corresponding to the father classification according to the father classification corresponding to each classification, thereby generating the classification directory tree.
Optionally, the information resource record further includes a detail code of the information resource, and multiple versions of the same information resource in the information resource table are associated by the corresponding category directory code and the detail code, so that the information resource record corresponding to the corresponding history version is searched by combining the category directory code and the detail code in the information resource record corresponding to the latest version of each information resource.
Optionally, the method further comprises: and associating the change log information of each version of each information resource with the classification directory code and the detail code of the corresponding information resource through an information resource change log table so as to search the change log information of the latest version and each historical version of each information resource through the combination of the classification directory code and the detail code in the information resource record corresponding to the latest version of each information resource.
Optionally, the step of mounting the information resource record corresponding to the latest version of each information resource to a leaf node of the classification directory tree corresponding to the same classification directory code as the information resource, includes: sequencing all information resource records of the information resource table according to the classification directory codes, the detailed directory codes and the version numbers; and mounting the information resource records with the same classification directory code and detail code but the latest version number in all the sequenced information resource records under the leaf nodes of the classification directory tree corresponding to the same classification directory code of the information resource.
Optionally, the information resource record further includes an associated resource code of the information resource, the detail code and the associated resource code corresponding to each version of the same information resource in the information resource table are different, and the step of mounting the information resource record corresponding to the latest version of each information resource to a leaf node of the classification directory tree corresponding to the same classification directory code as the information resource includes: sequencing all information resource records of the information resource table according to the classification directory codes, the detailed directory codes and the version numbers; for all the sorted information resource records, determining the information resource records belonging to the same information resource according to the incidence relation among the information resource records indicated by the incidence resource codes; and mounting the information resource record with the latest version number of the same information resource under the leaf node of the same classification directory code corresponding to the information resource in the classification directory tree.
According to another aspect of the embodiments of the present invention, there is provided an inventory making apparatus.
An inventory making device comprising: the classified directory code table generating module is used for generating a classified directory code table, the classified directory code table records the code information of each classification of the information resources, and the classified directory codes are obtained from the code information; the classified directory tree generation module is used for determining the position of each classification in the classified directory according to the coding information so as to generate a classified directory tree, the root node of the classified directory tree is a classified directory name, other nodes respectively correspond to coding information of one classification, and the node without the subsequent node in the classified directory tree is called a leaf node; the information resource table acquisition module is used for acquiring an information resource table, wherein the information resource table comprises a plurality of information resource records, and each information resource record comprises a classification directory code and a version number of an information resource; and the information resource directory tree generation module is used for mounting the information resource record corresponding to the latest version of each information resource to a leaf node of the classification directory tree corresponding to the same classification directory code as the information resource so as to obtain the information resource directory tree.
Optionally, the classification directory coding table generating module is further configured to: acquiring a level information specification table, wherein the level information specification table records the corresponding relation among the classified classification names, the coding sequence IDs, the coding lengths and the coding sequence IDs of parent classifications of the classifications; and generating coding information of each classification of the information resources according to the bit information specification table to obtain the classification directory coding table, wherein the classification coding information comprises classification names of the classifications, bit actual codes, coding order IDs of parent classifications of the classification and classification directory codes of parent classifications of the parent classifications, the classified bit actual codes refer to a section of codes corresponding to the classified coding order IDs in the classification directory codes, the length of the bit actual codes is the coding length, and each classification directory code is a combination of the classification directory codes of the parent classification and the bit actual codes of the classification and indicates a classification path of the classification.
Optionally, the classification directory tree generation module is further configured to: defining the classification directory name and taking the classification directory name as a root node of the classification directory tree; searching the coding information of each classification from the classification directory coding table, and sequencing the coding information of each classification according to the classification directory code of the father classification of each classification; and mounting the code information of the classification without the father classification in each classification under the root node, and sequentially mounting the code information of other classifications under the nodes corresponding to the father classification according to the father classification corresponding to each classification, thereby generating the classification directory tree.
Optionally, the information resource record further includes item codes of the information resources, multiple versions of the same information resource in the information resource table are associated through corresponding category directory codes and item codes, and the apparatus further includes a history version lookup module, configured to lookup the information resource record corresponding to the corresponding history version through combination of the category directory codes and the item codes in the information resource record corresponding to the latest version of each information resource.
Optionally, the system further comprises an information resource change log table generation module and a log search module, wherein the information resource change log table generation module is used for establishing association between change log information of each version of each information resource and a classification directory code and a detail code of the corresponding information resource; the log searching module is used for searching the change log information of the latest version and each historical version of each information resource through the combination of the classification directory code and the detail code in the information resource record corresponding to the latest version of each information resource.
Optionally, the detail codes corresponding to the versions of the same information resource in the information resource table are the same, and the information resource directory tree generation module is further configured to: sequencing all information resource records of the information resource table according to the classification directory codes, the detailed directory codes and the version numbers; and mounting the information resource records with the same classification directory code and detail code but the latest version number in all the sequenced information resource records under the leaf nodes of the classification directory tree corresponding to the same classification directory code of the information resource.
Optionally, the information resource record further includes an associated resource code of the information resource, the detail code and the associated resource code corresponding to each version of the same information resource in the information resource table are different, and the information resource directory tree generation module is further configured to: sequencing all information resource records of the information resource table according to the classification directory codes, the detailed directory codes and the version numbers; for all the sorted information resource records, determining the information resource records belonging to the same information resource according to the incidence relation among the information resource records indicated by the incidence resource codes; and mounting the information resource record with the latest version number of the same information resource under the leaf node of the same classification directory code corresponding to the information resource in the classification directory tree.
According to yet another aspect of an embodiment of the present invention, an electronic device is provided.
An electronic device, comprising: one or more processors; a memory for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the inventory methods provided by the present invention.
According to yet another aspect of an embodiment of the present invention, a computer-readable medium is provided.
A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the inventory-making method provided by the invention.
One embodiment of the above invention has the following advantages or benefits: generating a classification directory coding table, and obtaining classified classification directory codes according to the coding information of each classification recorded by the classification directory coding table; determining the position of each classification in the classification directory according to the coding information to generate a classification directory tree; acquiring an information resource table, wherein each information resource record comprises a classification directory code and a version number of the information resource; and mounting the information resource record corresponding to the latest version of each information resource under the leaf nodes of the classification directory tree corresponding to the same classification directory code of the information resource to obtain the information resource directory tree. The method can automatically and systematically compile the information resource catalog, and overcomes the defect of low efficiency of manually compiling the catalog. The information resource record corresponding to the corresponding historical version can be searched through the combination of the classification catalog code and the detail code in the information resource record corresponding to the latest version of each information resource, so that the historical version of the information resource can be checked through the catalog, and multiple versions can coexist. And the change log information of the latest version and each historical version of each information resource can be searched through the combination of the classification catalog code and the detail code in the information resource record corresponding to the latest version of each information resource, so that the check of the change log information of each version of information resource is supported, and the history can be traced.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of the main steps of a method of inventory-making according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a classification directory tree according to one embodiment of the present invention;
FIG. 3 is a schematic diagram of an information resource directory tree, according to one embodiment of the present invention;
FIG. 4 is a schematic diagram of an inventory process according to one embodiment of the invention;
FIG. 5 is a schematic diagram of the main modules of an inventory making apparatus according to an embodiment of the present invention;
FIG. 6 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 7 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
FIG. 1 is a schematic diagram of the main steps of an inventory making method according to an embodiment of the invention.
As shown in fig. 1, the inventory making method according to the embodiment of the present invention mainly includes the following steps S101 to S104.
Step S101: and generating a classification directory coding table, recording coding information of each classification of the information resources by the classification directory coding table, and obtaining a classification directory code of the corresponding classification according to the coding information of each classification.
Step S101 may specifically include: acquiring a level information specification table, wherein the level information specification table records the corresponding relation among the classified classification names, the coding sequence IDs, the coding lengths and the coding sequence IDs of the classified father classifications; and generating coding information of each classification of the information resources according to the level information specification table to obtain a classification directory coding table, wherein the classification coding information comprises a classification name, a level actual code, a coding order ID of a parent classification of the classification, and a classification directory code of a parent classification of the parent classification, the level actual code of the classification refers to a section of code corresponding to the coding order ID of the classification in the classification directory code of the classification, the length of the level actual code is the coding length of the classification, and each classification directory code of the classification is a combination of the classification directory code of the parent classification of the classification and the level actual code of the classification, and indicates a classification path of the classification.
Before step S101, a bit order information specification table is generated in advance. Taking MySQL database as an example (the database of the embodiment of the present invention may be other database, but is not limited to MySQL database), first, a classification directory code may be: 000XX1010100020001, to know the meaning completely, first, the bit meaning of the category directory code is known, i.e. what is represented by 1-4 bits, what is represented by 5-8 bits, what is represented by 9-12 bits, etc. Therefore, a level information specification table is first constructed to record the corresponding relationship among the classification name of the classification, the coding order ID, the coding length, and the coding order ID of the parent classification of the classification.
The items of the bit order information specification table are shown in table 1.
TABLE 1
Figure BDA0002117583860000081
The ID field in table 1 is used to record the encoding order ID of the category of the information resource, the Parent _ ID field is used to record the encoding order ID (i.e. Parent ID) of the Parent category of the category, the Code _ length field is used to record the encoding length (i.e. home order encoding length) of the category, the Code _ name field is used to record the category name (i.e. meaning of the home order) of the category, and creator and created _ at are used to record the creator (i.e. creation of the bit order specification) and creation time (i.e. creation time of the record) of the specification in the bit order information specification table, respectively.
If it is required to make 1 to 4 bits of the classification catalog code represent departments, 5 to 8 bits represent product lines, and 9 to 12 bits represent specific products, according to the needs. Then a bit order information specification table such as table 2 may be obtained from the entries of table 1 (the bit order specification creator, record creation time two columns are omitted from table 2).
TABLE 2
Figure BDA0002117583860000091
And generating coding information of each classification of the information resources according to the bit information specification table, and recording to obtain a classification directory coding table. Each category is first specifically encoded, for example, a department may have a research and development department, a financial department, an operation department, etc. The development department may have a product line A, a product line B, a product line C, etc. There may be product A1, product A2, product A3, etc. below the product A line. Assuming that one of the following under-development sections is classified as an e-commerce product line and one of the following under-e-commerce product lines is classified as an e-commerce APP (application), then the classification path of the e-commerce APP is: research and development department-e-commerce product line-e-commerce APP, the category catalog code of e-commerce APP is for example: 000100020001, wherein 0001, 0002 and 0001 are respectively the actual coding of the level of the research and development department, the electric business product line and the electric business APP, the coding sequence IDs of the research and development department, the electric business product line and the electric business APP are respectively 1, 2 and 3, the coding sequence IDs of the father classification of the three are respectively 0, 1 and 2, the classification catalog code of the electric business APP is the combination of the classification catalog code (00010002) of the father classification (electric business product line) and the actual coding (0001) of the level of the classification, and the classification catalog code 00010002 of the electric business product line is the combination of the classification catalog code (0001) of the father classification (research and development department) and the actual coding 0002 of the level of the electric business product line. Thus, each classification is specifically encoded according to the affiliation between the classifications of the information resources, and the classification directory code of each classification can be obtained, and the classification directory code of a certain classification is the complete code of the classification and indicates the classification path of the classification on the classification directory.
The entries of the classification directory encoding table are shown in table 3.
TABLE 3
Figure BDA0002117583860000101
The classified encoding information includes a classification name of the classification, a rank actual Code, an encoding order ID of its Parent classification, a classification catalog Code of its Parent classification, the classification name of the classification is recorded by a Code _ name (meaning of the current classification Code), the rank actual Code of the classification is recorded by a Pos _ Code field (the rank actual Code of the current classification), the encoding order ID of the classification is recorded by a Pos _ ID field (membership encoding order ID), the encoding order ID of its Parent classification is recorded by a Parent _ ID field (Parent ID), and the classification catalog Code of the Parent classification is recorded by a Gen _ Code field (complete Code of the Parent). As can be seen from table 3, the classification directory encoding table further includes an id field, and the field value is the recording order of each piece of encoding information. The classification catalog coding table also comprises a Code _ desc field, a Creator and a Created _ at which are respectively a current classification coding remark, a Creator and a creation time.
Table 4 shows several examples of records corresponding to several fields of id, Pos _ id, Parent _ id, Gen _ Code, Pos _ Code, and Code _ name in the classification directory encoding table, and other fields are omitted.
TABLE 4
Figure BDA0002117583860000111
According to table 4, the product department and the research and development department are two categories of information resources, wherein the product department is divided into two categories of an education product line and an e-commerce product line, the education product line is divided into two categories of a school end and a student end, and the e-commerce product line is divided into two categories of an e-commerce client end and a supplier end. The contents of the encoded information of the classification of the product part, which is one row of records corresponding to the product part in the classification catalog encoded table, include values of several fields shown in table 4, and may further include field values of fields (Code _ desc, Creator, Created _ at) omitted from table 4, and the same applies to the encoded information of other classifications. The complete code of the current classification code (i.e., the classification directory code of the current classification) is the complete code of its parent classification (i.e., the classification directory code of its parent classification) + the actual number of bits of the current classification, for example: the classified directory code of the E-commerce client is as follows: 000100010001.
step S102: and determining the position of each classification in the classification directory according to the coding information of each classification to generate a classification directory tree.
The root node of the classification directory tree is a classification directory name, other nodes respectively correspond to one classification coding information, and the nodes without subsequent nodes in the classification directory tree are called leaf nodes.
Step S102 may specifically include: defining a classification directory name and taking the classification directory name as a root node of a classification directory tree; searching the coding information of each classification from the classification directory coding table, and sequencing the coding information of each classification according to the classification directory code of the father classification of each classification; and mounting the code information of the classification without the father classification in each classification under the root node, and sequentially mounting the code information of other classifications under the nodes corresponding to the father classification according to the father classification corresponding to each classification, thereby generating the classification directory tree.
For example, a taxonomy directory name is defined as: and (4) an information resource classification catalogue. The encoding information of each classification is searched from the classification catalogue encoding table, and the encoding information of each classification is ordered according to the Gen _ code field, so that the encoding information of each ordered classification is arranged according to the hierarchical order of each classification, namely, the classification of a high hierarchy is arranged before the classification of a low hierarchy, and the classification of the high hierarchy is arranged after the classification of the high hierarchy in the same classification path and is a parent classification of the next hierarchy adjacent to the classification of the high hierarchy. The specific sorting results are shown in table 5. Note that table 5 is only an example of several records corresponding to id, Pos _ id, Parent _ id, Gen _ Code, Pos _ Code, and Code _ name fields in each sorted classification Code information, and table 5 is not shown for the fields omitted from table 4.
TABLE 5
Figure BDA0002117583860000121
And mounting the code information of the classification without the father classification in each classification under the root node, and sequentially mounting the code information of other classifications under the nodes corresponding to the father classification according to the father classification corresponding to each classification, thereby generating the classification directory tree. The classification without the parent classification, that is, the classification with the encoding order ID of the parent classification being 0, is mounted below the root node in combination with table 5, that is, the product department and the development department. Each classification can obtain the classification catalog code of the classification according to the combination of the classification catalog code of the father classification and the actual bit code of the classification, so that the father classification corresponding to each classification can be determined according to the table 5, the coding information of the education product line and the E-commerce product line is mounted below the product part, the coding information of the school end and the student end is mounted below the education product line, and the E-commerce client end and the supplier end are mounted below the E-commerce product line. The obtained classification directory tree is shown in fig. 2, and the classification directory tree of fig. 2 is only an exemplary illustration of the form of the classification directory tree, and the classification directory tree is much more complex in practical application.
Step S103: and acquiring an information resource table, wherein the information resource table comprises a plurality of information resource records, and each information resource record comprises a classification directory code and a version number of the information resource.
The version number of the information resource may be specified in a unified manner, and each version number is expressed in the form of V1.0.1, V1.0.2, or the like, for example.
The information resource record can also comprise item codes of the information resources, the item codes of the information resources can be set by a manager who manages the classification path, for example, the manager who is responsible for the classification path of a research and development department, an e-commerce product line and an e-commerce APP can specify the item codes of the manager to be 4 bits of any 0-9 and a-z characters.
The information asset record may also include an associated asset code for the information asset. The associated resource refers to an information resource associated with the information resource. Taking the information resource as an IP library as an example, accessing the IP library may need to pass through a specific API, and the API-related information is the associated resource of the information resource of the IP library.
The information resource record may also include information resource name, information resource provider code, information resource digest, information resource format, information item information, shared attributes, open attributes, update period, creator, release date, audit status, auditor operating time, and so forth.
Wherein, the information item information can be filled by the information resource providing party. The sharing attributes may include full sharing (e.g., information resources may be shared for all IP segments), conditional sharing (e.g., pointers may share information resources for certain IP segments). The open attribute refers to whether the door is completely open to other departments or requires application for open authorization. The update cycle refers to an update cycle of the information resource, for example, changed every half year. Information resource formats such as doc (document) format, etc.
The items of the information resource table are shown in table 6.
TABLE 6
Figure BDA0002117583860000141
The multiple versions of the same information resource in the information resource table are associated through the corresponding classification directory codes and the corresponding item codes, so that the information resource records corresponding to the corresponding historical versions are searched through the combination of the classification directory codes and the item codes in the information resource records corresponding to the latest version of each information resource.
The classified directory codes of the same information resource are the same, and when multiple versions of the information resource coexist, the detail codes corresponding to the versions may be the same or different.
In one embodiment, multiple versions of the same information resource correspond to the same detail code, such as shown in Table 7. Table 7 shows only a part of fields of the information resource table, and fields of information item information, sharing attributes, and the like are omitted and not shown.
TABLE 7
Figure BDA0002117583860000151
As shown in Table 7, the two versions V1.0.1 and V1.0.2 of the API interface document correspond to the same breakdown code "0001". The two versions are associated with the same classified directory code and the same item code, and the information resource record corresponding to one version can be found out by the classified directory code and the item code after the information resource record of the other version is known.
On the finally generated information resource directory tree, the information resource records corresponding to V1.0.2 version numbers with the latest version are shown to the user, and if the user requests to query the historical version of the API interface document, the embodiment of the present invention can respond to the request of the user, and can find the information resource records of all the historical versions (in this case, V1.0.1 version) of the API interface document in the information resource table by classifying the two query conditions of directory code 000100010002 and detail code 0001.
In another embodiment, multiple versions of the same information resource correspond to different detail codes, such as shown in Table 8, and only some of the items in the information resource table are listed in the space Table 8.
TABLE 8
Figure BDA0002117583860000161
As shown in Table 8, the corresponding breakdown codes for the two versions V1.0.1 and V1.0.2 of the API interface document are "0001" and "0002", respectively. When the two versions are associated, the classification directory code "000100010002" corresponding to the V1.0.1 version is combined with the detail code "0001", and the associated resource code field corresponding to V1.0.2 is written, that is, the associated resource code corresponding to V1.0.2 is "0001000100020001", so that the two versions are associated.
On the finally generated information resource directory tree, the information resource record corresponding to the V1.0.2 version number with the newest version is shown to the user, if the user requests to query the historical version of the API interface document, the embodiment of the present invention may read V1.0.2 version corresponding associated resource code "0001000100020001" to obtain the classification directory code "000100010002" and the detail code "0001" corresponding to the historical version, and then find the information resource record of the previous historical version of V1.0.2 of the API interface document in the information resource table according to the two query conditions of the classification directory code "000100010002" and the detail code "0001", and if there is an older historical version, query is performed one by one according to the same method to obtain the information resource records of all historical versions of the API interface document.
The embodiment of the invention can also carry out operations such as adding, modifying, deleting and the like on the records in the information resource table, and record the change log for the user to inquire. And recording the change log of each version information resource changed in the information resource table by establishing an information resource change log table.
The embodiment of the invention also establishes the association between the change log information of each version of each information resource and the classification directory code and the detail code of the corresponding information resource through the information resource change log table, so that the change log information of the latest version and each historical version of each information resource can be searched through the combination of the classification directory code and the detail code in the information resource record corresponding to the latest version of each information resource.
The items of the information resource change log table are shown in table 9.
TABLE 9
Name of fieldType of fieldDescription of the invention
idint(11)unsignedID auto-increment
codevarchar(255)Categorizing directory code
add_codevarchar(255)Information resource item code
version_numvarchar(255)Changed version number
before_versionvarchar(255)Version number before change
Old_dataLongtextJson packed data of whole piece of data before modification
New_dataLongtextJson packed data of modified whole data
OperatorVarchar(255)Reviser
Created_atDatetimeCreation time
According to table 9, change log information for each version of each information resource: the version numbers before and after changing, json packed data, modifiers, creation time and other log information of the whole data before and after changing are associated with the classification directory codes and the detail codes of the corresponding information resources to form each record of the information resource change log table, so that a user can search the change log information of the latest version and each historical version of each information resource according to the combination of the classification directory codes and the detail codes of the information resource record of the latest version displayed currently.
For example, in the above example, the two versions V1.0.1 and V1.0.2 of the API interface document are V1.0.2 versions of the information resource record shown to the user, and if the user clicks the view log function, this embodiment may find one or more records corresponding to the category directory code and the item code from the information resource change log table according to the category directory code and the item code in the V1.0.2 version of the information resource record.
If the detail codes corresponding to the versions of the API documents are different, the method can search a unique record, and the content of the unique record comprises the following steps: version number of V1.0.2 version (i.e. version number after modification), version number of V1.0.1 version (i.e. version number before modification), category directory code of API interface document, detail code corresponding to V1.0.2 version (i.e. information resource detail code in table 9), json packed data of information resource record corresponding to V1.0.2 version (i.e. json packed data of whole piece of data after modification), json packed data of information resource record corresponding to V1.0.1 version (i.e. json packed data of whole piece of data before modification), etc.
If the detail codes corresponding to the versions of the same information resource are the same, a plurality of records can be found by the method, the plurality of records are the information resource records of each historical version of the API interface document, and if version V1.0.0 is available before version V1.0.1, two information resource records corresponding to version V1.0.0 and version V1.0.1 can be obtained by combining the classification directory code and the detail codes of the API interface document: v1.0.2 version and V1.0.1 version, and the user can select the desired change log information to view.
In the case where the detail codes corresponding to the versions of the same information resource are the same as described above, as an alternative embodiment, when the change log corresponding to the version V1.0.2 is searched in the information resource change log table, the changed version number may be used as a search condition on the basis of the combination of the category directory code and the detail code, and the change log corresponding to the version V1.0.2 may be specifically searched by the combination of the category directory code, the detail code, and the changed version number.
Step S104: and mounting the information resource record corresponding to the latest version of each information resource under the leaf nodes of the classification directory tree corresponding to the same classification directory code of the information resource to obtain the information resource directory tree.
In one embodiment, the detail codes corresponding to the versions of the same information resource in the information resource table are the same, and then step S104 may specifically sort all information resource records of the information resource table according to the category directory code, the detail code, and the version number; and mounting the information resource record with the same classification directory code and detail code but the latest version number in all the sequenced information resource records under the leaf nodes of the classification directory tree corresponding to the same classification directory code of the information resource.
In another embodiment, the detail codes corresponding to the versions of the same information resource in the information resource table are different, and according to the above description, the associated resource code corresponding to each version is a combination of the classified directory code and the detail code of the previous old version (the associated resource codes corresponding to the versions of the same information resource are different), so that the information of the classified directory code and the detail code of the previous old version of each version can be obtained from the associated resource codes, and the information resource record corresponding to the latest version of each information resource is selected according to the association relationship between the versions. Step S104, specifically, all information resource records of the information resource table can be sorted according to the classification directory code, the detailed directory code and the version number; for all the sorted information resource records, determining the information resource records belonging to the same information resource according to the incidence relation among the information resource records indicated by the incidence resource codes; and mounting the information resource record with the latest version number of the same information resource under the leaf node of the same classification directory code corresponding to the information resource in the classification directory tree.
The information resource directory tree according to the embodiment of the present invention is obtained in the above manner, and is shown in fig. 3, where fig. 3 is a diagram in which the latest version information resources of the same category directory code corresponding to each leaf node are mounted on each leaf node of a category directory tree, and documents a to E represent different information resources and are all the latest version.
The final information resource code can be obtained through the information resource directory tree, and the final information resource code is as follows: the combination of the classification directory code corresponding to the leaf node mounted by the information resource (latest version) and the detail code of the information resource. For example, if a latest version information resource is mounted on a leaf node with a category directory code of 000100010002 and its detail code is 0001, the final information resource is encoded as: 0001000100020001. and the user can browse all information resources and the conditions of all versions of the information resources and can check change logs, and after the user clicks the log checking function, the inquiry system can check all the change logs aiming at the code and the add _ code according to the code (classified directory code) and the add _ code (information resource detail code) of the information resources.
FIG. 4 is a flow diagram of inventory making according to one embodiment of the invention.
As shown in fig. 4, the process of cataloging is as follows:
constructing a root node of a classification directory tree;
searching coding information of each classification from the classification catalogue coding table, and sequencing the coding information of each classification according to a Gen _ code field; the Gen _ code field represents a category directory code of the parent category;
traversing the coding information of each classification, judging whether the coding sequence ID of the father classification of each classification is 0, if so, mounting the coding information of the classification to a root node; otherwise, mounting the node under the node corresponding to the father classification;
after traversing all classified coding information, acquiring all information resource records from the information resource table;
traversing each information resource record to obtain the information resource record of the latest version of each information resource; information resources such as: product requirement documents, product program design documents, product authority control documents, product safety audit documents, product database design documents, product data interface documents and the like;
and mounting the information resource directory tree on leaf nodes (namely directory nodes in the graph) of the classified directory tree according to codes (classified directory codes), thereby obtaining the final information resource directory tree.
FIG. 5 is a schematic diagram of the main modules of an inventory making apparatus according to an embodiment of the present invention.
As shown in fig. 5, theinventory making device 500 according to the embodiment of the present invention mainly includes: a classified catalog codingtable generating module 501, a classified catalogtree generating module 502, an information resourcetable obtaining module 503, and an information resource catalogtree generating module 504.
The classification directory codetable generating module 501 is configured to generate a classification directory code table, where the classification directory code table records code information of each classification of the information resources, and obtains a classification directory code from the code information.
The classified directorytree generating module 502 is configured to determine a position of each classification in the classified directory according to the encoding information to generate a classified directory tree, where a root node of the classified directory tree is a classified directory name, other nodes respectively correspond to one classified encoding information, and a node without a subsequent node in the classified directory tree is called a leaf node.
An information resourcetable obtaining module 503, configured to obtain an information resource table, where the information resource table includes a plurality of information resource records, and each information resource record includes a classification directory code and a version number of an information resource; the information resource record can also comprise item codes of the information resources, and a plurality of versions of the same information resource in the information resource table are associated through the corresponding classification directory codes and the item codes. The information resource record may further include associated resource codes of the information resources, and the associated resource codes corresponding to the versions of the same information resource in the information resource table are different.
The information resource directorytree generation module 504 is configured to mount the information resource record corresponding to the latest version of each information resource under a leaf node of the classification directory tree corresponding to the same classification directory code as the information resource, so as to obtain the information resource directory tree.
The classification directory codingtable generating module 501 is specifically configured to: acquiring a level information specification table, wherein the level information specification table records the corresponding relation among classified classification names, coding sequence IDs, coding lengths and coding sequence IDs of parent classifications; and generating coding information of each classification of the information resources according to the level information specification table to obtain a classification directory coding table, wherein the classification coding information comprises classification names of the classifications, level actual codes, coding order IDs of parent classifications of the level actual codes and classification directory codes of parent classifications of the parent classifications, the classified level actual codes refer to a section of codes corresponding to the classification coding order IDs in the classification directory codes, the length of the level actual codes is the classification coding length, and each classification directory code is a combination of the classification directory codes of the parent classifications and the level actual codes of the classification, and indicates the classification path of the classification.
The classification directorytree generation module 502 is specifically configured to: defining a classification directory name and taking the classification directory name as a root node of a classification directory tree; searching the coding information of each classification from the classification directory coding table, and sequencing the coding information of each classification according to the classification directory code of the father classification of each classification; and mounting the code information of the classification without the father classification in each classification under the root node, and sequentially mounting the code information of other classifications under the nodes corresponding to the father classification according to the father classification corresponding to each classification, thereby generating the classification directory tree.
Theinventory making apparatus 500 may further include a historical version searching module for searching the information resource record corresponding to the corresponding historical version by combining the classification catalog code and the detail code in the information resource record corresponding to the latest version of each information resource.
Thecatalog preparation apparatus 500 may further include an information resource change log table generation module and a log search module, wherein the information resource change log table generation module is configured to associate change log information of each version of each information resource with a classification catalog code and a detail code of a corresponding information resource; the log searching module is used for searching the change log information of the latest version and each historical version of each information resource through the combination of the classification directory codes and the detail codes in the information resource record corresponding to the latest version of each information resource.
In an embodiment, the detail codes corresponding to the versions of the same information resource in the information resource table are the same, and the information resource directorytree generating module 504 may specifically be configured to: sequencing all information resource records of the information resource table according to the classified directory codes, the detailed directory codes and the version numbers; and mounting the information resource record with the same classification directory code and detail code but the latest version number in all the sequenced information resource records under the leaf nodes of the classification directory tree corresponding to the same classification directory code of the information resource.
In another embodiment, the detail codes corresponding to the versions of the same information resource in the information resource table are different, and the information resource directorytree generation module 504 may be specifically configured to: sequencing all information resource records of the information resource table according to the classified directory codes, the detailed directory codes and the version numbers; for all the sorted information resource records, determining the information resource records belonging to the same information resource according to the incidence relation among the information resource records indicated by the incidence resource codes; and mounting the information resource record with the latest version number of the same information resource under the leaf node of the same classification directory code corresponding to the information resource in the classification directory tree.
The embodiment of the invention can make the information resource catalog compilation systematized, traceable in history and compatible in each version, and supports the check of the change log.
In addition, the detailed implementation of the inventory making device in the embodiment of the present invention has been described in detail in the inventory making method, and therefore, the repeated description is not repeated here.
Fig. 6 illustrates anexemplary system architecture 600 of an inventory-making method or apparatus to which embodiments of the invention may be applied.
As shown in fig. 6, thesystem architecture 600 may includeterminal devices 601, 602, 603, anetwork 604, and aserver 605. Thenetwork 604 serves to provide a medium for communication links between theterminal devices 601, 602, 603 and theserver 605.Network 604 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use theterminal devices 601, 602, 603 to interact with theserver 605 via thenetwork 604 to receive or send messages or the like. Theterminal devices 601, 602, 603 may have installed thereon various communication client applications, such as shopping applications, web browser applications, search applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
Theterminal devices 601, 602, 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
Theserver 605 may be a server providing various services, such as a background management server (for example only) providing support for shopping websites browsed by users using theterminal devices 601, 602, 603. The backend management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (for example, product information — just an example) to the terminal device.
It should be noted that the inventory making method provided by the embodiment of the present invention is generally executed by theserver 605, and accordingly, the inventory making device is generally disposed in theserver 605.
It should be understood that the number of terminal devices, networks, and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 7, shown is a block diagram of acomputer system 700 suitable for use in implementing a terminal device or server of an embodiment of the present application. The terminal device or the server shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 7, thecomputer system 700 includes a Central Processing Unit (CPU)701, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from astorage section 708 into a Random Access Memory (RAM) 703. In theRAM 703, various programs and data necessary for the operation of thesystem 700 are also stored. TheCPU 701, theROM 702, and theRAM 703 are connected to each other via abus 704. An input/output (I/O)interface 705 is also connected tobus 704.
The following components are connected to the I/O interface 705: aninput portion 706 including a keyboard, a mouse, and the like; anoutput section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; astorage section 708 including a hard disk and the like; and acommunication section 709 including a network interface card such as a LAN card, a modem, or the like. Thecommunication section 709 performs communication processing via a network such as the internet. Adrive 710 is also connected to the I/O interface 705 as needed. Aremovable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on thedrive 710 as necessary, so that a computer program read out therefrom is mounted into thestorage section 708 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through thecommunication section 709, and/or installed from theremovable medium 711. The computer program executes the above-described functions defined in the system of the present application when executed by the Central Processing Unit (CPU) 701.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor comprises a classification directory coding table generating module, a classification directory tree generating module, an information resource table acquiring module and an information resource directory tree generating module. The names of these modules do not in some cases constitute a limitation on the modules themselves, and for example, the classification directory code table generation module may also be described as a "module for generating a classification directory code table".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: generating a classification directory code table, wherein the classification directory code table records code information of each classification of information resources, and the classified classification directory codes are obtained from the code information; determining the position of each classification in a classification directory according to the coding information to generate a classification directory tree, wherein the root node of the classification directory tree is a classification directory name, other nodes respectively correspond to one piece of classified coding information, and the node without the subsequent node in the classification directory tree is called a leaf node; acquiring an information resource table, wherein the information resource table comprises a plurality of information resource records, and each information resource record comprises a classification directory code and a version number of an information resource; and mounting the information resource record corresponding to the latest version of each information resource under the leaf node of the classification directory tree corresponding to the same classification directory code as the information resource to obtain the information resource directory tree.
According to the technical scheme of the embodiment of the invention, a classification directory code table is generated, and classified classification directory codes are obtained according to the code information of each classification recorded by the classification directory code table; determining the position of each classification in the classification directory according to the coding information to generate a classification directory tree; acquiring an information resource table, wherein each information resource record comprises a classification directory code and a version number of the information resource; and mounting the information resource record corresponding to the latest version of each information resource under the leaf nodes of the classification directory tree corresponding to the same classification directory code of the information resource to obtain the information resource directory tree. The method can automatically and systematically compile the information resource catalog, and overcomes the defect of low efficiency of manually compiling the catalog. The information resource record corresponding to the corresponding historical version can be searched through the combination of the classification catalog code and the detail code in the information resource record corresponding to the latest version of each information resource, so that the historical version of the information resource can be checked through the catalog, and multiple versions can coexist. And the change log information of the latest version and each historical version of each information resource can be searched through the combination of the classification catalog code and the detail code in the information resource record corresponding to the latest version of each information resource, so that the check of the change log information of each version of information resource is supported, and the history can be traced.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

Translated fromChinese
1.一种目录编制方法,其特征在于,包括:1. a catalog preparation method, is characterized in that, comprises:生成分类目录编码表,所述分类目录编码表记录信息资源的每个分类的编码信息,由所述编码信息得到所述分类的分类目录代码;Generating a classification catalog coding table, the classification catalog coding table records the coding information of each classification of the information resource, and the classification catalog code of the classification is obtained from the coding information;根据所述编码信息确定每个分类在分类目录中的位置,以生成分类目录树,所述分类目录树的根节点为分类目录名,其他各节点分别对应一个分类的编码信息,所述分类目录树中无后续节点的节点称为叶子节点;The position of each category in the category directory is determined according to the encoding information to generate a category directory tree. The root node of the category directory tree is the category directory name, and each other node corresponds to the encoding information of a category. The category directory Nodes without subsequent nodes in the tree are called leaf nodes;获取信息资源表,所述信息资源表包括多条信息资源记录,每条信息资源记录包括信息资源的分类目录代码和版本号;Obtain an information resource table, the information resource table includes a plurality of information resource records, and each information resource record includes a catalog code and a version number of the information resource;将每个信息资源的最新版本对应的信息资源记录挂载到所述分类目录树的与该信息资源对应相同分类目录代码的叶子节点下,以得到信息资源目录树。The information resource record corresponding to the latest version of each information resource is mounted under the leaf node of the classification directory tree with the same classification directory code corresponding to the information resource, so as to obtain the information resource directory tree.2.根据权利要求1所述的方法,其特征在于,生成分类目录编码表的步骤,包括:2. method according to claim 1 is characterized in that, the step of generating classification catalog coding table comprises:获取位次信息规范表,所述位次信息规范表记录所述分类的分类名、编码次序ID、编码长度、其父分类的编码次序ID之间的对应关系;Obtain rank information specification table, described rank information specification table records the correspondence between the classification name of described classification, coding order ID, coding length, the coding order ID of its parent classification;根据所述位次信息规范表生成信息资源的每个分类的编码信息,以得到所述分类目录编码表,其中,所述分类的编码信息包括所述分类的分类名、位次实际编码、编码次序ID、其父分类的编码次序ID、其父分类的分类目录代码,所述分类的位次实际编码是指所述分类的分类目录代码中与所述分类的编码次序ID对应的一段编码,所述位次实际编码的长度为所述编码长度,每一分类的分类目录代码为其父分类的分类目录代码与该分类的位次实际编码的组合,其指示了该分类的分类路径。According to the rank information specification table, the coding information of each category of the information resource is generated to obtain the category catalog coding table, wherein the coding information of the category includes the category name of the category, the actual rank code, the code Sequence ID, the coding sequence ID of its parent classification, the classification catalog code of its parent classification, the actual coding of the rank of the classification refers to a section of coding corresponding to the coding sequence ID of the classification in the classification catalog code of the classification, The length of the actual rank code is the code length, and the category catalog code of each category is the combination of the category catalog code of its parent category and the actual rank code of the category, which indicates the category path of the category.3.根据权利要求2所述的方法,其特征在于,根据所述编码信息确定每个分类在分类目录中的位置,以生成分类目录树的步骤,包括:3. method according to claim 2, is characterized in that, according to described coding information, determine the position of each classification in classification catalogue, to generate the step of classification catalogue tree, comprising:定义所述分类目录名并以所述分类目录名作为所述分类目录树的根节点;Define the category name and use the category name as the root node of the category tree;从所述分类目录编码表中查出各分类的编码信息,并根据所述各分类的父分类的分类目录代码对所述各分类的编码信息排序;Find out the coding information of each classification from the classification catalog coding table, and sort the coding information of each classification according to the classification catalog code of the parent classification of each classification;将所述各分类中无父分类的分类的编码信息挂载到所述根节点下,其他分类的编码信息按照各自对应的父分类,依次挂载到其父分类对应的节点下,从而生成所述分类目录树。The encoding information of the categories without parent categories in the categories is mounted under the root node, and the encoding information of other categories is mounted under the nodes corresponding to their parent categories in turn according to their corresponding parent categories, thereby generating all the categories. Describe the classification tree.4.根据权利要求1所述的方法,其特征在于,所述信息资源记录还包括信息资源的细目代码,4. The method according to claim 1, wherein the information resource record further comprises a breakdown code of the information resource,所述信息资源表中同一信息资源的多个版本通过对应的分类目录代码、细目代码建立关联,以便通过所述每个信息资源的最新版本对应的信息资源记录中的分类目录代码与细目代码的结合,来查找相应历史版本对应的信息资源记录。The multiple versions of the same information resource in the information resource table are associated through the corresponding catalog code and item code, so that the catalog code and item code in the information resource record corresponding to the latest version of each information resource can be associated. Combined, to find the information resource record corresponding to the corresponding historical version.5.根据权利要求4所述的方法,其特征在于,还包括:通过信息资源变更日志表将每个信息资源的各版本的变更日志信息与对应的信息资源的分类目录代码、细目代码建立关联,以便通过所述每个信息资源的最新版本对应的信息资源记录中的分类目录代码与细目代码的结合,来查找所述每个信息资源的最新版本和各历史版本的变更日志信息。5. The method according to claim 4, further comprising: associating the change log information of each version of each information resource with the catalog code and item code of the corresponding information resource through an information resource change log table , so as to find the latest version of each information resource and the change log information of each historical version through the combination of the catalog code and the item code in the information resource record corresponding to the latest version of each information resource.6.根据权利要求4所述的方法,其特征在于,所述信息资源表中同一信息资源的各版本对应的细目代码相同,6. The method according to claim 4, wherein the detail codes corresponding to each version of the same information resource in the information resource table are the same,将每个信息资源的最新版本对应的信息资源记录挂载到所述分类目录树的与该信息资源对应相同分类目录代码的叶子节点下的步骤,包括:The step of mounting the information resource record corresponding to the latest version of each information resource to the leaf node of the classification directory tree corresponding to the same classification directory code as the information resource, including:按照分类目录代码、细目代码、版本号对所述信息资源表的所有信息资源记录排序;Sort all the information resource records in the information resource table according to the catalog code, item code and version number;将排序后的所有信息资源记录中,分类目录代码和细目代码均相同但版本号最新的信息资源记录挂载到所述分类目录树的与该信息资源对应相同分类目录代码的叶子节点下。Among all sorted information resource records, the information resource record with the same catalog code and item code but the latest version number is mounted under the leaf node of the catalog tree with the same catalog code corresponding to the information resource.7.根据权利要求4所述的方法,其特征在于,所述信息资源记录还包括所述信息资源的关联资源代码,所述信息资源表中同一信息资源的各版本对应的细目代码、关联资源代码均不同,7. The method according to claim 4, wherein the information resource record further comprises an associated resource code of the information resource, a breakdown code, an associated resource corresponding to each version of the same information resource in the information resource table code is different,将每个信息资源的最新版本对应的信息资源记录挂载到所述分类目录树的与该信息资源对应相同分类目录代码的叶子节点下的步骤,包括:The step of mounting the information resource record corresponding to the latest version of each information resource to the leaf node of the classification directory tree corresponding to the same classification directory code as the information resource, including:按照分类目录代码、细目代码、版本号对所述信息资源表的所有信息资源记录排序;Sort all the information resource records in the information resource table according to the catalog code, item code and version number;对于排序后的所有信息资源记录,根据所述关联资源代码指示的信息资源记录之间的关联关系,确定属于同一信息资源的信息资源记录;For all the sorted information resource records, determine the information resource records belonging to the same information resource according to the association relationship between the information resource records indicated by the associated resource codes;将同一信息资源的版本号最新的信息资源记录挂载到所述分类目录树的与该信息资源对应相同分类目录代码的叶子节点下。Mounting the information resource record with the latest version number of the same information resource under the leaf node of the classification directory tree corresponding to the same classification directory code as the information resource.8.一种目录编制装置,其特征在于,包括:8. A device for cataloging, comprising:分类目录编码表生成模块,用于生成分类目录编码表,所述分类目录编码表记录信息资源的每个分类的编码信息,由所述编码信息得到所述分类的分类目录代码;A classification catalog coding table generation module, for generating a classification catalog coding table, the classification catalog coding table records the coding information of each classification of the information resource, and the classification catalog code of the classification is obtained from the coding information;分类目录树生成模块,用于根据所述编码信息确定每个分类在分类目录中的位置,以生成分类目录树,所述分类目录树的根节点为分类目录名,其他各节点分别对应一个分类的编码信息,所述分类目录树中无后续节点的节点称为叶子节点;A classification directory tree generation module is used to determine the position of each classification in the classification directory according to the coding information, so as to generate a classification directory tree, the root node of the classification directory tree is the classification directory name, and each other node corresponds to a classification The encoding information, the node without subsequent nodes in the classification tree is called leaf node;信息资源表获取模块,用于获取信息资源表,所述信息资源表包括多条信息资源记录,每条信息资源记录包括信息资源的分类目录代码和版本号;an information resource table acquisition module, used for acquiring an information resource table, the information resource table includes a plurality of information resource records, and each information resource record includes a catalog code and a version number of the information resource;信息资源目录树生成模块,用于将每个信息资源的最新版本对应的信息资源记录挂载到所述分类目录树的与该信息资源对应相同分类目录代码的叶子节点下,以得到信息资源目录树。The information resource directory tree generation module is used to mount the information resource record corresponding to the latest version of each information resource under the leaf node of the classification directory tree corresponding to the same classification directory code as the information resource, so as to obtain the information resource directory Tree.9.一种电子设备,其特征在于,包括:9. An electronic device, characterized in that, comprising:一个或多个处理器;one or more processors;存储器,用于存储一个或多个程序,memory for storing one or more programs,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如权利要求1-7中任一所述的方法。The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-7.10.一种计算机可读介质,其上存储有计算机程序,其特征在于,所述程序被处理器执行时实现如权利要求1-7中任一所述的方法。10. A computer-readable medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the method according to any one of claims 1-7 is implemented.
CN201910595726.7A2019-07-032019-07-03 Method and device for catalogingPendingCN112182138A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910595726.7ACN112182138A (en)2019-07-032019-07-03 Method and device for cataloging

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910595726.7ACN112182138A (en)2019-07-032019-07-03 Method and device for cataloging

Publications (1)

Publication NumberPublication Date
CN112182138Atrue CN112182138A (en)2021-01-05

Family

ID=73914466

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910595726.7APendingCN112182138A (en)2019-07-032019-07-03 Method and device for cataloging

Country Status (1)

CountryLink
CN (1)CN112182138A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113377895A (en)*2021-05-132021-09-10王宇Network knowledge point organization method and device based on directory tree
CN113515511A (en)*2021-05-282021-10-19中国雄安集团数字城市科技有限公司Data cleaning method and device for information resource cataloguing file
CN113569101A (en)*2021-07-282021-10-29上海数慧系统技术有限公司Service information processing method and device
CN114596135A (en)*2022-03-012022-06-07北京金山云网络技术有限公司 Resource display method, device, storage medium and electronic device
CN115905628A (en)*2022-10-202023-04-04武汉达梦数据技术有限公司Dynamic resource directory construction method, device, equipment and storage medium
CN119226565A (en)*2024-11-282024-12-31杭州海康威视系统技术有限公司 Resource cataloging method, resource directory tree generation method, device and electronic equipment

Citations (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2000132438A (en)*1998-10-212000-05-12Nobuhiko IdoManagement system for file directory
CN1677399A (en)*2004-03-312005-10-05株式会社东芝 Systems, methods and programs for hierarchical database management
CN101142572A (en)*2003-06-242008-03-12英特务备公司Website development involving journaling and parent maps replacement
CN102880720A (en)*2012-10-152013-01-16刘超Management and semantic retrieval method for information resources
JP2013239050A (en)*2012-05-162013-11-28Silex Technology IncDatabase operation program
CN104361111A (en)*2014-11-282015-02-18青岛大学Automatic archive editing method
CN105550219A (en)*2015-12-042016-05-04航天科工智慧产业发展有限公司Information resource automatic cataloguing method
CN107451486A (en)*2017-06-302017-12-08华为技术有限公司The authority setting method and device of a kind of file system
CN108228846A (en)*2018-01-082018-06-29江苏神州信源系统工程有限公司Resource file management method and device
CN108257043A (en)*2018-01-162018-07-06航天科工智慧产业发展有限公司A kind of government information resources comb and directory management system and method
CN108694600A (en)*2017-04-102018-10-23北京智慧联合科技有限公司A method of recommending upstream and downstream firms group for Target Enterprise
CN109491962A (en)*2018-11-062019-03-19深圳市网心科技有限公司A kind of file directory tree management method and relevant apparatus

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2000132438A (en)*1998-10-212000-05-12Nobuhiko IdoManagement system for file directory
CN101142572A (en)*2003-06-242008-03-12英特务备公司Website development involving journaling and parent maps replacement
CN1677399A (en)*2004-03-312005-10-05株式会社东芝 Systems, methods and programs for hierarchical database management
JP2013239050A (en)*2012-05-162013-11-28Silex Technology IncDatabase operation program
CN102880720A (en)*2012-10-152013-01-16刘超Management and semantic retrieval method for information resources
CN104361111A (en)*2014-11-282015-02-18青岛大学Automatic archive editing method
CN105550219A (en)*2015-12-042016-05-04航天科工智慧产业发展有限公司Information resource automatic cataloguing method
CN108694600A (en)*2017-04-102018-10-23北京智慧联合科技有限公司A method of recommending upstream and downstream firms group for Target Enterprise
CN107451486A (en)*2017-06-302017-12-08华为技术有限公司The authority setting method and device of a kind of file system
CN108228846A (en)*2018-01-082018-06-29江苏神州信源系统工程有限公司Resource file management method and device
CN108257043A (en)*2018-01-162018-07-06航天科工智慧产业发展有限公司A kind of government information resources comb and directory management system and method
CN109491962A (en)*2018-11-062019-03-19深圳市网心科技有限公司A kind of file directory tree management method and relevant apparatus

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
唐志贤;金紫蘅;: "信息资源目录集成与服务关键技术研究", 信息化研究, no. 01, 20 February 2019 (2019-02-20)*
曹大岭 等: "电子政务中数据目录规范化编制流程及实现机制", 计算机应用, 30 June 2011 (2011-06-30)*
王海燕;胡婷;谢燕;刘际鹏;: "公安行业市级数据中心平台建设研究", 信息通信, no. 10, 15 October 2017 (2017-10-15)*
莫兵;: "二叉树算法在教学资源平台研发中的应用探讨", 信息与电脑(理论版), no. 17, 8 September 2016 (2016-09-08)*

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113377895A (en)*2021-05-132021-09-10王宇Network knowledge point organization method and device based on directory tree
CN113515511A (en)*2021-05-282021-10-19中国雄安集团数字城市科技有限公司Data cleaning method and device for information resource cataloguing file
CN113515511B (en)*2021-05-282022-11-11中国雄安集团数字城市科技有限公司Data cleaning method and device for information resource cataloguing file
CN113569101A (en)*2021-07-282021-10-29上海数慧系统技术有限公司Service information processing method and device
CN114596135A (en)*2022-03-012022-06-07北京金山云网络技术有限公司 Resource display method, device, storage medium and electronic device
CN115905628A (en)*2022-10-202023-04-04武汉达梦数据技术有限公司Dynamic resource directory construction method, device, equipment and storage medium
CN119226565A (en)*2024-11-282024-12-31杭州海康威视系统技术有限公司 Resource cataloging method, resource directory tree generation method, device and electronic equipment
CN119226565B (en)*2024-11-282025-04-18杭州海康威视系统技术有限公司 Resource cataloging method, resource directory tree generation method, device and electronic equipment

Similar Documents

PublicationPublication DateTitle
CN112182138A (en) Method and device for cataloging
US10540383B2 (en)Automatic ontology generation
CN109446274B (en)Method and device for managing BI metadata of big data platform
CN110472207A (en)List generation method and device
CN109522751B (en)Access right control method and device, electronic equipment and computer readable medium
CN111753019B (en)Data partitioning method and device applied to data warehouse
US10936640B2 (en)Intelligent visualization of unstructured data in column-oriented data tables
JP7313382B2 (en) Frequent Pattern Analysis of Distributed Systems
CN111858621B (en)Method, apparatus, device and computer readable medium for monitoring business process
CN112214505B (en)Data synchronization method, device, computer readable storage medium and electronic equipment
CN113849473A (en)Operation recording method, operation recording device, electronic device, and storage medium
CN113065106A (en)Account management method and device
CN111258988A (en)Asset management method, device, electronic device, and medium
CN115516441A (en)Multi-valued primary keys for multiple unique identifiers of entities
CN113779313B (en)Knowledge management method and system based on graph database
CN110879808A (en)Information processing method and device
CN113742321B (en)Data updating method and device
CN113760966B (en) Data processing method and device based on heterogeneous database system
CN110688355A (en)Method and device for changing container state
CN113704242A (en)Data processing method and device
US10762090B2 (en)Software discovery based on metadata analysis
CN113778318B (en)Data storage method and device
CN112862554B (en) A method and device for processing order data
CN112256566B (en)Fresh-keeping method and device for test cases
US20190303453A1 (en)Facilitating queries for interaction data with visitor-indexed data objects

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp