Data processing method, device, electronic device and storage medium

By using point elements and edge elements in the graph database to represent the relationship between user accounts and production characteristics, the complex calculation problem of database screening process in the prior art is solved, and faster and more efficient query and screening are achieved.

CN114861006BActive Publication Date: 2025-02-25BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210467555.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-29
Publication Date
2025-02-25
Estimated Expiration
2042-04-29

AI Technical Summary

Technical Problem

When displaying relevant information about friend user accounts in the prior art, the database screening process is complex, resulting in time delay and high computing resource overhead.

Method used

The graph database is used to store the relationship between user accounts and production features through point elements and edge elements, and the target user account is determined based on user accounts, production features and graph database.

Benefits of technology

Simplifies the relationship storage and query of user accounts and production features, saves storage space, reduces storage overhead, improves query and filtering speed, and reduces delay.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114861006B_ABST
    Figure CN114861006B_ABST
Patent Text Reader

Abstract

The present disclosure is about a data processing method, device, electronic device and storage medium, and relates to the field of computer technology. The method includes: when the electronic device where the first user account is located requests to play the first video work, the first user account and the first production feature are obtained, and the first production feature is the production feature of the first video work; according to the first user account, the first production feature and the graph database, the target user account is determined, the target user account has a social relationship with the first user account, and the published video work has the first production feature; the graph database includes multiple point elements and at least one edge element, and a point element is used to characterize a user account. Using a graph database, the relationship between each user account and between the user account and the production feature can be stored very concisely and clearly, which can save storage space, reduce storage overhead, increase the speed of querying the target user account, and reduce query delay.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a data processing method, device, electronic device and storage medium. Background Art

[0002] User accounts can create video works through applications installed on electronic devices and publish them on social platforms for other user accounts to play and watch. Applications used to create video works usually provide many templates for quickly creating videos or materials for enriching the content of video works, such as audio, emoticons, animated graphics, videos, text, etc.

[0003] In the related art, when a user account requests to play a video work produced by a certain template or a certain material on the above social platform, the relevant information of the friend user account that has used the template or material will be displayed on the video work playback page to stimulate the user account's interest in producing video works, thereby increasing the number of new users of the video production application and improving the activity of old users. However, when displaying the relevant information of the friend user account, the process of screening out the friend user account that meets the conditions from the database is complex in calculation, resulting in extended time and high computing resource consumption. Summary of the invention

[0004] The present disclosure provides a data processing method, device, electronic device and storage medium to at least solve the problem of complex calculations in related technologies, resulting in extended time and large computing resource overhead. The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, a data processing method is provided, including: when an electronic device where a first user account is located requests to play a first video work, obtaining the first user account and a first production feature, the first production feature being the production feature of the first video work; determining a target user account based on the first user account, the first production feature and a graph database; wherein the target user account has a social relationship with the first user account, and the released video work has the first production feature; the graph database includes multiple point elements and at least one edge element, one point element is used to represent one user account, and the multiple point elements include a first point element used to represent the first user account; one edge element is used to associate two point elements and represent the production feature of a video work released by a user account represented by at least one of the two point elements, and at least one edge element includes an edge element used to represent the first production feature.

[0006] In a possible implementation, the target user account is used to generate description information of the first video work, and the description information of the first video work is used to be displayed on the electronic device where the first user account is located.

[0007] In another possible implementation, a target user account is determined based on the first user account, the first production feature, and a graph database, including: determining a second point element in the graph database based on the first user account and the first production feature; the second point element includes a point element associated with the first point element through a target edge element, and the production feature represented by the target edge element is the first production feature; and determining the target user account from the second user account represented by the second point element.

[0008] In another possible implementation, determining a second point element in a graph database based on the first user account and the first production feature includes: determining a first point element in the graph database that represents the first user account; determining a target edge element based on the first point element; and determining point elements other than the first point element associated with the target edge element as second point elements.

[0009] In another possible implementation, each edge element has direction information, and the direction information of the edge element represents that the edge element points from the starting point element to the ending point element. The starting point element and the ending point element are two point elements associated with the edge element, and the production features represented by the edge element are the production features of the video work released by the user account represented by the starting point element.

[0010] In another possible implementation, determining a target edge element based on the first point element includes: determining an edge element pointing to the first point element as a candidate edge element based on direction information of each edge element connected to the first point element; and determining a candidate edge element representing a first production feature as a target edge element.

[0011] In another possible implementation, user accounts represented by two point elements associated with an edge element have a social relationship.

[0012] In another possible implementation, the social relationship includes a two-way attention relationship, a one-way attention relationship, and an interactive relationship.

[0013] In another possible implementation, the two-way following relationship, the one-way following relationship, and the interactive relationship have different priorities; determining the target user account from the second user accounts represented by the second point element includes: determining the target user account from the second user accounts represented by the second point element according to the priority of the social relationship between each second user account and the first user account.

[0014] In another possible implementation, the method further includes: when the electronic device where the third user account is located requests to publish the second video work, obtaining a second production feature, the second production feature being the production feature of the second video work; establishing an edge element for associating a third point element and a fourth point element in a graph database, the third point element being a point element representing the third user account, the fourth point element being a point element representing a fourth user account, and the fourth user account being a user account having a social relationship with the third user account.

[0015] In another possible implementation, before establishing an edge element for associating the third point element and the fourth point element in the graph database, the method further includes: if the third point element and / or the fourth point element do not exist in the graph database, establishing the third point element and / or the fourth point element in the graph database.

[0016] In another possible implementation, an edge element for associating a third point element and a fourth point element is established in a graph database, including: establishing an edge element representing a second production feature between the third point element and the fourth point element; and configuring direction information of the established edge element to represent the direction from the third point element to the fourth point element.

[0017] Another possible implementation further includes: deleting the edge element when the validity period of the edge element reaches a preset time, or when the social relationship between the user accounts represented by the two point elements associated with the edge element is dissolved.

[0018] In another possible implementation, a point element corresponds to an account identifier to represent a user account corresponding to the account identifier; an edge element corresponds to a feature identifier to represent a production feature corresponding to the feature identifier.

[0019] In another possible implementation, the type information of edge elements representing different production features is different, and different type information corresponds to different feature identifiers.

[0020] In another possible implementation, the first production feature is a feature of a production template and / or material used to generate the first video work.

[0021] According to a second aspect of an embodiment of the present disclosure, a data processing device is provided, including: an acquisition unit, configured to execute, when an electronic device where a first user account is located requests to play a first video work, to acquire the first user account and a first production feature, the first production feature being the production feature of the first video work; a determination unit, configured to execute, based on the first user account, the first production feature and a graph database, to determine a target user account; wherein the target user account has a social relationship with the first user account, and the published video work has the first production feature; the graph database includes a plurality of point elements and at least one edge element, a point element is used to represent a user account, and the plurality of point elements include a first point element used to represent the first user account; an edge element is used to associate two point elements and represent the production feature of a video work published by a user account represented by at least one of the two point elements, and at least one edge element includes an edge element used to represent the first production feature.

[0022] In a possible implementation, the target user account is used to generate description information of the first video work, and the description information of the first video work is used to be displayed on the electronic device where the first user account is located.

[0023] In another possible implementation, the determination unit is configured to specifically perform: determining a second point element in the graph database based on the first user account and the first production feature; the second point element includes a point element associated with the first point element through a target edge element, and the production feature represented by the target edge element is the first production feature; determining the target user account from the second user account represented by the second point element.

[0024] In another possible implementation, the determination unit is configured to specifically perform: determining a first point element representing a first user account in a graph database; determining a target edge element based on the first point element; and determining point elements other than the first point element associated with the target edge element as second point elements.

[0025] In another possible implementation, each edge element has direction information, and the direction information of the edge element represents that the edge element points from the starting point element to the ending point element. The starting point element and the ending point element are two point elements associated with the edge element, and the production features represented by the edge element are the production features of the video work released by the user account represented by the starting point element.

[0026] In another possible implementation, the determination unit is configured to specifically perform: determining the edge element pointing to the first point element as a candidate edge element based on direction information of each edge element connected to the first point element; and determining the candidate edge element representing the first production feature as a target edge element.

[0027] In another possible implementation, user accounts represented by two point elements associated with an edge element have a social relationship.

[0028] In another possible implementation, the social relationship includes a two-way attention relationship, a one-way attention relationship, and an interactive relationship.

[0029] In another possible implementation, the two-way attention relationship, the one-way attention relationship and the interactive relationship have different priorities; the determination unit is configured to specifically execute: determining the target user account from the second user accounts represented by the second point element according to the priority of the social relationship between each second user account and the first user account.

[0030] In another possible implementation, the device also includes: a screening unit, configured to execute, when the electronic device where the third user account is located requests to publish the second video work, obtaining a second production feature, the second production feature being the production feature of the second video work; a construction unit, configured to execute establishing an edge element for associating a third point element and a fourth point element in a graph database, the third point element being a point element representing the third user account, the fourth point element being a point element representing a fourth user account, and the fourth user account being a user account having a social relationship with the third user account.

[0031] In another possible implementation, the construction unit is further configured to execute: if the third point element and / or the fourth point element does not exist in the graph database, then establish the third point element and / or the fourth point element in the graph database.

[0032] In another possible implementation, the construction unit is configured to specifically execute: establishing an edge element representing the second production feature between the third point element and the fourth point element; and configuring direction information of the established edge element to represent the direction from the third point element to the fourth point element.

[0033] In another possible implementation, the construction unit is further configured to execute: when the validity period of the edge element reaches a preset time, or when the social relationship between the user accounts represented by the two point elements associated with the edge element is dissolved, delete the edge element.

[0034] In another possible implementation, a point element corresponds to an account identifier to represent a user account corresponding to the account identifier; an edge element corresponds to a feature identifier to represent a production feature corresponding to the feature identifier.

[0035] In another possible implementation, the type information of edge elements representing different production features is different, and different type information corresponds to different feature identifiers.

[0036] In another possible implementation, the first production feature is a feature of a production template and / or material used to generate the first video work.

[0037] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor and a memory for storing processor executable instructions; wherein the processor is configured to execute executable instructions to implement a data processing method as in the first aspect and any possible implementation manner thereof.

[0038] According to the fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an image processing device or an electronic device, the image processing device or the electronic device can perform a data processing method as in the first aspect and any possible implementation manner thereof.

[0039] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program or instructions, wherein the computer program or instructions are executed by a processor as the data processing method of the first aspect and any possible implementation manner thereof.

[0040] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0041] In a graph database that stores data in the form of point elements and edge elements, a point element represents a user account, and an edge element connects two point elements (user accounts) with an associated relationship, and represents the production features of the video work published by the user account represented by at least one of the two point elements. When the first user account requests to play the first video work, the first production feature of the first video work is obtained, and then according to the first user account, the first production feature and the above-mentioned graph database, the target user account that has a social relationship with the first account and the video work published has the first production feature can be determined. It can be seen that the use of a graph database can express the relationship between each user account and between the user account and the production feature in a very concise and clear manner in the form of point elements and edge elements. On the one hand, it saves storage space and reduces storage overhead. On the other hand, it can improve the speed of querying and filtering target user accounts and reduce the delay caused by querying and filtering their relationships.

[0042] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0044] Figure 1 is a schematic diagram of a data processing system according to an exemplary embodiment;

[0045] Figure 2 is a flow chart of a data processing method according to an exemplary embodiment;

[0046] Figure 3 is a schematic diagram showing a data processing process according to an exemplary embodiment;

[0047] Figure 4 is a flow chart of another data processing method according to an exemplary embodiment;

[0048] Figure 5 is a block diagram of a data processing device according to an exemplary embodiment;

[0049] Figure 6 The diagram is a schematic diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0050] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0051] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0052] Before introducing the data processing method provided by the embodiment of the present disclosure in detail, the implementation environment and application scenarios involved in the embodiment of the present disclosure are briefly introduced.

[0053] First, the application scenarios involved in the present disclosure are briefly introduced.

[0054] In the related art, when a user account requests to play a video work produced by a certain template or a certain material on the above social platform, the relevant information of the friend user account who has used the template or material will be displayed on the video work playback page, stimulating the user account's interest in producing video works, thereby increasing the number of new users of the video production application and improving the activity of old users. However, when displaying the relevant information of the friend user account, the process of screening out the friend user account that meets the conditions from the database is complex in calculation, resulting in extended time and high computing resource consumption.

[0055] In response to the above problems, the present disclosure provides a data processing method, which, when an electronic device where a first user account is located requests to play a first video work, obtains the first user account and a first production feature, where the first production feature is the production feature of the first video work; determines a target user account based on the first user account, the first production feature and a graph database, where the target user account has a social relationship with the first user account, and the published video work has the first production feature; the graph database includes multiple point elements and at least one edge element, where one point element is used to represent one user account, and the multiple point elements include a first point element used to represent the first user account; an edge element is used to associate two point elements and represent the production features of a video work published by a user account represented by at least one of the two point elements, and at least one edge element includes an edge element used to represent the first production feature.

[0056] In a graph database that stores data in the form of point elements and edge elements, a point element represents a user account, and an edge element connects two point elements (user accounts) with a social relationship and represents the production features of a video work published by a user account represented by at least one of the two point elements. When a first user account requests to play a first video work, the first production feature of the first video work is obtained, and then based on the first user account, the first production feature and the above-mentioned graph database, the target user account that has a social relationship with the first account and has published a video work with the first production feature can be determined.

[0057] The use of a graph database can concisely and clearly represent the relationships between user accounts and between user accounts and production features in the form of point elements and edge elements. On the one hand, it saves storage space and reduces storage overhead. On the other hand, it can increase the speed of querying and filtering target user accounts and reduce the delay caused by querying and filtering their relationships.

[0058] Or it can be understood in this way that, through the implementation methods of the present disclosure, on the one hand, when storing all user accounts and corresponding social relationships, only one graph database is stored, avoiding the problem of large memory consumption caused by classifying and storing each user account and the social relationship between each user account separately, thereby saving memory space and reducing memory overhead. On the other hand, when it is necessary to obtain the relationship between each user account and the production characteristics, its point elements and edge elements are directly obtained from the graph database, without querying and screening the relationship between its user account and the production characteristics one by one, reducing the delay caused by querying and screening its relationship, thereby ensuring the rapidity of obtaining the relationship between its user account and the production characteristics.

[0059] It should be noted that the user information involved in this disclosure (including but not limited to user device information, user personal information, etc.) is all information authorized by the user account or fully authorized by all parties.

[0060] Next, the implementation environment (implementation architecture) involved in the present disclosure is briefly introduced below.

[0061] Figure 1 A schematic diagram of a data processing system provided in an embodiment of the present disclosure is shown in FIG. Figure 1 As shown, the data processing system may include: a server 110 and a terminal 120. The server 110 may establish a connection with the terminal 120 via a wired network or a wireless network.

[0062] Among them, the server 110 can be a data server of some multimedia resource service platforms, which can be used to store and process relevant information of user accounts corresponding to multimedia resources. For example, the multimedia resource service platform can be a short video application service platform, a news service platform, a live broadcast service platform, a shopping service platform, a takeaway service platform, a sharing service platform, a functional website, etc. Among them, the multimedia resources provided by the short video application service platform can be some short video works, the multimedia resources provided by the news service platform can be some news information, and the multimedia resources provided by the live broadcast service platform can be live broadcast works, etc., and the rest will not be repeated one by one. The present disclosure does not limit the specific type of multimedia resource service platform.

[0063] In the present disclosure, the server 110 may include multiple short video application service platforms, each of which corresponds to a unique application. The application is installed on the terminal and displays multimedia resources on the content display interface of the terminal. The server 110 is mainly used to store relevant data of the content community application installed on the terminal 120, and can send the corresponding data to the terminal when receiving a data acquisition request sent by the terminal 120.

[0064] Specifically, the server 110 processes the stored user accounts and user account information to determine the target user account that the server needs to find from multiple user accounts, and sends the relevant information of the determined target user account to the terminal 120, so that the terminal 120 can display the relevant information of the target user account.

[0065] In some embodiments, the server 110 may also include a database or be connected to a database, and the multimedia resources of the multimedia resource service platform may be stored in the database. The terminal 120 may access the multimedia resources in the database through the server 110 .

[0066] In some other embodiments, the server 110 may be a single server, or may be a server cluster composed of multiple servers. In some implementations, the server cluster may also be a distributed cluster. The present disclosure does not limit the specific implementation of the server 110.

[0067] The terminal 120 may be a mobile phone, tablet computer, desktop, laptop, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, cellular phone, personal digital assistant (PDA), augmented reality (AR)\virtual reality (VR) device, etc., which can install and use content community applications (such as Kuaishou), and the present disclosure does not impose any special restrictions on the specific form of the terminal. It can interact with the user through one or more methods such as keyboard, touchpad, touch screen, remote control, voice interaction or handwriting device.

[0068] Optionally, the above Figure 1 In the communication system shown, the server 110 may be connected to at least one terminal 120. The present disclosure does not limit the number and type of the terminal 120.

[0069] The data processing method provided in the embodiment of the present disclosure can be applied to the aforementioned Figure 1 For ease of understanding, the data processing method provided by the present disclosure is specifically introduced below in conjunction with the accompanying drawings.

[0070] In the disclosed embodiment, the graph database includes multiple point elements and at least one edge element. One point element is used to represent one user account. The multiple point elements include a first point element used to represent a first user account. One edge element is used to associate two point elements and represent two point elements, that is, one edge element connects two point elements. Each edge element has direction information. The direction information of the edge element represents that the edge element points from the starting point element to the ending point element. The starting point element and the ending point element are two point elements associated with the edge element. The production features represented by the edge element are the production features of the video work published by the user account represented by the starting point element.

[0071] Figure 2 is a flow chart of a data processing method according to an exemplary embodiment. Figure 2 As shown, the data processing method is used in a server and includes the following steps.

[0072] Step S21: When the electronic device where the first user account is located requests to play the first video work, the first user account and the first production feature are obtained.

[0073] Among them, the first production feature is the production feature of the first video work.

[0074] In one implementation, the first production feature is a feature of a production template and / or material used to generate the first video work.

[0075] In this implementation, the first production feature may be at least one of the features of a production template and a material used to generate the first video work.

[0076] Through this implementation, one or more of the production template and materials of the video work are used as production features, ensuring the diversity of the production features.

[0077] Step S22: Determine a target user account based on the first user account, the first production feature and the graph database.

[0078] Among them, the target user account has a social relationship with the first user account, and the released video work has a first production feature; the graph database includes multiple point elements and at least one edge element, one point element is used to represent a user account, and the multiple point elements include a first point element used to represent the first user account; an edge element is used to associate two point elements and represent the production characteristics of the video work released by the user account represented by at least one point element of the two point elements, and at least one edge element includes an edge element used to represent the first production feature.

[0079] In one implementation, a point element corresponds to an account identifier to represent a user account corresponding to the account identifier; an edge element corresponds to a feature identifier to represent a production feature corresponding to the feature identifier.

[0080] In this embodiment, a user account corresponds to an account identifier one-to-one, and a production feature corresponds to a feature identifier. In the graph database, a point element corresponds to an account identifier one-to-one, and an edge element corresponds to a feature identifier. By setting the above correspondence, a point element in the graph database can only represent one user account and an edge element can only represent one production feature, ensuring that each point element and a certain type of edge element in the graph database has a unique identification identifier. Therefore, when it is necessary to query the target user account, the corresponding target point element and target edge element can be quickly located in a large number of point elements and edge elements in the graph database directly through its account identifier and the corresponding feature identifier, thereby accurately determining the target user account, ensuring the rapidity and accuracy of extracting data related to the target user account.

[0081] In another embodiment, each edge element has direction information, and the direction information of the edge element represents that the edge element points from the starting point element to the ending point element. The starting point element and the ending point element are two point elements associated with the edge element, and the production features represented by the edge element are the production features of the video work released by the user account represented by the starting point element.

[0082] In this implementation, direction information is established between each point element in the graph database, and the account type of each user account is clarified through the direction information, that is, whether the user account is a user account that publishes production features or a user account that uses production features. And the direction information is used to clarify the relationship between two user accounts corresponding to two point elements associated with an edge element, that is, clarify the user account that publishes production features and the user account that uses production features.

[0083] The above-mentioned user account using the production feature can also be understood as watching or viewing video works produced using the production feature.

[0084] For example, Figure 3 As shown, each edge element L1, L2, L3, L4 and L5 has an arrow direction indicating direction information. The arrow direction of the edge element L1 points from the starting point element M2 to the ending point element M1. The starting point element M2 points to the ending point element M1, which are two point elements associated with the edge element L1. The first production feature represented by the edge element L1 is the production feature of the video work released by the user account represented by the starting point element M2.

[0085] Through the above direction information, the directional relationship between the two point elements associated with the edge element is clarified, thereby clarifying which of the two user accounts corresponding to the two point elements is the user account that published the video work with the production characteristics. Therefore, based on the direction information of the edge element, the user account that has published the video work with a certain production feature can be screened out, thereby providing a more effective and direct basis for querying the target user account.

[0086] As a possible implementation, the above step S22 can be specifically implemented by following steps 1 to 2.

[0087] Step 1: Determine a second point element in the graph database based on the first user account and the first production feature.

[0088] It should be noted that the second point element includes a point element associated with the first point element through a target edge element, and the production feature represented by the target edge element is the first production feature.

[0089] Step 2: Determine the target user account from the second user accounts represented by the second point element.

[0090] In this embodiment, according to the first user account and the first production characteristic, a point element that is associated with the first point element through the target edge element is selected from the graph database. The point element selected from the graph database is used as the second point element, so as to determine the target user account according to the second user account represented by the second point element.

[0091] It should be noted that the second point element mentioned above may be one or more point elements.

[0092] For example, Figure 3 As shown, the point element representing the first user account is the first point element M1, and the point element associated with the first point element M1 through the first production feature is the second point element M2. In the above implementation, the target edge element representing the first production feature is first determined from all edge elements connected to the first point element, thereby determining the second point element connected to the first point element through the target edge element, and finally determining the target user account from the user accounts represented by the second point element. Compared with the existing storage and query methods, the speed of querying and filtering target user accounts can be improved, and the delay caused by querying and filtering their relationships can be reduced.

[0093] Or it can be understood that, through the above implementation, the second point element in the graph database that has established an association relationship with both the target edge element and the first point element is obtained in parallel at one time, and then the target user account is obtained at one time. This acquisition method is very direct and efficient, and does not require a lot of time to compare and screen all the friend user accounts of the user account one by one, thereby greatly reducing the delay in the process of obtaining the target user account.

[0094] As a possible implementation, user accounts represented by two point elements associated with an edge element have a social relationship.

[0095] In the above implementation, any edge element in the graph database is associated with two point elements, and the two point elements correspond to two user accounts and have a social relationship.

[0096] Through this implementation, there must be a social relationship between the two point elements connected by the user edge element. Therefore, when querying the friend accounts of its user account, there is no need to query the friend relationships of the user account. Only the edge elements associated with the user account are used directly to determine the user accounts that have social relationships with its user account, thereby ensuring the speed and accuracy of obtaining the friend accounts of its user account.

[0097] In a possible implementation, the social relationship includes a two-way following relationship, a one-way following relationship, and an interactive relationship. For example, if the first user account and the second user account follow each other, the two are in a two-way following relationship. If only the first user account follows the second user account or only the second user account follows the first user account, the two are in a one-way following relationship. If the interaction frequency between the first user account and the second user account is greater than or equal to a preset frequency, the two are in an interactive relationship.

[0098] In this implementation, the social relationship may be determined through bidirectional attention relationships, unidirectional attention relationships, and interactive relationships.

[0099] Through this implementation, social relationships are determined using multiple relationship dimensions, making the social relationships established between user accounts more comprehensive, avoiding the problem of missing point elements of friend users associated with user accounts in the graph database due to ignoring one of the above relationship dimensions, thereby ensuring the accuracy of the social relationships between user accounts represented by the graph database.

[0100] In a possible implementation manner, the above step 2 may be specifically performed by the following implementation manner:

[0101] Specifically, according to the priority of the social relationship between each second user account and the first user account, the target user account is determined from the second user accounts represented by the second point element.

[0102] It should be noted that two-way attention relationships, one-way attention relationships, and interactive relationships have different priorities.

[0103] In this implementation, user accounts in the second user account are screened according to the priority of the social relationship, and the screened user accounts with high priority are used as target user accounts.

[0104] Through the above implementation, the target user account obtained is a user account with a high social relationship priority with its user account, which ensures that the target user account and its user account have a high degree of adhesion, thereby ensuring that the obtained target user account is more in line with the expected value of the user account.

[0105] As an implementation mode, the above step 1 can be specifically implemented by following steps 3 to 5.

[0106] Step 3: Determine the first point element representing the first user account in the graph database.

[0107] Step 4: Determine the target edge element based on the first point element.

[0108] Step 5: Determine the point element other than the first point element associated with the target edge element as the second point element.

[0109] In this implementation, a first point element is first determined from a graph database according to a first user account. Then, a target edge element is screened from edge elements associated with the first point element according to a first production feature. Thus, point elements other than the first point element associated with the target edge element are used as second point elements.

[0110] For example, Figure 3 As shown, the first point element M1 is first determined from the graph database. Then, from the edge elements L1, L2, L3, L4 and L5 connected to the first point element, L1 and L2 that can represent the first manufacturing characteristic are selected as target edge elements. From the point elements M1 and M2 associated with L1 and L2, the first point element M1 is removed, and the remaining point element M2 after removing the first point element M1 is used as the second point element.

[0111] In the above implementation, the first point element representing the first user account is first determined from the graph database, and then the target edge element representing the first production feature is determined from all edge elements connected to the first point element, and then the point elements other than the first point element associated with the target edge element are determined as the second point element. It can be seen that the second point element can be queried through three-step query operations, and each query step can filter out a large amount of data, which can improve the speed of querying and filtering target user accounts and reduce the delay caused by querying and filtering their relationships.

[0112] As a possible implementation, the above step 4 can be specifically implemented by following steps 6 and 7.

[0113] Step 6: According to the direction information of each edge element connected to the first point element, the edge element pointing to the first point element is determined as a candidate edge element;

[0114] Step 7: Determine the candidate edge element representing the first production feature as the target edge element.

[0115] In this embodiment, the direction information of the edge element pointing to the first point element is used as the screening condition to screen the edge elements connected to the first point element to determine the candidate edge elements. From the candidate edge elements, the edge element that can represent the first production characteristic is screened as the target edge element.

[0116] It should be noted that each edge element connected to the first point element may also be understood as each edge element adjacent to and connected to the first point element.

[0117] For example, Figure 3 As shown, the direction of the arrow points to the direction information of the edge element. First, determine the direction information of the edge elements adjacent to the first point element, that is, the arrow directions of L1, L2, L3, L4 and L5. Then, from L1, L2, L3, L4 and L5, determine the edge element whose arrow points to the first point element M1 as the candidate edge element, that is, the candidate edge elements are L1, L2 and L4. Then, from the candidate edge elements L1, L2 and L4, screen out the edge elements L1 and L2 that can characterize the first manufacturing characteristic, and use the screened L1 and L2 as the target edge elements.

[0118] In the above implementation, the direction information of each edge element connected by the first point element is used to determine the candidate edge element. The user account represented by the candidate edge element is a user account that has a social relationship with the first user account and has published a video work with a certain production feature. Then, the user account that has published a video work with the first production feature is screened from the candidate edge elements, that is, from the aforementioned user accounts. .

[0119] As an implementation mode, after executing the above step S22, the following step eight may also be executed.

[0120] Step 8: The target user account is used to generate description information of the first video work. The description information of the first video work is used in this implementation to generate description information of the first video work according to the target user account, and display the description information of the first video work on the electronic device where the first user account is located.

[0121] In this implementation, description information of the first video work is generated according to the target user account, and the description information of the first video work is displayed on the electronic device where the first user account is located.

[0122] Exemplarily, the description information of the first video work includes information of a target user account that publishes the video work with a first production feature and an editing tool for editing the first production feature.

[0123] The first production feature may be: video templates, materials or audio used to edit the video work.

[0124] In some embodiments, the description information of the first video work is used as guidance information or a guidance link to guide the first user account to view the first production feature related information of the target user account.

[0125] The description information of the first video work is displayed to the first user account, and the description information is generated according to the target account. For example, the description information may include information associated with the target user account that has a social relationship with the first user account, so as to prompt the first user account that its friend (target user account) has also used the first video feature to make a video. In this way, the first user account can be stimulated to make video works, thereby increasing the number of new users of the video making application and improving the activity of old users.

[0126] In the above implementation, when any first user account requests to play the first video work, the first production feature of the first video work is obtained. In a graph database with user accounts as point elements and production features as edge elements, the above first user account is represented in the form of a first point element, and the first production feature is represented in the form of an edge element that characterizes the first production feature. Therefore, based on the first user account and the first production feature, a user account that has a social relationship with the first user account and whose published video work has the first production feature is determined from the corresponding graph database, and the determined user account is used as the target user account. In the above method of using a graph database to determine the target user account corresponding to the first user account and the first production feature, the graph database can express the relationship between each user account and the production feature in a very concise and clear manner in the form of point elements and edge elements.

[0127] In the present disclosure, in a graph database storing data in the form of point elements and edge elements, a point element represents a user account, and an edge element connects two point elements (user accounts) with social relationships, and represents the production features of the video work published by the user account represented by at least one of the two point elements. When the first user account requests to play the first video work, the first production feature of the first video work is obtained, and then according to the first user account, the first production feature and the above-mentioned graph database, the target user account that has a social relationship with the first account and the published video work with the first production feature can be determined. By using a graph database, the relationship between each user account and between the user account and the production feature can be expressed very concisely and clearly in the form of point elements and edge elements. On the one hand, it saves storage space and reduces storage overhead. On the other hand, it can improve the speed of querying and screening target user accounts and reduce the delay caused by querying and screening their relationships.

[0128] Figure 4 is a flow chart of a data processing method according to another exemplary embodiment. Figure 4 As shown, the data processing method is used in an electronic device and includes the following steps.

[0129] Step S41: When the electronic device where the third user account is located requests to publish the second video work, the second production feature is obtained.

[0130] Among them, the second production feature is the production feature of the second video work.

[0131] Step S42: establishing an edge element for associating the third point element and the fourth point element in the graph database.

[0132] Among them, the third point element is a point element representing a third user account, the fourth point element is a point element representing a fourth user account, and the fourth user account is a user account having a social relationship with the third user account.

[0133] For example, Figure 3 As shown, when the third user account publishes the second video work, the point element used to characterize the third user account is determined as the third point element M3. And the production feature of the second video work is used as the second production feature. Therefore, in the graph database, the association relationship between the third point element M3 and the fourth point element M4 is constructed by using the edge element characterizing the second production feature as the edge element and the third point element M3 as the point element, that is, the connection relationship between the third point element M3 and the fourth point element M4 is established by using the edge element L6 characterizing the second production feature.

[0134] In a possible implementation manner, the above step S42 can be specifically performed by following steps nine and ten.

[0135] Step nine: Create an edge element representing the second manufacturing feature between the third point element and the fourth point element.

[0136] Step 10: Configure the direction information of the established edge element to represent the direction from the third point element to the fourth point element.

[0137] In this embodiment, an association relationship between the third point element and the fourth point element is established through the edge element of the second production feature. The direction information of the edge element of the second production feature is configured so that the third point element points to the fourth point element. The direction information is defined as the user account that published the second production feature points to the user account that did not publish the second production feature.

[0138] In some implementations, the user account that has not published the second production feature may be a user account that has used or may use the second production feature.

[0139] It should be noted that the above direction information is defined as the third point element pointing to the fourth point element, or it can be defined as the fourth point element pointing to the third point element. This application does not specifically limit the definition of direction information, and it can be defined according to the needs of the user account.

[0140] For example, Figure 3 As shown, the edge element L6 used to characterize the second production feature establishes an association relationship between the third point element M3 and the fourth point element M4, and the arrow direction of the edge element L6 points from the starting point element M3 to the ending point element M4. The second production feature represented by the edge element L6 is the production feature of the video work released by the user account represented by the starting point element M3.

[0141] Through this implementation, direction information in the graph database is constructed, and the relationship between each point element can be reasonably constructed, thereby ensuring the accuracy of constructing the graph database.

[0142] In a possible implementation, the following step eleven may also be executed, and the execution order of step eleven and the execution sequence of other steps are not specifically limited. For example, step eleven may be executed before, after and / or between step S41 and step S42.

[0143] Step 11: When the validity period of the edge element reaches a preset period, or the social relationship between the user accounts represented by the two point elements associated with the edge element is dissolved, the edge element is deleted.

[0144] In this implementation, on the one hand, when the validity period of an edge element reaches a preset time, the edge element is deleted from the graph database. On the other hand, when the social relationship between the user accounts represented by the two point elements associated with the edge element is terminated, the edge element is deleted.

[0145] Exemplarily, when the first user account and the second user account unfollow each other or the first user account and the second user account interact with each other very rarely, the social relationship between the first user account and the second user account is terminated.

[0146] In some implementations, after an edge element is deleted, the direction information in the edge element is also deleted.

[0147] Through this implementation, invalid edge elements or edge elements with no social relationship in the graph database are cleared, thereby ensuring the validity and real-time performance of the edge elements in the graph database, thereby ensuring the accuracy and real-time performance of the data stored in the graph database.

[0148] In one implementation, the type information of edge elements representing different production features is different, and different type information corresponds to different feature identifiers.

[0149] For example, Figure 3 As shown, when the first production feature and the second production feature are two different production features, the edge element L1 used to characterize the first production feature and the edge element L6 used to characterize the second production feature can be identified by two completely different feature identifiers. Specifically, the edge element L1 and the edge element L6 can be represented by different line types and / or different colors. Among them, the different line types are lines of different thicknesses, different dotted line types, different solid line types, etc.

[0150] In this implementation, different types of production features correspond to different feature identifiers, which facilitates the identification of edge elements and improves the speed of extracting data from the graph database.

[0151] In a possible implementation manner, before executing step S42, the following step eight may also be executed:

[0152] Step 8: If the third point element and / or the fourth point element does not exist in the graph database, then the third point element and / or the fourth point element is established in the graph database.

[0153] In this implementation, when the third point element corresponding to the third user account and / or the fourth point element corresponding to the fourth user account does not exist, the third point element and / or the fourth point element are added to the graph database.

[0154] For example, Figure 3As shown, when establishing the third point element M3 association relationship based on the production feature of the second video work published by the third user account, that is, the second production feature, first determine the user account that has a friend relationship with the third user account as the fourth user account. If the third point element M3 corresponding to the third user account does not exist in the graph database, and the fourth point element M4 corresponding to the fourth user account does not exist, the third point element M3 and the fourth point element M4 are added to the graph database, and then the connection relationship between the third point element M3 representing the third user account and the fourth point element M4 representing the fourth user account is established based on the second production feature. If the third point element M3 corresponding to the third user account does not exist in the graph database, and the fourth point element M4 corresponding to the fourth user account exists, the third point element M3 is added to the graph database, and then the connection relationship between the third point element M3 representing the third user account and the fourth point element M4 representing the fourth user account is established based on the second production feature. If there is a third point element M3 corresponding to the third user account in the graph database, and there is no fourth point element M4 corresponding to the fourth user account, the third point element M4 is added to the graph database, and then a connection relationship between the third point element M3 representing the third user account and the fourth point element M4 representing the fourth user account is established according to the second production feature.

[0155] Through this implementation, it is ensured that point elements can be reasonably constructed when constructing a graph database, thereby ensuring the rationality of constructing the graph database.

[0156] In the above implementation, when the third user account publishes the second video work, the third user account is determined as the third point element; and the production feature of the second video work is used as the second production feature. Thus, in the graph database, the second production feature is used as the edge element and the third point element is used as the point element to construct an association relationship between the third point element and the fourth point element.

[0157] It should be noted that the fourth point element is a point element representing a fourth user account, and the fourth user account is a user account having a social relationship with the third user account. The number of the fourth user accounts is one or more, that is, the fourth point element is one or more. The third user account is a user account of any published video work.

[0158] Through the above implementation, the real-time construction of point elements and edge elements in the graph database is realized, which ensures the real-time nature of the data in the graph database, thereby ensuring the accuracy of the acquired target user accounts.

[0159] Figure 5 is a block diagram of a data processing device according to an exemplary embodiment. Figure 5 The device includes an acquisition unit 501, a determination unit 502, a screening unit 503 and a construction unit 504.

[0160] The acquisition unit 501 is configured to acquire the first user account and the first production feature when the electronic device where the first user account is located requests to play the first video work, where the first production feature is the production feature of the first video work. Figure 2 Step S21 in .

[0161] The determination unit 502 is configured to determine a target user account based on the first user account, the first production feature, and the graph database, wherein the target user account has a social relationship with the first user account and the released video work has the first production feature; the graph database includes multiple point elements and at least one edge element, wherein a point element is used to represent a user account, and the multiple point elements include a first point element used to represent the first user account; an edge element is used to associate two point elements and represent the production feature of the video work released by the user account represented by at least one of the two point elements, and the at least one edge element includes an edge element used to represent the first production feature. For example, the determination unit 502 is configured to perform Figure 2 Step S22 in .

[0162] In a possible implementation, the target user account is used to generate description information of the first video work, and the description information of the first video work is used to be displayed on the electronic device where the first user account is located.

[0163] In another possible implementation, the determination unit 502 is configured to specifically perform: determining a second point element in the graph database based on the first user account and the first production feature; the second point element includes a point element associated with the first point element through a target edge element, and the production feature represented by the target edge element is the first production feature; determining the target user account from the second user account represented by the second point element.

[0164] In another possible implementation, the determination unit 502 is configured to specifically perform: determining a first point element representing a first user account in a graph database; determining a target edge element based on the first point element; and determining point elements other than the first point element associated with the target edge element as second point elements.

[0165] In another possible implementation, each edge element has direction information, and the direction information of the edge element represents that the edge element points from the starting point element to the ending point element. The starting point element and the ending point element are two point elements associated with the edge element, and the production features represented by the edge element are the production features of the video work released by the user account represented by the starting point element.

[0166] In another possible implementation, the determination unit 502 is configured to specifically perform: determining the edge element pointing to the first point element as a candidate edge element based on the direction information of each edge element connected to the first point element; and determining the candidate edge element representing the first production feature as the target edge element.

[0167] In another possible implementation, user accounts represented by two point elements associated with an edge element have a social relationship.

[0168] In another possible implementation, the social relationship includes a two-way attention relationship, a one-way attention relationship, and an interactive relationship.

[0169] In another possible implementation, the two-way attention relationship, the one-way attention relationship and the interactive relationship have different priorities; the determination unit 502 is configured to specifically perform: determining the target user account from the second user accounts represented by the second point element according to the priority of the social relationship between each second user account and the first user account.

[0170] In another possible implementation, the device further includes: a screening unit 503 configured to obtain a second production feature when the electronic device where the third user account is located requests to publish the second video work, where the second production feature is a production feature of the second video work. Figure 4 Step S41 in .

[0171] The construction unit 504 is configured to execute the establishment of an edge element for associating a third point element and a fourth point element in the graph database, wherein the third point element is a point element representing a third user account, and the fourth point element is a point element representing a fourth user account, and the fourth user account is a user account having a social relationship with the third user account. Figure 4 Step S42 in .

[0172] In another possible implementation, the construction unit 504 is further configured to execute: if the third point element and / or the fourth point element does not exist in the graph database, then establish the third point element and / or the fourth point element in the graph database.

[0173] In another possible implementation, the construction unit 504 is configured to specifically execute: establishing an edge element representing the second production feature between the third point element and the fourth point element; and configuring the direction information of the established edge element to represent the direction from the third point element to the fourth point element.

[0174] In another possible implementation, the construction unit 504 is further configured to execute: when the validity period of the edge element reaches a preset time, or when the social relationship between the user accounts represented by the two point elements associated with the edge element is dissolved, delete the edge element.

[0175] In another possible implementation, a point element corresponds to an account identifier to represent a user account corresponding to the account identifier; an edge element corresponds to a feature identifier to represent a production feature corresponding to the feature identifier.

[0176] In another possible implementation, the type information of edge elements representing different production features is different, and different type information corresponds to different feature identifiers.

[0177] In another possible implementation, the first production feature is a feature of a production template and / or material used to generate the first video work.

[0178] Regarding the device in the above embodiment, the specific manner in which each unit module performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.

[0179] Figure 6 is a schematic diagram of an electronic device provided by the present disclosure. Figure 6 The electronic device 60 may include at least one processor 601 and a memory 603 for storing processor executable instructions. The processor 601 is configured to execute instructions in the memory 603 to implement the data processing method in the following embodiments.

[0180] In addition, the electronic device 60 may further include a communication bus 602 , at least one communication interface 604 , and an input device 606 .

[0181] The processor 601 may be a central processing unit (CPU), a microprocessing unit, an ASIC, or one or more integrated circuits for controlling the execution of the program of the disclosed solution.

[0182] Communication bus 602 may include a pathway for transmitting information between the above-mentioned components.

[0183] The communication interface 604 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.

[0184] The memory 603 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processing unit through a bus. The memory may also be integrated with the processing unit.

[0185] The memory 603 is used to store instructions for executing the solution of the present disclosure, and the execution is controlled by the processor 601. The processor 601 is used to execute the instructions stored in the memory 603, so as to realize the functions in the method of the present disclosure.

[0186] In a specific implementation, as an embodiment, the processor 601 may include one or more CPUs, such as Figure 6 CPU0 and CPU1 in.

[0187] In a specific implementation, as an embodiment, the electronic device 10 may include multiple processors, such as Figure 6 601 and processor 607 in FIG. Each of these processors may be a single-CPU processor or a multi-CPU processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0188] The electronic equipment Figure 6 The system includes: a processor 601 and a memory 603 for storing executable instructions of the processor 601; wherein the processor 601 is configured to execute the executable instructions to implement a data processing method as in any possible implementation method described above. And the same technical effect can be achieved, and to avoid repetition, it will not be described here.

[0189] The embodiment of the present disclosure also provides a computer-readable storage medium, when the instructions in the computer-readable storage medium are executed by a processor of an image processing device or an electronic device, the data processing device or the electronic device can execute a data processing method as described in any possible implementation method described above. And the same technical effect can be achieved, so it will not be described here to avoid repetition.

[0190] The embodiment of the present disclosure also provides a computer program product, including a computer program or an instruction, and the computer program or the instruction is executed by a processor as a data processing method in any possible implementation manner described above. And the same technical effect can be achieved, and to avoid repetition, it will not be repeated here.

[0191] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0192] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A data processing method, characterized in that: include: When the electronic device where the first user account is located requests to play the first video work, the first user account and the first production feature are obtained, where the first production feature is a production feature of the first video work; Determine a second point element in a graph database according to the first user account and the first production feature; the second point element includes a point element associated with the first point element representing the first user account through a target edge element, and the production feature represented by the target edge element is the first production feature; Determining a target user account from the second user accounts represented by the second point elements; The target user account has a social relationship with the first user account, and the published video work has the first production feature; The graph database includes multiple point elements and at least one edge element, one point element is used to represent a user account, and the multiple point elements include a first point element used to represent the first user account; one edge element is used to associate two point elements and represent the production characteristics of a video work published by a user account represented by at least one of the two point elements, and the at least one edge element includes an edge element used to represent the first production characteristics; each of the edge elements has direction information, and the direction information of the edge element represents that the edge element points from a starting point element to an ending point element, the starting point element and the ending point element are the two point elements associated with the edge element, and the production characteristics represented by the edge element are the production characteristics of the video work published by the user account represented by the starting point element.

2. The data processing method according to claim 1, characterized in that: The target user account is used to generate description information of the first video work, and the description information of the first video work is used to be displayed on the electronic device where the first user account is located.

3. The data processing method according to claim 2, characterized in that: The determining, according to the first user account and the first production feature, a second point element in the graph database includes: Determine the first point element representing the first user account in the graph database; Determine the target edge element according to the first point element; A point element other than the first point element associated with the target edge element is determined as the second point element.

4. The data processing method according to claim 3, characterized in that: The determining the target edge element according to the first point element includes: According to the direction information of each edge element connected to the first point element, determining the edge element pointing to the first point element as a candidate edge element; The candidate edge element representing the first manufacturing feature is determined as the target edge element.

5. The data processing method according to claim 1, characterized in that: The user accounts represented by the two point elements associated with the one edge element have a social relationship.

6. The data processing method according to claim 5, characterized in that: The social relationship includes a two-way attention relationship, a one-way attention relationship and an interactive relationship.

7. The data processing method according to claim 6, characterized in that: The two-way attention relationship, one-way attention relationship and interactive relationship have different priorities; The determining the target user account from the second user account represented by the second point element includes: The target user account is determined from the second user accounts represented by the second point elements according to the priority of the social relationship between each of the second user accounts and the first user account.

8. The data processing method according to claim 1, characterized in that: The method further comprises: When the electronic device where the third user account is located requests to publish the second video work, obtaining a second production feature, where the second production feature is a production feature of the second video work; An edge element for associating a third point element and a fourth point element is established in the graph database, wherein the third point element is a point element representing the third user account, the fourth point element is a point element representing a fourth user account, and the fourth user account is a user account having a social relationship with the third user account.

9. The data processing method according to claim 8, characterized in that: Before establishing the edge element for associating the third point element and the fourth point element in the graph database, the method further includes: If the third point element and / or the fourth point element does not exist in the graph database, the third point element and / or the fourth point element is established in the graph database.

10. The data processing method according to claim 8, characterized in that: The step of establishing an edge element for associating the third point element and the fourth point element in the graph database includes: Establishing an edge element representing the second manufacturing feature between the third point element and the fourth point element; The established direction information of the edge element is configured to represent the direction from the third point element to the fourth point element.

11. The data processing method according to any one of claims 8 to 10, characterized in that: Also includes: When the validity period of the edge element reaches a preset time, or when the social relationship between the user accounts represented by the two point elements associated with the edge element is terminated, the edge element is deleted.

12. The data processing method according to claim 1, characterized in that: One of the point elements corresponds to an account identifier to represent the user account corresponding to the account identifier; one of the edge elements corresponds to a feature identifier to represent the production feature corresponding to the feature identifier.

13. The data processing method according to claim 12, characterized in that: The type information of the edge elements representing different production features is different, and different type information corresponds to different feature identifiers.

14. The data processing method according to claim 1, characterized in that: The first production feature is a feature of a production template and / or material used to generate the first video work.

15. A data processing device, characterized in that: include: An acquiring unit is configured to acquire, when an electronic device where a first user account is located requests to play a first video work, the first user account and a first production feature, where the first production feature is a production feature of the first video work; a determining unit configured to determine, according to the first user account and the first production feature, a second point element in a graph database; the second point element includes a point element associated with the first point element representing the first user account through a target edge element, and the production feature represented by the target edge element is the first production feature; The determining unit is further configured to determine a target user account from the second user account represented by the second point element; Among them, the target user account has a social relationship with the first user account, and the published video work has the first production feature; the graph database includes multiple point elements and at least one edge element, one point element is used to represent a user account, and the multiple point elements include a first point element used to represent the first user account; an edge element is used to associate two point elements and represent the production features of the video work published by the user account represented by at least one of the two point elements, and the at least one edge element includes an edge element used to represent the first production feature; each of the edge elements has direction information, and the direction information of the edge element represents that the edge element points from the starting point element to the ending point element, the starting point element and the ending point element are the two point elements associated with the edge element, and the production features represented by the edge element are the production features of the video work published by the user account represented by the starting point element.

16. The data processing device according to claim 15, characterized in that: The target user account is used to generate description information of the first video work, and the description information of the first video work is used to be displayed on the electronic device where the first user account is located.

17. The data processing device according to claim 16, characterized in that: The determining unit is configured to specifically execute: Determine the first point element representing the first user account in the graph database; Determine the target edge element according to the first point element; A point element other than the first point element associated with the target edge element is determined as the second point element.

18. The data processing device according to claim 17, characterized in that: The determining unit is configured to specifically execute: According to the direction information of each edge element connected to the first point element, determining the edge element pointing to the first point element as a candidate edge element; The candidate edge element representing the first manufacturing feature is determined as the target edge element.

19. The data processing device according to claim 15, characterized in that: The user accounts represented by the two point elements associated with the one edge element have a social relationship.

20. The data processing device according to claim 19, characterized in that The social relationship includes a two-way attention relationship, a one-way attention relationship and an interactive relationship.

21. The data processing device according to claim 20, characterized in that: The two-way attention relationship, the one-way attention relationship and the interactive relationship have different priorities; the determining unit is configured to specifically perform: The target user account is determined from the second user accounts represented by the second point elements according to the priority of the social relationship between each of the second user accounts and the first user account.

22. The data processing device according to claim 15, characterized in that: The device also includes: A screening unit is configured to acquire a second production feature when the electronic device where the third user account is located requests to publish the second video work, where the second production feature is a production feature of the second video work; A construction unit is configured to execute the establishment of an edge element for associating a third point element and a fourth point element in the graph database, wherein the third point element is a point element representing the third user account, the fourth point element is a point element representing a fourth user account, and the fourth user account is a user account having a social relationship with the third user account.

23. The data processing device according to claim 22, characterized in that: The build unit is further configured to execute: If the third point element and / or the fourth point element does not exist in the graph database, the third point element and / or the fourth point element is established in the graph database.

24. The data processing device according to claim 22, characterized in that: The building block is configured to specifically perform: Establishing an edge element representing the second manufacturing feature between the third point element and the fourth point element; The established direction information of the edge element is configured to represent the direction from the third point element to the fourth point element.

25. The data processing device according to any one of claims 22 to 24, characterized in that: The build unit is further configured to execute: When the validity period of the edge element reaches a preset time, or when the social relationship between the user accounts represented by the two point elements associated with the edge element is terminated, the edge element is deleted.

26. The data processing device according to claim 15, characterized in that: One of the point elements corresponds to an account identifier to represent the user account corresponding to the account identifier; one of the edge elements corresponds to a feature identifier to represent the production feature corresponding to the feature identifier.

27. The data processing device according to claim 26, characterized in that: The type information of the edge elements representing different production features is different, and different type information corresponds to different feature identifiers.

28. The data processing device according to claim 15, characterized in that: The first production feature is a feature of a production template and / or material used to generate the first video work.

29. An electronic device, characterized in that: include: A processor and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the executable instructions to implement the data processing method according to any one of claims 1 to 14.

30. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the data processing method as described in any one of claims 1 to 14; or when the instructions in the computer-readable storage medium are executed by a data processing device, the data processing device is enabled to perform the data processing method as described in any one of claims 1 to 14.

31. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the data processing method according to any one of claims 1 to 14 is implemented.

Citation Information

Patent Citations

  • Method and device for interaction based on social network information

    CN109146530A

  • User relation chain construction method and device and electronic equipment

    CN112800286A