CN114861006A - Data processing method and device, electronic equipment and storage medium - Google Patents
Data processing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114861006A CN114861006A CN202210467555.1A CN202210467555A CN114861006A CN 114861006 A CN114861006 A CN 114861006A CN 202210467555 A CN202210467555 A CN 202210467555A CN 114861006 A CN114861006 A CN 114861006A
- Authority
- CN
- China
- Prior art keywords
- user account
- point
- edge
- elements
- point element
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 32
- 238000004519 manufacturing process Methods 0.000 claims abstract description 210
- 238000012545 processing Methods 0.000 claims abstract description 27
- 238000004590 computer program Methods 0.000 claims description 9
- 238000000034 method Methods 0.000 abstract description 14
- 238000012216 screening Methods 0.000 description 20
- 239000000463 material Substances 0.000 description 12
- 238000010586 diagram Methods 0.000 description 9
- 230000000694 effects Effects 0.000 description 9
- 230000003993 interaction Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 6
- 230000002452 interceptive effect Effects 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 4
- 238000010276 construction Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000003068 static effect Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/901—Indexing; Data structures therefor; Storage structures
- G06F16/9024—Graphs; Linked lists
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9536—Search customisation based on social or collaborative filtering
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)
- Software Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The disclosure relates to a data processing method, a data processing device, an electronic device and a storage medium, and relates to the technical field of computers, wherein the method comprises the following steps: when the electronic equipment where the first user account is located requests to play the first video work, the first user account and first manufacturing characteristics are obtained, and the first manufacturing characteristics are manufacturing characteristics of the first video work; determining a target user account according to the first user account, the first production characteristic and the database, wherein the target user account has a social relationship with the first user account, and the issued video work has the first production characteristic; the graph database includes a plurality of point elements and at least one edge element, one of the point elements being used to characterize a user account. By adopting the graph database, the relationships among the user accounts and between the user accounts and the making characteristics can be stored very simply and clearly, so that the storage space can be saved, the storage cost can be reduced, the speed of inquiring the target user account can be increased, and the inquiry delay can be reduced.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a data processing method and apparatus, an electronic device, and a storage medium.
Background
The user account can make video works through the application installed on the electronic equipment, and the video works are published on the social platform for other user accounts to play and watch. Applications for producing video works typically provide a number of templates for fast production of video or material for enriching the content of the video works, such as audio, emoticons, animation, video, text, etc.
In the related technology, when a certain user account requests to play a video work made through a certain template or a certain material on the social platform, the related information of the friend user account using the template or the material is displayed on a video work playing page, so that the interest of the user account in making the video work is stimulated, and the effects of increasing the number of new users of a video making application and increasing the activity of old users are achieved. However, when the information related to the friend user account is displayed, the process of screening the friend user account satisfying the condition from the database is complex in calculation, which results in time delay and high calculation resource cost.
Disclosure of Invention
The present disclosure provides a data processing method, an apparatus, an electronic device, and a storage medium, to at least solve the problems of time delay and high computational resource overhead caused by complex computation in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a data processing method, including: when the electronic equipment where the first user account is located requests to play the first video work, the first user account and first manufacturing characteristics are obtained, and the first manufacturing characteristics are manufacturing characteristics of the first video work; determining a target user account according to the first user account, the first manufacturing characteristic and the database; the target user account and the first user account have a social relationship, and the published video work has a first production characteristic; the graph database comprises a plurality of point elements and at least one edge element, wherein one point element is used for representing one user account, and the plurality of point elements comprise a first point element used for representing a first user account; and the edge element is used for associating the two point elements and representing the production characteristics of the video works issued by the user accounts represented by at least one point element in the two point elements, and the at least one edge element comprises an edge element used for representing the first production characteristic.
In one 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.
In another possible implementation, determining a target user account from the first user account, the first production characteristic, and the graph database includes: determining a second point element in the graph database according to the first user account and the first manufacturing characteristic; the second point element comprises a point element which is related to the first point element through a target edge element, and the manufacturing characteristic represented by the target edge element is the first manufacturing characteristic; and determining a target user account from the second user accounts characterized by the second point element.
In another possible implementation, determining a second point element in the graph database based on the first user account and the first production characteristic includes: determining a first point element representing a first user account in a graph database; determining a target edge element according to the first point element; and determining point elements except the first point element associated with the target edge element as second point elements.
In another possible implementation, each edge element has direction information, the direction information of the edge element indicates that the edge element points from the start point element to the end point element, the start point element and the end point element are two point elements associated with the edge element, and the production characteristic indicated by the edge element is a production characteristic of a video work issued by a user account indicated by the start point element.
In another possible implementation, determining the target edge element according to the first point element includes: determining an edge element pointing to the first point element as a candidate edge element according to the direction information of each edge element connected with the first point element; and determining the candidate edge elements which characterize the first manufacturing characteristics as target edge elements.
In another possible implementation, the user accounts characterized by the two point elements associated with one edge element have a social relationship.
In another possible embodiment, the social relationship includes a two-way focus relationship, a one-way focus relationship, and an interactive relationship.
In another possible implementation, the two-way concern relationship, the one-way concern relationship, and the interaction relationship have different priorities; determining a target user account from the second user accounts characterized by the second point element, including: and determining the target user account from the second user accounts represented by the second point elements according to the priority of the social relationship between each second user account and the first user account.
In another possible embodiment, the method further comprises: when the electronic equipment where the third user account is located requests to release the second video work, obtaining a second production characteristic, wherein the second production characteristic is the production characteristic of the second video work; and establishing edge elements for associating a third point element and a fourth point element in the graph database, wherein the third point element is a point element for representing a third user account, the fourth point element is a point element for representing a fourth user account, and the fourth user account is a user account with a social relationship with the third user account.
In another possible implementation, before creating the edge element for associating the third point element with the fourth point element in the graph database, the method further includes: if the third point element and/or the fourth point element are not present in the graph database, the third point element and/or the fourth point element are created in the graph database.
In another possible embodiment, creating an edge element in a graph database for associating a third point element with a fourth point element includes: establishing edge elements representing second manufacturing characteristics between the third point elements and the fourth point elements; the direction information of the established edge elements is configured to characterize pointing to a fourth point element by a third point element.
In another possible embodiment, the method further includes: and deleting the edge element when the effective time of the edge element reaches the preset time or the social relationship between the user accounts represented by the two point elements related to the edge element is released.
In another possible implementation, one point element corresponds to one account identifier to characterize a user account corresponding to the one account identifier; one edge element corresponds to one feature identifier to characterize a manufacturing feature corresponding to one feature identifier.
In another possible embodiment, the type information of the edge elements characterizing different production features is different, and the different types of information correspond to different feature identifiers.
In another possible embodiment, the first production characteristic is a characteristic of a production template and/or material used to generate the first video work.
According to a second aspect of the embodiments of the present disclosure, there is provided a data processing apparatus including: the electronic equipment comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is configured to acquire a first user account and a first production characteristic when the electronic equipment where the first user account is located requests to play a first video work, and the first production characteristic is the production characteristic of the first video work; a determination unit configured to determine a target user account based on the first user account, the first production characteristic, and the map database; the target user account and the first user account have a social relationship, and the published video work has a first production characteristic; the graph database comprises a plurality of point elements and at least one edge element, wherein one point element is used for representing one user account, and the plurality of point elements comprise a first point element used for representing a first user account; and the edge element is used for associating the two point elements and representing the production characteristics of the video works issued by the user accounts represented by at least one point element in the two point elements, and the at least one edge element comprises an edge element used for representing the first production characteristic.
In one 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.
In another possible implementation, the determining unit is configured to specifically perform: determining a second point element in the graph database according to the first user account and the first manufacturing characteristic; the second point element comprises a point element which is related to the first point element through a target edge element, and the manufacturing characteristic represented by the target edge element is the first manufacturing characteristic; and determining a target user account from the second user accounts characterized by the second point element.
In another possible implementation, the determining 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 according to the first point element; and determining point elements except the first point element associated with the target edge element as second point elements.
In another possible implementation manner, each edge element has direction information, the direction information of the edge element represents that the edge element points to the end point element from the start point element, the start point element and the end point element are two point elements associated with the edge element, and the production characteristic represented by the edge element is a production characteristic of a video work issued by a user account represented by the start point element.
In another possible implementation, the determining unit is configured to specifically perform: determining an edge element pointing to the first point element as a candidate edge element according to the direction information of each edge element connected with the first point element; and determining the candidate edge elements which characterize the first manufacturing characteristics as target edge elements.
In another possible implementation, the user accounts characterized by the two point elements associated with one edge element have a social relationship.
In another possible embodiment, the social relationship includes a two-way focus relationship, a one-way focus relationship, and an interactive relationship.
In another possible implementation, the two-way concern relationship, the one-way concern relationship, and the interaction relationship have different priorities; a determination unit configured to specifically perform: and determining the target user account from the second user accounts represented by the second point elements according to the priority of the social relationship between each second user account and the first user account.
In another possible embodiment, the apparatus further comprises: the screening unit is configured to acquire a second production characteristic when the electronic equipment where the third user account is located requests to release the second video work, wherein the second production characteristic is a production characteristic of the second video work; the building unit is configured to execute building of edge elements 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, 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.
In another possible embodiment, the construction unit is further configured to perform: if the third point element and/or the fourth point element are not present in the graph database, the third point element and/or the fourth point element are created in the graph database.
In another possible implementation, the building unit is configured to specifically perform: establishing edge elements representing second manufacturing characteristics between the third point elements and the fourth point elements; the direction information of the established edge elements is configured to characterize pointing to a fourth point element by a third point element.
In another possible embodiment, the construction unit is further configured to perform: and deleting the edge element when the effective time of the edge element reaches the preset time or the social relationship between the user accounts represented by the two point elements related to the edge element is released.
In another possible implementation, one point element corresponds to one account identifier to characterize a user account corresponding to the one account identifier; one edge element corresponds to one feature identifier to characterize a manufacturing feature corresponding to one feature identifier.
In another possible embodiment, the type information of the edge elements characterizing different production features is different, and the different types of information correspond to different feature identifiers.
In another possible embodiment, the first production characteristic is a characteristic of a production template and/or material used to generate the first video work.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor and a memory for storing processor-executable instructions; wherein the processor is configured to execute the executable instructions to implement the data processing method as the first aspect and any one of its possible embodiments.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions of the computer-readable storage medium, when executed by a processor of an image processing apparatus or an electronic device, enable the image processing apparatus or the electronic device to perform the data processing method as the first aspect and any one of its possible implementations.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program or instructions for execution by a processor of a data processing method as in the first aspect and any one of its possible implementations.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
in a graph database storing data in the form of point elements and edge elements, one point element represents one user account, and one edge element connects two point elements (user accounts) having an association relationship and represents production characteristics of a video work issued by a 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 characteristic of the first video work is obtained, and then the target user account which has social relation with the first account and the published video work has the first production characteristic can be determined according to the first user account, the first production characteristic and the graph database. Therefore, by adopting the graph database, the relationships among the user accounts and between the user accounts and the production characteristics can be expressed in the forms of point elements and edge elements very simply and clearly. On one hand, the storage space is saved, the storage cost is reduced, on the other hand, the speed of inquiring and screening the target user account can be improved, and the time delay caused by inquiring and screening the relation of the target user account is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic diagram of a data processing system, shown in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a method of data processing in accordance with an exemplary embodiment;
FIG. 3 is a schematic diagram illustrating a data processing process in accordance with an exemplary embodiment;
FIG. 4 is a flow diagram illustrating another data processing method in accordance with an exemplary embodiment;
FIG. 5 is a block diagram illustrating a data processing apparatus in accordance with an exemplary embodiment;
FIG. 6 is a schematic diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Before describing the data processing method provided by the embodiment of the present disclosure in detail, first, a brief description is given to an implementation environment and an application scenario related to the embodiment of the present disclosure.
First, a brief description is given of an application scenario to which the present disclosure relates.
In the related technology, when a certain user account requests to play a video work made through a certain template or a certain material on the social platform, the related information of the friend user account using the template or the material is displayed on a video work playing page, the interest of the user account in making the video work is stimulated, and the effects of increasing the number of new users of a video making application and increasing the activity of old users are achieved. However, when the information related to the friend user account is displayed, the process of screening the friend user account satisfying the condition from the database is complex in calculation, which results in time delay and high calculation resource cost.
In order to solve the above problem, the present disclosure provides a data processing method, when an electronic device in which a first user account is located requests to play a first video work, obtaining the first user account and a first production characteristic, where the first production characteristic is a production characteristic of the first video work; determining a target user account according to the first user account, the first production characteristic and the database, wherein the target user account has a social relationship with the first user account, and the issued video work has the first production characteristic; the graph database comprises a plurality of point elements and at least one edge element, wherein one point element is used for representing one user account, and the plurality of point elements comprise a first point element used for representing a first user account; and the edge element is used for associating the two point elements and representing the production characteristics of the video works issued by the user accounts represented by at least one point element in the two point elements, and the at least one edge element comprises an edge element used for representing the first production characteristic.
In a graph database storing data in the form of point elements and edge elements, one point element represents one user account, one edge element connects two point elements (user accounts) having a social relationship, and represents production characteristics of a video work issued by a 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 characteristic of the first video work is obtained, and then a target user account which has a social relation with the first account and has the first production characteristic and the issued video work can be determined according to the first user account, the first production characteristic and the graph database.
By adopting the graph database, the relationships among user accounts and between the user accounts and the production characteristics can be expressed in the forms of point elements and edge elements very simply and clearly. On one hand, the storage space is saved, the storage cost is reduced, on the other hand, the speed of inquiring and screening the target user account can be improved, and the time delay caused by inquiring and screening the relation of the target user account is reduced.
Or it can be understood that, according to the embodiment of the disclosure, on one hand, when storing all user accounts and corresponding social relationships, only one graph database is stored, so that the problem of large memory consumption caused by separately storing each user account and the social relationships existing in each user account in a classified manner is solved, thereby saving memory space and reducing memory overhead. On the other hand, when the relation between each user account and the production characteristic needs to be obtained, the point element and the edge element are directly obtained from the graph database, the relation between the user account and the production characteristic does not need to be inquired one by one and screened one by one, the time delay caused by inquiring and screening the relation is reduced, and the rapidity of obtaining the relation between the user account and the production characteristic is guaranteed.
It should be noted that the user information (including but not limited to user device information, user personal information, etc.) referred to in the present disclosure is information authorized by a user account or sufficiently authorized by each party.
Next, the following briefly describes an implementation environment (implementation architecture) related to the present disclosure.
Fig. 1 is a schematic diagram of a data processing system according to an embodiment of the present disclosure, as shown in fig. 1, the data processing system may include: a server 110 and a terminal 120, wherein the server 110 can be connected with the terminal 120 through a wired network or a wireless network.
The server 110 may be a data server of some multimedia resource service platforms, and may be configured to store and process related information of a user account corresponding to a multimedia resource. For example, the multimedia resource service platform may be a short video application service platform, a news service platform, a live broadcast service platform, a shopping service platform, a take-away service platform, a shared service platform, a functional website, and the like. 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, the multimedia resources provided by the live broadcast service platform can be live broadcast works and the like, and the rest are not repeated one by one. The present disclosure is not limited to a particular type of multimedia asset service platform.
In the present disclosure, the server 110 may include a plurality of short video application service platforms, each of which uniquely corresponds to one application program. The application program is installed on the terminal and displays the multimedia resources on a content display interface of the terminal. The server 110 is mainly configured to store data related to a content community application installed on the terminal 120, and may send corresponding data to the terminal when receiving a data acquisition request sent by the terminal 120.
Specifically, the server 110 performs data processing on the stored user account and the user account information to determine a target user account that the server needs to search for from among a plurality of user accounts. And sends the determined relevant information of the target user account to the terminal 120, so that the terminal 120 displays the relevant information of the target user account.
In some embodiments, the server 110 may further include 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 perform an access operation to the multimedia resource in the database through the server 110.
In other embodiments, the server 110 may be a single server, or may be a server cluster composed of a plurality of servers. In some embodiments, the server cluster may also be a distributed cluster. The present disclosure is also not limited to a particular implementation of the server 110.
The terminal 120 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a Personal Digital Assistant (PDA), an Augmented Reality (AR) Virtual Reality (VR) device, and the like, which can install and use a content community application (e.g., a fast hand), and the specific form of the terminal is not particularly limited by the present disclosure. The system can be used for man-machine interaction with a user through one or more modes of a keyboard, a touch pad, a touch screen, a remote controller, voice interaction or handwriting equipment and the like.
Alternatively, in the communication system shown in fig. 1, the server 110 may be connected to at least one terminal 120. The present disclosure is not limited to the number or type of terminals 120.
The data processing method provided by the embodiment of the present disclosure may be applied to the server in the application scenario shown in fig. 1. For the sake of understanding, the data processing method provided in the present disclosure is specifically described below with reference to the accompanying drawings.
In the disclosed embodiment, the graph database includes a plurality of point elements and at least one edge element, one point element being used to characterize one user account, the plurality of point elements including a first point element used to characterize the first user account; an edge element is used to associate two point elements and to characterize two point elements, i.e. an edge element connects two point elements. Each side element has direction information, the direction information of the side element indicates that the side element points to the end point element from the start point element, the start point element and the end point element are two point elements related to the side element, and the production characteristic represented by the side element is the production characteristic of the video works issued by the user account represented by the start point element.
Fig. 2 is a flowchart illustrating a data processing method according to an exemplary embodiment, where the data processing method is used in a server as illustrated in fig. 2, and includes the following steps.
And step S21, when the electronic equipment where the first user account is located requests to play the first video work, acquiring the first user account and the first production characteristic.
Wherein the first production characteristic is a production characteristic of the first video production.
In one embodiment, the first production features are features of a production template and/or material used to generate the first video work.
In this embodiment, the first production characteristic may be at least one of a characteristic of a production template and material used to generate the first video work.
Through the implementation mode, one or more of the production template and the material of the video works are used as production characteristics, and the diversity of the production characteristics is guaranteed to be obtained.
Step S22, determining a target user account according to the first user account, the first production characteristics and the map database.
The target user account and the first user account have a social relationship, and the published video work has a first production characteristic; the graph database comprises a plurality of point elements and at least one edge element, wherein one point element is used for representing one user account, and the plurality of point elements comprise a first point element used for representing a first user account; and the edge element is used for associating the two point elements and representing the production characteristics of the video works issued by the user accounts represented by at least one point element in the two point elements, and the at least one edge element comprises an edge element used for representing the first production characteristic.
In one embodiment, one point element corresponds to one account identifier to characterize a user account corresponding to the one account identifier; one edge element corresponds to one feature identifier to characterize a manufacturing feature corresponding to one feature identifier.
In this embodiment, the user account corresponds to an account identifier, and one production feature corresponds to one feature identifier. In the graph database, the point elements correspond to the account identifiers one to one, and one edge element corresponds to one feature identifier. By the setting mode of the corresponding relation, one point element in the graph database can only represent one user account, and one edge element can only represent one manufacturing characteristic, so that each point element and one edge element in the graph database are ensured to have unique identification marks. Therefore, when the target user account needs to be inquired, the corresponding target point element and the target side element are quickly positioned in a large number of point elements and side elements in the graph database directly through the account identification and the corresponding characteristic identification, so that the target user account is accurately determined, and the rapidity and the accuracy of extracting the data related to the target user account are ensured.
In another embodiment, each edge element has direction information, the direction information of the edge element indicates that the edge element points from the start point element to the end point element, the start point element and the end point element are two point elements associated with the edge element, and the production characteristic indicated by the edge element is a production characteristic of a video work issued by a user account indicated by the start point element.
In this embodiment, direction information is established between each point element in the graph database, and the direction information specifies the account type to which each user account belongs, i.e., whether the user account issues a production characteristic or uses a production characteristic. And the direction information is used for determining the relationship between two user accounts corresponding to two point elements associated with one edge element, namely determining the user account for issuing the production characteristics and the user account for using the production characteristics in the two user accounts.
The user account using the production characteristics may be understood as viewing or looking at a video work produced using the production characteristics.
Illustratively, as shown in fig. 3, each of the edge elements L1, L2, L3, L4 and L5 represents direction information in an arrow direction, the arrow direction of the edge element L1 is from the start point element M2 to the end point element M1, the start point element M2 is to the end point element M1 is two point elements associated with the edge element L1, and the first production feature characterized by the edge element L1 is a production feature of a video production issued by a user account characterized by the start point element M2.
Through the direction information, the directional relation of the two point elements related to the edge element is clarified, so that which of the two user accounts corresponding to the two point elements is the user account which issues the video work with the production characteristic is clarified. Therefore, according to the direction information of the edge elements, the user accounts which issue the video works with certain production characteristics can be screened out, and therefore a more effective and direct basis is provided for inquiring the target user accounts.
As a possible implementation manner, the step S22 can be implemented by specifically performing the following steps one to two.
The method comprises the following steps: a second point element in the graph database is determined according to the first user account and the first manufacturing characteristic.
The second point element includes a point element associated with the first point element by a target edge element, and the production feature characterized by the target edge element is the first production feature.
Step two: and determining a target user account from the second user accounts characterized by the second point element.
In this embodiment, a point element associated with the first point element, both by the target edge element, is selected from the graph database based on the first user account and the first production characteristics. And taking the point element selected from the graph database as a second point element, and determining the target user account according to the second user account represented by the second point element.
It should be noted that the second point element may be one or more point elements.
Illustratively, as shown in FIG. 3, the point element characterizing the first user account is a first point element M1, and the point element whose first point element M1 is associated by the first production trait is a second point element M2. In the above embodiment, a target edge element representing the first manufacturing characteristic is determined from all edge elements connected to the first point element, so as to determine a second point element connected to the first point element through the target edge element, and finally, a target user account is determined from user accounts represented by the second point element. Compared with the existing storage and query mode, the speed of querying and screening the target user account can be improved, and the time delay caused by querying and screening the relation of the target user account is reduced.
Or it can be understood that, with the above embodiment, the second point element in the graph database, which has established an association relationship with both the target edge element and the first point element, is concurrently acquired at one time, and then the one-time acquisition of the target user account is completed. The obtaining mode is very direct and efficient, and does not need a large amount of time to compare and screen all friend user accounts of the user accounts one by one, so that the time delay of the process of obtaining the target user account is greatly reduced.
As a possible implementation, the user account represented by the two point elements associated with one edge element has a social relationship.
In the above embodiment, two point elements associated with any edge element in the graph database have a social relationship between two corresponding user accounts.
By the implementation mode, the social relationship is bound to exist between the two point elements connected by the user edge element, so that when the friend account of the user account is inquired, the friend relationship of the user account is not required to be inquired, and the user account with the social relationship with the user account is determined only by the edge element directly related to the user account, so that the rapidness and the accuracy of acquiring the friend account of the user account are ensured.
In one possible implementation, the social relationships include two-way focus relationships, one-way focus relationships, and interactive relationships. For example, if the first user account and the second user account concern each other, they are in a two-way concern relationship. And if only the first user account pays attention to the second user account or only the second user account pays attention to the first user account, the first user account and the second user account are in a one-way attention relationship. And if the interaction frequency of the first user account and the second user account is greater than or equal to the preset frequency, the first user account and the second user account are in an interaction relationship.
In this embodiment, the social relationship may be determined by a bidirectional concern relationship, a unidirectional concern relationship, an interactive relationship, and the like.
By the embodiment, the social relationship is determined by the multiple relationship dimensions, so that the social relationship established among the user accounts is more comprehensive, the problem that the point elements of friend users associated with the user accounts in the graph database are lost due to neglecting the certain relationship dimension is solved, and the accuracy of the social relationship among the user accounts represented by the graph database is ensured.
In a possible embodiment, the second step may be specifically performed by the following embodiments:
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 elements.
It should be noted that the two-way attention relationship, the one-way attention relationship, and the interaction relationship have different priorities.
In this embodiment, according to the priority of the social relationship, user accounts in the second user accounts are screened, and the screened user accounts with high priority are used as the target user accounts.
Through the implementation mode, the acquired target user account is the user account with the higher priority of the social relationship with the user account, and the higher adhesion degree between the target user account and the user account is ensured, so that the acquired target user account is ensured to be more in line with the expected value of the user account.
As an embodiment, the step one can be specifically performed by the following steps three to five.
Step three: a first point element characterizing a first user account in a graph database is determined.
Step four: and determining the target edge element according to the first point element.
Step five: and determining point elements except the first point element associated with the target edge element as second point elements.
In this embodiment, a first point element is first determined from a graph database based on a first user account. And screening out target edge elements from the edge elements associated with the first point elements according to the first manufacturing characteristics. Thereby, the point element other than the first point element associated with the target edge element is taken as the second point element.
Illustratively, as shown in FIG. 3, a first point element M1 is first determined from the graph database. And selecting L1 and L2 which can represent the first manufacturing characteristic from the edge elements L1, L2, L3, L4 and L5 connected with the first point element as target edge elements. From among the point elements M1 and M2 associated with L1 and L2, the first point element M1 was removed, and the remaining point element M2 from which the first point element M1 was removed was taken as the second point element.
In the above embodiment, the first point element characterizing the first user account is determined from the graph database, the target edge element characterizing the first production characteristic is determined from all edge elements connecting 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. Therefore, the second point element can be inquired through three steps of inquiry operations, and a large amount of data can be filtered out in each step of inquiry, so that the speed of inquiring and screening the target user account can be increased, and the time delay caused by inquiring and screening the relation of the target user account can be reduced.
As a possible implementation manner, the step four can be implemented by specifically performing the following steps six and seven.
Step six: determining an edge element pointing to the first point element as a candidate edge element according to the direction information of each edge element connected with the first point element;
step seven: and determining the candidate edge elements which characterize the first manufacturing characteristics as target edge elements.
In this embodiment, the edge elements connected to the first point element are filtered to determine candidate edge elements, using the direction information of the edge element pointing to the first point element as a filtering condition. And screening out edge elements capable of representing the first manufacturing characteristic from the candidate edge elements to serve as target edge elements.
It should be noted that each edge element connected to the first point element may also be understood as a respective edge element connected to the first point element.
Illustratively, as shown in FIG. 3, the direction of the arrow points to the direction information of the edge element. The direction information of the edge elements adjacently connected to the first point element, i.e., the arrow directions of L1, L2, L3, L4, and L5, is determined first. From L1, L2, L3, L4 and L5, edge elements of which the arrow points to the first point element M1 are determined as candidate edge elements, that is, the candidate edge elements are L1, L2 and L4. And then screening out edge elements L1 and L2 which can represent the first manufacturing characteristic from the candidate edge elements L1, L2 and L4, and taking the screened-out L1 and L2 as target edge elements.
In the above embodiment, the candidate edge elements are determined by using the direction information of each edge element connected with the first point element, the user account represented by the candidate edge elements is a user account which has a social relationship with the first user account and publishes a video work with a certain production characteristic, and then the user account publishing the video work with the first production characteristic is screened from the candidate edge elements, that is, the user accounts. .
As an embodiment, after the above step S22 is executed, the following step eight may be executed.
Step eight: the target user account is used for generating description information of the first video work, and the description information of the first video work is used for generating the description information of the first video work according to the target user account and displaying the description information of the first video work on the electronic device where the first user account is located in the embodiment.
In this embodiment, the 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.
Illustratively, the description information of the first video work includes information of a target user account of the distributed video work with the first production characteristics and an editing tool for editing the first production characteristics.
The first manufacturing characteristic can be as follows: video templates, material or audio, etc. used to edit video works.
In some embodiments, the description information for the first video production is used as guide information or a guide link to guide the first user account to view the first production characteristic related information for the target user account.
And displaying the description information of the first video work to the first user account, wherein the description information is generated according to the target account. For example, the description information may include information associated with a target user account having a social relationship with the first user account to prompt the first user account for friends (target user account) who have also made a video using the first video feature. Therefore, the interest of the first user account in making the video works can be stimulated, and the effects of increasing the number of new users of the video making application and increasing the activity of old users are achieved.
In the above embodiment, in a case where any of the first user accounts requests to play the first video work, the first production characteristics of the first video work are acquired. In a graph database having user accounts as point elements and production features as edge elements, the first user account is represented in the form of a first point element and the first production features are represented in the form of edge elements characterizing the first production features. Therefore, according to the first user account and the first manufacturing characteristic, a user account which has a social relationship with the first user account and has the first manufacturing characteristic of the issued video works is determined from the corresponding graph database, and the determined user account is used as a target user account. In the above manner of determining the first user account and the target user account corresponding to the first production characteristic by using the graph database, the graph database can express the relationship between each user account and the production characteristic in the form of point elements and edge elements very simply and clearly.
In the present disclosure, in a graph database storing data in the form of point elements and edge elements, one point element represents one user account, one edge element connects two point elements (user accounts) having a social relationship, and represents a production characteristic of a video work issued by a 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 characteristic of the first video work is obtained, and then the target user account which has social relation with the first account and the published video work has the first production characteristic can be determined according to the first user account, the first production characteristic and the graph database. By adopting the graph database, the relationships among user accounts and between the user accounts and the production characteristics can be expressed in the forms of point elements and edge elements very simply and clearly. On one hand, the storage space is saved, the storage cost is reduced, on the other hand, the speed of inquiring and screening the target user account can be improved, and the time delay caused by inquiring and screening the relation of the target user account is reduced.
Fig. 4 is a flowchart illustrating a data processing method according to another exemplary embodiment, and the data processing method is used in an electronic device as illustrated in fig. 4, and includes the following steps.
Step S41: and when the electronic equipment where the third user account is located requests to release the second video work, acquiring a second production characteristic.
Wherein the second production characteristic is a production characteristic of the second video work.
Step S42: edge elements for associating the third point element and the fourth point element are established in the graph database.
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.
Illustratively, as shown in FIG. 3, when the third user account publishes the second video work, the point element used to characterize the third user account is determined to be a third point element M3. And the production characteristic of the second video work is taken as a second production characteristic. Thus, in the graph database, the edge element characterizing the second production feature is used as an edge element and the third point element M3 is used as a point element, and an association relationship between the third point element M3 and the fourth point element M4 is constructed, that is, the edge element L6 characterizing the second production feature is used to establish a connection relationship between the third point element M3 and the fourth point element M4.
In a possible implementation, the above step S42 can be specifically executed by the following steps nine and ten.
Step nine: edge elements characterizing the second fabrication feature are established between the third point element and the fourth point element.
Step ten: the direction information of the established edge elements is configured to characterize pointing to a fourth point element by a third point element.
In this embodiment, the association between the third point element and the fourth point element is established by the edge element of the second production feature. And configuring the direction information of the edge elements of the second manufacturing characteristics into a third point element pointing to a fourth point element. The user account whose direction information is determined to issue the second production characteristics is directed to the user account that did not issue the second production characteristics.
In some implementations, the user account that did not publish the second production characteristic may be a user account that used, or may use, the second production characteristic.
It should be noted that the direction information is defined that the third point element points to the fourth point element, and may also be defined that the fourth point element points to the third point element. The definition mode of the direction information is not specifically limited, and can be defined according to the requirement of the user account.
Illustratively, as shown in fig. 3, the edge element L6 for characterizing 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 is directed from the start point element M3 to the end point element M4. The second production characteristics characterized by edge element L6 are production characteristics of a video work published by the user account characterized by start point element M3.
By the implementation mode, the direction information in the graph database is constructed, and the relationship among each point element can be reasonably constructed, so that the accuracy of constructing the graph database is ensured.
In a possible embodiment, step eleven may be further executed, where the execution order of executing step eleven is not particularly limited in relation to the execution order of other steps, for example, step eleven may be executed before, after and/or between step S41 and step S42.
Step eleven: and deleting the edge element when the effective time of the edge element reaches the preset time or the social relationship between the user accounts represented by the two point elements related to the edge element is released.
In this embodiment, on the one hand, an edge element is deleted from the graph database in the event that its validity time reaches a preset time. On the other hand, in the case where the social relationship between the user accounts characterized by the two point elements with which the edge element is associated is released, the edge element is deleted.
For example, in the case that the first user account and the second user account cancel the attention or the first user account and the second user account interact infrequently, the social relationship between the first user account and the second user account is released.
In some embodiments, after an edge element is deleted, the direction information in its edge element is also deleted.
By the implementation mode, invalid or edge elements without social relations in the graph database are eliminated, and the effectiveness and the real-time performance of the edge elements in the graph database are guaranteed, so that the accuracy and the real-time performance of data stored in the graph database are guaranteed.
In one embodiment, the edge elements characterizing different production features have different types of information, and the different types of information correspond to different feature identifiers.
For example, as shown in FIG. 3, where the first production characteristic and the second production characteristic are two different production characteristics, then the edge element L1 used to characterize the first production characteristic and the edge element L6 used to characterize the second production characteristic may be identified by two completely different characteristic identifiers. Specifically, the edge element L1 and the edge element L6 may be represented by different line types and/or different colors. Wherein, the different line types are lines with different thickness degrees, different dotted line types, different solid line types and the like.
In the embodiment, different types of manufacturing features correspond to different feature identifications, so that the recognition of edge elements is facilitated, and the speed of extracting data from the graph database is increased.
In a possible implementation manner, before performing step S42, the following step eight may also be performed:
step eight: if the third point element and/or the fourth point element are not present in the graph database, the third point element and/or the fourth point element are created in the graph database.
In this embodiment, in the case that 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 is added to the graph database.
Illustratively, as shown in fig. 3, when the association relationship of the third point element M3 is established according to the production feature of the second video work issued by the third user account, that is, the second production feature, a user account having a friend relationship with the third user account is determined as a 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 according to the second production feature. And 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, adding the third point element M3 to the graph database, and establishing a connection relation between the third point element M3 representing the third user account and the fourth point element M4 representing the fourth user account according to the second manufacturing characteristics. And if the third point element M3 corresponding to the third user account exists in the graph database and the fourth point element M4 corresponding to the fourth user account does not exist, adding the third point element M4 to the graph database, and establishing 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 according to the second manufacturing characteristics.
By the implementation mode, the point elements can be reasonably constructed when the graph database is constructed, so that the rationality of constructing the graph database is ensured.
In the above embodiment, when the third user account publishes the second video work, the third user account is determined as the third point element; and the production characteristic of the second video work is taken as a second production characteristic. And constructing the incidence relation between the third point element and the fourth point element by taking the second manufacturing characteristic as an edge element and taking the third point element as a point element in the graph database.
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 the user account of any one of the distributed video works.
By the implementation mode, the point elements and the edge elements in the graph database are constructed in real time, and the data real-time property in the graph database is ensured, so that the accuracy of the acquired target user account is ensured.
FIG. 5 is a block diagram illustrating a data processing apparatus according to an example embodiment. Referring to fig. 5, the apparatus includes an acquisition unit 501, a determination unit 502, a screening unit 503, and a construction unit 504.
The obtaining unit 501 is configured to obtain a first user account and a first production characteristic when an electronic device where the first user account is located requests to play a first video work, where the first production characteristic is a production characteristic of the first video work. For example, the acquisition unit 501 is configured to execute step S21 in fig. 2.
A determining unit 502 configured to determine a target user account according to the first user account, the first production characteristic and the database, wherein the target user account has a social relationship with the first user account, and the published video work has the first production characteristic; the graph database comprises a plurality of point elements and at least one edge element, wherein one point element is used for representing one user account, and the plurality of point elements comprise a first point element used for representing a first user account; and the edge element is used for associating the two point elements and representing the production characteristics of the video works issued by the user accounts represented by at least one point element in the two point elements, and the at least one edge element comprises an edge element used for representing the first production characteristic. For example, the determination unit 502 is configured to execute step S22 in fig. 2.
In one 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.
In another possible implementation, the determining unit 502 is configured to specifically perform: determining a second point element in the graph database according to the first user account and the first manufacturing characteristic; the second point element comprises a point element which is related to the first point element through a target edge element, and the manufacturing characteristic represented by the target edge element is the first manufacturing characteristic; and determining a target user account from the second user accounts characterized by the second point element.
In another possible implementation, the determining 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 according to the first point element; and determining point elements except the first point element associated with the target edge element as second point elements.
In another possible implementation, each edge element has direction information, the direction information of the edge element indicates that the edge element points from the start point element to the end point element, the start point element and the end point element are two point elements associated with the edge element, and the production characteristic indicated by the edge element is a production characteristic of a video work issued by a user account indicated by the start point element.
In another possible implementation, the determining unit 502 is configured to specifically perform: determining an edge element pointing to the first point element as a candidate edge element according to the direction information of each edge element connected with the first point element; and determining the candidate edge elements which characterize the first manufacturing characteristics as target edge elements.
In another possible implementation, the user accounts characterized by the two point elements associated with one edge element have a social relationship.
In another possible embodiment, the social relationship includes a two-way focus relationship, a one-way focus relationship, and an interactive relationship.
In another possible implementation, the two-way concern relationship, the one-way concern relationship, and the interaction relationship have different priorities; a determining unit 502 configured to specifically perform: and determining the target user account from the second user accounts represented by the second point elements according to the priority of the social relationship between each second user account and the first user account.
In another possible embodiment, the apparatus further comprises: the screening unit 503 is configured to obtain a second production characteristic when the electronic device where the third user account is located requests to publish the second video work, where the second production characteristic is a production characteristic of the second video work. For example, the screening unit 503 is configured to execute step S41 in fig. 4.
A building unit 504 configured to perform establishing, in the graph database, an edge element for associating a third point element and a fourth point element, where 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. For example, the construction unit 504 is configured to execute step S42 in fig. 4.
In another possible implementation, the constructing unit 504 is further configured to perform: if the third point element and/or the fourth point element are not present in the graph database, the third point element and/or the fourth point element are created in the graph database.
In another possible implementation, the building unit 504 is configured to specifically perform: establishing edge elements representing second manufacturing characteristics between the third point elements and the fourth point elements; the established direction information of the edge elements is configured to characterize pointing from the third point element to the fourth point element.
In another possible implementation, the constructing unit 504 is further configured to perform: and deleting the edge element when the effective time of the edge element reaches the preset time or the social relationship between the user accounts represented by the two point elements related to the edge element is released.
In another possible implementation, one point element corresponds to one account identifier to characterize a user account corresponding to the one account identifier; one edge element corresponds to one feature identifier to characterize a manufacturing feature corresponding to one feature identifier.
In another possible embodiment, the type information of the edge elements characterizing different production features is different, and the different types of information correspond to different feature identifiers.
In another possible embodiment, the first production characteristic is a characteristic of a production template and/or material used to generate the first video work.
With regard to the apparatus in the above-described embodiment, the specific manner in which each unit module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated herein.
Fig. 6 is a schematic diagram of an electronic device provided by the present disclosure. As shown in fig. 6, the electronic device 60 may include at least one processor 601 and a memory 603 for storing processor-executable instructions. Wherein the processor 601 is configured to execute instructions in the memory 603 to implement the data processing method in the following embodiments.
Additionally, the electronic device 60 may also include a communication bus 602 and at least one communication interface 604 and input device 606.
The processor 601 may be a Central Processing Unit (CPU), a micro-processing unit, an ASIC, or one or more integrated circuits for controlling the execution of programs according to the present disclosure.
The communication bus 602 may include a path that conveys information between the aforementioned components.
The communication interface 604 may be any device, such as a transceiver, for communicating with other devices or communication networks, such as an ethernet, a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), etc.
The memory 603 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be self-contained and connected to the processing unit by a bus. The memory may also be integrated with the processing unit.
The memory 603 is used for storing instructions for executing the disclosed solution, and is controlled by the processor 601. The processor 601 is configured to execute instructions stored in the memory 603 to implement the functions of the disclosed method.
In particular implementations, processor 601 may include one or more CPUs such as CPU0 and CPU1 in fig. 6 as an example.
In particular implementations, electronic device 10 may include multiple processors, such as processor 601 and processor 607 of FIG. 6, for example, as an embodiment. Each of these processors may be a single-core (single-CPU) processor or a multi-core (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).
The electronic device includes, as shown in fig. 6: a processor 601 and a memory 603 for storing instructions executable by the processor 601; wherein the processor 601 is configured to execute executable instructions to implement the data processing method of any one of the possible embodiments as described above. And the same technical effect can be achieved, and in order to avoid repetition, the description is omitted.
The embodiments of the present disclosure also provide a computer-readable storage medium, wherein when the instructions in the computer-readable storage medium are executed by a processor of an image processing apparatus or an electronic device, the data processing apparatus or the electronic device is enabled to execute the data processing method according to any one of the above-mentioned possible embodiments. And the same technical effect can be achieved, and in order to avoid repetition, the description is omitted.
Embodiments of the present disclosure also provide a computer program product, which includes a computer program or instructions, and the computer program or instructions are executed by a processor to perform the data processing method according to any one of the above possible embodiments. And the same technical effect can be achieved, and in order to avoid repetition, the description is omitted.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements 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 (10)
1. A data processing method, comprising:
when an electronic device where a first user account is located requests to play a first video work, the first user account and first manufacturing characteristics are obtained, and the first manufacturing characteristics are manufacturing characteristics of the first video work;
determining a target user account according to the first user account, the first manufacturing characteristic and the database;
wherein the target user account has a social relationship with the first user account and the published video work has the first production characteristic;
the graph database comprises a plurality of point elements and at least one edge element, wherein one point element is used for representing one user account, and the plurality of point elements comprise a first point element used for representing the first user account; and one edge element is used for associating two point elements and characterizing the production characteristics of the video works issued by the user accounts characterized by at least one point element in the two point elements, and the at least one edge element comprises an edge element for characterizing the first production characteristics.
2. The data processing method of claim 1, wherein the target user account is configured to generate description information of the first video work, and the description information of the first video work is configured to be displayed on an electronic device where the first user account is located.
3. The data processing method of claim 1, wherein determining a target user account from the first user account, the first production characteristic, and a graph database comprises:
determining a second point element in the graph database according to the first user account and the first manufacturing characteristic; the second point element comprises a point element which is related to the first point element through a target edge element, and the manufacturing feature characterized by the target edge element is a first manufacturing feature;
and determining the target user account from the second user accounts characterized by the second point element.
4. The data processing method of claim 3, wherein determining a second point element in the graph database based on the first user account and the first production characteristic comprises:
determining the first point element characterizing the first user account in the graph database;
determining the target edge element according to the first point element;
and determining point elements other than the first point element associated with the target edge element as the second point elements.
5. The data processing method according to claim 4, wherein each of the edge elements has direction information, the direction information of the edge element indicates that the edge element points from a start point element to an end point element, the start point element and the end point element are the two point elements associated with the edge element, and the production characteristics indicated by the edge element are production characteristics of a video product issued by a user account indicated by the start point element.
6. The data processing method of claim 5, wherein the determining the target edge element from the first point element comprises:
determining edge elements pointing to the first point element as candidate edge elements according to the direction information of each edge element connected with the first point element;
and determining the candidate edge element characterizing the first manufacturing feature as the target edge element.
7. A data processing apparatus, comprising:
the electronic equipment comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is configured to acquire a first user account and a first production characteristic when the electronic equipment where the first user account is located requests to play a first video work, and the first production characteristic is the production characteristic of the first video work;
a determining unit configured to determine a target user account according to the first user account, the first production characteristics and the map database;
wherein the target user account has a social relationship with the first user account and the published video work has the first production characteristic; the graph database comprises a plurality of point elements and at least one edge element, wherein one point element is used for representing one user account, and the plurality of point elements comprise a first point element used for representing the first user account; and one edge element is used for associating two point elements and characterizing the production characteristics of the video works issued by the user accounts characterized by at least one point element in the two point elements, and the at least one edge element comprises an edge element for characterizing the first production characteristics.
8. An electronic device, comprising:
a processor and a memory for storing processor-executable instructions; wherein the processor is configured to execute the executable instructions to implement the data processing method of any of claims 1 to 6.
9. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the data processing method of any one of claims 1 to 6; or when executed by data processing apparatus, enable the data processing apparatus to perform a data processing method as claimed in any one of claims 1 to 6.
10. A computer program product comprising a computer program or instructions, characterized in that the computer program or instructions, when executed by a processor, implement the data processing method of any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210467555.1A CN114861006A (en) | 2022-04-29 | 2022-04-29 | Data processing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210467555.1A CN114861006A (en) | 2022-04-29 | 2022-04-29 | Data processing method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114861006A true CN114861006A (en) | 2022-08-05 |
Family
ID=82635504
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210467555.1A Pending CN114861006A (en) | 2022-04-29 | 2022-04-29 | Data processing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114861006A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130343591A1 (en) * | 2011-01-03 | 2013-12-26 | Beats Electronics, LLC. | Audio listening system |
CN109146530A (en) * | 2017-06-15 | 2019-01-04 | 阿里巴巴集团控股有限公司 | Interactive approach and device based on social network information |
CN112800286A (en) * | 2021-04-08 | 2021-05-14 | 北京轻松筹信息技术有限公司 | User relationship chain construction method and device and electronic equipment |
-
2022
- 2022-04-29 CN CN202210467555.1A patent/CN114861006A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130343591A1 (en) * | 2011-01-03 | 2013-12-26 | Beats Electronics, LLC. | Audio listening system |
CN109146530A (en) * | 2017-06-15 | 2019-01-04 | 阿里巴巴集团控股有限公司 | Interactive approach and device based on social network information |
CN112800286A (en) * | 2021-04-08 | 2021-05-14 | 北京轻松筹信息技术有限公司 | User relationship chain construction method and device and electronic equipment |
Non-Patent Citations (2)
Title |
---|
IYVONNE BETT: "What is graph Databases? A better way to store connected data", Retrieved from the Internet <URL:https://dev.to/iyvonnebett/what-is-graph-databases-a-better-way-to-store-connected-data-46ee> * |
苗启朋: ""基于全局有向图的商品会话序列推荐算法"", 《吉林大学学报(理学版) 》, vol. 60, no. 02, 26 March 2022 (2022-03-26), pages 361 - 368 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110020086B (en) | User portrait query method and device | |
US20230319001A1 (en) | Snippet(s) of content associated with a communication platform | |
CN104639426A (en) | Method and device for adding group members | |
CN113364853A (en) | Business service system, business request method and gateway equipment | |
CN109670159A (en) | The creation of view and management method, device, electronic equipment and storage medium | |
CN111368519A (en) | Method, device, equipment and storage medium for editing online table | |
CN103744575A (en) | Method and equipment for providing input auxiliary areas of input applications | |
CN115237853A (en) | Data query method and device, electronic equipment and storage medium | |
US10033737B2 (en) | System and method for cross-cloud identity matching | |
CN116611411A (en) | Business system report generation method, device, equipment and storage medium | |
US10332046B2 (en) | Social workflow engine | |
WO2018052824A1 (en) | Optimize meeting based on organizer rating | |
CN105786941A (en) | Information mining method and device | |
CN109768910B (en) | Information processing method, related device, equipment and system | |
CN110555023A (en) | Data storage method and device based on credit contract | |
CN108696559B (en) | Stream processing method and device | |
EP3407568A1 (en) | Service processing method and device | |
CN111161067A (en) | Method and device for determining transaction route | |
US20170178154A1 (en) | Leveraging network-based point to point transactions | |
CN114861006A (en) | Data processing method and device, electronic equipment and storage medium | |
CN116450920A (en) | Data query method and device and electronic equipment | |
CN112231336B (en) | Method and device for identifying user, storage medium and electronic equipment | |
CN111597441B (en) | Information processing method and device and electronic equipment | |
CN113992989A (en) | Content display method, device, system, equipment and storage medium | |
CN111163237A (en) | Call service flow control method and related device |
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 |