CN113282850A - Resource label management method, device, electronic equipment, system and storage medium - Google Patents

Resource label management method, device, electronic equipment, system and storage medium Download PDF

Info

Publication number
CN113282850A
CN113282850A CN202110540115.XA CN202110540115A CN113282850A CN 113282850 A CN113282850 A CN 113282850A CN 202110540115 A CN202110540115 A CN 202110540115A CN 113282850 A CN113282850 A CN 113282850A
Authority
CN
China
Prior art keywords
resource
identifier
resource identifier
label
tag
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110540115.XA
Other languages
Chinese (zh)
Other versions
CN113282850B (en
Inventor
邵帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110540115.XA priority Critical patent/CN113282850B/en
Publication of CN113282850A publication Critical patent/CN113282850A/en
Application granted granted Critical
Publication of CN113282850B publication Critical patent/CN113282850B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9562Bookmark management

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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure relates to a resource tag management method, a resource tag management device, an electronic device, a resource tag management system, and a storage medium, so as to improve the efficiency of resource tag management. The method comprises the following steps: responding to a resource tag creating instruction, and acquiring a resource tag to be stored, first information, a first resource tag and an identifier of a first operation; the resource tag creating instruction is used for associating the resource tag to be stored to the target resource identifier; the first information corresponds to at least one resource identifier; acquiring a first resource identifier corresponding to the first information, and acquiring a second resource identifier; the second resource identifier is an identifier of a resource tagged with the first resource tag; performing a first operation on the first resource identifier and the second resource identifier to obtain a target resource identifier; and creating and storing the corresponding relation between the resource label to be stored and the target resource identifier.

Description

Resource label management method, device, electronic equipment, system and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, an electronic device, a system, and a storage medium for resource tag management.
Background
With the development of internet technology, the number of multimedia resources (such as audio resources, video resources or text resources, etc.) is increasing. In order to facilitate the management of the multimedia resources, a manager usually tags the multimedia resources and establishes a corresponding relationship between the multimedia resources and the resource tags.
At present, the manager needs to manually enter the corresponding relationship. For example, the administrator enters the correspondence between resource label a and resource 1 and resource 2, and the correspondence between resource label B and resource 3 and resource 4. Therefore, under the condition that the corresponding relations between the resource label C and the resources 1, 2, 3 and 4 are required to be created, the manager still needs to enter the corresponding relations between the resource label C and the resources 1, 2, 3 and 4, which causes the problems of complex operation, easy error and the like, and thus the operation and maintenance efficiency is low.
Disclosure of Invention
The present disclosure provides a resource tag management method, device, electronic device, system, and storage medium to improve efficiency of resource tag management.
The technical scheme of the disclosure is as follows:
in a first aspect, the present disclosure provides a resource tag management method, including: responding to a resource tag creating instruction, and acquiring a resource tag to be stored, first information, a first resource tag and an identifier of a first operation; the resource tag creating instruction is used for associating the resource tag to be stored to the target resource identifier; the first information corresponds to at least one resource identifier; acquiring a first resource identifier corresponding to the first information, and acquiring a second resource identifier; the second resource identifier is an identifier of a resource tagged with the first resource tag; performing a first operation on the first resource identifier and the second resource identifier to obtain a target resource identifier; and creating and storing the corresponding relation between the resource label to be stored and the target resource identifier.
In the technical scheme, when a manager establishes a resource identifier corresponding to a resource identifier to be stored, the manager sends a resource identifier establishing instruction, and under the condition that the resource identifier corresponding to the resource identifier to be stored can be obtained by performing a first operation on a second resource identifier corresponding to a certain stored resource identifier (such as a first resource identifier) and a first resource identifier corresponding to first information, the manager only needs to enter the first resource identifier, the first information and an identifier of the first operation, a configuration end obtains the first resource identifier corresponding to the first information and a second resource identifier corresponding to the first resource identifier, and performs the first operation on the first resource identifier and the second resource identifier to obtain a target resource identifier corresponding to the resource identifier to be stored, and the manager does not need to manually associate the resource identifier to be stored to each target resource identifier, the operation of management personnel is simplified, errors are reduced, and therefore the efficiency of resource label management is improved.
In a possible implementation manner, the obtaining the second resource identifier includes: and reading the resource identifier corresponding to the first resource label as a second resource identifier from the stored corresponding relation between the resource labels and the resource identifiers.
In another possible implementation manner, the obtaining the first resource identifier corresponding to the first information includes: and in the case that the first information comprises the resource identification, taking the resource identification comprised by the first information as the first resource identification. Under the condition that the first information comprises a second resource label, reading a resource identifier corresponding to the second resource label from the corresponding relation between the stored resource label and the resource identifier; and taking the resource identifier corresponding to the second resource label as the first resource identifier. In this way, the first resource identifier can be acquired in any case where the first information includes the resource identifier or the resource tag. When the management personnel performs configuration, the first information, the first resource label and the identifier of the first operation can be input to obtain the first resource identifier corresponding to the first resource label and the target resource identifier obtained by performing the first operation on the first resource identifier, so that the flexibility of resource label management is further enhanced, and the efficiency of resource configuration is improved.
In another possible implementation manner, the first operation includes: any of a union operation, a difference operation, or an intersection operation.
In another possible implementation manner, the obtaining the first resource identifier corresponding to the first information includes: and reading a fourth resource identifier corresponding to the second resource identifier from the stored corresponding relation between the resource identifier and the resource identifier. And performing second operation on the third resource identifier and the fourth resource identifier to obtain the first resource identifier. Therefore, the first information itself includes the third resource identifier, the second resource label and the identifier of the second operation, and the resource identifier obtained by performing the second operation on the fourth resource identifier and the third resource identifier corresponding to the second resource label can be obtained by inputting the first information. The flexibility of resource label management is further enhanced, and the efficiency of resource allocation is improved.
In a second aspect, the present disclosure provides a resource tag management apparatus, including: the acquisition module is configured to respond to a resource tag creation instruction, and acquire a resource tag to be stored, first information, a first resource tag and an identifier of a first operation; the resource tag creating instruction is used for associating the resource tag to be stored to the target resource identifier; the first information corresponds to at least one resource identification. The acquisition module is also configured to acquire a first resource identifier corresponding to the first information and acquire a second resource identifier; the second resource identification is an identification of the resource tagged with the first resource tag. And the operation module is configured to perform a first operation on the first resource identifier and the second resource identifier acquired by the acquisition module to obtain a target resource identifier. And the creating module is configured to create and store the corresponding relation between the resource label to be stored acquired by the acquiring module and the target resource identifier acquired by the operation module.
Optionally, the obtaining module is specifically configured to: and reading the resource identifier corresponding to the first resource label as a second resource identifier from the stored corresponding relation between the resource labels and the resource identifiers.
Optionally, the obtaining module is specifically configured to: and in the case that the first information comprises the resource identification, taking the resource identification comprised by the first information as the first resource identification. Under the condition that the first information comprises a second resource label, reading a resource identifier corresponding to the second resource label from the corresponding relation between the stored resource label and the resource identifier; and taking the resource identifier corresponding to the second resource label as the first resource identifier.
Optionally, the first operation includes: any of a union operation, a difference operation, or an intersection operation.
Optionally, the first information includes a third resource identifier and a second resource tag, and the obtaining module is specifically configured to. And reading a fourth resource identifier corresponding to the second resource identifier from the stored corresponding relation between the resource identifier and the resource identifier. The operation module is further configured to: and performing second operation on the third resource identifier and the fourth resource identifier to obtain the first resource identifier.
Optionally, the second operation includes: any of a union operation, a difference operation, or an intersection operation.
In a third aspect, the present disclosure provides an electronic device comprising: a processor; a memory for storing processor-executable instructions. Wherein the processor is configured to execute the instructions to implement the resource tag management method according to the first aspect and any possible implementation manner of the first aspect.
In a fourth aspect, the present disclosure provides a computer-readable storage medium, in which instructions are executed by a processor of an electronic device, so that the electronic device can perform the resource tag management method as shown in the first aspect and any one of the possible implementations of the first aspect.
In a fifth aspect, the present disclosure provides a computer program product directly loadable into an internal memory of an electronic device and containing software codes, and when the computer program product is loaded into and executed by the electronic device, the method for managing resource tags according to the first aspect and any possible implementation manner of the first aspect can be implemented.
In a sixth aspect, the present disclosure provides an electronic system comprising: a configuration end or a service end; the configuration end or the service end is configured to execute the resource tag management method shown in any possible implementation manner of the first aspect and the first aspect.
Any one of the resource tag management apparatuses, electronic devices, systems, or computer-readable storage media or computer program products provided above is used to execute the corresponding method provided above, and therefore, the beneficial effects that can be achieved by the resource tag management apparatuses, electronic devices, systems, or computer-readable storage media or computer program products may refer to the beneficial effects of the corresponding schemes in the corresponding methods provided above, and are not described herein again.
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 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 system architecture to which embodiments of the present disclosure are applicable, shown in accordance with an exemplary embodiment;
FIG. 2 is a schematic diagram illustrating a structure of an electronic device to which embodiments of the present disclosure are applicable, according to an exemplary embodiment;
FIG. 3 is a flowchart illustrating a resource tag management method provided by an embodiment of the present disclosure according to an exemplary embodiment;
FIG. 4 is a flowchart illustrating another resource tag management method provided by an embodiment of the present disclosure according to an exemplary embodiment;
fig. 5 is a block diagram illustrating a logical structure of a resource tag management apparatus according to an exemplary embodiment of the present disclosure.
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 in the embodiments of the present disclosure, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," in an embodiment of the present disclosure is not to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
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.
In the embodiments of the present disclosure, "at least one" means one or more. "plurality" means two or more.
In the embodiment of the present disclosure, "and/or" is only one kind of association relationship describing an association object, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It should be noted that the resource tag management method provided by the embodiment of the present disclosure may be applied to a system architecture as shown in fig. 1. The system architecture includes at least one configuration side 101 and at least one service side 102. The configuration side 101 is connected with the service side 102.
The configuration end 101 is configured to configure a corresponding tag for the resource. The configuration end 101 may be any one of computer devices or servers, where the computer device includes, but is not limited to, a mobile phone, a tablet computer, a desktop computer, a notebook computer, a vehicle-mounted terminal or a palm terminal. The server may be one server, or may be a server cluster composed of a plurality of servers, which is not limited in this disclosure.
The server 102 may be a server, and the server may be one server, or may also be a server cluster composed of a plurality of servers, which is not limited in this disclosure. The server 102 is an application server in one example.
It is understood that the configuration end 101 and the service end 102 may be provided independently or integrated in a device, and the disclosure is not limited thereto.
Both the configuration side 101 and the service side 102 can be implemented by the electronic device 20 shown in fig. 2. As shown in fig. 2, a schematic structural diagram of an electronic device to which the technical solution provided by the embodiment of the present disclosure is applied is shown. The electronic device 20 in fig. 2 includes but is not limited to: a processor 201, a memory 202, an input unit 203, an interface unit 204, a power supply 205, and the like.
The processor 201 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 202 and calling data stored in the memory 202, thereby performing overall monitoring of the electronic device. Processor 201 may include one or more processing units; optionally, the processor 201 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 201.
The memory 202 may be used to store software programs as well as various data. The memory 202 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one functional unit, and the like. Further, the memory 202 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Alternatively, the memory 202 may be a non-transitory computer readable storage medium, for example, a read-only memory (ROM), a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The input unit 203 may be a keyboard, a touch screen, or the like.
The interface unit 204 is an interface for connecting an external device to the electronic apparatus 20. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 204 may be used to receive input (e.g., data information, etc.) from an external device and transmit the received input to one or more elements within the electronic equipment 20 or may be used to transmit data between the electronic equipment 20 and the external device.
A power source 205 (e.g., a battery) may be used to supply power to each component, and optionally, the power source 205 may be logically connected to the processor 201 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
Alternatively, the computer instructions in the embodiments of the present disclosure may also be referred to as application program codes or systems, which are not specifically limited by the embodiments of the present disclosure.
It should be noted that the electronic device shown in fig. 2 is only an example, and does not limit the electronic device to which the embodiment of the present disclosure is applicable. In actual implementation, the electronic device may include more or fewer devices or devices than those shown in fig. 2.
Before describing the resource tag management method provided by the embodiment of the present disclosure in detail, an application scenario related to the embodiment of the present disclosure is described first. The disclosed embodiments can be applied to the following scenarios:
and under the condition that the manager needs to label the multimedia resource, the manager opens the multimedia resource management system, enters a configuration page and associates the multimedia resource with the corresponding resource label to be stored.
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. All other embodiments, which can be derived by one of ordinary skill in the art from the embodiments disclosed herein without making any creative effort, shall fall within the scope of protection of the present disclosure.
Fig. 3 is a schematic flowchart of a resource tag management method provided in an embodiment of the present disclosure, where the method may be applied to the system shown in fig. 1, and the method shown in fig. 3 may include the following steps:
s100: and responding to the resource label creating instruction, and acquiring the resource label to be stored, the first information, the first resource label and the identifier of the first operation.
Specifically, after detecting the resource tag creation instruction, the configuration end 101 responds to the resource tag creation instruction to obtain the resource tag to be stored, the first information, the first resource tag, and the identifier of the first operation. The first information corresponds to at least one resource identifier; the first resource label is the established resource label; the label library stores the corresponding relation between the resource label and the resource identifier. The resource tag library comprises a first resource tag.
Illustratively, the configuration end 101 detects a resource tag creation instruction on a resource tag configuration interface, and obtains a resource tag to be stored, first information, a first resource tag, and an identifier of a first operation. The first information includes a resource identification 1 and a resource identification 2. The first information and the first resource tag may be stored in a class comprising a plurality of fields. The first information and the first resource tag are not limited in form in the embodiments of the present disclosure.
It should be noted that, the triggering manner of the resource tag creation instruction is not limited in the embodiments of the present disclosure, and in a possible implementation manner, the resource tag creation instruction is triggered after the user clicks the resource tag creation button. In another possible implementation, the resource tag creation instruction is triggered by a resource tag creation request. The first information in the embodiments of the present disclosure includes at least one of a resource identifier or a resource tag.
The embodiment of the present disclosure does not limit the number of the tags included in the first information, and each time a resource tag is added to the first information, an identifier of an operation between the added resource tag and a resource identifier corresponding to the current first information needs to be obtained. The identifier of the first operation and other identifiers of the operation may be predefined, or may be entered by a manager, which is not limited in the embodiment of the present disclosure. Illustratively, the first information includes a resource identification 1, a resource identification 2, and a second resource tag. Then, the first information further includes an identifier of the second operation, and the resource identifier corresponding to the first information can be obtained by performing the second operation on the resource identifier corresponding to the second resource tag, the resource identifier 1, and the resource identifier 2.
S101: and acquiring a first resource identifier corresponding to the first information, and acquiring a second resource identifier corresponding to the first resource label.
Specifically, the configuration end 101 executes the following steps to obtain the first resource identifier and the second resource identifier:
s101-1: the configuration end 101 reads the second resource identifier corresponding to the identifier of the first resource tag from the stored correspondence between the resource tags and the resource identifiers.
S101-2: the configuration end 101 obtains a first resource identifier corresponding to the first information.
Specifically, when the first information only includes the third resource identifier, the configuration end 101 uses the third resource identifier as the first resource identifier. Therefore, when the administrator performs configuration, the administrator can enter the third resource identifier, the first resource label and the identifier of the first operation to obtain the target resource identifier obtained by performing the first operation on the second resource identifier and the third resource identifier corresponding to the first resource label, so that the flexibility of resource label management is further enhanced, and the efficiency of resource configuration is improved.
Under the condition that the first information only includes the identifier of the second resource tag, the configuration end 101 reads a fourth resource identifier corresponding to the identifier of the second resource tag from the correspondence between the tag and the resource identifier; and taking the fourth resource identification as the first resource identification.
In the case that the first information includes the third resource identification, the second resource tag, and the identification of the second arithmetic operation: the configuration end 101 acquires a third resource identifier; the configuration end 101 reads a fourth resource identifier corresponding to the identifier of the second resource tag from the corresponding relationship between the tags and the resource identifiers; the configuration end 101 performs a second operation on the third resource identifier and the fourth resource identifier to obtain a first resource identifier corresponding to the first information. The second operation includes any one of a union operation, a difference operation, or an intersection operation. Therefore, the first information itself includes the third resource identifier, the second resource label and the identifier of the second operation, and the resource identifier obtained by performing the second operation on the fourth resource identifier and the third resource identifier corresponding to the second resource label can be obtained by inputting the first information. The flexibility of resource label management is further enhanced, and the efficiency of resource allocation is improved.
Illustratively, assume that the third resource identification includes resource identification 51 and resource identification 52. The fourth resource identifier corresponding to the second resource tag includes resource identifier 1 to resource identifier 50, and the identifier of the second operation is a union operation. Then, the configuration end 101 uses the resource identifier 1 to the resource identifier 52 together as the first resource identifier corresponding to the first information.
S102: performing a first operation on the first resource identifier and the second resource identifier to obtain a target resource identifier; the first operation includes any one of a union operation, a difference operation, or an intersection operation.
Specifically, under the condition that the identifier of the first operation is used to represent the intersection operation, the configuration end 101 obtains the intersection of the first resource identifier and the second resource identifier, and takes the obtained resource identifier as the target resource identifier.
Under the condition that the identifier of the first operation is used for representing union set operation, the configuration end 101 obtains a union set of the first resource identifier and the second resource identifier, and takes the obtained resource identifier as a target resource identifier.
In the case that the identifier of the first operation is used to characterize the first difference set operation, the configuration end 101 uses the resource identifier that exists in the first resource identifier and does not exist in the second resource identifier as the target resource identifier.
Under the condition that the identifier of the first operation is used to represent the second difference set operation, the configuration end 101 takes the resource identifier that does not exist in the first resource identifier and exists in the second resource identifier as the target resource identifier.
Alternatively, the configuration end 101 may further obtain the target resource identifier to replace the foregoing S101 to S102 by the following steps:
the method comprises the following steps: the configuration end 101 sends a request for acquiring the target resource identifier to the server end 102. The request includes first information, a first resource tag, and an identification of a first operation.
Step two: the server 102 obtains a first resource identifier corresponding to the first information, obtains a second resource identifier corresponding to the first resource label, and performs a first operation on the first resource identifier and the second resource identifier to obtain a target resource identifier.
Specifically, the server 102 refers to the above S101 to S102 to obtain the target resource identifier.
Step three: the server 102 sends the target resource identifier to the configuration end 101.
Step four: the configuration end 101 receives the target resource identifier.
S103: and creating and storing the corresponding relation between the resource label to be stored and the target resource identifier.
Specifically, the configuration end 101 creates and stores a corresponding relationship between the to-be-stored resource tag and the target resource identifier locally.
Optionally, the configuration end 101 sends the corresponding relationship between the resource tag to be stored and the target resource identifier to the server end 102, so that the server end 102 stores the corresponding relationship between the resource tag to be stored and the target resource identifier.
In an example, assuming that the to-be-stored resource tag is a resource tag C, and the target resource identifier includes resource identifiers 1 to 4, then the corresponding relationship between the to-be-stored resource tag and the target resource identifier is as shown in table 1 below:
TABLE 1
To-be-stored resource tag Resource identification
Resource label C Resource identification 1
Resource label C Resource identification 2
Resource label C Resource identification 3
Resource label C Resource identification 4
Subsequently, in a possible application scenario, the terminal device communicates with the application server through a network, the application server stores the corresponding relationship between the resource tag and the resource identifier, when a user searches resources through the terminal device, if the search keyword of the user includes the resource tag C, the terminal device sends the resource tag C to the application server, and the application server obtains a resource list corresponding to the resource identifier corresponding to the resource tag C according to the corresponding relationship between the resource tag and the resource identifier, and sends the resource list to the terminal device for displaying to the user.
In the embodiment of the disclosure, when a manager establishes a resource identifier corresponding to a resource tag to be stored, the manager sends a resource tag creation instruction, and when a first operation is performed on a second resource identifier corresponding to a certain stored resource tag (e.g., a first resource tag) and a first resource identifier corresponding to first information to obtain the resource identifier corresponding to the resource tag to be stored, the manager only needs to enter the first resource tag, the first information, and an identifier of the first operation, a configuration end obtains the first resource identifier corresponding to the first information and obtains the second resource identifier corresponding to the first resource tag, and performs the first operation on the first resource identifier and the second resource identifier to obtain a target resource identifier corresponding to the resource tag to be stored, without the manager manually associating the resource tag to be stored to each target resource identifier, the operation of management personnel is simplified, errors are reduced, and therefore the efficiency of resource label management is improved.
Fig. 4 is a schematic flowchart of another resource tag management method provided in the embodiment of the present disclosure, where the method may be applied to the system shown in fig. 1, and the method shown in fig. 4 may include the following steps:
s200: and responding to the resource label creating instruction, and acquiring the resource label to be stored, the first information, the first resource label and the identifier of the first operation. The first operation includes any one of a union operation, a difference operation, or an intersection operation.
Specifically, reference is made to the description in S100 above, and details are not repeated here.
S201: and creating and storing a corresponding relation among the resource label to be stored, the first information, the first resource label and the identifier of the first operation.
In one case, the first information includes only the third resource identification.
In another case, the first information includes only the second resource label.
In yet another case, the first information includes a third resource identification, a second resource tag, and an identification of the second arithmetic operation. The second operation includes any one of a union operation, a difference operation, or an intersection operation.
In an example, assuming that the resource tag to be stored is a resource tag C, the first information includes a resource identifier 1, a resource tag B and an identifier 2 of an operation, the identifier of the first resource tag is a resource tag a, and the identifier of the first operation is an identifier 1 of an operation, then the corresponding relationship among the resource tag to be stored, the first information, the first resource tag and the identifier of the first operation is as shown in table 2 below:
TABLE 2
Figure BDA0003071387420000101
Alternatively, a corresponding relationship between the resource label to be stored, the first information, the first resource label, and the identifier of the first operation is created and stored, and a corresponding relationship between the first information and the resource identifier corresponding to the first information is stored.
It should be noted that the execution subject of the foregoing embodiment may be the configuration end 101, the service end 102, or a combination of the configuration end 101 and the service end 102, which is not limited in this disclosure.
In the embodiment of the disclosure, when a manager establishes a resource identifier corresponding to a resource identifier to be stored, a resource identifier creation instruction is sent, and under the condition that a resource identifier corresponding to a certain stored resource identifier (such as a first resource identifier) can be obtained by performing a first operation on a second resource identifier corresponding to a certain stored resource identifier and a first resource identifier corresponding to first information, the manager only needs to enter the first resource identifier, the first information and an identifier of the first operation, and does not need to manually associate the resource identifier to be stored to each corresponding resource identifier, thereby simplifying the operation of the manager, reducing errors, and improving the efficiency of resource identifier management. Furthermore, the embodiment of the present disclosure stores the corresponding relationship between the resource tag to be stored, the first information, the first resource tag, and the identifier of the first operation, without storing the corresponding relationship between the resource tag to be stored and the corresponding resource identifier, thereby saving the storage space.
It is understood that the two embodiments described above can be combined together to form a new embodiment under the premise of logical continuity, and the new embodiment is also within the protection scope of the present disclosure. Illustratively, the configuration end 101 obtains a resource tag to be stored, first information, a first resource tag, and an identifier of a first operation, and sends the resource tag to be stored, the first information, the first resource tag, and the identifier of the first operation to the server end 102, and the server end 102 obtains a first resource identifier corresponding to the first information, and stores a correspondence relationship between the resource tag to be stored, the first resource identifier, the first resource tag, and the identifier of the first operation.
The foregoing describes the scheme provided by the embodiments of the present disclosure, primarily from a methodological perspective. To implement the above functions, it includes hardware structures and/or software modules for performing the respective functions. Those of skill in the art will readily appreciate that the present disclosure can be implemented in hardware or a combination of hardware and computer software for the various exemplary method steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
The embodiment of the present disclosure may perform division of function modules on the resource tag management apparatus according to the above method example, for example, each function module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, the division of the modules in the embodiments of the present disclosure is illustrative, and is only one division of logic functions, and there may be another division in actual implementation.
Fig. 5 is a block diagram illustrating a logical structure of a resource tag management apparatus 50 according to an exemplary embodiment. Referring to fig. 5, the resource tag management apparatus 50 includes: an acquisition module 501, an operation module 502, an operation module 503, and a creation module 504. The obtaining module 501 is configured to, in response to a resource tag creation instruction, obtain a resource tag to be stored, first information, a first resource tag, and an identifier of a first operation; the resource tag creating instruction is used for associating the resource tag to be stored to the target resource identifier; the first information corresponds to at least one resource identification. The obtaining module 501 is further configured to obtain a first resource identifier corresponding to the first information, and obtain a second resource identifier; the second resource identification is an identification of the resource tagged with the first resource tag. The operation module 503 is configured to perform a first operation on the first resource identifier and the second resource identifier obtained by the obtaining module to obtain a target resource identifier. The creating module 504 is configured to create and store a corresponding relationship between the resource tag to be stored acquired by the acquiring module and the target resource identifier acquired by the computing module. For example, in conjunction with fig. 3, the obtaining module 501 may be configured to perform S100 to S101, the operating module 502 may be configured to perform S102, and the creating module 504 may be configured to perform S103.
Optionally, the obtaining module 501 is specifically configured to: and reading the resource identifier corresponding to the first resource label as a second resource identifier from the stored corresponding relation between the resource labels and the resource identifiers.
Optionally, if the first information includes a resource identifier or a resource label, the obtaining module 501 is specifically configured to: and taking the resource identifier included in the first information as the first resource identifier under the condition that the first information includes the resource identifier. Under the condition that the first information comprises a second resource label, reading a resource identifier corresponding to the second resource label from the corresponding relation between the stored resource label and the resource identifier; and taking the resource identifier corresponding to the second resource label as the first resource identifier.
Optionally, the first operation includes: any of a union operation, a difference operation, or an intersection operation.
Optionally, if the first information includes a third resource identifier and a second resource label, the obtaining module 501 is specifically configured to: and reading a fourth resource identifier corresponding to the second resource tag from the stored corresponding relation between the resource tags and the resource identifiers. The operation module 503 is further configured to: and performing the second operation on the third resource identifier and the fourth resource identifier to obtain the first resource identifier.
Optionally, the second operation includes any one of a union operation, a difference operation, or an intersection operation.
In one example, referring to fig. 2, the receiving function of the obtaining module 501 may be implemented by the interface unit 204 in fig. 2. The processing function of the acquiring module 501, the operating module 502, the calculating module 503 and the creating module 504 can be implemented by the processor 201 in fig. 2 calling a computer program stored in the memory 202.
In an exemplary embodiment, an electronic system is further provided in the embodiments of the present disclosure, and includes a server and/or a configuration end, where the server is configured to execute each process of the resource tag management method, and the configuration end is configured to execute each process of the resource tag management method, and the same technical effect can be achieved, and details are not repeated here to avoid repetition.
In an exemplary embodiment, the disclosed embodiments also provide a computer program product comprising one or more instructions executable by the processor 201 of the electronic device 20 to perform the above-described method.
In an exemplary embodiment, the present disclosure provides a computer-readable storage medium, where instructions in the storage medium are executed by a processor of an electronic device, so that the electronic device can execute the instructions in the storage medium or one or more instructions in a computer program product to implement the processes of the foregoing method embodiments, and can achieve the same technical effects, and in order to avoid repetition, the descriptions are omitted here.
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 disclosure 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 method for resource tag management, the method comprising:
responding to a resource tag creating instruction, and acquiring a resource tag to be stored, first information, a first resource tag and an identifier of a first operation; the resource label creating instruction is used for associating the resource label to be stored to a target resource identifier; the first information corresponds to at least one resource identifier;
acquiring a first resource identifier corresponding to the first information, and acquiring a second resource identifier; the second resource identifier is an identifier of a resource tagged with the first resource;
performing the first operation on the first resource identifier and the second resource identifier to obtain the target resource identifier;
and creating and storing the corresponding relation between the resource label to be stored and the target resource identifier.
2. The method of claim 1, wherein the obtaining the second resource identifier comprises:
and reading the resource identifier corresponding to the first resource label from the stored corresponding relation between the resource label and the resource identifier as the second resource identifier.
3. The method according to claim 1 or 2, wherein the first information includes a resource identifier or a resource tag, and the obtaining a first resource identifier corresponding to the first information includes:
taking the resource identifier included in the first information as the first resource identifier under the condition that the first information includes the resource identifier;
under the condition that the first information comprises a second resource label, reading a resource identifier corresponding to the second resource label from the corresponding relation between the stored resource label and the resource identifier; and taking the resource identifier corresponding to the second resource label as the first resource identifier.
4. A resource tag management apparatus, comprising:
the acquisition module is configured to respond to a resource tag creation instruction, and acquire a resource tag to be stored, first information, a first resource tag and an identifier of a first operation; the resource label creating instruction is used for associating the resource label to be stored to a target resource identifier; the first information corresponds to at least one resource identifier;
the obtaining module is further configured to obtain a first resource identifier corresponding to the first information, and obtain a second resource identifier; the second resource identifier is an identifier of a resource tagged with the first resource;
the operation module is configured to perform the first operation on the first resource identifier and the second resource identifier acquired by the acquisition module to obtain the target resource identifier;
and the creating module is configured to create and store the corresponding relation between the resource label to be stored acquired by the acquiring module and the target resource identifier acquired by the operating module.
5. The apparatus of claim 4, wherein the acquisition module is specifically configured to:
and reading the resource identifier corresponding to the first resource label from the stored corresponding relation between the resource label and the resource identifier as the second resource identifier.
6. The apparatus according to claim 4 or 5, wherein the first information comprises a resource identifier or a resource tag, and the obtaining module is specifically configured to:
taking the resource identifier included in the first information as the first resource identifier under the condition that the first information includes the resource identifier;
under the condition that the first information comprises a second resource label, reading a resource identifier corresponding to the second resource label from the corresponding relation between the stored resource label and the resource identifier; and taking the resource identifier corresponding to the second resource label as the first resource identifier.
7. 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 resource tag management method of any of claims 1-3.
8. A computer-readable storage medium having instructions thereon which, when executed by a processor of an electronic device, enable the electronic device to perform the resource tag management method of any of claims 1-3.
9. An electronic system, comprising: a configuration end or a service end; the configuration end or the service end is used for executing the resource label management method according to any one of claims 1-3.
10. A computer program product, characterized in that the computer program product comprises computer instructions which, when run on a computer device, cause the computer device to perform the resource tag management method according to any one of claims 1-3.
CN202110540115.XA 2021-05-18 2021-05-18 Resource tag management method, device, electronic equipment, system and storage medium Active CN113282850B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110540115.XA CN113282850B (en) 2021-05-18 2021-05-18 Resource tag management method, device, electronic equipment, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110540115.XA CN113282850B (en) 2021-05-18 2021-05-18 Resource tag management method, device, electronic equipment, system and storage medium

Publications (2)

Publication Number Publication Date
CN113282850A true CN113282850A (en) 2021-08-20
CN113282850B CN113282850B (en) 2024-06-21

Family

ID=77279632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110540115.XA Active CN113282850B (en) 2021-05-18 2021-05-18 Resource tag management method, device, electronic equipment, system and storage medium

Country Status (1)

Country Link
CN (1) CN113282850B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114721799A (en) * 2022-04-01 2022-07-08 山推工程机械股份有限公司 Data processing method, device, equipment and storage medium
CN115718825A (en) * 2022-11-25 2023-02-28 中电金信软件有限公司 Method and device for determining time length label and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110209958A (en) * 2019-05-31 2019-09-06 Oppo广东移动通信有限公司 Thematic production method, device, terminal and storage medium
CN110866054A (en) * 2019-10-17 2020-03-06 苏宁云计算有限公司 Label configuration method and device and computer storage medium
CN111368141A (en) * 2020-03-18 2020-07-03 腾讯科技(深圳)有限公司 Video tag expansion method and device, computer equipment and storage medium
US20200404059A1 (en) * 2019-06-19 2020-12-24 Servicenow, Inc. Discovery and storage of resource tags
CN112733017A (en) * 2020-12-30 2021-04-30 青岛海尔科技有限公司 Label management method and device, storage medium and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110209958A (en) * 2019-05-31 2019-09-06 Oppo广东移动通信有限公司 Thematic production method, device, terminal and storage medium
US20200404059A1 (en) * 2019-06-19 2020-12-24 Servicenow, Inc. Discovery and storage of resource tags
CN110866054A (en) * 2019-10-17 2020-03-06 苏宁云计算有限公司 Label configuration method and device and computer storage medium
CN111368141A (en) * 2020-03-18 2020-07-03 腾讯科技(深圳)有限公司 Video tag expansion method and device, computer equipment and storage medium
CN112733017A (en) * 2020-12-30 2021-04-30 青岛海尔科技有限公司 Label management method and device, storage medium and electronic device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114721799A (en) * 2022-04-01 2022-07-08 山推工程机械股份有限公司 Data processing method, device, equipment and storage medium
CN114721799B (en) * 2022-04-01 2024-07-02 山推工程机械股份有限公司 Data processing method, device, equipment and storage medium
CN115718825A (en) * 2022-11-25 2023-02-28 中电金信软件有限公司 Method and device for determining time length label and electronic equipment
CN115718825B (en) * 2022-11-25 2024-05-31 中电金信软件有限公司 Method and device for determining duration label and electronic equipment

Also Published As

Publication number Publication date
CN113282850B (en) 2024-06-21

Similar Documents

Publication Publication Date Title
CN108566290A (en) service configuration management method, system, storage medium and server
CN107463409A (en) A kind of interface conversion method, interface convertor, storage medium and electric terminal
CN111800462A (en) Micro-service instance processing method and device, computer equipment and storage medium
CN113282850B (en) Resource tag management method, device, electronic equipment, system and storage medium
CN109840142A (en) Thread control method, device, electronic equipment and storage medium based on cloud monitoring
CN110555150B (en) Data monitoring method, device, equipment and storage medium
CN110740145A (en) Message consumption method, device, storage medium and electronic equipment
CN111694866A (en) Data searching and storing method, data searching system, data searching device, data searching equipment and data searching medium
CN111885184A (en) Method and device for processing hot spot access keywords in high concurrency scene
CN114398179B (en) Method and device for acquiring tracking identifier, server and storage medium
US10523508B2 (en) Monitoring management systems and methods
CN113849356A (en) Equipment testing method and device, electronic equipment and storage medium
CN110908644B (en) Configuration method and device of state node, computer equipment and storage medium
CN114817419A (en) Kafka-based media asset data storage method and device, electronic equipment and storage medium
CN106528337B (en) Data backup method, device and system
US20240152506A1 (en) Batch detection and optimization
CN113364775B (en) Calling method and device of microservice and server
CN112308172B (en) Identification method and device and electronic equipment
CN112084827B (en) Data processing method and device
CN111629060A (en) Method, device, equipment and storage medium for creating virtual private cloud
CN116450175A (en) State updating method, device and storage medium
CN114168332A (en) Task processing method and device, electronic equipment and storage medium
CN114489609A (en) Method and device for automatically updating service code, storage medium and electronic equipment
CN113961585A (en) Data processing method and device, electronic equipment and storage medium
CN117632492A (en) Resource management method and device, storage medium and electronic equipment

Legal Events

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