Copyright information query method, computer equipment and computer readable storage medium
By building a copyright information index, determining the effective time range of copyright and querying the index location, the problem of low copyright query efficiency is solved, and fast and accurate copyright information query is achieved, and query efficiency is improved.
Patent Information
- Application Number
- CN202510478760.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-16
- Publication Date
- 2025-08-15
AI Technical Summary
When the prior art processes a large number of copyright information entries, copyright query efficiency is low and time complexity is high, making it difficult to quickly and accurately judge the ownership of daily copyrights, especially in scenarios such as billing and settlement, which affects the progress of real-time processing.
By constructing a copyright information index, preprocessing copyright information entries, determining the valid copyright time range, and determining the index position based on the query date and the interval between the range, querying the daily copyright information belonging data in the index, and returning the query results.
It realizes fast and accurate copyright information query, reduces time complexity and calculation amount, improves copyright query efficiency, and solves the problem of reducing query efficiency caused by the increase in copyright information entries.
Smart Images

Figure CN120493218A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a copyright information query method, a computer device, and a computer-readable storage medium. Background Art
[0002] Copyright information contains time-sensitive data and needs to be adjusted at any time due to changes in ownership, contract renewals, copyright disputes, and terminations. These adjustments are also relatively unordered over time, generating a large number of copyright adjustment entries. Therefore, determining the daily copyright ownership status based on this large number of copyright adjustment entries is a complex and time-consuming task.
[0003] Related technologies typically calculate copyright ownership temporarily when copyright information is used. Due to overlapping copyright dates, this analysis requires analysis based on a large number of copyright information entries, resulting in high time complexity and computational complexity. As the number of copyright information entries increases, copyright query efficiency decreases. For scenarios such as billing and settlement that require large amounts of copyright information to determine copyright ownership, repeated calculations can significantly slow down real-time processing. Summary of the Invention
[0004] Based on this, it is necessary to provide a copyright information query method, computer device and computer-readable storage medium that can improve the efficiency of copyright information query in response to the above technical problems.
[0005] In a first aspect, the present application provides a copyright information query method. The method comprises:
[0006] Receive a copyright information query request for target content in a target business, obtain a copyright information index corresponding to the target content, and determine a copyright validity period; the copyright information query request includes a target query date; the copyright validity period is associated with a business period of the target business;
[0007] In the case where the target query date is within the copyright validity period, determining a target index position according to the interval between the target query date and the start date of the copyright validity period; the index position in the copyright information index is associated with the date;
[0008] Querying the information storage result of the target index position in the copyright information index; the information storage result is used to indicate whether there is daily copyright information attribution data;
[0009] A copyright information query result for the copyright information query request is returned based on the daily copyright information attribution data; the copyright information query result is used to represent the copyright information of the target content on the target query date.
[0010] In one embodiment, obtaining the copyright information index corresponding to the target content and determining the copyright validity period includes:
[0011] According to the content identifier of the target content in the copyright information query request, obtaining the copyright information index corresponding to the content identifier;
[0012] The start date and end date in the copyright information index are obtained to obtain the copyright validity time range.
[0013] In one embodiment, returning a copyright information query result for the copyright information query request based on the daily copyright information attribution data includes:
[0014] Determining an entry identifier of a copyright information entry corresponding to the daily copyright information attribution data;
[0015] The copyright information entry content corresponding to the entry identifier is obtained, and a copyright information query result for the copyright information query request is returned based on the copyright information entry content; the copyright information entry content includes copyright information of the target content on the target query date.
[0016] In one embodiment, before the steps of receiving a copyright information query request for target content in a target business, obtaining a copyright information index corresponding to the target content, and determining a copyright validity period, the method further includes:
[0017] In response to the copyright information index building operation for the target business, taking any content in the target business as content to be processed;
[0018] Acquire multiple copyright information entries of the content to be processed, and determine the copyright validity start date and copyright validity end date;
[0019] Based on the copyright validity start date and the copyright validity end date, the plurality of copyright information entries are used to construct a copyright information index corresponding to the content to be processed.
[0020] In one embodiment, determining the copyright effective start date includes:
[0021] Determining the earliest copyright effective date from the plurality of copyright information entries, and obtaining the business start date of the target business;
[0022] If the earliest copyright effective date is less than or equal to the business start date, the business start date shall be used as the copyright effective start date;
[0023] If the earliest copyright effective date is greater than the business start date, the earliest copyright effective date shall be used as the copyright effective start date.
[0024] In one embodiment, determining the copyright effective end date includes:
[0025] Determining the latest copyright expiration date from the plurality of copyright information entries, and obtaining the business end date of the target business;
[0026] If the latest copyright expiration date is greater than or equal to the business end date, the business end date will be used as the copyright validity end date;
[0027] If the latest copyright expiration date is less than the business end date, the latest copyright expiration date will be used as the copyright validity end date.
[0028] In one embodiment, constructing a copyright information index corresponding to the content to be processed using the multiple copyright information entries based on the copyright validity start date and the copyright validity end date includes:
[0029] According to the number of days between the copyright validity start date and the copyright validity end date, create an array corresponding to the number of days between the copyright validity start date and the copyright validity end date;
[0030] By comparing the copyright effective date in each copyright information entry with the copyright effective start date, and the copyright expiration date in each copyright information entry with the copyright effective end date, mapping each copyright information entry to a different position in the array in chronological order;
[0031] Removing data of copyright information entries with overlapping dates that are repeatedly mapped at the same location, and obtaining daily copyright information attribution data for the date corresponding to each location;
[0032] Based on the daily copyright information attribution data of the date corresponding to each of the positions, a copyright information attribution result array is obtained as the copyright information index corresponding to the content to be processed.
[0033] In one embodiment, the method further comprises:
[0034] When copyright information change data of the content to be processed is detected, the copyright information index corresponding to the content to be processed is updated according to the change date and copyright information change content of the copyright information change data.
[0035] In a second aspect, the present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the copyright information query method described in the first aspect are implemented.
[0036] In a third aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the copyright information query method described in the first aspect.
[0037] In a fourth aspect, the present application further provides a computer program product, comprising a computer program that, when executed by a processor, implements the steps of the copyright information query method described in the first aspect.
[0038] The above-mentioned copyright information query method, computer device and computer-readable storage medium receive a copyright information query request for target content in a target business, obtain a copyright information index corresponding to the target content, and determine the copyright validity time range. The copyright information query request includes a target query date, and the copyright validity time range is associated with the business time range of the target business. Then, when the target query date is within the copyright validity time range, the target index position is determined based on the interval between the target query date and the start date of the copyright validity time range. The index position in the copyright information index has an associated relationship with the date. The information storage result of the target index position in the copyright information index is queried. The information storage result is used to characterize whether there is daily copyright information attribution data. Then, based on the daily copyright information attribution data, a copyright information query result for the copyright information query request is returned. The copyright information query result is used to characterize the copyright information of the target content on the target query date, thereby optimizing the copyright information query. By querying the daily copyright information attribution data based on the copyright information index corresponding to the target content, the daily copyright attribution situation can be quickly and accurately determined, reducing the time complexity and computational complexity of the copyright query and effectively improving the copyright query efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A schematic diagram of a copyright information query service process in one embodiment;
[0040] Figure 2 1 is a flowchart of a copyright information query method according to an embodiment;
[0041] Figure 3a A schematic diagram of a copyright information query process in one embodiment;
[0042] Figure 3bis a schematic diagram of a copyright information index in one embodiment;
[0043] Figure 4 A schematic diagram of a copyright information index construction process in one embodiment;
[0044] Figure 5 is a schematic diagram of updating a copyright information index in one embodiment;
[0045] Figure 6 is a flowchart of a copyright information query method according to another embodiment;
[0046] Figure 7 is a structural block diagram of a copyright information query device in one embodiment;
[0047] Figure 8 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0049] like Figure 1 The traditional copyright information query process shown in the figure can be used to request copyright information query services based on business content (such as songs, pictures, videos, etc.) using the following steps:
[0050] 1. A business system (e.g., a billing / settlement platform that requests copyright information) requests historical copyright information entries for certain content (e.g., songs, images, videos, etc.). Copyright information may be copyright information registered in the system based on the song, image, video, etc., and may include information such as the authorized contracting company, the licensor, the authorized content, the scope of the authorization, the effective date of the authorization, and the expiration date of the authorization.
[0051] 2. Determine whether the obtained copyright information is empty. If there is no copyright information, return the query result of no copyright information to the business system:
[0052] 3. For the acquired copyright information, valid copyright information entries can be filtered based on the usage date of the requested business content (because copyright entries are manually updated and adjusted, there may be overlapping time periods, resulting in a large number of copyright entries being queried). For example, the filtering process can be based on the validity judgment rules of the copyright information entries: such as whether the usage date of the business content is greater than or equal to the effective date of the copyright information, or whether the usage date of the business content is less than or equal to the expiration date of the copyright information;
[0053] 4. By determining whether there is a valid copyright information entry, a query result of no copyright information can be returned if there is no valid copyright information;
[0054] 5. Valid copyright information entries can be sorted, and the most recently updated copyright information is returned as valid copyright information, which can be used in scenarios such as billing and settlement of business content.
[0055] When using the above-mentioned traditional method, when analyzing based on a large number of copyright information entries, the time complexity is high, the calculation amount is large, and the copyright query efficiency is low; the present application constructs a copyright information index through preprocessing, which can efficiently construct result data with controllable capacity, meet usage needs, and have marked daily copyright information ownership for business query use, which can effectively reduce the time complexity of query judgment and solve the problem of reduced query efficiency due to the increase in copyright information entries.
[0056] In an exemplary embodiment, Figure 2 As shown, a copyright information query method is provided. This embodiment uses the method applied to a server as an example. It is understood that the method can also be applied to a terminal, or to a system including a terminal and a server, and implemented through interaction between the terminal and the server. The server can be implemented as a standalone server or a server cluster consisting of multiple servers; the terminal can be, but is not limited to, various personal computers, laptops, smartphones, tablet computers, and portable wearable devices.
[0057] In this embodiment, the method includes the following steps S201 to S204, wherein:
[0058] In step S201, a copyright information query request for target content in a target business is received, a copyright information index corresponding to the target content is obtained, and a copyright validity period is determined.
[0059] As an example, when searching for copyright information of business content B (such as songs, pictures, videos, etc.) used in business activity A, business activity A can be used as the target business and business content B as the target content.
[0060] Among them, the copyright information query request may include the target query date, such as the date of use of the business content can be used as the target query date; the copyright validity time range is associated with the business time range of the target business, such as the copyright validity time range can be determined based on the business time range involved in the business activities to judge the copyright information status of the business content used in the business activities.
[0061] In practical applications, such as Figure 3aAs shown, the business system can request the copyright information of xx content (i.e., the target content in the target business), that is, issue a copyright information query request. Based on the received copyright information query request, the copyright management service can be accessed to obtain a pre-built copyright information index for the xx content, and then the start date and end date of the corresponding content (i.e., the target content) in the copyright information index can be obtained to determine the copyright validity time range.
[0062] In step S202, when the target query date is within the copyright validity period, the target index position is determined according to the interval between the target query date and the start date of the copyright validity period.
[0063] Among them, the copyright information index may include daily copyright information attribution results within the copyright validity period; the index position in the copyright information index has an associated relationship with the date, such as the index position corresponds one-to-one to the date in the date sequence, and each corresponds to a daily copyright information attribution result.
[0064] After obtaining the copyright validity period, if Figure 3a As shown, it is possible to determine whether the business date (i.e., the target query date) is within the time range from the start date to the end date in the copyright information attribution result (i.e., the copyright validity period); if it is within the time range, by calculating the number of days x (i.e., the interval time) between the business date and the start date in the copyright information attribution result, the copyright status of the corresponding content (i.e., the target content) at position n[x] in the index (i.e., the target index position) can be determined.
[0065] Alternatively, as Figure 3a As shown, if it is not within the time range (that is, the target query date is not within the copyright validity period), a query result without copyright information can be returned to the business system.
[0066] In step S203, the information storage result of the target index position in the copyright information index is queried; the information storage result is used to indicate whether there is daily copyright information attribution data.
[0067] In the specific implementation, by querying the copyright mark status (i.e., information storage result) of the n[x] position (i.e., target index position) in the copyright information index, it can be determined whether the n[x] position stores the daily copyright information attribution result (i.e., daily copyright information attribution data).
[0068] In step S204, a copyright information query result for the copyright information query request is returned based on the daily copyright information attribution data; the copyright information query result is used to represent the copyright information of the target content on the target query date.
[0069] In one example, if Figure 3aAs shown, when copyright is marked, that is, daily copyright information attribution data is available, copyright information query results for copyright information query requests can be returned to the business system based on the daily copyright information attribution data, so that the business system can perform billing and settlement based on the acquired copyright information.
[0070] Alternatively, as Figure 3a As shown, when it is found that the target content has no copyright information marked at the n[x] position in the index (for example, null is displayed in the index to indicate no mark), a query result without copyright information can be returned to the business system.
[0071] In another example, Figure 3b As shown in the copyright information index example, in the copyright information attribution result array, the corresponding daily copyright attribution category (i.e., daily copyright information attribution data) can be found based on the n[x] position. The copyright information stored under the corresponding copyright entry can be queried through the unique ID of the copyright entry marked in the daily copyright attribution category.
[0072] Compared with the traditional method, the technical solution of this embodiment, by obtaining the copyright information index corresponding to the target content for query, can process the copyright entries that may have repeated authorization time in advance and convert them into copyright information indexes with clear and limited time, so as to efficiently construct a result data with controllable capacity, meeting usage needs, and marked with daily copyright information ownership based on the copyright information entries, and then retrieve and use it, avoiding direct query and judgment based on a large number of copyright information entries in sequence, which can reduce the time complexity of copyright query judgment, effectively reduce the time of copyright query judgment, and avoid the situation where the query service capability decreases due to the increase of copyright information.
[0073] In the above-mentioned copyright information query method, by receiving a copyright information query request for the target content in the target business, obtaining the copyright information index corresponding to the target content, determining the copyright validity time range, and then, when the target query date is within the copyright validity time range, determining the target index position based on the interval between the target query date and the start date of the copyright validity time range, querying the information storage result of the target index position in the copyright information index, and then returning the copyright information query result for the copyright information query request based on the daily copyright information attribution data, realizing the optimization of copyright information query. By querying the daily copyright information attribution data based on the copyright information index corresponding to the target content, the daily copyright attribution situation can be judged quickly and accurately, reducing the time complexity and computational complexity of copyright query, and effectively improving the efficiency of copyright query.
[0074] In an exemplary embodiment, in step S201, obtaining the copyright information index corresponding to the target content and determining the copyright validity period may include the following steps:
[0075] According to the content identifier of the target content in the copyright information query request, the copyright information index corresponding to the content identifier is obtained; the start date and end date in the copyright information index are obtained to obtain the copyright validity time range.
[0076] In practical applications, such as Figure 3b As shown, the copyright information index class (i.e., copyright information index) can be used as a query entry. According to the unique ID of the xx content (i.e., the content identifier of the target content), its corresponding copyright information index can be obtained for retrieval. During the retrieval, the validity of the target query date can be first judged based on the copyright validity time range. If it is not within the copyright validity time range, it is determined that there is no copyright information.
[0077] For example, the date corresponding to the first set element in the result data of daily copyright information attribution can be Figure 3b The date corresponding to arr[0] in the table is used as the starting date of the result data of daily copyright information attribution, that is, the starting date in the copyright information index; the date corresponding to the last set element in the result data of daily copyright information attribution can be used as Figure 3b The date corresponding to arr[k] in the table is used as the end date of the daily copyright information, that is, the end date in the copyright information index.
[0078] In one example, when the target query date is determined to be valid based on the copyright validity period, that is, the target query date is within the copyright validity period, the interval days can be calculated based on the target query date and the start date in the copyright information index, and then the result data of the target query date in the daily copyright information attribution can be determined based on the interval days (such as Figure 3b The copyright information belongs to the position in the result array), such as Figure 3b The corresponding positions of arr[0]...arr[k] are used to obtain the corresponding stored daily copyright ownership based on the queried position.
[0079] In this embodiment, by obtaining the copyright information index corresponding to the content identifier based on the target content in the copyright information query request, and then obtaining the start date and end date in the copyright information index, the copyright validity time range is obtained, which provides data support for judging the validity of the target query date based on the copyright validity time range.
[0080] In an exemplary embodiment, in step S204, returning a copyright information query result for a copyright information query request based on daily copyright information attribution data may include the following steps:
[0081] Determine the entry identifier of the copyright information entry corresponding to the daily copyright information attribution data; obtain the copyright information entry content corresponding to the entry identifier, and return the copyright information query result for the copyright information query request based on the copyright information entry content; the copyright information entry content includes the copyright information of the target content on the target query date.
[0082] Specifically, according to the copyright information index (such as Figure 3b The target index position in the copyright information attribution result array) can be queried to find the copyright information entry corresponding to the daily copyright information attribution data in the target index position (such as Figure 3b Daily copyright attribution category in the copyright information entry), and then the entry identifier based on the copyright information entry (such as Figure 3b The copyright entry unique id marked in the daily copyright attribution category) obtains the corresponding copyright information entry content (such as Figure 3b to return the copyright information query result of the copyright information query request based on the queried copyright information entry content.
[0083] In this embodiment, by determining the entry identifier of the copyright information entry corresponding to the daily copyright information attribution data, and then obtaining the copyright information entry content corresponding to the entry identifier, and returning the copyright information query result for the copyright information query request based on the copyright information entry content, the time consumption of copyright query judgment can be reduced, and the efficiency of copyright query can be effectively improved.
[0084] In an exemplary embodiment, before the steps of receiving a copyright information query request for target content in a target business, obtaining a copyright information index corresponding to the target content, and determining the copyright validity period, the following steps may also be included:
[0085] In response to a copyright information index construction operation for a target business, any content in the target business is used as content to be processed; multiple copyright information entries of the content to be processed are obtained, and the copyright validity start date and the copyright validity end date are determined; based on the copyright validity start date and the copyright validity end date, multiple copyright information entries are used to construct a copyright information index corresponding to the content to be processed.
[0086] In the specific implementation, Figure 4The processing flow of converting copyright information entries into copyright information indexes shown in the figure takes the construction of copyright information index for business activity A as an example. By traversing the copyright information of all contents in business activity A (i.e., target business) in sequence through the copyright management service, historical copyright information entries (i.e., multiple copyright information entries) of xx content (i.e., any content as the content to be processed) can be obtained. Then, the valid copyright information entries can be sorted, such as marking the data updated later with a larger copyright serial number. Then, based on the effective date and expiration date of the sorted copyright information entries, the earliest effective date and the latest expiration date (i.e., the copyright effective start date and the copyright effective end date) can be calculated.
[0087] In this embodiment, by responding to the copyright information index construction operation for the target business, any content in the target business is used as the content to be processed, and then multiple copyright information entries of the content to be processed are obtained, the copyright validity start date and the copyright validity end date are determined, and then based on the copyright validity start date and the copyright validity end date, multiple copyright information entries are used to construct the copyright information index corresponding to the content to be processed, and the copyright information index can be constructed by preprocessing.
[0088] In an exemplary embodiment, determining the copyright effective start date may include the following steps:
[0089] Determine the earliest copyright effective date from multiple copyright information entries and obtain the business start date of the target business; if the earliest copyright effective date is less than or equal to the business start date, use the business start date as the copyright effective start date; if the earliest copyright effective date is greater than the business start date, use the earliest copyright effective date as the copyright effective start date.
[0090] In one example, if Figure 4 As shown, the earliest effective date (i.e., the earliest copyright effective date) can be calculated based on the effective dates of the sorted copyright information entries (i.e., multiple copyright information entries). By judging the size of the earliest effective date and the business start date, if the earliest effective date is less than or equal to the business start date, the business start date can be used as the starting date for daily copyright information attribution (i.e., the copyright effective start date); if the earliest effective date is greater than the business start date, the earliest effective date can be used as the starting date for daily copyright information attribution.
[0091] In this embodiment, by determining the earliest copyright effective date from multiple copyright information entries and obtaining the business start date of the target business, if the earliest copyright effective date is less than or equal to the business start date, the business start date is used as the copyright effective start date; if the earliest copyright effective date is greater than the business start date, the earliest copyright effective date is used as the copyright effective start date, so that the copyright effective start date can be accurately obtained.
[0092] In an exemplary embodiment, determining the copyright effective end date may include the following steps:
[0093] Determine the latest copyright expiration date from multiple copyright information entries and obtain the business end date of the target business; if the latest copyright expiration date is greater than or equal to the business end date, use the business end date as the copyright validity end date; if the latest copyright expiration date is less than the business end date, use the latest copyright expiration date as the copyright validity end date.
[0094] In one example, if Figure 4 As shown, the latest expiration date (i.e., the latest copyright expiration date) can be calculated based on the expiration dates of the sorted copyright information entries (i.e., multiple copyright information entries). By judging the size of the latest expiration date and the current date (which can be postponed for a few months based on business needs, i.e., the business end date), if the latest expiration date is greater than or equal to the current date, the current date can be used as the end date of the daily copyright information attribution (i.e., the copyright validity end date); if the latest expiration date is less than the current date, the latest expiration date can be used as the end date of the daily copyright information attribution.
[0095] In this embodiment, by determining the latest copyright expiration date from multiple copyright information entries and obtaining the business end date of the target business, if the latest copyright expiration date is greater than or equal to the business end date, the business end date is used as the copyright validity end date; if the latest copyright expiration date is less than the business end date, the latest copyright expiration date is used as the copyright validity end date, so that the copyright validity end date can be accurately obtained.
[0096] In an exemplary embodiment, based on the copyright validity start date and the copyright validity end date, constructing a copyright information index corresponding to the content to be processed using multiple copyright information entries may include the following steps:
[0097] Based on the number of days between the copyright validity start date and the copyright validity end date, an array corresponding to the number of days between the interval dates is created; by comparing the copyright effective date and the copyright validity start date in each copyright information entry, as well as the copyright expiration date and the copyright validity end date in each copyright information entry, each copyright information entry is mapped to a different position in the array arranged in chronological order; the data that is repeatedly mapped at the same position for copyright information entries with overlapping dates is removed to obtain daily copyright information attribution data for the dates corresponding to each position; based on the daily copyright information attribution data for the dates corresponding to each position, an array of copyright information attribution results is obtained as the copyright information index corresponding to the content to be processed.
[0098] In practical applications, such as Figure 4As shown, the date interval k (i.e., the number of days between dates) can be calculated based on the starting date and ending date of the daily copyright information (i.e., the copyright effective start date and the copyright effective end date). Then, an array n[k] that records the daily copyright information can be created, where n[0] represents the starting date and n[k-1] represents the ending date. By traversing and processing the copyright information (i.e., copyright information entries) in descending order based on the copyright serial number, one row of copyright information can be taken out each time, and the effective time of the copyright information (i.e., the copyright effective date) and the starting date (i.e., the copyright effective start date) can be compared. The latest date is mapped to the array. At the n[i] position of the group, the expiration time (i.e., copyright expiration date) and the end date (i.e., copyright validity end date) of each copyright information can be compared, and the earliest date can be mapped to the n[j] position of the array. The n[i] to n[j] positions in the array can be looped through to determine whether the corresponding date of each position has been marked with copyright. If it is marked, it means that it has daily copyright ownership (the marked ones will no longer be marked to achieve deduplication effect). After the copyright information is traversed and processed, the copyright information ownership result's start date, end date, ownership result array, etc. can be stored as the result data of daily copyright information ownership (i.e., copyright information index).
[0099] In this embodiment, by constructing a copyright information index through preprocessing, result data with controllable capacity, meeting usage requirements, and marked with daily copyright information ownership can be efficiently constructed for business query use. This can effectively reduce the time complexity of query judgment and solve the problem of reduced query efficiency due to the increase in copyright information entries.
[0100] In an exemplary embodiment, the following steps may be included:
[0101] When copyright information change data of the content to be processed is detected, the copyright information index corresponding to the content to be processed is updated according to the change date and copyright information change content of the copyright information change data.
[0102] In one example, if Figure 5 As shown, during the copyright information index construction process, content with copyright changes (i.e., copyright information change data for pending content) can be filtered out based on yesterday's newly added copyright information. Then, based on the changes (i.e., the change date and content of the copyright information change data), a line-break tree algorithm can be used to construct daily copyright information attribution results corresponding to the change date. The daily copyright information attribution results for content with no changes can be merged to complete the index construction. This effectively constructs result data that labels daily copyright information attribution.
[0103] In one embodiment, Figure 6As shown, a flowchart of another copyright information query method is provided. In this embodiment, the method includes the following steps:
[0104] In step S601, in response to the copyright information index construction operation for the target business, any content in the target business is taken as the content to be processed, multiple copyright information entries of the content to be processed are obtained, and the copyright validity start date and copyright validity end date are determined. In step S602, based on the number of days between the copyright validity start date and the copyright validity end date, an array corresponding to the number of days between the copyright validity start date and the copyright validity end date is created. In step S603, by comparing the copyright effective date and the copyright validity start date in each copyright information entry, as well as the copyright expiration date and the copyright validity end date in each copyright information entry, each copyright information entry is mapped to a different position in the array arranged in chronological order. In step S604, the data that is repeatedly mapped at the same position for copyright information entries with overlapping dates is removed to obtain the daily copyright information attribution data for the corresponding date of each position. Based on the daily copyright information attribution data for the corresponding date of each position, a copyright information attribution result array is obtained as the copyright information index corresponding to the content to be processed. In step S605, a copyright information query request for the target content in the target business is received, and based on the content identifier of the target content in the copyright information query request, the copyright information index corresponding to the content identifier is obtained, and the start date and end date in the copyright information index are obtained to obtain the copyright validity time range. In step S606, when the target query date is within the copyright validity time range, the target index position is determined based on the interval time between the target query date and the start date of the copyright validity time range. In step S607, the information storage result of the target index position in the copyright information index is queried. In step S608, the entry identifier of the copyright information entry corresponding to the daily copyright information attribution data is determined, the copyright information entry content corresponding to the entry identifier is obtained, and the copyright information query result for the copyright information query request is returned based on the copyright information entry content. It should be noted that the specific limitations of the above steps can be found in the specific limitations of a copyright information query method above, and will not be repeated here.
[0105] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0106] Based on the same inventive concept, embodiments of the present application also provide a copyright information query device for implementing the aforementioned copyright information query method. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of one or more copyright information query device embodiments provided below can be found in the aforementioned limitations of the copyright information query method and will not be further elaborated here.
[0107] In one embodiment, Figure 7 As shown, a copyright information query device is provided, comprising:
[0108] The copyright validity period determination module 701 is configured to receive a copyright information query request for target content in a target business, obtain a copyright information index corresponding to the target content, and determine the copyright validity period; the copyright information query request includes a target query date; and the copyright validity period is associated with the service period of the target business.
[0109] a target index position determination module 702 for determining a target index position based on the interval between the target query date and the start date of the copyright validity period if the target query date is within the copyright validity period; the index position in the copyright information index is associated with the date;
[0110] An information storage result query module 703 is used to query the information storage result of the target index position in the copyright information index; the information storage result is used to indicate whether there is daily copyright information attribution data;
[0111] The copyright information query result returning module 704 is used to return a copyright information query result for the copyright information query request based on the daily copyright information attribution data; the copyright information query result is used to represent the copyright information of the target content on the target query date.
[0112] In one embodiment, the copyright validity period determination module 701 includes:
[0113] a copyright information index acquisition submodule, configured to acquire, based on the content identifier of the target content in the copyright information query request, the copyright information index corresponding to the content identifier;
[0114] The copyright validity time range acquisition submodule is used to obtain the start date and end date in the copyright information index to obtain the copyright validity time range.
[0115] In one embodiment, the copyright information query result returning module 704 includes:
[0116] An entry identifier determination submodule, configured to determine an entry identifier of a copyright information entry corresponding to the daily copyright information attribution data;
[0117] The copyright information entry content acquisition submodule is used to obtain the copyright information entry content corresponding to the entry identifier and return a copyright information query result for the copyright information query request based on the copyright information entry content; the copyright information entry content includes the copyright information of the target content on the target query date.
[0118] In one embodiment, the apparatus further comprises:
[0119] a to-be-processed content determination module, configured to, in response to a copyright information index building operation for the target service, take any content in the target service as to-be-processed content;
[0120] A validity period determination module, configured to obtain a plurality of copyright information items of the content to be processed and determine a copyright validity start date and a copyright validity end date;
[0121] The copyright information index construction module is used to construct a copyright information index corresponding to the content to be processed using the multiple copyright information entries based on the copyright validity start date and the copyright validity end date.
[0122] In one embodiment, the effective bundle date determination module includes:
[0123] A start date acquisition submodule, configured to determine the earliest copyright effective date from the plurality of copyright information entries and to acquire the business start date of the target business;
[0124] A first copyright validity start date determination submodule is configured to use the business start date as the copyright validity start date if the earliest copyright validity date is less than or equal to the business start date;
[0125] The second copyright validity start date determination submodule is configured to use the earliest copyright validity date as the copyright validity start date if the earliest copyright validity date is greater than the business start date.
[0126] In one embodiment, the effective bundle date determination module includes:
[0127] An end date acquisition submodule, configured to determine the latest copyright expiration date from the plurality of copyright information entries and acquire the business end date of the target business;
[0128] A first copyright validity end date submodule, configured to use the business end date as the copyright validity end date if the latest copyright expiration date is greater than or equal to the business end date;
[0129] The second copyright validity end date submodule is configured to use the latest copyright expiration date as the copyright validity end date if the latest copyright expiration date is less than the business end date.
[0130] In one embodiment, the copyright information index construction module includes:
[0131] An array creation submodule, configured to create an array corresponding to the number of days between the copyright validity start date and the copyright validity end date according to the number of days between the copyright validity start date and the copyright validity end date;
[0132] a mapping submodule, configured to map each copyright information entry to a different position in the array arranged in chronological order by comparing the copyright effective date in each copyright information entry with the copyright effective start date, and the copyright expiration date in each copyright information entry with the copyright effective end date;
[0133] A deduplication submodule, configured to remove data of copyright information entries with overlapping dates that are repeatedly mapped at the same location, and obtain daily copyright information attribution data for the date corresponding to each location;
[0134] The copyright information attribution result array obtaining submodule is used to obtain a copyright information attribution result array based on the daily copyright information attribution data of the date corresponding to each of the positions, as the copyright information index corresponding to the content to be processed.
[0135] In one embodiment, the apparatus further comprises:
[0136] The copyright information index updating module is used to update the copyright information index corresponding to the content to be processed according to the change date and content of the copyright information change data when copyright information change data of the content to be processed is detected.
[0137] Each module in the copyright information query device described above may be implemented in whole or in part through software, hardware, or a combination thereof. Each module may be embedded in or independent of a processor in a computer device in the form of hardware, or may be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0138] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O) and a communication interface. The processor, memory and input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store copyright information query data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a copyright information query method is implemented.
[0139] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0140] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0141] Receive a copyright information query request for target content in a target business, obtain a copyright information index corresponding to the target content, and determine a copyright validity period; the copyright information query request includes a target query date; the copyright validity period is associated with a business period of the target business;
[0142] In the case where the target query date is within the copyright validity period, determining a target index position according to the interval between the target query date and the start date of the copyright validity period; the index position in the copyright information index is associated with the date;
[0143] Querying the information storage result of the target index position in the copyright information index; the information storage result is used to indicate whether there is daily copyright information attribution data;
[0144] A copyright information query result for the copyright information query request is returned based on the daily copyright information attribution data; the copyright information query result is used to represent the copyright information of the target content on the target query date.
[0145] In one embodiment, when the processor executes the computer program, the steps in the other embodiments described above are also implemented.
[0146] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0147] Receive a copyright information query request for target content in a target business, obtain a copyright information index corresponding to the target content, and determine a copyright validity period; the copyright information query request includes a target query date; the copyright validity period is associated with a business period of the target business;
[0148] In the case where the target query date is within the copyright validity period, determining a target index position according to the interval between the target query date and the start date of the copyright validity period; the index position in the copyright information index is associated with the date;
[0149] Querying the information storage result of the target index position in the copyright information index; the information storage result is used to indicate whether there is daily copyright information attribution data;
[0150] A copyright information query result for the copyright information query request is returned based on the daily copyright information attribution data; the copyright information query result is used to represent the copyright information of the target content on the target query date.
[0151] In one embodiment, when the computer program is executed by a processor, the steps in the other embodiments described above are also implemented.
[0152] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0153] Receive a copyright information query request for target content in a target business, obtain a copyright information index corresponding to the target content, and determine a copyright validity period; the copyright information query request includes a target query date; the copyright validity period is associated with a business period of the target business;
[0154] In the case where the target query date is within the copyright validity period, determining a target index position according to the interval between the target query date and the start date of the copyright validity period; the index position in the copyright information index is associated with the date;
[0155] Querying the information storage result of the target index position in the copyright information index; the information storage result is used to indicate whether there is daily copyright information attribution data;
[0156] A copyright information query result for the copyright information query request is returned based on the daily copyright information attribution data; the copyright information query result is used to represent the copyright information of the target content on the target query date.
[0157] In one embodiment, when the computer program is executed by a processor, the steps in the other embodiments described above are also implemented.
[0158] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions.
[0159] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments. In particular, any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), data processing logic devices based on quantum computing, and the like.
[0160] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0161] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A copyright information query method, characterized in that: The method comprises: Receive a copyright information query request for target content in a target business, obtain a copyright information index corresponding to the target content, and determine a copyright validity period; the copyright information query request includes a target query date; the copyright validity period is associated with a business period of the target business; In the case where the target query date is within the copyright validity period, determining a target index position according to the interval between the target query date and the start date of the copyright validity period; the index position in the copyright information index is associated with the date; Querying the information storage result of the target index position in the copyright information index; the information storage result is used to indicate whether there is daily copyright information attribution data; A copyright information query result for the copyright information query request is returned based on the daily copyright information attribution data; the copyright information query result is used to represent the copyright information of the target content on the target query date.
2. The method according to claim 1, characterized in that The step of obtaining the copyright information index corresponding to the target content and determining the copyright validity period includes: According to the content identifier of the target content in the copyright information query request, obtaining the copyright information index corresponding to the content identifier; The start date and end date in the copyright information index are obtained to obtain the copyright validity time range.
3. The method according to claim 1, characterized in that The step of returning a copyright information query result for the copyright information query request based on the daily copyright information attribution data includes: Determining an entry identifier of a copyright information entry corresponding to the daily copyright information attribution data; The copyright information entry content corresponding to the entry identifier is obtained, and a copyright information query result for the copyright information query request is returned based on the copyright information entry content; the copyright information entry content includes copyright information of the target content on the target query date.
4. The method according to claim 1, wherein Before the steps of receiving a copyright information query request for target content in a target business, obtaining a copyright information index corresponding to the target content, and determining a copyright validity period, the method further includes: In response to the copyright information index building operation for the target business, taking any content in the target business as content to be processed; Acquire multiple copyright information entries of the content to be processed, and determine the copyright validity start date and copyright validity end date; Based on the copyright validity start date and the copyright validity end date, the plurality of copyright information entries are used to construct a copyright information index corresponding to the content to be processed.
5. The method according to claim 4, characterized in that The determination of the effective start date of copyright includes: Determining the earliest copyright effective date from the plurality of copyright information entries, and obtaining the business start date of the target business; If the earliest copyright effective date is less than or equal to the business start date, the business start date shall be used as the copyright effective start date; If the earliest copyright effective date is greater than the business start date, the earliest copyright effective date shall be used as the copyright effective start date.
6. The method according to claim 4, characterized in that Determining the effective end date of copyright includes: Determining the latest copyright expiration date from the plurality of copyright information entries, and obtaining the business end date of the target business; If the latest copyright expiration date is greater than or equal to the business end date, the business end date will be used as the copyright validity end date; If the latest copyright expiration date is less than the business end date, the latest copyright expiration date will be used as the copyright validity end date.
7. The method according to claim 4, characterized in that The step of constructing a copyright information index corresponding to the content to be processed by using the plurality of copyright information entries based on the copyright validity start date and the copyright validity end date includes: According to the number of days between the copyright validity start date and the copyright validity end date, create an array corresponding to the number of days between the copyright validity start date and the copyright validity end date; By comparing the copyright effective date in each copyright information entry with the copyright effective start date, and the copyright expiration date in each copyright information entry with the copyright effective end date, mapping each copyright information entry to a different position in the array in chronological order; Removing data of copyright information entries with overlapping dates that are repeatedly mapped at the same location, and obtaining daily copyright information attribution data for the date corresponding to each location; Based on the daily copyright information attribution data of the date corresponding to each of the positions, a copyright information attribution result array is obtained as the copyright information index corresponding to the content to be processed.
8. The method according to claim 4, characterized in that The method further comprises: When copyright information change data of the content to be processed is detected, the copyright information index corresponding to the content to be processed is updated according to the change date and copyright information change content of the copyright information change data.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.