CN114020743A - Information management method and device - Google Patents

Information management method and device Download PDF

Info

Publication number
CN114020743A
CN114020743A CN202111290477.4A CN202111290477A CN114020743A CN 114020743 A CN114020743 A CN 114020743A CN 202111290477 A CN202111290477 A CN 202111290477A CN 114020743 A CN114020743 A CN 114020743A
Authority
CN
China
Prior art keywords
information management
management model
field
target
attribute
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
CN202111290477.4A
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.)
Shandong Kurui Technology Co ltd
Beijing Qury Technology Co ltd
Original Assignee
Shandong Kurui Technology Co ltd
Beijing Qury 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 Shandong Kurui Technology Co ltd, Beijing Qury Technology Co ltd filed Critical Shandong Kurui Technology Co ltd
Priority to CN202111290477.4A priority Critical patent/CN114020743A/en
Publication of CN114020743A publication Critical patent/CN114020743A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24553Query execution of query operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides an information management method and device, and relates to the technical field of information processing. The method comprises the following steps: determining a target information management model, wherein the target information management model is an information management model corresponding to information to be managed; acquiring a first attribute set, wherein the first attribute set is a set formed by field attributes required to be contained in the storage data of the target information management model; extracting 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 according to the first field set and the target field; the target field is used for identifying a target information management model; storing the storage data in a storage database; the storage database comprises storage positions for storing fields corresponding to field attributes required to be contained in the storage data of each information management model. The embodiment of the invention is used for reducing the storage cost of the information and improving the retrieval efficiency of the information.

Description

Information management method and device
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to an information management method and apparatus.
Background
With the development of information technology, the variety of information is more and more, and the expression form of information is more and more diversified. For example, the key fields of the commodity information generally have price, model and weight, and the key fields of the news information generally have release time, place and content. As the types of information become more and more diverse, without a good method of data storage and retrieval, the information becomes chaotic and difficult to use, and thus, does not have its value.
The information storage mode commonly used in the prior art is as follows: the information is classified according to key fields contained in the information, a storage database is established for the same type of information, and the information is specially stored. Such as: in the case that some key fields of information include a field a, a field B, and a field C, and some key fields of information include a field B, a field D, and a field G, the prior art divides the information into three types of information according to the key fields included in the information, where the first type of information is information in which the key fields include the field a, the field B, and the field C, the second type of information is information in which the key fields include the field a, the field C, the field D, and the field E, and the third type of information is information in which the key fields include the field B, the field D, the field F, and the field G, and three storage databases are established, and are used for storing the first type of information, the second type of information, and the third type of information, respectively. However, as the information expression forms are more and more diversified, the storage databases to be managed and maintained by the information management method in the prior art become more and more, and when the information in each storage database is comprehensively utilized based on specific applications, the storage databases to be searched are more and more, so that the information management method in the prior art causes the storage cost of the information to be higher and the searching efficiency to be lower.
Disclosure of Invention
In view of the above, the present invention provides an information management method and apparatus for reducing storage cost of information and improving retrieval efficiency of information.
In order to achieve the above object, the embodiments of the present invention provide the following technical solutions:
in a first aspect, an embodiment of the present invention provides an information management method, including:
determining a target information management model, wherein the target information management model is an information management model corresponding to information to be managed;
acquiring a first attribute set, wherein the first attribute set is a set formed by field attributes required to be contained in the storage data of the target information management model;
extracting 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 according to the first field set and the target field; the target field is used for identifying the target information management model;
storing the stored data in a storage database; the storage database comprises storage positions for storing fields corresponding to field attributes required to be contained in the storage data of each information management model.
As an optional implementation manner of the embodiment of the present invention, after determining the target information management model, the method further includes:
acquiring a second attribute set, wherein the second attribute set is a set formed by field attributes required to be contained in the index data of the target information management model;
extracting fields corresponding to each field attribute in the second attribute set from the information to be managed to generate a second field set;
generating index data according to the second field set and the target field;
storing the index data into a retrieval database, wherein the retrieval database comprises storage positions used for storing fields corresponding to field attributes required to be contained in the index data of each information management model;
and constructing a service for retrieving information according to the retrieval database.
As an optional implementation manner of the embodiment of the present invention, before determining the target information management model, the method further includes:
and establishing information management models corresponding to the scenes and/or the fields, and configuring field attributes required to be contained in the storage data of each information management model and field attributes required to be contained in the index data of each information management model.
As an optional implementation manner of the embodiment of the present invention, the method further includes:
acquiring a third attribute set, wherein the third attribute set is an intersection of field attributes required to be contained in the storage data of each information management model;
establishing a public information management model and a special information management model corresponding to each information management model, and configuring the special information management model corresponding to each information management model to inherit the public information management model;
configuring each attribute in the third attribute set as a field attribute which needs to be contained in the storage data of the public information management model;
and configuring other field attributes except the field attributes in the third attribute set in the field attributes required to be contained in the storage data of each information management model as the field attributes required to be contained in the storage data of the special information management model corresponding to each information management model.
As an optional implementation manner of the embodiment of the present invention, the acquiring the first attribute set includes:
determining a target special information management model, wherein the target special information management model is a special information management model corresponding to the target information management model;
acquiring field attributes required to be contained in the storage data of the target special information management model;
acquiring field attributes required to be contained in storage data of the common information management model inherited by the target special information management model;
and combining the field attribute required to be contained in the storage data of the acquired target special information management model and the field attribute required to be contained in the storage data of the shared information management model inherited by the target special information management model into the first attribute set.
As an optional implementation manner of the embodiment of the present invention, the method further includes:
acquiring a fourth attribute set, wherein the fourth attribute set is an intersection of field attributes required to be contained in the index data of each information management model;
establishing a public information management model and a special information management model corresponding to each information management model;
configuring each attribute in the fourth attribute set as a field attribute which needs to be contained in index data of the public information management model;
and configuring other field attributes except the field attributes in the fourth attribute set in the field attributes required to be contained in the index data of each information management model as the field attributes required to be contained in the index data of the special information management model corresponding to each information management model.
As an optional implementation manner of the embodiment of the present invention, the obtaining the second attribute set includes:
determining a target special information management model, wherein the target special information management model is a special information management model corresponding to the target information management model;
acquiring field attributes required to be contained in the index data of the target special information management model;
acquiring field attributes required to be contained in index data of the common information management model inherited by the target special information management model;
and combining the field attribute required to be contained in the acquired index data of the target special information management model and the field attribute required to be contained in the index data of the common information management model inherited by the target special information management model into the second attribute set.
As an optional implementation manner of the embodiment of the present invention, the storage database is a database based on distributed file storage.
In a second aspect, an embodiment of the present invention provides an information management apparatus, including:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining a target information management model which is an information management model corresponding to information to be managed;
an obtaining unit, configured to obtain a first attribute set, where the first attribute set is a set formed by field attributes that need to be included in storage data of the target information management model;
an extracting unit, configured to extract, from the information to be managed, a field corresponding to each field attribute in the first attribute set, and generate a first field set;
the generating unit is used for generating storage data according to the first field set and the target field; the target field is used for identifying the target information management model;
the processing unit is used for storing the storage data into a storage database; the storage database comprises storage positions for storing fields corresponding to field attributes required to be contained in the storage data of each information management model.
As an alternative implementation of the embodiment of the present invention,
the acquiring unit is further configured to acquire a second attribute set, where the second attribute set is a set formed by field attributes that need to be included in the index data of the target information management model;
the extracting unit is further configured to extract a field corresponding to each field attribute in the second attribute set from the information to be managed, and generate a second field set;
the generating unit is further configured to generate index data according to the second field set and the target field;
the processing unit is further configured to store the index data in a retrieval database, where the retrieval database includes a storage location for storing a field corresponding to a field attribute that needs to be included in the index data of each information management model, and construct a service for retrieving information according to the retrieval database.
As an optional implementation manner of the embodiment of the present invention, the information management apparatus further includes:
and the construction unit is used for establishing information management models corresponding to various scenes and/or fields, and configuring field attributes required to be contained in the storage data of the information management models and field attributes required to be contained in the index data of the information management models.
As an optional implementation manner of the embodiment of the present invention, the building unit is further configured to obtain a third attribute set, where the third attribute set is an intersection of field attributes that need to be included in storage data of each information management model; establishing a public information management model and a special information management model corresponding to each information management model, and configuring the special information management model corresponding to each information management model to inherit the public information management model; configuring each attribute in the third attribute set as a field attribute which needs to be contained in the storage data of the public information management model; and configuring other field attributes except the field attributes in the third attribute set in the field attributes required to be contained in the storage data of each information management model as the field attributes required to be contained in the storage data of the special information management model corresponding to each information management model.
As an optional implementation manner of the embodiment of the present invention, the obtaining unit is specifically configured to determine a target specific information management model, where the target specific information management model is a specific information management model corresponding to the target information management model; acquiring field attributes required to be contained in the storage data of the target special information management model; acquiring field attributes required to be contained in storage data of the common information management model inherited by the target special information management model; and combining the field attribute required to be contained in the storage data of the acquired target special information management model and the field attribute required to be contained in the storage data of the shared information management model inherited by the target special information management model into the first attribute set.
As an optional implementation manner of the embodiment of the present invention, the building unit is further configured to obtain a fourth attribute set, where the fourth attribute set is an intersection of field attributes that need to be included in index data of each information management model; establishing a public information management model and a special information management model corresponding to each information management model; configuring each attribute in the fourth attribute set as a field attribute which needs to be contained in index data of the public information management model; and configuring other field attributes except the field attributes in the fourth attribute set in the field attributes required to be contained in the index data of each information management model as the field attributes required to be contained in the index data of the special information management model corresponding to each information management model.
As an optional implementation manner of the embodiment of the present invention, the obtaining unit is specifically configured to determine a target specific information management model, where the target specific information management model is a specific information management model corresponding to the target information management model; acquiring field attributes required to be contained in the index data of the target special information management model; acquiring field attributes required to be contained in index data of the common information management model inherited by the target special information management model; and combining the field attribute required to be contained in the acquired index data of the target special information management model and the field attribute required to be contained in the index data of the common information management model inherited by the target special information management model into the second attribute set.
As an optional implementation manner of the embodiment of the present invention, the storage database is a database based on distributed file storage.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory for storing a computer program and a processor; the processor is configured to, when executing the computer program, enable the electronic device to implement the information management method according to any one of the above embodiments.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where the computer program is executed by a computing device, so that the computing device implements the information management method described in any one of the above embodiments.
In a fifth aspect, an embodiment of the present invention provides a computer program product, which when run on a computer, enables the computer to implement the information management method according to any one of the above embodiments.
When information to be managed is managed, an information management model corresponding to the information to be managed is determined, a first attribute set consisting of storage attributes required to be stored by the information management model corresponding to the information to be managed is obtained, a field corresponding to each storage attribute in the first attribute set is extracted from the information to be managed, stored data is generated according to the field corresponding to each storage attribute in the first attribute set and a target field used for identifying the information management model corresponding to the information to be managed, and finally the stored data is stored in a storage database. According to the information management method provided by the embodiment of the invention, the storage data of the original data can be generated according to the information management model corresponding to the original data, and the storage data is stored in the storage database comprising the storage position of the field corresponding to the storage attribute for storing each information management model, so that the information to be managed can be classified and stored based on the information management model, the storage data of all the information to be managed can be stored in the same storage database, and the information corresponding to each information management model can be quickly retrieved or displayed, therefore, the information storage cost can be reduced and the information retrieval efficiency can be improved.
Drawings
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.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a flowchart illustrating steps of an information management method according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of an information management system according to an embodiment of the present invention;
fig. 3 is a second schematic structural diagram of an information management system according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an information management apparatus according to an embodiment of the present invention;
fig. 5 is a second schematic structural diagram of an information management apparatus according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention may be more clearly understood, a solution of the present invention will be further described below. It should be noted that the embodiments of the present invention and features of the embodiments may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways than those described herein; it is to be understood that the embodiments described in this specification are only some embodiments of the invention, and not all embodiments.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion. Further, in the description of the embodiments of the present invention, "a plurality" means two or more unless otherwise specified.
An embodiment of the present invention provides an information management method, and as shown in fig. 1, the information management method includes the following steps:
and S11, determining a target information management model.
The target information management model is an information management model corresponding to information to be managed.
Namely, an information management model corresponding to the information to be managed is determined.
As an optional implementation manner of the embodiment of the present invention, one implementation manner of the step S11 (determining the target information management model) is:
and responding to the operation of the information to be managed, and determining the target information management model.
As an optional implementation manner of the embodiment of the present invention, another implementation manner of the step S11 (determining the information management model corresponding to the information to be managed) is:
and determining an information management model corresponding to the information to be managed according to the preset attribute of the information to be managed.
For example, the preset attribute may include: the source of the information to be managed, the acquisition path of the information to be managed, and the like.
And S12, acquiring a first attribute set.
The first attribute set is a set composed of field attributes required to be contained in the storage data of the target information management model.
Specifically, in the embodiment of the present invention, any information management model specifies field attributes that need to be included in the storage data, and one or more field attributes that need to be included in the storage data may be included. After the target information management model is obtained, the field attributes that need to be included in the storage data of the target information management model may be combined, so as to obtain the first attribute set.
S13, extracting fields corresponding to each field attribute in the first attribute set from the information to be managed, and generating a first field set.
Illustratively, when the information to be managed is:
Figure BDA0003334692600000091
Figure BDA0003334692600000101
the field attributes required to be contained in the storage data of the target information management model include: commodity number, commodity name, price, description, picture, freight, weight, then the first attribute set that obtains is: { commodity number, commodity name, price, description, picture, freight, weight }, the first set of fields is: {1234, keyboard, 248 yuan, mini portable membrane keyboard ergonomically designed peripheral specific, picture 1, free of freight, 822g }.
And S14, generating storage data according to the first field set and the target field.
The target field is used for identifying an information management model corresponding to the information to be managed.
As described in the above example, the first field set is: {1234, keyboard, 248 yuan, mini portable membrane keyboard ergonomics design peripheral special, picture 1, free of freight, 822g }, when the target information management model is a commodity information management model and the target field for identifying the commodity information management model is "commodity information management model", according to the first field set and the target field, generating storage data as follows: {1234, keyboard, 248 yuan, mini portable membrane keyboard ergonomics design peripheral special, picture 1, free of freight, 822g, merchandise information management module }.
And S15, storing the storage data into a storage database.
The storage database comprises storage positions for storing fields corresponding to field attributes required to be contained in the storage data of each information management model.
For example, when the information management system includes three information management models, namely an information management model a, an information management model B and an information management model C, and the field attributes required to be included in the storage data of the information management model a include: f1, F2, F3, F4, the field attributes that need to be contained in the storage data of the information management model B include: the field attributes required to be contained in the storage data of the information management model C, F3, F5, F6, F7, include: f1, F4, F8, F9 and F10, and the storage database includes storage locations for storing fields corresponding to the field attributes F1, F2, F3, F4, F5, F6, F7, F8, F9 and F10. In addition, the storage database may further include a storage location for storing a field of the information management model corresponding to the identification information.
As an optional implementation manner of the embodiment of the present invention, the storage database is a database based on distributed file storage.
Illustratively, the database based on distributed file storage in the implementation of the present invention may be a MongoDB. Specifically, the MongoDB is an open source database written in the C + + language and based on distributed file storage. MongoDB stores data as one document, and the data structure is composed of key value pairs (key ═ value).
When information to be managed is managed, an information management model corresponding to the information to be managed is determined, a first attribute set consisting of storage attributes required to be stored by the information management model corresponding to the information to be managed is obtained, a field corresponding to each storage attribute in the first attribute set is extracted from the information to be managed, stored data is generated according to the field corresponding to each storage attribute in the first attribute set and a target field used for identifying the information management model corresponding to the information to be managed, and finally the stored data is stored in a storage database. According to the information management method provided by the embodiment of the invention, the storage data of the original data can be generated according to the information management model corresponding to the original data, and the storage data is stored in the storage database comprising the storage position of the field corresponding to the storage attribute for storing each information management model, so that the information to be managed can be classified and stored based on the information management model, the storage data of all the information to be managed can be stored in the same storage database, and the information corresponding to each information management model can be quickly retrieved or displayed, therefore, the information storage cost can be reduced and the information retrieval efficiency can be improved.
As an optional implementation manner of the embodiment of the present invention, on the basis of the embodiment shown in fig. 1, after determining the target information management model, the information management method provided in the embodiment of the present invention further includes the following steps a to e:
and a, acquiring a second attribute set.
The second attribute set is a set composed of field attributes required to be included in the index data of the target information management model.
That is, in the embodiment of the present invention, any information management model not only specifies the field attribute that needs to be included in the stored data, but also specifies the field attribute that needs to be included in the index data, so after the target information management model is obtained, the field attributes that need to be included in the index data of the target information management model may be combined, so as to obtain the second attribute set.
B, extracting fields corresponding to each field attribute in the second attribute set from the information to be managed, and generating a second field set.
As described in the above example, when the field attribute that needs to be included in the index data of the target information management model includes: when the commodity number and the commodity name are used, the second attribute set is as follows: { product number, product name }, the second set of fields is: {1234, keyboard }.
And c, generating index data according to the second field set and the target field.
As described in the above example, the second field set is: {1234, keyboard }, when the target information management model is a product information management model and a target field for identifying the product information management model is a "product information management model", generating index data according to the second segment set and the target field, wherein the index data is: {1234, keyboard, merchandise information management module }.
And d, storing the index data into a retrieval database.
The retrieval database comprises storage positions for storing fields corresponding to field attributes required to be contained in the index data of each information management model.
For example, when the information management system includes three information management models, namely an information management model a, an information management model B and an information management model C, and the field attributes required to be included in the index data of the information management model a include: f1, F2, and F3, the field attributes that need to be included in the storage data of the information management model B include: f3 and F4, the field attributes that need to be included in the storage data of the information management model C include: f1, F4, F5, the search database includes storage locations for storing fields corresponding to the field attributes F1, F2, F3, F4, F5. In addition, the storage database may further include a storage location for storing a field of the information management model corresponding to the identification information.
Since the search database includes a storage location for storing a field corresponding to a field attribute that needs 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.
And e, constructing a service for retrieving information according to the retrieval database.
As an optional implementation manner of the embodiment of the present invention, constructing a service for retrieving information according to the retrieval database includes:
and constructing a service for retrieving information according to the retrieval database and the Lucene-based search server.
Among them, the Lucene-based search server may be an elastic search.
The information retrieval database is constructed by the embodiment, and the service for retrieving the information is constructed on the basis of the retrieval database, so that the embodiment can realize the retrieval of the information on the basis of the specified field, and further improve the information retrieval efficiency.
As an optional implementation manner of the embodiment of the present invention, before step S11 (determining the target information management model), the information management method provided by the embodiment of the present invention further includes:
and establishing information management models corresponding to the scenes and/or the fields, and configuring field attributes required to be contained in the storage data of each information management model and field attributes required to be contained in the index data of each information management model.
For example, based on the disclosed information, from the problem to be solved by the information, information management models corresponding to various scenes and/or fields may be established, and each information management model is designed to specifically solve a certain kind of problem. Such as: in such a way, different information management models can be designed for different scenes and/or fields, so that the requirements on information retrieval and display under specific scenes and/or fields are met.
As an optional implementation manner of the embodiment of the present invention, on the basis of the above embodiment, the information management method provided in the embodiment of the present invention further includes the following steps 1 to 4:
and step 1, acquiring a third attribute set.
The third attribute set is an intersection of field attributes required to be included in the storage data of each information management model.
Illustratively, the following information management system includes two information management models, namely an information management model X and an information management model Y, and the field attributes required to be included in the stored data of the information management model X include: f1, F2, F3, F4, and F6, wherein the field attributes required to be included in the storage data of the information management model Y include: examples of the present invention are illustrated by F1, F3, F5 and F6. The intersection of the field attributes required to be contained in the storage data of each information management model is as follows: { F1, F3, F6}, so the third set of attributes is: { F1, F3, F6 }.
And 2, establishing a public information management model and a special information management model corresponding to each information management model, and configuring the special information management model corresponding to each information management model to inherit the public information management model.
Specifically, in the embodiment of the present invention, when the dedicated information management model inherits the public information management model, the field attribute that needs to be included in the storage data of the public information management model is used as the field attribute that needs to be included in the storage data of the dedicated information management model inheriting the public information management model.
And 3, configuring each attribute in the third attribute set into a field attribute which needs to be contained in the storage data of the public information management model.
As described in the above example, the third attribute set is: { F1, F3, F6}, the field attributes that need to be included in the storage data of the common information management model thus include: f1, F3, and F6.
And 4, configuring other field attributes except the field attributes in the third attribute set in the field attributes required to be contained in the storage data of each information management model into the field attributes required to be contained in the storage data of the special information management model corresponding to each information management model.
As described in the above example, the field attributes that need to be included in the storage data of the information management model X include: f1, F2, F3, F4, and F6, wherein the field attributes required to be included in the storage data of the information management model Y include: f1, F3, F5 and F6, wherein the third attribute set is as follows: { F1, F3, F6}, so the other field attributes, except the field attribute in the third attribute set, in the field attributes that need to be included in the storage data of the information management model X include: f2 and F4, the other field attributes of the field attributes that need to be included in the stored data of the information management model Y, except 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 storage data of the dedicated information management model corresponding to the configuration information management model X include: F5.
for example, refer to the architecture diagram of the information management system shown in fig. 2. The information management system includes three information management models, i.e., an information management model 21, an information management model 22, and an information management model 23. The information management model 21 is a public information management model inherited by the information management model 22 and the information management model 23, and the information management model 22 and the information management model 23 are respectively a proprietary information management model corresponding to the information management model X and the information management model Y. The field attributes that need to be included in the storage data of the information management model 21 include: f1, F3, and F6, the field attributes that need to be included in the storage data of the information management model 22 include: f2 and F4, the field attributes that need to be included in the storage data of the information management model 23 include: F5. the retrieval database comprises storage positions for storing fields corresponding to F1, F2, F3, F4, F5 and F5. The information management model X may be divided into an information management model 21 and an information management model 22, the information management model Y may be divided into an information management model 21 and an information management model 23, the information management model 21 and the information management model 22 may be combined into the information management model X, and the information management model 21 and the information management model 23 may be combined into the information management model Y.
On the basis of the above embodiment, the implementation manner of the above step S12 (obtaining the first attribute set) includes the following steps 121 to 124:
and step 121, determining a target special information management model.
The target special information management model is a special information management model corresponding to the target information management model.
And step 122, acquiring field attributes required to be contained in the storage data of the target special information management model.
And step 123, acquiring field attributes required to be contained in the storage data of the common information management model inherited by the target special information management model.
Step 124, combining the field attribute required to be included in the storage data of the obtained target specific information management model and the field attribute 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.
When information is processed, a special information management model corresponding to the information to be managed is determined, field attributes required to be contained in stored data are determined through the special information management model corresponding to the information to be managed and a inherited public information management model of the information to be managed, corresponding fields are extracted from the information to be managed, finally, a piece of complete stored data is formed according to all extracted field values and target identifications, and the complete stored data is stored in a stored database.
As an optional implementation manner of the embodiment of the present invention, on the basis of the above embodiment, the information management method provided in the embodiment of the present invention further includes the following steps i to iv:
and step I, acquiring a fourth attribute set.
The fourth attribute set is an intersection of field attributes required to be included in the index data of each information management model.
As described in the above embodiment, when the field attribute that needs to be included in the index data of the information management model X includes: f3 and F4, the field attributes that need to be included in the index data of the information management model Y include: examples of the present invention are illustrated by F1 and F3. The intersection of the field attributes required to be included in the index data of each information management model is as follows: { F3}, therefore the fourth set of attributes is: { F3 }.
And step II, establishing a public information management model and a special information management model corresponding to each information management model, and configuring the special information management model corresponding to each information management model to inherit the public information management model.
Specifically, in the embodiment of the present invention, when the dedicated information management model inherits the public information management model, the field attribute that needs to be included in the index data of the public information management model is used as the field attribute that needs to be included in the index data of the dedicated information management model inheriting the public information management model.
And step III, configuring each attribute in the fourth attribute set into a field attribute which needs to be contained in the index data of the public information management model.
As described in the above example, the fourth attribute set is: { F3}, the field attributes that need to be included in the stored data of the common information management model thus include: F3.
and IV, configuring other field attributes except the field attributes in the fourth attribute set in the field attributes required to be contained in the index data of each information management model into the field attributes required to be contained in the storage data of the special information management model corresponding to each information management model.
As described in the above example, the field attributes that need to be included in the index data of the information management model X include: f3 and F4, the field attributes that need to be included in the index data of the information management model Y include: f1, F3, the fourth set of attributes is: { F3}, therefore, the field attributes other than the field attributes in the fourth attribute set in the field attributes that need to be included in the index data of information management model X include: f4, the field attributes other than the field attributes in the fourth attribute set in the field attributes that need to be included in the index data of the information management model Y include: f1, 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: f4, 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.
for example, refer to the schematic architecture of the information management system shown in fig. 3. The information management system includes three information management models, i.e., an information management model 21, an information management model 22, and an information management model 23. The information management model 21 is a public information management model inherited by the information management model 22 and the information management model 23, and the information management model 22 and the information management model 23 are respectively a proprietary information management model corresponding to the information management model X and the information management model Y. The field attributes that need to be included in the storage data of the information management model 21 include: f1, F3, and F6, the field attributes that need to be included in the storage data of the information management model 22 include: f2 and F4, the field attributes that need to be included in the storage data of the information management model 23 include: F5. the field attributes that need to be included in the index data of the information management model 21 include: f3, the field attributes that need to be included in the index data of the information management model 22 include: f4, the field attributes that need to be included in the index data of the information management model 23 include: F1. the retrieval database comprises storage positions for storing fields corresponding to F1, F3 and F4. The information management model X may be divided into an information management model 21 and an information management model 22, the information management model Y may be divided into an information management model 21 and an information management model 23, the information management model 21 and the information management model 22 may be combined into the information management model X, and the information management model 21 and the information management model 23 may be combined into the information management model Y.
The number of scenes and/or fields required increases, and the number of information management models required to be constructed increases accordingly. All information management models are made and built from scratch, which is very time and energy consuming. Based on the commonality between the information management model and the information management model, the above embodiment extracts the field attributes (the field attribute that the storage data needs to contain and the field attribute that the index data needs to contain) corresponding to the information management model, extracts the intersection of the field attributes corresponding to all the information management models as the field attribute corresponding to the public information management model, and then configures all the proprietary information management models to inherit the public domain model. In this way, all subsequent definitions of the domain-specific model only need to define those unique parts, so the above embodiment can reduce the construction cost of the information management model.
On the basis of the foregoing embodiment, the step of obtaining the second attribute set in the foregoing embodiment) includes the following steps a1 to a 4:
step a1, determine the object specific information management model.
The target special information management model is a special information management model corresponding to the target information management model.
Step a2, acquiring the field attribute needed to be included in the index data of the target special information management model.
Step a3, acquiring the field attribute needed to be contained in the index data of the common information management model inherited by the target special information management model.
Step a4, combining the field attribute required to be included in the index data of the obtained target-specific information management model and the field attribute 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.
That is, when processing information, a specific information management model corresponding to the information to be managed is determined, the field attribute required to be included in the index data is determined through the specific information management model corresponding to the information to be managed and the inherited public information management model, then the corresponding field is extracted from the information to be managed, finally, a complete index data is formed according to all the extracted field values and the target identification, and the complete index data is stored in the retrieval database.
Based on the same inventive concept, as an implementation of the foregoing method, an embodiment of the present invention further provides an information management apparatus, where the embodiment corresponds to the foregoing method embodiment, and for convenience of reading, details in the foregoing method embodiment are not repeated in this embodiment one by one, but it should be clear that the apparatus in this embodiment can correspondingly implement all the contents in the foregoing method embodiment.
An embodiment of the present invention provides an information management apparatus, fig. 4 is a schematic structural diagram of the information management apparatus, and as shown in fig. 4, the information management apparatus 400 includes:
a determining unit 41, configured to determine a target information management model, where the target information management model is an information management model corresponding to information to be managed;
an obtaining unit 42, configured to obtain a first attribute set, where the first attribute set is a set formed by field attributes that need to be included in the storage data of the target information management model;
an extracting unit 43, configured to extract, from the information to be managed, a field corresponding to each field attribute in the first attribute set, and generate a first field set;
a generating unit 44, configured to generate storage data according to the first field set and the target field; the target field is used for identifying the target information management model;
a processing unit 45 for storing the storage data in a storage database; the storage database comprises storage positions for storing fields corresponding to field attributes required to be contained in the storage data of each information management model.
As an alternative implementation of the embodiment of the present invention,
the obtaining unit 42 is further configured to obtain a second attribute set, where the second attribute set is a set formed by field attributes that need to be included in the index data of the target information management model;
the extracting unit 43 is further configured to extract, from the information to be managed, a field corresponding to each field attribute in the second attribute set, and generate a second field set;
the generating unit 44 is further configured to generate index data according to the second field set and the target field;
the processing unit 45 is further configured to store the index data in a retrieval database, where the retrieval database includes a storage location for storing a field corresponding to a field attribute that needs to be included in the index data of each information management model, and construct a service for retrieving information according to the retrieval database.
As an alternative implementation manner of the embodiment of the present invention, referring to fig. 5, an information management apparatus 400 according to the embodiment of the present invention further includes:
the building unit 46 is configured to build information management models corresponding to the scenes and/or the 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.
As an optional implementation manner of the embodiment of the present invention, the constructing unit 46 is further configured to obtain 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 public information management model and a special information management model corresponding to each information management model, and configuring the special information management model corresponding to each information management model to inherit the public information management model; configuring each attribute in the third attribute set as a field attribute which needs to be contained in the storage data of the public information management model; and configuring other field attributes except the field attributes in the third attribute set in the field attributes required to be contained in the storage data of each information management model as the field attributes required to be contained in the storage data of the special information management model corresponding to each information management model.
As an optional implementation manner of the embodiment of the present invention, the obtaining unit 42 is specifically configured to determine a target specific information management model, where the target specific information management model is a specific information management model corresponding to the target information management model; acquiring field attributes required to be contained in the storage data of the target special information management model; acquiring field attributes required to be contained in storage data of the common information management model inherited by the target special information management model; and combining the field attribute required to be contained in the storage data of the acquired target special information management model and the field attribute required to be contained in the storage data of the shared information management model inherited by the target special information management model into the first attribute set.
As an optional implementation manner of the embodiment of the present invention, the constructing unit 46 is further configured to obtain a fourth attribute set, where the fourth attribute set is an intersection of field attributes that need to be included in index data of each information management model; establishing a public information management model and a special information management model corresponding to each information management model; configuring each attribute in the fourth attribute set as a field attribute which needs to be contained in index data of the public information management model; and configuring other field attributes except the field attributes in the fourth attribute set in the field attributes required to be contained in the index data of each information management model as the field attributes required to be contained in the index data of the special information management model corresponding to each information management model.
As an optional implementation manner of the embodiment of the present invention, the obtaining unit 42 is specifically configured to determine a target specific information management model, where the target specific information management model is a specific information management model corresponding to the target information management model; acquiring field attributes required to be contained in the index data of the target special information management model; acquiring field attributes required to be contained in index data of the common information management model inherited by the target special information management model; and combining the field attribute required to be contained in the acquired index data of the target special information management model and the field attribute required to be contained in the index data of the common information management model inherited by the target special information management model into the second attribute set.
As an optional implementation manner of the embodiment of the present invention, the storage database is a database based on distributed file storage.
The information management apparatus provided in this embodiment may execute the information management method provided in the foregoing method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
Based on the same inventive concept, the embodiment of the invention also provides electronic equipment. Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 6, the electronic device according to the embodiment includes: a memory 601 and a processor 602, the memory 601 being used for storing computer programs; the processor 602 is configured to execute the information management method provided by the above embodiments when executing the computer program.
Based on the same inventive concept, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program enables the computing device to implement the information management method provided by the above embodiment.
Based on the same inventive concept, the embodiment of the present invention further provides a computer program product, which, when running on a computer, enables the computing device to implement the information management method provided by the above embodiment.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, 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 embodied on one or more computer-usable storage media having computer-usable program code embodied in the medium.
The processor may be a Central Processing Unit (CPU), other general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer readable media include both permanent and non-permanent, removable and non-removable storage media. Storage media may implement information storage by any method or technology, and the information may be computer-readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (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 technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium 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 (transmyedia) such as modulated data signals and carrier waves.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. An information management method, comprising:
determining a target information management model, wherein the target information management model is an information management model corresponding to information to be managed;
acquiring a first attribute set, wherein the first attribute set is a set formed by field attributes required to be contained in the storage data of the target information management model;
extracting 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 according to the first field set and the target field; the target field is used for identifying the target information management model;
storing the stored data in a storage database; the storage database comprises storage positions for storing fields corresponding to field attributes required to be contained in the storage data of each information management model.
2. The method of claim 1, wherein after determining the target information management model, the method further comprises:
acquiring a second attribute set, wherein the second attribute set is a set formed by field attributes required to be contained in the index data of the target information management model;
extracting fields corresponding to each field attribute in the second attribute set from the information to be managed to generate a second field set;
generating index data according to the second field set and the target field;
storing the index data into a retrieval database, wherein the retrieval database comprises storage positions used for storing fields corresponding to field attributes required to be contained in the index data of each information management model;
and constructing a service for retrieving information according to the retrieval database.
3. The method of claim 2, wherein prior to determining the target information management model, the method further comprises:
and establishing information management models corresponding to the scenes and/or the fields, and configuring field attributes required to be contained in the storage data of each information management model and field attributes required to be contained in the index data of each information management model.
4. The method of claim 3, further comprising:
acquiring a third attribute set, wherein the third attribute set is an intersection of field attributes required to be contained in the storage data of each information management model;
establishing a public information management model and a special information management model corresponding to each information management model, and configuring the special information management model corresponding to each information management model to inherit the public information management model;
configuring each attribute in the third attribute set as a field attribute which needs to be contained in the storage data of the public information management model;
and configuring other field attributes except the field attributes in the third attribute set in the field attributes required to be contained in the storage data of each information management model as the field attributes required to be contained in the storage data of the special information management model corresponding to each information management model.
5. The method of claim 4, wherein obtaining the first set of attributes comprises:
determining a target special information management model, wherein the target special information management model is a special information management model corresponding to the target information management model;
acquiring field attributes required to be contained in the storage data of the target special information management model;
acquiring field attributes required to be contained in storage data of the common information management model inherited by the target special information management model;
and combining the field attribute required to be contained in the storage data of the acquired target special information management model and the field attribute required to be contained in the storage data of the shared information management model inherited by the target special information management model into the first attribute set.
6. The method of claim 3, further comprising:
acquiring a fourth attribute set, wherein the fourth attribute set is an intersection of field attributes required to be contained in the index data of each information management model;
establishing a public information management model and a special information management model corresponding to each information management model;
configuring each attribute in the fourth attribute set as a field attribute which needs to be contained in index data of the public information management model;
and configuring other field attributes except the field attributes in the fourth attribute set in the field attributes required to be contained in the index data of each information management model as the field attributes required to be contained in the index data of the special information management model corresponding to each information management model.
7. The method of claim 6, wherein obtaining the second set of attributes comprises:
determining a target special information management model, wherein the target special information management model is a special information management model corresponding to the target information management model;
acquiring field attributes required to be contained in the index data of the target special information management model;
acquiring field attributes required to be contained in index data of the common information management model inherited by the target special information management model;
and combining the field attribute required to be contained in the acquired index data of the target special information management model and the field attribute required to be contained in the index data of the common information management model inherited by the target special information management model into the second attribute set.
8. The method of any of claims 1-7, wherein the storage database is a database based on distributed file storage.
9. An information management apparatus characterized by comprising:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining a target information management model which is an information management model corresponding to information to be managed;
an obtaining unit, configured to obtain a first attribute set, where the first attribute set is a set formed by field attributes that need to be included in storage data of the target information management model;
an extracting unit, configured to extract, from the information to be managed, a field corresponding to each field attribute in the first attribute set, and generate a first field set;
the generating unit is used for generating storage data according to the first field set and the target field; the target field is used for identifying the target information management model;
the processing unit is used for storing the storage data into a storage database; the storage database comprises storage positions for storing fields corresponding to field attributes required to be contained in the storage data of each information management model.
10. An electronic device, comprising: a memory for storing a computer program and a processor; the processor is configured to cause the electronic device to implement the information management method of any one of claims 1 to 8 when executing the computer program.
CN202111290477.4A 2021-11-02 2021-11-02 Information management method and device Pending CN114020743A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111290477.4A CN114020743A (en) 2021-11-02 2021-11-02 Information management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111290477.4A CN114020743A (en) 2021-11-02 2021-11-02 Information management method and device

Publications (1)

Publication Number Publication Date
CN114020743A true CN114020743A (en) 2022-02-08

Family

ID=80059848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111290477.4A Pending CN114020743A (en) 2021-11-02 2021-11-02 Information management method and device

Country Status (1)

Country Link
CN (1) CN114020743A (en)

Similar Documents

Publication Publication Date Title
CN110781165B (en) Method, device and equipment for processing service data
EP2783310A1 (en) Image searching
CN110969022B (en) Semantic determining method and related equipment
CN112463991A (en) Historical behavior data processing method and device, computer equipment and storage medium
Lehmann et al. Managing geospatial linked data in the GeoKnow project
Wagenpfeil et al. Graph codes-2d projections of multimedia feature graphs for fast and effective retrieval
CN111159354A (en) Sensitive information detection method, device, equipment and system
CN108241620B (en) Query script generation method and device
CN114020743A (en) Information management method and device
CN115208923A (en) Equipment information determination method, device and equipment
CN108241624B (en) Query script generation method and device
US9910890B2 (en) Synthetic events to chain queries against structured data
CN114020989A (en) Data retrieval method and device
CN111209747B (en) Word vector file loading method and device, storage medium and electronic equipment
CN109902170B (en) Text classification method and device and electronic equipment
CN110968691B (en) Judicial hotspot determination method and device
CN114661958A (en) Tree structure data searching method and device, electronic equipment and storage medium
CN111159205A (en) Data processing method and system
CN111241893A (en) Identification recognition method, device and system
CN117688140B (en) Document query method, device, computer equipment and storage medium
CN111813801B (en) Data retrieval method and device
US20120078943A1 (en) High quantitative pattern searching using spatial indexing
CN109359143B (en) Report generation method and device
CN117973544B (en) Text unit reasoning method device based on semantic distance, storage medium and terminal
CN117591624B (en) Test case recommendation method based on semantic index relation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination