Information management method and device

By determining the information management model and generating storage and indexing data, the problems of high information management cost and low retrieval efficiency in the prior art are solved, and efficient storage and rapid retrieval of information are achieved.

CN114020743BActive Publication Date: 2025-08-29BEIJING KURUI TECH CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111290477.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-02
Publication Date
2025-08-29
Estimated Expiration
2041-11-02

AI Technical Summary

Technical Problem

The information management methods in the prior art lead to high storage costs and low retrieval efficiency, and the inability to effectively utilize diversified information.

Method used

By determining the target information management model, obtaining the field attribute set of stored and indexed data, generating stored and indexed data, and storing it into a distributed file storage database, a search service is built to realize classified storage and rapid retrieval of information.

Benefits of technology

It reduces the storage cost of information, improves the retrieval efficiency of information, and realizes efficient management of diversified information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114020743B_ABST
    Figure CN114020743B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides an information management method and device, which relates to the field of information processing technology. The method includes: determining a target information management model, where the target information management model is an information management model corresponding to the information to be managed; obtaining a first attribute set, where the first attribute set is a set of field attributes that need to be included in the storage data of the target information management model; extracting the fields corresponding to each field attribute in the first attribute set from the information to be managed to generate a first field set; generating storage data based on the first field set and the target field; the target field is used to identify the target information management model; storing the storage data in a storage database; the storage database includes storage locations for storing fields corresponding to the field attributes that need to be included in the storage data of each information management model. The embodiment of the present invention is used to reduce the storage cost of information and improve the efficiency of information retrieval.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information processing technology, and in particular to an information management method and device. Background Art

[0002] With the development of information technology, information types are increasing, and the forms in which information is presented are also becoming increasingly diverse. For example, key fields in product information typically include price, model, and weight, while key fields in news information typically include release time, location, and content. As information types become more diverse, so too do the differences. Without a sound data storage and retrieval method, information becomes disorganized and difficult to use, ultimately failing to realize its value.

[0003] The information storage method commonly used in the prior art is to classify information according to the key fields it contains, and establish a storage database for the same type of information to specifically store this type of information. For example, if the key fields of some information include fields A, B, and C, the key fields of other information include fields A, C, D, and E, and the key fields of some information include fields B, D, F, and G, the prior art will classify information into three categories based on the key fields it contains: the first category is information whose key fields include fields A, B, and C, the second category is information whose key fields include fields A, C, D, and E, and the third category is information whose key fields include fields B, D, F, and G. Three storage databases are then established, and the three storage databases are used to store the first, second, and third categories of information, respectively. However, as information presentation becomes increasingly diverse, the number of storage databases that need to be managed and maintained by this information management method in the existing technology is increasing. When the information in each storage database is comprehensively utilized based on specific purposes, more and more storage databases need to be retrieved. Therefore, the information management method in the existing technology will lead to higher and higher information storage costs and lower and lower retrieval efficiency. Summary of the Invention

[0004] In view of this, the present invention provides an information management method and apparatus for reducing information storage costs and improving information retrieval efficiency.

[0005] In order to achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0006] In a first aspect, an embodiment of the present invention provides an information management method, comprising:

[0007] Determining a target information management model, where the target information management model is an information management model corresponding to the information to be managed;

[0008] Acquire a first attribute set, where the first attribute set is a set of field attributes that need to be included in the storage data of the target information management model;

[0009] Extracting a field corresponding to each field attribute in the first attribute set from the information to be managed to generate a first field set;

[0010] Generate storage data according to the first field set and a target field; the target field is used to identify the target information management model;

[0011] The storage data is stored in a storage database; the storage database includes storage locations for storing fields corresponding to field attributes that need to be included in the storage data of each information management model.

[0012] As an optional implementation of the embodiment of the present invention, after determining the target information management model, the method further includes:

[0013] Acquire a second attribute set, where the second attribute set is a set consisting of field attributes that need to be included in the index data of the target information management model;

[0014] Extracting a field corresponding to each field attribute in the second attribute set from the information to be managed to generate a second field set;

[0015] Generate index data according to the second field set and the target field;

[0016] Storing the index data in a retrieval database, wherein the retrieval database includes a storage location for storing fields corresponding to field attributes required to be included in the index data of each information management model;

[0017] A service for searching information is constructed based on the search database.

[0018] As an optional implementation of the embodiment of the present invention, before determining the target information management model, the method further includes:

[0019] Establish information management models corresponding to each scenario and / or field, and configure the field attributes that need to be included in the storage data of each information management model and the field attributes that need to be included in the index data of each information management model.

[0020] As an optional implementation of the embodiment of the present invention, the method further includes:

[0021] Obtaining a third attribute set, where the third attribute set is an intersection of field attributes that need to be included in the storage data of each information management model;

[0022] Establishing a common information management model and dedicated information management models corresponding to each information management model, and configuring the dedicated information management models corresponding to each information management model to inherit the common information management model;

[0023] Configuring each attribute in the third attribute set as a field attribute that needs to be included in the storage data of the common information management model;

[0024] The other field attributes required to be included in the storage data of each information management model except the field attributes in the third attribute set are configured as the field attributes required to be included in the storage data of the dedicated information management model corresponding to each information management model.

[0025] As an optional implementation of the embodiment of the present invention, obtaining the first attribute set includes:

[0026] Determining a target-specific information management model, wherein the target-specific information management model is a dedicated information management model corresponding to the target information management model;

[0027] Acquire field attributes that need to be included in the storage data of the target-specific information management model;

[0028] Acquire field attributes that need to be included in the storage data of the common information management model inherited by the target dedicated information management model;

[0029] The field attributes required to be included in the storage data of the target-specific information management model and the field attributes required to be included in the storage data of the common information management model inherited by the target-specific information management model are combined into the first attribute set.

[0030] As an optional implementation of the embodiment of the present invention, the method further includes:

[0031] Obtaining a fourth attribute set, where the fourth attribute set is an intersection of field attributes that need to be included in the index data of each information management model;

[0032] Establish a public information management model and dedicated information management models corresponding to each information management model;

[0033] Configuring each attribute in the fourth attribute set as a field attribute that needs to be included in the index data of the public information management model;

[0034] The other field attributes except the field attributes in the fourth attribute set among the field attributes required to be included in the index data of each information management model are configured as the field attributes required to be included in the index data of the dedicated information management model corresponding to each information management model.

[0035] As an optional implementation of the embodiment of the present invention, obtaining the second attribute set includes:

[0036] Determining a target-specific information management model, wherein the target-specific information management model is a dedicated information management model corresponding to the target information management model;

[0037] Obtaining field attributes that need to be included in the index data of the target-specific information management model;

[0038] Acquire field attributes that need to be included in index data of the common information management model inherited by the target dedicated information management model;

[0039] The field attributes required to be included in the index data of the target-specific information management model and the field attributes required to be included in the index data of the common information management model inherited by the target-specific information management model are combined into the second attribute set.

[0040] As an optional implementation of the embodiment of the present invention, the storage database is a database based on distributed file storage.

[0041] In a second aspect, an embodiment of the present invention provides an information management device, including:

[0042] a determining unit, configured to determine a target information management model, wherein the target information management model is an information management model corresponding to the information to be managed;

[0043] An acquiring unit, configured to acquire a first attribute set, where the first attribute set is a set of field attributes that need to be included in the storage data of the target information management model;

[0044] an extraction unit, configured to extract a field corresponding to each field attribute in the first attribute set from the information to be managed, to generate a first field set;

[0045] A generating unit, configured to generate storage data according to the first field set and a target field; the target field is used to identify the target information management model;

[0046] The processing unit is used to store the storage data into a storage database; the storage database includes a storage location for storing fields corresponding to field attributes required to be included in the storage data of each information management model.

[0047] As an optional implementation of the embodiment of the present invention,

[0048] The acquiring unit is further configured to acquire a second attribute set, where the second attribute set is a set of field attributes that need to be included in the index data of the target information management model;

[0049] The extraction unit is further configured to extract a field corresponding to each field attribute in the second attribute set from the information to be managed, to generate a second field set;

[0050] The generating unit is further configured to generate index data according to the second field set and the target field;

[0051] The processing unit is also used to store the index data in a retrieval database, which includes a storage location for storing fields corresponding to field attributes that need to be included in the index data of each information management model, and a service for retrieving information based on the retrieval database.

[0052] As an optional implementation of the embodiment of the present invention, the information management device further includes:

[0053] The construction unit is used to establish information management models corresponding to various scenarios and / or fields, and configure the field attributes that need to be included in the storage data of each information management model and the field attributes that need to be included in the index data of each information management model.

[0054] As an optional implementation manner of an embodiment of the present invention, the construction unit is also used to obtain a third attribute set, which is the intersection of field attributes that need to be included in the storage data of each information management model; establish a common information management model and a special information management model corresponding to each information management model, and configure the special information management model corresponding to each information management model to inherit the common information management model; configure each attribute in the third attribute set as a field attribute that needs to be included in the storage data of the common information management model; configure other field attributes of the field attributes that need to be included in the storage data of each information management model except the field attributes in the third attribute set as field attributes that need to be included in the storage data of the special information management model corresponding to each information management model.

[0055] As an optional implementation manner of an embodiment of the present invention, the acquisition unit is specifically used to determine a target-specific information management model, which is a specific information management model corresponding to the target information management model; obtain field attributes that need to be included in the storage data of the target-specific information management model; obtain field attributes that need to be included in the storage data of the common information management model inherited by the target-specific information management model; and combine the field attributes that need to be included in the storage data of the target-specific information management model and the field attributes that need to be included in the storage data of the common information management model inherited by the target-specific information management model into the first attribute set.

[0056] As an optional implementation manner of an embodiment of the present invention, the construction unit is also used to obtain a fourth attribute set, which is the intersection of field attributes that need to be included in the index data of each information management model; establish a common information management model and a special information management model corresponding to each information management model; configure each attribute in the fourth attribute set as a field attribute that needs to be included in the index data of the common information management model; configure other field attributes of the field attributes that need to be included in the index data of each information management model except the field attributes in the fourth attribute set as field attributes that need to be included in the index data of the special information management model corresponding to each information management model.

[0057] As an optional implementation manner of an embodiment of the present invention, the acquisition unit is specifically used to determine a target-specific information management model, which is a specific information management model corresponding to the target information management model; obtain field attributes that need to be included in the index data of the target-specific information management model; obtain field attributes that need to be included in the index data of the common information management model inherited by the target-specific information management model; and combine the field attributes that need to be included in the index data of the target-specific information management model and the field attributes that need to be included in the index data of the common information management model inherited by the target-specific information management model into the second attribute set.

[0058] As an optional implementation of the embodiment of the present invention, the storage database is a database based on distributed file storage.

[0059] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to enable the electronic device to implement the information management method described in any of the above embodiments when executing the computer program.

[0060] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which, when the computer program is executed by a computing device, enables the computing device to implement the information management method described in any of the above embodiments.

[0061] In a fifth aspect, an embodiment of the present invention provides a computer program product, which, when executed on a computer, enables the computer to implement the information management method described in any one of the above-mentioned embodiments.

[0062] The information management method provided by the embodiment of the present invention, when managing information to be managed, first determines the information management model corresponding to the information to be managed, then obtains a first attribute set consisting of storage attributes that need to be stored in the information management model corresponding to the information to be managed, then extracts the fields corresponding to each storage attribute in the first attribute set from the information to be managed, and generates storage data based on the fields corresponding to each storage attribute in the first attribute set and the target field for identifying the information management model corresponding to the information to be managed, and finally stores the storage data in a storage database. Since the information management method provided by the embodiment of the present invention can generate storage data of the original data based on the information management model corresponding to the original data, and store the storage data in a storage database including storage locations for storing fields corresponding to the storage attributes of each information management model, the embodiment of the present invention can classify and store the information to be managed based on the information management model, and save the storage data of all the information to be managed in the same storage database, thereby realizing rapid retrieval or display of information corresponding to each information management model. Therefore, the embodiment of the present invention can reduce the storage cost of information and improve the retrieval efficiency of information. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0064] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0065] Figure 1 A flowchart of the steps of the information management method provided by an embodiment of the present invention;

[0066] Figure 2 This is a schematic diagram of the structure of the information management system provided by an embodiment of the present invention;

[0067] Figure 3 The second structural diagram of the information management system provided by the embodiment of the present invention;

[0068] Figure 4 This is a schematic diagram of the structure of the information management device provided by an embodiment of the present invention;

[0069] Figure 5 A second structural diagram of the information management device provided by an embodiment of the present invention;

[0070] Figure 6A schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0071] In order to more clearly understand the above-mentioned objectives, features and advantages of the present invention, the scheme of the present invention will be further described below. It should be noted that, in the absence of conflict, the embodiments of the present invention and the features therein can be combined with each other.

[0072] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present invention, rather than all the embodiments.

[0073] In the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present invention should not be interpreted as being preferred or advantageous over other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner. In addition, in the description of the embodiments of the present invention, unless otherwise specified, the meaning of "a plurality" refers to two or more.

[0074] The embodiment of the present invention provides an information management method, referring to Figure 1 As shown, the information management method includes the following steps:

[0075] S11. Determine the target information management model.

[0076] The target information management model is an information management model corresponding to the information to be managed.

[0077] That is, determine the information management model corresponding to the information to be managed.

[0078] As an optional implementation of the embodiment of the present invention, one implementation of step S11 (determining the target information management model) is as follows:

[0079] In response to an operation on the information to be managed, the target information management model is determined.

[0080] As an optional implementation of the embodiment of the present invention, another implementation of the above step S11 (determining the information management model corresponding to the information to be managed) is:

[0081] The information management model corresponding to the information to be managed is determined according to the preset attributes of the information to be managed.

[0082] Exemplarily, the preset attributes may include: the source of the information to be managed, the collection path of the information to be managed, etc.

[0083] S12. Obtain a first attribute set.

[0084] The first attribute set is a set of field attributes that need to be included in the storage data of the target information management model.

[0085] Specifically, any information management model in the embodiments of the present invention specifies field attributes that need to be included in the stored data. The field attributes required to be included in the stored data may be one or more. After obtaining the target information management model, the field attributes required to be included in the stored data of the target information management model may be combined to obtain the first attribute set.

[0086] S13: Extract fields corresponding to each field attribute in the first attribute set from the information to be managed to generate a first field set.

[0087] Exemplarily, when the information to be managed is:

[0088]

[0089]

[0090] The field attributes that need to be included in the storage data of the target information management model include: product number, product name, price, description, picture, freight, and weight. The first attribute set obtained is: {product number, product name, price, description, picture, freight, weight}, and the first field set is: {1234, keyboard, 248 yuan, mini portable membrane keyboard ergonomic design peripheral dedicated, picture 1, free shipping, 822g}.

[0091] S14. Generate storage data according to the first field set and the target field.

[0092] The target field is used to identify the information management model corresponding to the information to be managed.

[0093] Continuing with the above example, the first field set is: {1234, keyboard, 248 yuan, mini portable membrane keyboard ergonomically designed peripheral, picture 1, free shipping, 822g}. When the target information management model is a product information management model, and the target field used to identify the product information management model is "product information management model", the storage data generated according to the first field set and the target field is: {1234, keyboard, 248 yuan, mini portable membrane keyboard ergonomically designed peripheral, picture 1, free shipping, 822g, product information management model}.

[0094] S15. Storing the stored data in a storage database.

[0095] The storage database includes storage locations for storing fields corresponding to field attributes that need to be included in the storage data of each information management model.

[0096] For example, when the information management system includes three information management models, namely information management model A, information management model B, and information management model C, and the field attributes required to be included in the stored data of information management model A include: F1, F2, F3, and F4, the field attributes required to be included in the stored data of information management model B include: F3, F5, F6, and F7, and the field attributes required to be included in the stored data of information management model C include: F1, F4, F8, F9, and F10, then the storage database includes storage locations for storing fields corresponding to field attributes F1, F2, F3, F4, F5, F6, F7, F8, F9, and F10. In addition, the storage database may also include storage locations for storing fields of the information management model corresponding to identification information.

[0097] As an optional implementation of the embodiment of the present invention, the storage database is a database based on distributed file storage.

[0098] Exemplarily, the distributed file storage database used in the present invention may be MongoDB. Specifically, MongoDB is an open-source database written in C++ and based on distributed file storage. MongoDB stores data as a document, whose data structure consists of key-value pairs (key=>value).

[0099] The information management method provided by the embodiment of the present invention, when managing information to be managed, first determines the information management model corresponding to the information to be managed, then obtains a first attribute set consisting of storage attributes that need to be stored in the information management model corresponding to the information to be managed, then extracts the fields corresponding to each storage attribute in the first attribute set from the information to be managed, and generates storage data based on the fields corresponding to each storage attribute in the first attribute set and the target field for identifying the information management model corresponding to the information to be managed, and finally stores the storage data in a storage database. Since the information management method provided by the embodiment of the present invention can generate storage data of the original data based on the information management model corresponding to the original data, and store the storage data in a storage database including storage locations for storing fields corresponding to the storage attributes of each information management model, the embodiment of the present invention can classify and store the information to be managed based on the information management model, and save the storage data of all the information to be managed in the same storage database, thereby realizing rapid retrieval or display of information corresponding to each information management model. Therefore, the embodiment of the present invention can reduce the storage cost of information and improve the retrieval efficiency of information.

[0100] As an optional implementation of the embodiment of the present invention, Figure 1 On the basis of the embodiment shown, after determining the target information management model, the information management method provided by the embodiment of the present invention further includes the following steps a to e:

[0101] Step a: Obtain a second attribute set.

[0102] The second attribute set is a set of field attributes that need to be included in the index data of the target information management model.

[0103] That is, any information management model in the embodiment of the present invention not only specifies the field attributes that need to be included in the stored data, but also specifies the field attributes that need to be included in the index data. Therefore, after obtaining the target information management model, the field attributes that need to be included in the index data of the target information management model can be combined to obtain the second attribute set.

[0104] Step b: extracting the fields corresponding to each field attribute in the second attribute set from the information to be managed to generate a second field set.

[0105] As described in the above example, when the field attributes required to be included in the index data of the target information management model include: product number and product name, the second attribute set is: {product number, product name}, and the second field set is: {1234, keyboard}.

[0106] Step c: Generate index data based on the second field set and the target field.

[0107] Continuing with the above example, the second field set is: {1234, keyboard}. When the target information management model is the product information management model, and the target field used to identify the product information management model is "product information management model", the index data generated according to the second segment set and the target field is: {1234, keyboard, product information management model}.

[0108] Step d: storing the index data in a retrieval database.

[0109] The search database includes storage locations for storing fields corresponding to field attributes that need to be included in the index data of each information management model.

[0110] For example, when the information management system includes three information management models, namely information management model A, information management model B, and information management model C, and the field attributes required to be included in the index data of information management model A include: F1, F2, and F3, the field attributes required to be included in the stored data of information management model B include: F3 and F4, and the field attributes required to be included in the stored data of information management model C include: F1, F4, and F5, then the retrieval database includes storage locations for storing fields corresponding to field attributes F1, F2, F3, F4, and F5. In addition, the storage database may also include storage locations for storing fields of the information management model corresponding to identification information.

[0111] Since the search database includes storage locations for storing fields corresponding to field attributes that need to be included in the index data of each information management model, the search database can store the index data of each information management model.

[0112] Step e: constructing a service for retrieving information based on the retrieval database.

[0113] As an optional implementation of the embodiment of the present invention, a service for retrieving information is constructed based on the search database, including:

[0114] A service for retrieving information is constructed based on the retrieval database and a Lucene-based search server.

[0115] The Lucene-based search server may be elastic search.

[0116] The above embodiments construct an information retrieval database, and construct a service for retrieving information based on the retrieval database. Therefore, the above embodiments can realize information retrieval based on specified fields, thereby further improving information retrieval efficiency.

[0117] As an optional implementation of the embodiment of the present invention, before the above step S11 (determining the target information management model), the information management method provided by the embodiment of the present invention further includes:

[0118] Establish information management models corresponding to each scenario and / or field, and configure the field attributes that need to be included in the storage data of each information management model and the field attributes that need to be included in the index data of each information management model.

[0119] For example, based on publicly available information and starting from the problems that the information is intended to solve, information management models corresponding to various scenarios and / or fields can be established. Each information management model is designed to specifically solve a certain type of problem. For example, the information management model for video recommendation is specifically used to solve the problem of how to select recommended videos, and the information management model for product recommendation is specifically used to solve the problem of how to select recommended products. In this way, different information management models can be designed for different scenarios and / or fields, thereby solving the needs for information retrieval and display in specific scenarios and / or fields.

[0120] As an optional implementation of the embodiment of the present invention, based on the above embodiment, the information management method provided by the embodiment of the present invention further includes the following steps 1 to 4:

[0121] Step 1: Get the third attribute set.

[0122] The third attribute set is the intersection of field attributes that need to be included in the storage data of each information management model.

[0123] By way of example, the following describes an embodiment of the present invention using an information management system comprising two information management models, information management model X and information management model Y, where the field attributes required to be included in the stored data of information management model X include: F1, F2, F3, F4, and F6, and the field attributes required to be included in the stored data of information management model Y include: F1, F3, F5, and F6. Since the intersection of the field attributes required to be included in the stored data of each information management model is: {F1, F3, F6}, the third attribute set is: {F1, F3, F6}.

[0124] Step 2: Establish a common information management model and dedicated information management models corresponding to each information management model, and configure the dedicated information management models corresponding to each information management model to inherit the common information management model.

[0125] Specifically, in the embodiment of the present invention, the inheritance of the public information management model by the dedicated information management model means that the field attributes required to be included in the storage data of the public information management model will be used as the field attributes required to be included in the storage data of the dedicated information management model that inherits the public information management model.

[0126] Step 3: Configure each attribute in the third attribute set as a field attribute that needs to be included in the storage data of the public information management model.

[0127] As described in the above example, the third attribute set is: {F1, F3, F6}, so the field attributes that need to be included in the storage data of the public information management model include: F1, F3 and F6.

[0128] Step 4: configure the other field attributes required to be included in the storage data of each information management model except the field attributes in the third attribute set as the field attributes required to be included in the storage data of the dedicated information management model corresponding to each information management model.

[0129] Continuing with the above example, the field attributes that need to be included in the stored data of the information management model X include: F1, F2, F3, F4, and F6; the field attributes that need to be included in the stored data of the information management model Y include: F1, F3, F5, and F6; the third attribute set is: {F1, F3, F6}. Therefore, the field attributes that need to be included in the stored data of the information management model X, except for the field attributes in the third attribute set, include: F2 and F4; the field attributes that need to be included in the stored data of the information management model Y, except for the field attributes in the third attribute set, include: F5. Therefore, the field attributes that need to be included in the stored data of the dedicated information management model corresponding to the configuration information management model X include: F2 and F4; the field attributes that need to be included in the stored data of the dedicated information management model corresponding to the configuration information management model X include: F5.

[0130] For example, refer to Figure 2 The schematic diagram of the architecture of the information management system shown. The information management system includes three information management models: information management model 21, information management model 22, and information management model 23. Among them, information management model 21 is a public information management model inherited by information management model 22 and information management model 23, and information management model 22 and information management model 23 are proprietary information management models corresponding to information management model X and information management model Y, respectively. The field attributes that need to be included in the storage data of information management model 21 include: F1, F3, and F6, the field attributes that need to be included in the storage data of information management model 22 include: F2, F4, and the field attributes that need to be included in the storage data of information management model 23 include: F5. The retrieval database includes storage locations for storing F1, F2, F3, F4, F5, and the fields corresponding to F5. Information management model X can be split into information management model 21 and information management model 22, information management model Y can be split into information management model 21 and information management model 23, information management model 21 and information management model 22 can be combined into information management model X, and information management model 21 and information management model 23 can be combined into information management model Y.

[0131] Based on the above embodiment, the implementation of step S12 (obtaining the first attribute set) includes the following steps 121 to 124:

[0132] Step 121: Determine the target-specific information management model.

[0133] The target-specific information management model is a dedicated information management model corresponding to the target information management model.

[0134] Step 122: Obtain the field attributes that need to be included in the storage data of the target-specific information management model.

[0135] Step 123: Acquire the field attributes that need to be included in the storage data of the common information management model inherited by the target specific information management model.

[0136] Step 124: Combine the field attributes required to be included in the storage data of the target-specific information management model and the field attributes required to be included in the storage data of the common information management model inherited by the target-specific information management model into the first attribute set.

[0137] That is, when processing information, first determine the proprietary information management model corresponding to the information to be managed, determine the field attributes that need to be included in the stored data through the proprietary information management model corresponding to the information to be managed and the public information management model it inherits, and then extract the corresponding fields from the information to be managed. Finally, based on all the extracted field values ​​and target identifiers, a complete storage data is formed and stored in the storage database.

[0138] As an optional implementation of the embodiment of the present invention, based on the above embodiment, the information management method provided by the embodiment of the present invention further includes the following steps I to IV:

[0139] Step I: Get the fourth attribute set.

[0140] The fourth attribute set is an intersection of field attributes that need to be included in the index data of each information management model.

[0141] Continuing with the above embodiment, the present invention will be described using an example where the index data of information management model X requires field attributes F3 and F4, while the index data of information management model Y requires field attributes F1 and F3. Since the intersection of the required field attributes in the index data of each information management model is {F3}, the fourth attribute set is {F3}.

[0142] Step II: Establish a common information management model and dedicated information management models corresponding to each information management model, and configure the dedicated information management models corresponding to each information management model to inherit the common information management model.

[0143] Specifically, in the embodiment of the present invention, the inheritance of the public information management model by the dedicated information management model means that the field attributes required to be included in the index data of the public information management model will be used as the field attributes required to be included in the index data of the dedicated information management model that inherits the public information management model.

[0144] Step III: configuring each attribute in the fourth attribute set as a field attribute that needs to be included in the index data of the public information management model.

[0145] As described in the above example, the fourth attribute set is: {F3}, so the field attributes that need to be included in the storage data of the public information management model include: F3.

[0146] Step IV: configure the other field attributes required to be included in the index data of each information management model, except for the field attributes in the fourth attribute set, as the field attributes required to be included in the storage data of the dedicated information management model corresponding to each information management model.

[0147] Continuing with the above example, the field attributes that need to be included in the index data of information management model X include: F3 and F4, the field attributes that need to be included in the index data of information management model Y include: F1 and F3, and the fourth attribute set is: {F3}. Therefore, the field attributes that need to be included in the index data of information management model X, except for the field attributes in the fourth attribute set, include: F4, and the field attributes that need to be included in the index data of information management model Y, except for the field attributes in the fourth attribute set, include: F1. Therefore, the field attributes that need to be included in the storage data of the dedicated information management model corresponding to the configuration information management model X include: F4, and the field attributes that need to be included in the storage data of the dedicated information management model corresponding to the configuration information management model Y include: F1.

[0148] For example, refer to Figure 3The schematic diagram of the architecture of the information management system shown. The information management system includes three information management models, namely, information management model 21, information management model 22, and information management model 23. Among them, information management model 21 is a common information management model inherited by information management model 22 and information management model 23, and information management model 22 and information management model 23 are proprietary information management models corresponding to information management model X and information management model Y, respectively. The field attributes that need to be included in the storage data of information management model 21 include: F1, F3, and F6, the field attributes that need to be included in the storage data of information management model 22 include: F2, F4, and the field attributes that need to be included in the storage data of information management model 23 include: F5. The field attributes that need to be included in the index data of information management model 21 include: F3, the field attributes that need to be included in the index data of information management model 22 include: F4, and the field attributes that need to be included in the index data of information management model 23 include: F1. The retrieval database includes storage locations for storing fields corresponding to F1, F3, and F4. Information management model X can be split into information management model 21 and information management model 22, information management model Y can be split into information management model 21 and information management model 23, information management model 21 and information management model 22 can be combined into information management model X, and information management model 21 and information management model 23 can be combined into information management model Y.

[0149] As the number of required scenarios and / or fields increases, the number of information management models that need to be constructed will also increase accordingly. If all information management models are formulated and constructed from scratch, it will be a great waste of time and energy. Based on the commonalities between information management models and information management models, the above embodiment extracts the field attributes corresponding to the information management model (the field attributes that the storage data needs to include and the field attributes that the index data needs to include), extracts the intersection of the field attributes corresponding to all information management models as the field attributes corresponding to the public information management model, and then configures all proprietary information management models to inherit this public domain model. In this way, the subsequent definitions of all proprietary domain models only need to define those unique parts, so the above embodiment can reduce the construction cost of the information management model.

[0150] Based on the above embodiment, the implementation of the step of obtaining the second attribute set in the above embodiment includes the following steps a1 to a4:

[0151] Step a1: Determine the target-specific information management model.

[0152] The target-specific information management model is a dedicated information management model corresponding to the target information management model.

[0153] Step a2: Obtain the field attributes that need to be included in the index data of the target-specific information management model.

[0154] Step a3: Acquire the field attributes that need to be included in the index data of the common information management model inherited by the target dedicated information management model.

[0155] Step a4: Combine the field attributes required to be included in the index data of the target-specific information management model and the field attributes required to be included in the index data of the common information management model inherited by the target-specific information management model into the second attribute set.

[0156] That is, when processing information, the proprietary information management model corresponding to the information to be managed is first determined, and the field attributes that need to be included in the index data are determined through the proprietary information management model corresponding to the information to be managed and the public information management model it inherits. Then, the corresponding fields are extracted from the information to be managed. Finally, based on all the extracted field values ​​and target identifiers, a complete index data is formed and stored in the retrieval database.

[0157] Based on the same inventive concept, as an implementation of the above method, an embodiment of the present invention further provides an information management device, which corresponds to the above method embodiment. For ease of reading, this embodiment will no longer repeat the details of the above method embodiment one by one, but it should be clear that the device in this embodiment can correspond to and implement all the contents of the above method embodiment.

[0158] An embodiment of the present invention provides an information management device, Figure 4 is a structural diagram of the information management device, such as Figure 4 As shown, the information management device 400 includes:

[0159] A determining unit 41 is configured to determine a target information management model, where the target information management model is an information management model corresponding to the information to be managed;

[0160] An acquiring unit 42 is configured to acquire a first attribute set, where the first attribute set is a set of field attributes that need to be included in the storage data of the target information management model;

[0161] An extraction unit 43 is configured to extract a field corresponding to each field attribute in the first attribute set from the information to be managed, to generate a first field set;

[0162] A generating unit 44 is configured to generate storage data according to the first field set and a target field; the target field is used to identify the target information management model;

[0163] The processing unit 45 is configured to store the storage data into a storage database; the storage database includes storage locations for storing fields corresponding to field attributes required to be included in the storage data of each information management model.

[0164] As an optional implementation of the embodiment of the present invention,

[0165] The acquisition unit 42 is further configured to acquire a second attribute set, where the second attribute set is a set of field attributes that need to be included in the index data of the target information management model;

[0166] The extraction unit 43 is further configured to extract a field corresponding to each field attribute in the second attribute set from the information to be managed, to generate a second field set;

[0167] The generating unit 44 is further configured to generate index data according to the second field set and the target field;

[0168] The processing unit 45 is further configured to store the index data in a retrieval database, wherein the retrieval database includes storage locations for storing fields corresponding to field attributes required to be included in the index data of each information management model, and constructing a service for retrieving information based on the retrieval database.

[0169] As an optional implementation of the embodiment of the present invention, refer to Figure 5 As shown, the information management device 400 provided by the embodiment of the present invention further includes:

[0170] The construction unit 46 is used to establish information management models corresponding to various scenarios and / or fields, and configure field attributes that need to be included in the storage data of each information management model and field attributes that need to be included in the index data of each information management model.

[0171] As an optional implementation manner of an embodiment of the present invention, the construction unit 46 is also used to obtain a third attribute set, which is the intersection of field attributes that need to be included in the storage data of each information management model; establish a common information management model and a special information management model corresponding to each information management model, and configure the special information management model corresponding to each information management model to inherit the common information management model; configure each attribute in the third attribute set as a field attribute that needs to be included in the storage data of the common information management model; configure other field attributes of the field attributes that need to be included in the storage data of each information management model except the field attributes in the third attribute set as field attributes that need to be included in the storage data of the special information management model corresponding to each information management model.

[0172] As an optional implementation manner of an embodiment of the present invention, the acquisition unit 42 is specifically used to determine a target-specific information management model, which is a specific information management model corresponding to the target information management model; obtain field attributes that need to be included in the storage data of the target-specific information management model; obtain field attributes that need to be included in the storage data of the common information management model inherited by the target-specific information management model; and combine the field attributes that need to be included in the storage data of the target-specific information management model and the field attributes that need to be included in the storage data of the common information management model inherited by the target-specific information management model into the first attribute set.

[0173] As an optional implementation manner of an embodiment of the present invention, the construction unit 46 is also used to obtain a fourth attribute set, which is the intersection of field attributes that need to be included in the index data of each information management model; establish a common information management model and a special information management model corresponding to each information management model; configure each attribute in the fourth attribute set as a field attribute that needs to be included in the index data of the common information management model; configure other field attributes of the field attributes that need to be included in the index data of each information management model except the field attributes in the fourth attribute set as field attributes that need to be included in the index data of the special information management model corresponding to each information management model.

[0174] As an optional implementation manner of an embodiment of the present invention, the acquisition unit 42 is specifically used to determine a target-specific information management model, which is a specific information management model corresponding to the target information management model; obtain field attributes that need to be included in the index data of the target-specific information management model; obtain field attributes that need to be included in the index data of the common information management model inherited by the target-specific information management model; and combine the field attributes that need to be included in the index data of the target-specific information management model and the field attributes that need to be included in the index data of the common information management model inherited by the target-specific information management model into the second attribute set.

[0175] As an optional implementation of the embodiment of the present invention, the storage database is a database based on distributed file storage.

[0176] The information management device provided in this embodiment can execute the information management method provided in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here.

[0177] Based on the same inventive concept, an embodiment of the present invention further provides an electronic device. Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Figure 6 As shown, the electronic device provided by this embodiment includes: a memory 601 and a processor 602, the memory 601 is used to store computer programs; the processor 602 is used to execute the information management method provided by the above embodiment when executing the computer program.

[0178] Based on the same inventive concept, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computing device implements the information management method provided in the above embodiment.

[0179] Based on the same inventive concept, an embodiment of the present invention further provides a computer program product. When the computer program product is run on a computer, the computing device implements the information management method provided in the above embodiment.

[0180] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.

[0181] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0182] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0183] Computer-readable media includes both permanent and non-permanent, removable and non-removable storage media. Storage media can implement any method or technology for storing information, which can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change RAM (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.

[0184] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. An information management method, characterized in that: include: Determining a target information management model, where the target information management model is an information management model corresponding to the information to be managed; Acquire a first attribute set, where the first attribute set is a set of field attributes that need to be included in the storage data of the target information management model; Extracting a field corresponding to each field attribute in the first attribute set from the information to be managed to generate a first field set; Generate storage data according to the first field set and the target field; The target field is used to identify the target information management model; storing the stored data in a storage database; The storage database includes a storage location for storing fields corresponding to field attributes required to be included in the storage data of each information management model; Before determining the target information management model, the method further includes: Establish information management models corresponding to each scenario and / or field, and configure the field attributes that need to be included in the storage data of each information management model and the field attributes that need to be included in the index data of each information management model; Obtaining a third attribute set, where the third attribute set is an intersection of field attributes that need to be included in the storage data of each information management model; Establishing a common information management model and dedicated information management models corresponding to each information management model, and configuring the dedicated information management models corresponding to each information management model to inherit the common information management model; Configuring each attribute in the third attribute set as a field attribute that needs to be included in the storage data of the common information management model; The other field attributes required to be included in the storage data of each information management model except the field attributes in the third attribute set are configured as the field attributes required to be included in the storage data of the dedicated information management model corresponding to each information management model.

2. The method according to claim 1, characterized in that After determining the target information management model, the method further includes: Acquire a second attribute set, where the second attribute set is a set consisting of field attributes that need to be included in the index data of the target information management model; Extracting a field corresponding to each field attribute in the second attribute set from the information to be managed to generate a second field set; Generate index data according to the second field set and the target field; Storing the index data in a retrieval database, wherein the retrieval database includes a storage location for storing fields corresponding to field attributes required to be included in the index data of each information management model; A service for searching information is constructed based on the search database.

3. The method according to claim 1, characterized in that The obtaining of the first attribute set includes: Determining a target-specific information management model, wherein the target-specific information management model is a dedicated information management model corresponding to the target information management model; Acquire field attributes that need to be included in the storage data of the target-specific information management model; Acquire field attributes that need to be included in the storage data of the common information management model inherited by the target dedicated information management model; The field attributes required to be included in the storage data of the target-specific information management model and the field attributes required to be included in the storage data of the common information management model inherited by the target-specific information management model are combined into the first attribute set.

4. The method according to claim 1, wherein The method further comprises: Obtaining a fourth attribute set, where the fourth attribute set is an intersection of field attributes that need to be included in the index data of each information management model; Establish a public information management model and dedicated information management models corresponding to each information management model; Configuring each attribute in the fourth attribute set as a field attribute that needs to be included in the index data of the public information management model; The other field attributes except the field attributes in the fourth attribute set among the field attributes required to be included in the index data of each information management model are configured as the field attributes required to be included in the index data of the dedicated information management model corresponding to each information management model.

5. The method according to claim 2, characterized in that The obtaining of the second attribute set includes: Determining a target-specific information management model, wherein the target-specific information management model is a dedicated information management model corresponding to the target information management model; Obtaining field attributes that need to be included in the index data of the target-specific information management model; Acquire field attributes that need to be included in index data of the common information management model inherited by the target dedicated information management model; The field attributes required to be included in the index data of the target-specific information management model and the field attributes required to be included in the index data of the common information management model inherited by the target-specific information management model are combined into the second attribute set.

6. The method according to any one of claims 1 to 5, characterized in that The storage database is a database based on distributed file storage.

7. An information management device, characterized in that: include: a determining unit, configured to determine a target information management model, wherein the target information management model is an information management model corresponding to the information to be managed; An acquiring unit, configured to acquire a first attribute set, where the first attribute set is a set of field attributes that need to be included in the storage data of the target information management model; an extraction unit, configured to extract a field corresponding to each field attribute in the first attribute set from the information to be managed, to generate a first field set; a generating unit, configured to generate storage data according to the first field set and a target field; The target field is used to identify the target information management model; A processing unit, configured to store the stored data into a storage database; The storage database includes a storage location for storing fields corresponding to field attributes required to be included in the storage data of each information management model; A construction unit is used to establish information management models corresponding to various scenarios and / or fields, and configure field attributes that need to be included in the storage data of each information management model and field attributes that need to be included in the index data of each information management model; The construction unit is also used to obtain a third attribute set, which is the intersection of field attributes that need to be included in the storage data of each information management model; establish a common information management model and a special information management model corresponding to each information management model, and configure the special information management model corresponding to each information management model to inherit the common information management model; configure each attribute in the third attribute set as a field attribute that needs to be included in the storage data of the common information management model; configure other field attributes of the field attributes that need to be included in the storage data of each information management model except the field attributes in the third attribute set as field attributes that need to be included in the storage data of the special information management model corresponding to each information management model.

8. An electronic device, characterized in that: include: A memory and a processor, wherein the memory is used to store a computer program; and the processor is used to enable the electronic device to implement the information management method according to any one of claims 1 to 6 when executing the computer program.

Citation Information

Patent Citations

  • Model configuration method and apparatus, and electronic device

    CN108459842A