CN112182138A - Catalog making method and device - Google Patents

Catalog making method and device Download PDF

Info

Publication number
CN112182138A
CN112182138A CN201910595726.7A CN201910595726A CN112182138A CN 112182138 A CN112182138 A CN 112182138A CN 201910595726 A CN201910595726 A CN 201910595726A CN 112182138 A CN112182138 A CN 112182138A
Authority
CN
China
Prior art keywords
classification
information resource
information
directory
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
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 Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201910595726.7A priority Critical patent/CN112182138A/en
Publication of CN112182138A publication Critical patent/CN112182138A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/31Indexing; Data structures therefor; Storage structures
    • G06F16/316Indexing structures
    • G06F16/322Trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3322Query formulation using system suggestions
    • G06F16/3323Query formulation using system suggestions using document space presentation or visualization, e.g. category, hierarchy or range presentation and selection
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • G06F16/355Class or cluster creation or modification

Abstract

The invention discloses a method and a device for compiling a catalog, and relates to the technical field of computers. One specific implementation mode of the method comprises the steps of generating a classification directory code table, recording code information of each classification of information resources by the classification directory code table, and obtaining classification directory codes of the classifications according to the code information; 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 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 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 embodiment can automatically and systematically compile information resource catalogs, overcomes the defect of low efficiency, supports viewing of historical versions, can realize coexistence of multiple versions, supports viewing of change log information and enables history to be traceable.

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
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
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
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
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
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
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
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
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 field Type of field Description of the invention
id int(11)unsigned ID auto-increment
code varchar(255) Categorizing directory code
add_code varchar(255) Information resource item code
version_num varchar(255) Changed version number
before_version varchar(255) Version number before change
Old_data Longtext Json packed data of whole piece of data before modification
New_data Longtext Json packed data of modified whole data
Operator Varchar(255) Reviser
Created_at Datetime Creation 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, the inventory making device 500 according to the embodiment of the present invention mainly includes: a classified catalog coding table generating module 501, a classified catalog tree generating module 502, an information resource table obtaining module 503, and an information resource catalog tree generating module 504.
The classification directory code table 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 directory tree 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 resource table 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 directory tree 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 coding table 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 directory tree 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.
The inventory 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.
The catalog 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 directory tree 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 directory tree 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 an exemplary system architecture 600 of an inventory-making method or apparatus to which embodiments of the invention may be applied.
As shown in fig. 6, the system architecture 600 may include terminal devices 601, 602, 603, a network 604, and a server 605. The network 604 serves to provide a medium for communication links between the terminal devices 601, 602, 603 and the server 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 the terminal devices 601, 602, 603 to interact with the server 605 via the network 604 to receive or send messages or the like. The terminal 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).
The terminal 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.
The server 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 the terminal 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 the server 605, and accordingly, the inventory making device is generally disposed in the server 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 a computer 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, the computer 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 a storage section 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage 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 the communication section 709, and/or installed from the removable 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)

1. An inventory making method, 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.
2. The method of claim 1, wherein the step of generating a sorted list of codes comprises:
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.
3. The method of claim 2, wherein the step of determining the location of each category in the category list based on the encoded information to generate the category list tree comprises:
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.
4. The method of claim 1, wherein the information asset record further comprises a detail code for an information asset,
and establishing association between multiple versions of the same information resource in the information resource table through corresponding classification directory codes and detail codes so as to search the information resource record corresponding to the corresponding historical version through combination of the classification directory codes and the detail codes in the information resource record corresponding to the latest version of each information resource.
5. The method of claim 4, further comprising: 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.
6. The method of claim 4, wherein the detail codes corresponding to the versions 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 comprises the following steps:
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.
7. The method of claim 4, wherein 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,
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 comprises the following steps:
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.
8. 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.
9. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method recited in any of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN201910595726.7A 2019-07-03 2019-07-03 Catalog making method and device Pending CN112182138A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910595726.7A CN112182138A (en) 2019-07-03 2019-07-03 Catalog making method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910595726.7A CN112182138A (en) 2019-07-03 2019-07-03 Catalog making method and device

Publications (1)

Publication Number Publication Date
CN112182138A true CN112182138A (en) 2021-01-05

Family

ID=73914466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910595726.7A Pending CN112182138A (en) 2019-07-03 2019-07-03 Catalog making method and device

Country Status (1)

Country Link
CN (1) CN112182138A (en)

Similar Documents

Publication Publication Date Title
US10540383B2 (en) Automatic ontology generation
CN109522751B (en) Access right control method and device, electronic equipment and computer readable medium
CN109388637A (en) Data warehouse information processing method, device, system, medium
CN111190888A (en) Method and device for managing graph database cluster
US10936640B2 (en) Intelligent visualization of unstructured data in column-oriented data tables
CN112182138A (en) Catalog making method and device
CN112529646A (en) Commodity classification method and device
US20200118016A1 (en) Data attribution using frequent pattern analysis
CN110689268A (en) Method and device for extracting indexes
WO2019226279A1 (en) Frequent pattern analysis for distributed systems
CN110019211A (en) The methods, devices and systems of association index
US10762090B2 (en) Software discovery based on metadata analysis
CN110019162B (en) Method and device for realizing attribute normalization
US10885087B2 (en) Cognitive automation tool
CN112256566A (en) Test case preservation method and device
US10769110B2 (en) Facilitating queries for interaction data with visitor-indexed data objects
CN113065920A (en) Data processing method and system
CN112486978A (en) Method and device for storing object characteristic attribute and inquiring object data
CN111258988A (en) Asset management method, device, electronic device, and medium
CN113065106A (en) Account management method and device
CN112579673A (en) Multi-source data processing method and device
CN110688355A (en) Method and device for changing container state
CN112948446A (en) Method and device for matching product documents
CN111858621A (en) Method, device, equipment and computer readable medium for monitoring business process
CN112732724A (en) Asset information management method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication