CN111488405A - Information updating method and device - Google Patents

Information updating method and device Download PDF

Info

Publication number
CN111488405A
CN111488405A CN202010300205.7A CN202010300205A CN111488405A CN 111488405 A CN111488405 A CN 111488405A CN 202010300205 A CN202010300205 A CN 202010300205A CN 111488405 A CN111488405 A CN 111488405A
Authority
CN
China
Prior art keywords
information
relationship
relation
page
updating
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.)
Granted
Application number
CN202010300205.7A
Other languages
Chinese (zh)
Other versions
CN111488405B (en
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.)
Douyin Vision Co Ltd
Douyin Vision Beijing Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010300205.7A priority Critical patent/CN111488405B/en
Publication of CN111488405A publication Critical patent/CN111488405A/en
Application granted granted Critical
Publication of CN111488405B publication Critical patent/CN111488405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • 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/23Updating

Landscapes

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

Abstract

The present disclosure provides an information updating method and apparatus, including: receiving an information updating instruction of a first information page aiming at a first object; acquiring updated first object relationship information carried in the information updating instruction, wherein the first object relationship information is used for indicating the relationship of a second object relative to the first object; determining at least one target information page to be updated according to the relationship attribute corresponding to the first object relationship information; the at least one target information page comprises the first information page; and respectively updating the information in the at least one target information page according to the first object relation information.

Description

Information updating method and device
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an information updating method and apparatus.
Background
With the development of internet technology, users are getting more and more information from the internet. The information page of some objects can show the relationship with other associated objects to more fully describe the objects. For example, the information of children, spouse information, etc. of a certain character may be presented in the information page of the character.
In the related art, when a user edits an information page, the user needs to manually modify the information page of each object, which is relatively inefficient.
Disclosure of Invention
The embodiment of the disclosure at least provides an information updating method and device.
In a first aspect, an embodiment of the present disclosure provides an information updating method, including:
receiving an information updating instruction of a first information page aiming at a first object;
acquiring updated first object relationship information carried in the information updating instruction, wherein the first object relationship information is used for indicating the relationship of a second object relative to the first object;
determining at least one target information page to be updated according to the relationship attribute corresponding to the first object relationship information; the at least one target information page comprises the first information page;
and respectively updating the information in the at least one target information page according to the first object relation information.
In a possible implementation manner, the relationship attribute corresponding to the first object relationship information is determined according to the following steps:
searching standard relation information matched with the first object relation information in a relation database;
and responding to a selection instruction of the user for the standard relation information, and determining the relation attribute of the standard relation information corresponding to the selection instruction as the relation attribute corresponding to the first object relation information.
In a possible implementation manner, the relationship database includes a plurality of standard relationship information and a plurality of supplementary relationship information, and each standard relationship information corresponds to at least one supplementary relationship information;
the searching, in the relational database, for standard relationship information that matches the first object relationship information includes:
if the standard relation information which is the same as the first object relation information is found in the relation database, determining the standard relation information as the standard relation information matched with the first object relation information;
and if the supplementary relationship information which is the same as the first object relationship information is found in the relationship database, determining the standard relationship information corresponding to the supplementary relationship information as the standard relationship information matched with the first object relationship information.
In one possible implementation, the relationship attribute corresponding to the first object relationship information includes: any one of a unidirectional relationship, a bidirectional relationship, and an inverse relationship.
In a possible implementation manner, the determining, according to a relationship attribute corresponding to the first object relationship information, at least one target information page to be updated includes:
and under the condition that the relationship attribute of the first object relationship information is in a one-way relationship, determining the at least one target information page to be updated as the first information page.
In a possible implementation manner, the determining, according to a relationship attribute corresponding to the first object relationship information, at least one target information page to be updated includes:
and under the condition that the relationship attribute of the first object relationship information is a bidirectional relationship or a reverse relationship, determining that the at least one target information page to be updated comprises the first information page and a second information page of the second object.
In a possible implementation manner, in a case that the relationship attribute of the first object relationship information is the inverse relationship, the updating the information in the at least one target information page according to the first object relationship information respectively includes:
determining second object relationship information corresponding to the first object relationship information; the second object relationship information is used for indicating the relationship of the first object relative to the second object;
updating information in a first information page of the first object based on the first object relationship information; and updating information in a second information page of the second object based on the second object relationship information.
In a possible embodiment, the method further comprises:
determining a third object associated with the first object and third object relation information of the third object relative to the first object based on a pre-constructed relation map;
determining fourth object relation information of the second object relative to the third object according to the first object relation information and the third object relation information;
and updating the information in the information page of the third object according to the fourth object relation information.
In a second aspect, an embodiment of the present disclosure further provides an information updating apparatus, including:
the device comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving an information updating instruction of a first information page aiming at a first object;
an obtaining module, configured to obtain updated first object relationship information carried in the information update instruction, where the first object relationship information is used to indicate a relationship between a second object and the first object;
the determining module is used for determining at least one target information page to be updated according to the relationship attribute corresponding to the first object relationship information; the at least one target information page comprises the first information page;
and the updating module is used for respectively updating the information in the at least one target information page according to the first object relation information.
In a possible implementation manner, the determining module is further configured to determine a relationship attribute corresponding to the first object relationship information according to the following steps:
searching standard relation information matched with the first object relation information in a relation database;
and responding to a selection instruction of the user for the standard relation information, and determining the relation attribute of the standard relation information corresponding to the selection instruction as the relation attribute corresponding to the first object relation information.
In a possible implementation manner, the relationship database includes a plurality of standard relationship information and a plurality of supplementary relationship information, and each standard relationship information corresponds to at least one supplementary relationship information;
the determining module, when searching for the standard relationship information matched with the first object relationship information in the relationship database, is configured to:
if the standard relation information which is the same as the first object relation information is found in the relation database, determining the standard relation information as the standard relation information matched with the first object relation information;
and if the supplementary relationship information which is the same as the first object relationship information is found in the relationship database, determining the standard relationship information corresponding to the supplementary relationship information as the standard relationship information matched with the first object relationship information.
In one possible implementation, the relationship attribute corresponding to the first object relationship information includes: any one of a unidirectional relationship, a bidirectional relationship, and an inverse relationship.
In a possible implementation manner, when determining at least one target information page to be updated according to a relationship attribute corresponding to the first object relationship information, the determining module is configured to:
and under the condition that the relationship attribute of the first object relationship information is in a one-way relationship, determining the at least one target information page to be updated as the first information page.
In a possible implementation manner, when determining at least one target information page to be updated according to a relationship attribute corresponding to the first object relationship information, the determining module is configured to:
and under the condition that the relationship attribute of the first object relationship information is a bidirectional relationship or a reverse relationship, determining that the at least one target information page to be updated comprises the first information page and a second information page of the second object.
In a possible implementation manner, in a case that the relationship attribute of the first object relationship information is the inverse relationship, the updating module, when updating the information in the at least one target information page respectively according to the first object relationship information, is configured to:
determining second object relationship information corresponding to the first object relationship information; the second object relationship information is used for indicating the relationship of the first object relative to the second object;
updating information in a first information page of the first object based on the first object relationship information; and updating information in a second information page of the second object based on the second object relationship information.
In a possible implementation manner, the update module is further configured to:
determining a third object associated with the first object and third object relation information of the third object relative to the first object based on a pre-constructed relation map;
determining fourth object relation information of the second object relative to the third object according to the first object relation information and the third object relation information;
and updating the information in the information page of the third object according to the fourth object relation information.
In a third aspect, an embodiment of the present disclosure further provides a computer device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the computer device is running, the machine-readable instructions when executed by the processor performing the steps of the first aspect described above, or any possible implementation of the first aspect.
In a fourth aspect, this disclosed embodiment also provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps in the first aspect or any one of the possible implementation manners of the first aspect.
In the information updating method provided by the embodiment of the disclosure, after an information updating instruction for a first information page of a first object is received, at least one target information page to be updated can be determined according to a relation attribute corresponding to first object relation information in the information updating instruction, and information in the at least one target information page is respectively updated according to the first object relation information, by the method, when a plurality of information pages including the first information page are determined to be related to information updating according to the relation attribute corresponding to the first object relation information, the first information page and other information pages except the first information page can be automatically updated according to the first object relation information, so that synchronous updating of information of each information page in an information base can be realized, the comprehensiveness of information updating is improved, and a user does not need to initiate an information updating instruction on other information pages, thereby improving the updating efficiency of the information page.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly described below, and the drawings herein incorporated in and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It is appreciated that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
Fig. 1 shows a flowchart of an information updating method provided by an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a method for determining a relationship attribute corresponding to a first object relationship provided in an embodiment of the present disclosure;
FIG. 3 is a schematic interface diagram of a first information page provided by an embodiment of the present disclosure;
FIG. 4 is a schematic diagram illustrating a human relationship editing interface of a first information page according to an embodiment of the disclosure;
FIG. 5 is a schematic diagram illustrating an architecture of an information updating apparatus provided in an embodiment of the present disclosure;
fig. 6 shows a schematic structural diagram of a computer device 600 provided by an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
In the related art, after initiating an update instruction for the relationship between the objects of the information page, a user can generally only update the relationship between the objects of the current information page, however, in practical applications, after the relationship between the objects of the current information page changes, the relationships between the objects in other information pages also change correspondingly, and if the user does not update information in other information pages, the problem of information asynchronization is caused.
For example, if the user instructs to modify the wife relationship of the user a with the user B into the couple relationship in the update instruction for the information page of the user a, the relationship with the user a should also be modified from the husband relationship into the couple relationship in the information page of the user B. In this case, the user needs to issue an update instruction for the information page of the user B again to modify the relationship between the user a and the user B in the information page of the user B, thereby synchronizing the information pages of the user a and the user B.
Based on this, the disclosed embodiments provide an information updating method, after receiving an information updating instruction for a first information page of a first object, determining at least one target information page to be updated according to a relationship attribute corresponding to first object relationship information in the information updating instruction, and updating information in the at least one target information page respectively according to the first object relationship information, by which, when determining that a plurality of information pages included in the first information page relate to information updating according to the relationship attribute corresponding to the first object relationship information, the first information page and other information pages except the first information page can be automatically updated according to the first object relationship information, thereby realizing synchronous updating of information of each information page in an information base, improving the comprehensiveness of information updating, and since a user does not need to initiate an information updating instruction for other information pages, thereby improving the updating efficiency of the information page.
The above-mentioned drawbacks are the results of the inventor after practical and careful study, and therefore, the discovery process of the above-mentioned problems and the solutions proposed by the present disclosure to the above-mentioned problems should be the contribution of the inventor in the process of the present disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
To facilitate understanding of the present embodiment, first, an information updating method disclosed in the embodiments of the present disclosure is described in detail, and referring to fig. 1, a flowchart of an information updating method provided for the embodiments of the present disclosure is shown, where the method includes steps 101 to 104, where:
step 101, receiving an information update instruction of a first information page of a first object.
The first object and the second object include, but are not limited to, animals, people, buildings, and the like, and other objects requiring detailed description may also be used as the first object and the second object, and the disclosure is not limited thereto.
The first information page may include detailed introduction information of the first object, and the first information page includes relationship information between the first object and other objects, where the relationship information between the first object and other objects is a relationship between the other objects and the first object, for example, if a relationship between a parent of the first object and the first object is a parent relationship.
In a possible implementation manner, the information updating instruction for the first information page of the first object may include a new adding instruction for the relationship in the first information page, or a modification instruction for the relationship in the first information page. The new adding instruction is used for adding the relation of other objects relative to the first object in the first information page, and the modifying instruction is used for modifying the relation of other objects currently existing in the first information page relative to the first object.
And 102, acquiring updated first object relationship information carried in the information updating instruction, wherein the first object relationship information is used for indicating the relationship of a second object relative to the first object.
In a possible implementation, the updated first object relationship information is a relationship of the newly added second object with respect to the first object, or is a modified relationship of the first object with respect to the second object.
The relationship between any two objects may change due to a change in the relative object, for example, if object a is the parent of object B, the relationship of object a with respect to object B is a parent relationship, and object B is a child relationship with respect to object a.
103, determining at least one target information page to be updated according to the relationship attribute corresponding to the first object relationship information; the at least one target information page comprises the first information page.
And step 104, respectively updating the information in the at least one target information page according to the first object relation information.
The relationship attribute corresponding to the first object relationship information may be used to describe the relative relationship information between the first object and the second object, in a possible implementation, the relationship attribute corresponding to the first object relationship information may include any one of a one-way relationship, a two-way relationship, and an inverse relationship, and in a specific implementation, the relationship attribute of the first object relationship information may be preset.
The one-way relationship is a word that cannot describe a relative relationship between two objects by using the same relationship word, that is, a relationship between the object a and the object B is different from a relationship between the object B and the object a. Illustratively, the one-way relationship can include, for example, small genes, outer genes 29989, female, etc..
The bidirectional relationship is a word that can describe a relative relationship between two objects by using the same relationship word, for example, if the object a is a relative of the object B, "relative" can be used to describe a relationship between the object a and the object B, and can also be used to describe a relationship between the object B and the object a. Illustratively, a bi-directional relationship may include, for example, a colleague, a relative, a classmate, and the like.
The first object relationship information of the inverse relationship is information in which corresponding inverse relationship information is preset, for example, the inverse relationship information in which "husband" is preset is "wife" and "teacher" is "student", and the like.
In a specific implementation, the relationship attribute of the first object relationship information without the corresponding inverse relationship information is set as a one-way relationship, and the relationship attribute of the first object relationship information with the corresponding inverse relationship information is set as an inverse relationship. Here, it should be noted that any one relationship has only one relationship attribute.
In a possible implementation, the relationship attribute corresponding to the first object relationship may be determined according to the method shown in fig. 2, which includes the following steps:
step 201, searching standard relation information matched with the first object relation information in a relation database.
The relational database may store standard relational information and supplementary relational information, each of which corresponds to at least one of the standard relational information, and the correspondence between the supplementary relational information and the standard relational information may be, for example, as shown in table 1 below:
TABLE 1
Standard relationship information Supplementing relationship information
Wife (wife) Wife partner wife of wife
Doctor blade Former husband
First-ren husband First-ren old-man first-ren husband forever
Second-ren husband Former husband's former-ren husband
It should be noted that the above table is only exemplary, and does not include all the standard relationship information and the supplementary relationship information.
When searching for standard relationship information matched with the first object relationship information in the relationship database, the first object relationship information may be matched with the relationship information in the relationship database to determine labeled relationship information corresponding to the first object relationship information, which may include the following several cases:
in case one, the matching with the first object relationship information is successful as the supplementary relationship information.
The supplementary relationship information that is successfully matched with the first object relationship information may be supplementary relationship information that is the same as the first relationship information in a relationship database, and in this case, the standard relationship information corresponding to the supplementary relationship information may be determined as the labeled relationship information obtained after matching.
And in the second case, the information successfully matched with the first object relationship information is standard relationship information.
The standard relationship information successfully matched with the first object relationship information may be standard relationship information that is the same as the first object relationship information and exists in a relationship database, and in this case, the standard relationship information may be determined as the standard relationship information obtained after matching.
In one possible scenario, the relationship information may be standard relationship information or supplementary relationship information. If the relation information successfully matched with the first object relation information is the type of relation information, the relation information and the standard relation corresponding to the relation information can be simultaneously determined as the labeled relation information obtained after matching.
For example, as shown in table 1 above, the "predecessor" is the supplementary relationship information and is also the standard relationship information, and if the matching with the first object relationship information is successful, the "predecessor", "the first husband" and "the second husband" may be simultaneously used as the standard relationship information matching with the first object relationship information.
In another possible implementation, if the matching of the annotation relation information and the supplemental relation information in the database with the first object relation information fails, in this case, the standard relation information including the first object relation information may be selected as the standard relation information corresponding to the first object relation information.
For example, if the first object relationship information is "parent", the standard relationship information "father", "parent", "grandfather", "father", "grandfather", and the like may be used as the standard relationship information corresponding to the first object relationship information.
Here, it should be noted that there may be a plurality of standard relationship information corresponding to the first object relationship information. Under the condition that the matching of the annotation relation information and the supplementary relation information in the database with the first object relation information fails, when the standard relation information corresponding to the first object relation information is displayed, the characters in the annotation relation information can be sequenced.
Continuing the above example, when the standard relationship information is displayed, the standard relationship with the first word as the "father" may be selected to be preferentially displayed, then the standard relationship information with the second word as the "father" is displayed, then the standard relationship information with the third word as the "father" is displayed, for the "father" and the "father", the first word is the "father", and the standard relationship information may be randomly displayed when displayed.
Step 202, responding to a selection instruction of the user for the standard relationship information, and determining a relationship attribute of the standard association relationship information corresponding to the selection instruction as a relationship attribute corresponding to the first object relationship information.
When at least one target information page to be updated is determined according to the attribute information corresponding to the first object relationship information, the number of the determined target information pages may be different according to the difference of the attribute information corresponding to the first object relationship information, and the method specifically includes the following steps:
and (one) determining at least one target information page to be updated as a first information page under the condition that the relationship attribute of the first object relationship information is a one-way relationship.
In the case where the relationship attribute of the first object relationship information is a one-item relationship, only the first information page may be determined as the target information page, and when the information in at least one target information page is updated respectively based on the first object relationship information, the information in the first information page may be updated based on only the first object relationship information.
At this time, when the information in the first information page is updated based on the first object relationship information, the information in the first information page may be updated based on the standard relationship information that matches the first relationship information.
And (II) determining that at least one target information page to be updated comprises the first information page and a second information page of the second object under the condition that the relationship attribute of the first object relationship information is a bidirectional relationship or a reverse relationship.
In the case where the relationship attribute of the first object relationship information is bidirectional relationship information, the relationship of the first object with respect to the second object and the relationship of the second object with respect to the first object are the same, and therefore, the first information page of the first object and the second information page of the second object can be updated directly in accordance with the first object relationship information.
Here, when the first information page of the first object and the second information page of the second object are updated according to the first object relationship information, the first information page of the first object and the second information page of the second object may be updated respectively according to standard relationship information matching the first object relationship.
For example, if the standard relationship information matched with the first object relationship information of the object a relative to the object B is "co-workers" and the relationship attribute of the co-workers is bidirectional relationship information, the information page of the object a and the information page of the object B may be updated according to the "co-workers".
In a case where the relationship attribute of the first object relationship information is an inverse relationship, the relationship of the first object with respect to the second object and the relationship of the second object with respect to the first object are different, in this case, second object relationship information corresponding to the first object relationship information may be determined, the second object relationship information being for indicating the relationship of the first object with respect to the second object, then the information in the first information page of the first object is updated based on the first object relationship information, and the information in the second information page of the second object is updated based on the second object relationship information.
When the information in the first information page of the first object is updated based on the first object relationship information, the information in the first information page of the first object can be updated according to standard relationship information matched with the first object relationship information; the determining of the second object relationship information corresponding to the first object relationship information may be determining second object relationship information corresponding to standard relationship information matching the first object relationship information, where the determined second object relationship information may itself be one of the standard relationship information, and therefore, information in the second information page of the second object may be updated directly based on the second object relationship information.
For example, if the standard relationship information matched with the first object relationship information of the object a relative to the object B is "husband", and the relationship attribute of the "husband" is a reverse relationship, it may be determined that the second object relationship information corresponding to the "husband" is "wife", which is the relationship of the object B relative to the object a, and therefore, the information in the information page of the object a may be updated according to the "husband", and the information in the information page of the object B may be updated according to the "wife".
In another embodiment, in order to ensure the consistency of the data of the information pages of the plurality of objects, after the object relationship information between the first object and the second object is updated, the object relationship information between other objects and the first object and the second object also needs to be changed correspondingly.
The method provided by the embodiment of the present disclosure may further determine, according to a relationship map constructed in advance, a third object associated with the first object and third object relationship information of the third object with respect to the first object, then determine, according to the first object relationship information and the third object relationship information, fourth object relationship information of the second object with respect to the third object (where the determined fourth object relationship information may belong to one of standard relationship information), and update information in an information page of the third object according to the fourth object relationship information.
In the pre-constructed relationship graph, the nodes may be objects, and the edges may be relationships between the objects, and at this time, the relationships between the objects only include a one-way relationship and a two-way relationship.
When the fourth object relationship information is determined according to the first object relationship information and the third object relationship information, the fourth object relationship information may be determined according to a preset relationship information comparison table, which may be, for example, as shown in table 2 below:
TABLE 2
First object relationship information Third object relationship information Fourth object relationship information
Son (son) Wife (wife) Son (son)
Son (son) Brother Nephew (nephew)
Illustratively, if the first object relationship information of the second object B with respect to the first object a is "son" (i.e., the second object B is a son of the first object a), and is associated with the first object a as a third object C, the third object relationship information of the third object C with respect to the first object a is "brother" (i.e., the third object C is a brother of the first object a), as can be seen from table 2 above, the fourth relationship information of the second object B with respect to the third object C is "nephew" (i.e., the second object B is a nephew of the third object C), and therefore, the information in the information page of the third object C can be updated according to "nephew".
In the following, the information updating method will be described with reference to specific application scenarios.
Illustratively, a first information page of the first object may be as shown in fig. 3, and the first information page includes detailed description information of the first object and the personal relationship between the first object and other objects. The first information page also shows a person relation editing button, after the person relation editing button is triggered, a person relation editing page as shown in fig. 4 can be shown in the first information page, the person relation editing interface comprises a 'new relation' button, after the 'new relation' button is triggered, a user can input the relation between the user and the first object in a 'relation' column, and input a new added object name in a 'related person' column.
In addition, the character relation currently displayed in the first information page can be displayed in the character relation editing interface, and a user can delete the displayed character relation by triggering a 'delete' button or change the display sequence of the character relation by triggering a 'move' button.
In the above information updating method, after receiving an information updating instruction of a first information page for a first object, at least one target information page to be updated can be determined according to a relationship attribute corresponding to first object relationship information in the information updating instruction, and information in the at least one target information page is updated respectively according to the first object relationship information, by which, when determining that a plurality of information pages included in the first information page relate to information updating according to the relationship attribute corresponding to the first object relationship information, the first information page and other information pages except the first information page can be automatically updated according to the first object relationship information, thereby realizing synchronous updating of information of each information page in an information base, improving comprehensiveness of information updating, and because a user does not need to initiate an information updating instruction on other information pages, thereby improving the updating efficiency of the information page.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
Based on the same inventive concept, an information updating apparatus corresponding to the information updating method is also provided in the embodiments of the present disclosure, and since the principle of the apparatus in the embodiments of the present disclosure for solving the problem is similar to the information updating method described above in the embodiments of the present disclosure, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not described again.
Referring to fig. 5, which is a schematic diagram of an architecture of an information updating apparatus provided in an embodiment of the present disclosure, the apparatus includes: a receiving module 501, an obtaining module 502, a determining module 503 and an updating module 504; wherein the content of the first and second substances,
a receiving module 501, configured to receive an information update instruction of a first information page for a first object;
an obtaining module 502, configured to obtain updated first object relationship information carried in the information update instruction, where the first object relationship information is used to indicate a relationship between a second object and the first object;
a determining module 503, configured to determine at least one target information page to be updated according to a relationship attribute corresponding to the first object relationship information; the at least one target information page comprises the first information page;
an updating module 504, configured to update information in the at least one target information page according to the first object relationship information.
In a possible implementation manner, the determining module 503 is further configured to determine a relationship attribute corresponding to the first object relationship information according to the following steps:
searching standard relation information matched with the first object relation information in a relation database;
and responding to a selection instruction of the user for the standard relation information, and determining the relation attribute of the standard relation information corresponding to the selection instruction as the relation attribute corresponding to the first object relation information.
In a possible implementation manner, the relationship database includes a plurality of standard relationship information and a plurality of supplementary relationship information, and each standard relationship information corresponds to at least one supplementary relationship information;
the determining module 503, when searching for the standard relationship information matched with the first object relationship information in the relationship database, is configured to:
if the standard relation information which is the same as the first object relation information is found in the relation database, determining the standard relation information as the standard relation information matched with the first object relation information;
and if the supplementary relationship information which is the same as the first object relationship information is found in the relationship database, determining the standard relationship information corresponding to the supplementary relationship information as the standard relationship information matched with the first object relationship information.
In one possible implementation, the relationship attribute corresponding to the first object relationship information includes: any one of a unidirectional relationship, a bidirectional relationship, and an inverse relationship.
In a possible implementation manner, when determining at least one target information page to be updated according to a relationship attribute corresponding to the first object relationship information, the determining module 503 is configured to:
and under the condition that the relationship attribute of the first object relationship information is in a one-way relationship, determining the at least one target information page to be updated as the first information page.
In a possible implementation manner, when determining at least one target information page to be updated according to a relationship attribute corresponding to the first object relationship information, the determining module 503 is configured to:
and under the condition that the relationship attribute of the first object relationship information is a bidirectional relationship or a reverse relationship, determining that the at least one target information page to be updated comprises the first information page and a second information page of the second object.
In a possible implementation manner, in a case that the relationship attribute of the first object relationship information is the inverse relationship, the updating module 504, when updating the information in the at least one target information page respectively according to the first object relationship information, is configured to:
determining second object relationship information corresponding to the first object relationship information; the second object relationship information is used for indicating the relationship of the first object relative to the second object;
updating information in a first information page of the first object based on the first object relationship information; and updating information in a second information page of the second object based on the second object relationship information.
In a possible implementation manner, the update module 504 is further configured to:
determining a third object associated with the first object and third object relation information of the third object relative to the first object based on a pre-constructed relation map;
determining fourth object relation information of the second object relative to the third object according to the first object relation information and the third object relation information;
and updating the information in the information page of the third object according to the fourth object relation information.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
Based on the same technical concept, the embodiment of the application also provides computer equipment. Referring to fig. 6, a schematic structural diagram of a computer device 600 provided in the embodiment of the present application includes a processor 601, a memory 602, and a bus 603. The memory 602 is used for storing execution instructions and includes a memory 6021 and an external memory 6022; the memory 6021 is also referred to as an internal memory, and is used for temporarily storing the operation data in the processor 601 and the data exchanged with the external memory 6022 such as a hard disk, the processor 601 exchanges data with the external memory 6022 through the memory 6021, and when the computer device 600 operates, the processor 601 communicates with the memory 602 through the bus 603, so that the processor 601 executes the following instructions:
receiving an information updating instruction of a first information page aiming at a first object;
acquiring updated first object relationship information carried in the information updating instruction, wherein the first object relationship information is used for indicating the relationship of a second object relative to the first object;
determining at least one target information page to be updated according to the relationship attribute corresponding to the first object relationship information; the at least one target information page comprises the first information page;
and respectively updating the information in the at least one target information page according to the first object relation information.
In one possible implementation, the processor 601 executes instructions to determine the relationship attribute corresponding to the first object relationship information according to the following steps:
searching standard relation information matched with the first object relation information in a relation database;
and responding to a selection instruction of the user for the standard relation information, and determining the relation attribute of the standard relation information corresponding to the selection instruction as the relation attribute corresponding to the first object relation information.
In a possible implementation manner, in the instructions executed by the processor 601, the relationship database includes a plurality of standard relationship information and a plurality of supplementary relationship information, and each standard relationship information corresponds to at least one supplementary relationship information;
the searching, in the relational database, for standard relationship information that matches the first object relationship information includes:
if the standard relation information which is the same as the first object relation information is found in the relation database, determining the standard relation information as the standard relation information matched with the first object relation information;
and if the supplementary relationship information which is the same as the first object relationship information is found in the relationship database, determining the standard relationship information corresponding to the supplementary relationship information as the standard relationship information matched with the first object relationship information.
In a possible implementation manner, in the instructions executed by the processor 601, the relationship attribute corresponding to the first object relationship information includes: any one of a unidirectional relationship, a bidirectional relationship, and an inverse relationship.
In a possible implementation manner, in an instruction executed by the processor 601, the determining, according to a relationship attribute corresponding to the first object relationship information, at least one target information page to be updated includes:
and under the condition that the relationship attribute of the first object relationship information is in a one-way relationship, determining the at least one target information page to be updated as the first information page.
In a possible implementation manner, in an instruction executed by the processor 601, the determining, according to a relationship attribute corresponding to the first object relationship information, at least one target information page to be updated includes:
and under the condition that the relationship attribute of the first object relationship information is a bidirectional relationship or a reverse relationship, determining that the at least one target information page to be updated comprises the first information page and a second information page of the second object.
In a possible implementation manner, in the instruction executed by the processor 601, in a case that the relationship attribute of the first object relationship information is the inverse relationship, the updating the information in the at least one target information page according to the first object relationship information respectively includes:
determining second object relationship information corresponding to the first object relationship information; the second object relationship information is used for indicating the relationship of the first object relative to the second object;
updating information in a first information page of the first object based on the first object relationship information; and updating information in a second information page of the second object based on the second object relationship information.
In a possible implementation, in the instructions executed by the processor 601, the method further includes:
determining a third object associated with the first object and third object relation information of the third object relative to the first object based on a pre-constructed relation map;
determining fourth object relation information of the second object relative to the third object according to the first object relation information and the third object relation information;
and updating the information in the information page of the third object according to the fourth object relation information.
The embodiments of the present disclosure also provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the information updating method in the above method embodiments. The storage medium may be a volatile or non-volatile computer-readable storage medium.
The computer program product of the information updating method provided in the embodiments of the present disclosure includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the steps of the information updating method in the above method embodiments, which may be referred to specifically for the above method embodiments, and are not described herein again.
The embodiments of the present disclosure also provide a computer program, which when executed by a processor implements any one of the methods of the foregoing embodiments. The computer program product may be embodied in hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (11)

1. An information updating method, comprising:
receiving an information updating instruction of a first information page aiming at a first object;
acquiring updated first object relationship information carried in the information updating instruction, wherein the first object relationship information is used for indicating the relationship of a second object relative to the first object;
determining at least one target information page to be updated according to the relationship attribute corresponding to the first object relationship information; the at least one target information page comprises the first information page;
and respectively updating the information in the at least one target information page according to the first object relation information.
2. The method according to claim 1, wherein the relationship attribute corresponding to the first object relationship information is determined according to the following steps:
searching standard relation information matched with the first object relation information in a relation database;
and responding to a selection instruction of the user for the standard relation information, and determining the relation attribute of the standard relation information corresponding to the selection instruction as the relation attribute corresponding to the first object relation information.
3. The method according to claim 2, wherein the relational database includes a plurality of standard relational information and a plurality of supplementary relational information, and each standard relational information corresponds to at least one supplementary relational information;
the searching, in the relational database, for standard relationship information that matches the first object relationship information includes:
if the standard relation information which is the same as the first object relation information is found in the relation database, determining the standard relation information as the standard relation information matched with the first object relation information;
and if the supplementary relationship information which is the same as the first object relationship information is found in the relationship database, determining the standard relationship information corresponding to the supplementary relationship information as the standard relationship information matched with the first object relationship information.
4. The method according to claim 1, wherein the relationship attribute corresponding to the first object relationship information comprises: any one of a unidirectional relationship, a bidirectional relationship, and an inverse relationship.
5. The method according to claim 4, wherein the determining at least one target information page to be updated according to the relationship attribute corresponding to the first object relationship information comprises:
and under the condition that the relationship attribute of the first object relationship information is in a one-way relationship, determining the at least one target information page to be updated as the first information page.
6. The method according to claim 4, wherein the determining at least one target information page to be updated according to the relationship attribute corresponding to the first object relationship information comprises:
and under the condition that the relationship attribute of the first object relationship information is a bidirectional relationship or a reverse relationship, determining that the at least one target information page to be updated comprises the first information page and a second information page of the second object.
7. The method according to claim 6, wherein in a case that the relationship attribute of the first object relationship information is the inverse relationship, said updating information in the at least one target information page respectively according to the first object relationship information comprises:
determining second object relationship information corresponding to the first object relationship information; the second object relationship information is used for indicating the relationship of the first object relative to the second object;
updating information in a first information page of the first object based on the first object relationship information; and updating information in a second information page of the second object based on the second object relationship information.
8. The method of claim 1, further comprising:
determining a third object associated with the first object and third object relation information of the third object relative to the first object based on a pre-constructed relation map;
determining fourth object relation information of the second object relative to the third object according to the first object relation information and the third object relation information;
and updating the information in the information page of the third object according to the fourth object relation information.
9. An information updating apparatus, comprising:
the device comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving an information updating instruction of a first information page aiming at a first object;
an obtaining module, configured to obtain updated first object relationship information carried in the information update instruction, where the first object relationship information is used to indicate a relationship between a second object and the first object;
the determining module is used for determining at least one target information page to be updated according to the relationship attribute corresponding to the first object relationship information; the at least one target information page comprises the first information page;
and the updating module is used for respectively updating the information in the at least one target information page according to the first object relation information.
10. A computer device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when a computer device is running, the machine-readable instructions when executed by the processor performing the steps of the information updating method according to any one of claims 1 to 8.
11. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the information updating method according to any one of claims 1 to 8.
CN202010300205.7A 2020-04-16 2020-04-16 Information updating method and device Active CN111488405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010300205.7A CN111488405B (en) 2020-04-16 2020-04-16 Information updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010300205.7A CN111488405B (en) 2020-04-16 2020-04-16 Information updating method and device

Publications (2)

Publication Number Publication Date
CN111488405A true CN111488405A (en) 2020-08-04
CN111488405B CN111488405B (en) 2022-02-18

Family

ID=71795146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010300205.7A Active CN111488405B (en) 2020-04-16 2020-04-16 Information updating method and device

Country Status (1)

Country Link
CN (1) CN111488405B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060088038A1 (en) * 2004-09-13 2006-04-27 Inkaar, Corporation Relationship definition and processing system and method
US20070258553A1 (en) * 2000-01-19 2007-11-08 Sony Ericsson Mobile Communications Ab Method of apparatus for event-based synchronization of information between communication devices
CN103473239A (en) * 2012-06-08 2013-12-25 腾讯科技(深圳)有限公司 Method and device for updating data of non relational database
US20150254272A1 (en) * 2014-03-05 2015-09-10 Giorgio Regni Distributed Consistent Database Implementation Within An Object Store
CN105512340A (en) * 2015-12-31 2016-04-20 小米科技有限责任公司 Information updating method and device
CN105630876A (en) * 2015-12-17 2016-06-01 百度在线网络技术(北京)有限公司 Cross-application information obtaining method and device
US20160314138A1 (en) * 2015-04-24 2016-10-27 International Business Machines Corporation Managing data records
CN106202367A (en) * 2016-07-07 2016-12-07 腾讯科技(深圳)有限公司 A kind of processing method and processing device of object information
CN106844635A (en) * 2017-01-19 2017-06-13 腾讯科技(深圳)有限公司 The edit methods and device of the element in webpage
CN107315764A (en) * 2017-05-11 2017-11-03 北京奇艺世纪科技有限公司 A kind of update method and system of non-relational database associated data
US20180004828A1 (en) * 2016-06-30 2018-01-04 Facebook, Inc. Techniques for replication of a client database to remote devices
CN108197210A (en) * 2017-12-28 2018-06-22 掌阅科技股份有限公司 User based on friend relation interacts reading method and computing device
CN109657073A (en) * 2018-12-21 2019-04-19 北京百度网讯科技有限公司 Method and apparatus for generating information
CN110222199A (en) * 2019-06-20 2019-09-10 青岛大学 A kind of character relation map construction method based on ontology and a variety of Artificial neural network ensembles
CN110825756A (en) * 2019-10-31 2020-02-21 北京东软望海科技有限公司 Data synchronization method, device, storage medium and equipment

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070258553A1 (en) * 2000-01-19 2007-11-08 Sony Ericsson Mobile Communications Ab Method of apparatus for event-based synchronization of information between communication devices
US20060088038A1 (en) * 2004-09-13 2006-04-27 Inkaar, Corporation Relationship definition and processing system and method
CN103473239A (en) * 2012-06-08 2013-12-25 腾讯科技(深圳)有限公司 Method and device for updating data of non relational database
US20150254272A1 (en) * 2014-03-05 2015-09-10 Giorgio Regni Distributed Consistent Database Implementation Within An Object Store
US20160314138A1 (en) * 2015-04-24 2016-10-27 International Business Machines Corporation Managing data records
CN105630876A (en) * 2015-12-17 2016-06-01 百度在线网络技术(北京)有限公司 Cross-application information obtaining method and device
CN105512340A (en) * 2015-12-31 2016-04-20 小米科技有限责任公司 Information updating method and device
US20180004828A1 (en) * 2016-06-30 2018-01-04 Facebook, Inc. Techniques for replication of a client database to remote devices
CN106202367A (en) * 2016-07-07 2016-12-07 腾讯科技(深圳)有限公司 A kind of processing method and processing device of object information
CN106844635A (en) * 2017-01-19 2017-06-13 腾讯科技(深圳)有限公司 The edit methods and device of the element in webpage
CN107315764A (en) * 2017-05-11 2017-11-03 北京奇艺世纪科技有限公司 A kind of update method and system of non-relational database associated data
CN108197210A (en) * 2017-12-28 2018-06-22 掌阅科技股份有限公司 User based on friend relation interacts reading method and computing device
CN109657073A (en) * 2018-12-21 2019-04-19 北京百度网讯科技有限公司 Method and apparatus for generating information
CN110222199A (en) * 2019-06-20 2019-09-10 青岛大学 A kind of character relation map construction method based on ontology and a variety of Artificial neural network ensembles
CN110825756A (en) * 2019-10-31 2020-02-21 北京东软望海科技有限公司 Data synchronization method, device, storage medium and equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DEEPAK KUMAR GANESHIYA等: "《A novel approach for webpage ranking using updated content》", 《IEEE》 *
郑金光: "《基于Android终端的用户信息同步平台设计与实现》", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Also Published As

Publication number Publication date
CN111488405B (en) 2022-02-18

Similar Documents

Publication Publication Date Title
CN110046236B (en) Unstructured data retrieval method and device
JP6285943B2 (en) Ranking for recursive synthesis of string transformations.
EP3089055A1 (en) Method and device for displaying information flows in social network, and server
CN113378061B (en) Information searching method, device, computer equipment and storage medium
CN105930390B (en) Relational database expansion method and system
US10268655B2 (en) Method, device, server and storage medium of searching a group based on social network
US11321361B2 (en) Genealogical entity resolution system and method
US20180188897A1 (en) Behavior feature use in programming by example
CN109564588A (en) Learning data filtering
CN110399448B (en) Chinese place name address searching and matching method, terminal and computer readable storage medium
WO2011163000A2 (en) Memorable resource names
CN111488405B (en) Information updating method and device
CN105843809B (en) Data processing method and device
CN107273425B (en) ORM framework-based database development method and device
CN112231317B (en) Data query method, device, electronic device and storage medium
CN116467433A (en) Knowledge graph visualization method, device, equipment and medium for multi-source data
CN114745594A (en) Method and device for generating live playback video, electronic equipment and storage medium
CN114020245A (en) Page construction method and device, equipment and medium
CN115080829A (en) Search result display method and device, computer equipment and storage medium
CN114298699A (en) Non-homogeneous token generation method, non-homogeneous token acquisition method and non-homogeneous token acquisition device
CN113377975A (en) Multimedia resource processing method and device, computer equipment and storage medium
Blackmore et al. Introducing the queer archaeology interest group
CN111552896B (en) Information updating method and device
JP3208635U (en) Switchable kanji assembly system
US12032710B2 (en) Document creation and management system

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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.