CN111177501B - Label processing method, device and system - Google Patents

Label processing method, device and system Download PDF

Info

Publication number
CN111177501B
CN111177501B CN201911284122.7A CN201911284122A CN111177501B CN 111177501 B CN111177501 B CN 111177501B CN 201911284122 A CN201911284122 A CN 201911284122A CN 111177501 B CN111177501 B CN 111177501B
Authority
CN
China
Prior art keywords
label
tag
filled
tags
labels
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.)
Active
Application number
CN201911284122.7A
Other languages
Chinese (zh)
Other versions
CN111177501A (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.)
Hangzhou First Exhibition Technology Co ltd
Original Assignee
Hangzhou First Exhibition 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 Hangzhou First Exhibition Technology Co ltd filed Critical Hangzhou First Exhibition Technology Co ltd
Priority to CN201911284122.7A priority Critical patent/CN111177501B/en
Publication of CN111177501A publication Critical patent/CN111177501A/en
Application granted granted Critical
Publication of CN111177501B publication Critical patent/CN111177501B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/906Clustering; Classification
    • 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/903Querying
    • G06F16/90335Query processing
    • 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/903Querying
    • G06F16/9038Presentation of query results
    • 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/907Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually

Abstract

The embodiment of the application discloses a label processing method, a device and a system, wherein the method comprises the following steps: receiving a tag combination for searching; the label combination comprises at least one sub-label and parent labels corresponding to all the sub-labels; generating a search statement according to the union of all the sub-tags; searching the obtained corresponding object according to the search statement; and determining the objects corresponding to all the parent tags in the tag combination as target objects to return according to the parent tags of the objects. Compared with the prior art, the application saves logic analysis time, shortens search sentences and improves search efficiency.

Description

Label processing method, device and system
Technical Field
The present application relates to the field of labels, and in particular, to a label processing method, device and system.
Background
The service management system includes objects to be managed, and in order to better manage the management objects, the management objects are usually labeled with corresponding labels. If the enterprise manages the agent, the enterprise can label the agent according to the attribute of the agent, so that the agent can be quickly known according to the label later, and the object with the same attribute can be determined according to the label.
Typically, the tags are classified into a plurality of levels, and the common tags have father-son tags, as shown in fig. 1, and are agent tag setting pages, wherein the left side of the father tag is a father tag, and each father tag corresponds to a plurality of child tags, such as father tag's "age" corresponds to child tags '20-30 years old, 30-40 years old, 40-50 years old, and 50 years old and above ', and father tag's "training personnel number" corresponds to child tags '1 person, 3-5 person, 2-3 person, 5-7 person, 7-10 person, 10 person above, and live link on line. When a plurality of father and son labels are searched in a joint way, searching is performed in a mode that the father label is intersected and the son label of the same father label is merged.
If the user searches for "ages" 20-30 and 30-40, "and" number of trained staff "7-10 and over 10," then the computer generates a search term as follows:
select*from xxx_table
where
age in ('20-30 years', '30-40 years')
and
The number of training persons in ('7-10 persons', '10 persons above')
It can be seen that if the conditions of the tags searched are many, then this search term will be long and logically complex. Especially, when more labels are combined, the search statement and the search logic are more complex, the time for generating the search statement is longer, and the search efficiency is lower.
Disclosure of Invention
The application provides a tag processing method, device and system, which are used for solving the problem of low tag searching efficiency in the prior art.
In this regard, the first aspect of the present application provides a tag processing method, the method comprising:
receiving a tag combination for searching; the label combination comprises at least one sub-label and parent labels corresponding to all the sub-labels;
generating a search statement according to the union of all the sub-tags;
searching the obtained corresponding object according to the search statement;
and determining the objects corresponding to all the parent tags in the tag combination as target objects to return according to the parent tags of the objects.
Preferably, the method further comprises:
receiving a search request for the object and obtaining tag information of the object according to the identification of the object;
judging whether labels overlap in the label information;
if yes, the object and the label information after the duplication is removed are returned after the duplication is removed.
Preferably, the method further comprises:
acquiring object information of a label to be filled;
judging a label corresponding to the object according to the value of a preset field of the object information;
and filling the corresponding label for the object to be filled with the label.
Preferably, the method comprises the steps of,
the object to be filled with the label is an agent or managed hardware equipment;
judging the label corresponding to the object according to the value of the preset field of the object information comprises the following steps:
judging a time tag corresponding to the object according to the relation between the contract expiration time and the current time of the object information; the time tag includes: expiration, about to expire, unexpired;
filling the corresponding tag for the object to be filled with the tag comprises:
if the current time exceeds the contract expiration time, filling an expiration label for the object to be filled with the label;
if the difference value of the current time and the contract expiration time is smaller than a preset time threshold value, filling the label to be filled with the object to be filled with the label to be expired;
and if the difference value between the current time and the contract expiration time is larger than a preset time threshold value, filling the label to be filled with the label to be not expired.
Preferably, the method further comprises:
obtaining a label filling request, wherein the label filling request comprises an identity mark of a requester;
judging the label authority of the applicant according to the identity;
and obtaining a corresponding label according to the label authority, and returning the label to the page for display.
Preferably, the method further comprises:
acquiring historical tag search words in a certain period;
matching the search word in a pre-stored tag library;
and analyzing and counting all the search words which are not successfully matched, and placing the search words which are not successfully matched and meet a certain condition as labels in the label library.
The second aspect of the present application also discloses a label processing apparatus, the apparatus comprising:
a tag combination receiving unit for receiving a tag combination for searching; the label combination comprises at least one sub-label and parent labels corresponding to all the sub-labels;
the search statement generation unit is used for generating a search statement according to the union set of all the sub-labels;
the searching unit is used for searching and obtaining a corresponding object according to the search statement;
and the target object determining unit is used for determining the objects corresponding to all the parent tags in the tag combination as target objects to return according to the parent tags of the objects.
Preferably, the apparatus further comprises:
an object tag information obtaining unit configured to receive a search request for the object and obtain tag information of the object according to an identification of the object;
the label superposition judging unit is used for judging whether labels are superposed in the label information or not;
and the label information returning unit is used for returning the object and the label information after the duplication is removed when the duplication exists.
Preferably, the apparatus further comprises:
the object information obtaining unit is used for obtaining object information of the label to be filled; the object to be filled with the label is an agent or managed hardware equipment;
the time tag judging unit is used for judging the time tag corresponding to the object according to the relation between the preset field contract expiration time and the current time in the object information; the time tag includes: expiration, about to expire, unexpired;
a label filling unit for:
the current time exceeds the contract expiration time, and the expiration label is filled for the object to be filled with the label;
the difference value of the current time and the contract expiration time is smaller than a preset time threshold value, and the label to be filled is filled with the label to be filled;
and the difference value between the current time and the contract expiration time is larger than a preset time threshold value, and the label to be filled is filled with the label which is about to be unexpired.
The third aspect of the present application also discloses a computer system, comprising:
one or more processors; and
a memory associated with the one or more processors, the memory for storing program instructions that, when read for execution by the one or more processors, perform the operations of:
receiving a tag combination for searching; the label combination comprises at least one sub-label and parent labels corresponding to all the sub-labels;
generating a search statement according to the union of all the sub-tags;
searching the obtained corresponding object according to the search statement;
and determining the objects corresponding to all the parent tags in the tag combination as target objects to return according to the parent tags of the objects.
According to the specific embodiment provided by the application, the application discloses the following technical effects:
according to the technical scheme, all the sub-tags in the tag combination are extracted, the union sets are directly taken for searching, then the father tag of the searched object is judged, and the object corresponding to the father tag in the tag combination is determined to be the target object, so that no matter how many sub-tags are combined with the father tag, complex logic among the father tags is not needed to be considered when a search statement is generated, the union sets of all the sub-tags can be directly taken for searching, the logic analysis time is saved, the search statement is shortened, and the search efficiency is improved.
Furthermore, when the object information is displayed according to the user request, the label information of the same object can be displayed after the duplication is removed, so that the situation that the same object has repeated label display due to the fact that multiple persons make the same label on the same object is avoided.
Of course, it is not necessary for any one product to practice the application to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a diagram showing parent-child tags;
FIG. 2 is a flow chart of the method of embodiment 1 of the present application;
FIG. 3 is a construction view of a device according to embodiment 2 of the present application;
FIG. 4 is a diagram of a computer system architecture according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which are derived by a person skilled in the art based on the embodiments of the application, fall within the scope of protection of the application.
As described in the background art, when performing multi-tag joint search of parent-child tags, logic analysis is performed on tag combinations input by a user according to logic that the parent tags take intersections and the child tags take unions, and then a logic search statement is generated. The analysis logic time is long, the search statement is long, and the search efficiency is low.
Therefore, the application aims to provide a method for searching the label combination input by a user without complex logic analysis, and directly taking the union of all the sub labels to search, judging according to the father labels of the objects in the search result, and if one object corresponds to all the father labels in the label combination, the object meets the search condition and returns as a target object. The method does not need to carry out complex logic analysis among the father and son labels of each group, and the generated search statement is shorter, so that the search efficiency is improved.
The principle of the application is as follows:
it is assumed that the tag combination includes child tags a1, a2, a3 under the parent tag a, child tags C1, C4 under the parent tag C, and child tags D1, D2 under the parent tag D. That is, the user needs to search for an object satisfying both child tag a1 or a2 or a3 under parent tag a, child tag C1 or C4 under parent tag C, and child tag D1 or D2 under parent tag D. In other words, the object to be searched needs to be satisfied while being the parent tag A, C, D, while being any one of a1, a2, a3, c1, c4, d1, d2.
We can analyze that when an object satisfies any one of a1, a2, a3, c1, c4, d1, d2 and the object satisfies all the parent tags A, C, D at the same time, it must prove that the object corresponds to A, C, D at least one of the above sub-tags respectively, i.e. the search condition is satisfied. Based on the above, we can search all the sub-tags by taking the union set, and then see if the objects in the search result correspond to the parent tags in all the tag combinations, i.e. if the number of parent tags is equal to the number of parent tags in the tag combinations, so as to determine the target object.
For example, the object X, Y is obtained by searching according to the union set of all the sub-tags in the tag combination, the parent tag corresponding to the object X is A, C, D, the parent tag corresponding to the object Y is A, C, which indicates that X satisfies the search condition, and Y does not correspond to the sub-tag D1 or D2 under the parent tag D, so that the search condition is not satisfied.
Therefore, by utilizing the method, the object meeting the condition can be searched without complex logic analysis and complex search sentences, so that the time is saved and the search efficiency is improved compared with the prior art.
The following is a search statement generated according to the above method for the received tag combination, where the search object is an agent, namely agent, the sub tag 1, and the sub tag 2 is a sub tag appearing in the tag combination:
SELECT t.agent_id FROM
(
SELECT a.agent_id,a.tag_parent_id FROM dp_tag_agent a
WHERE a.valid= 1 AND a.tag_id IN (sub-label 1, sub-label 2.)
GROUP BY a.agent_id,a.tag_parent_id
)t
GROUP BY. Agent_id handling COUNT (1) =parent tag number;
among the search sentences, the sub-search sentences are used for searching
“SELECT a.agent_id,a.tag_parent_id FROM dp_tag_agent a
WHERE a.valid= 1 AND a.tag_id IN (child tag 1, child tag 2.) ", obtains the agent record containing all child tags in the combined tag, and then obtains a plurality of parent tags per agent based on the agent and parent tag groupings, i.e., GROUP BY a.agent_id, a.tag_parent_id.
In order to ensure that the child tags exist under each parent tag, only the result of the child sql is needed to be taken out of the set BY the agent HAVING all the parent tags in the tag combination, namely, after the agent is grouped, the number of the parent tags is equal to the number of the parent tags through GROUP BY.agent_id HAVING COUNT (1) =number of the parent tags.
Example 1
In response to the foregoing, embodiment 1 of the present application provides a tag processing method, as shown in fig. 2, including:
s21, receiving a label combination for searching; the label combination comprises at least one sub-label and parent labels corresponding to all the sub-labels.
S22, generating search sentences according to the union of all the sub-labels;
s23, searching the obtained corresponding object according to the search statement;
s24, according to the parent tags of the objects, determining the objects corresponding to all the parent tags in the tag combination as target objects and returning.
Specifically, whether the object is the target object can be judged according to whether the number of all the parent tags in the tag combination is equal to the number of the parent tags corresponding to the object in the search result. If the target objects are equal, the target objects are the target objects and returned to the user.
When the label combination comprises a plurality of parent-child labels, the method can especially solve the problems of logic analysis time and search statement length, and improves the search efficiency.
In actual business, users often need to acquire their tag information for a certain object to know various properties of the object.
For example, each enterprise manages its own agent, and the enterprise often needs to learn various tag information of a certain agent to learn about the agent, so as to facilitate making various decisions such as whether to continue collaboration, whether to expand the scope of collaboration, and so on.
The labels of the agent labels are marked by different persons in different situations, such as possible, and repeated situations are unavoidable. In this regard, before returning the tag information, a deduplication operation may be performed, which specifically includes:
receiving a search request for the object and obtaining tag information of the object according to the identification of the object;
classifying the tag information according to father and son tags, marking the son tags under the corresponding father tags, judging whether the father tags overlap or not, and judging whether the son tags overlap or not under the same father tag or not;
if yes, the object and the label information after the duplication is removed are returned after the duplication is removed.
It should be noted that, considering that different people have different label labeling rights to the same object, such as an agent, in order to facilitate the subsequent different people to query the labels labeled by the different people, the duplication removing operation does not delete the label repeated in the server, but removes duplication when obtaining the label information, and returns the label information to a specific person so as to display the duplicated label information on the page.
Regarding filling labeling of labels, the application provides two modes, namely manual label filling and automatic label filling of a system.
Manual label filling includes:
obtaining a label filling request, wherein the label filling request comprises an identity mark of a requester;
judging the label authority of the applicant according to the identity;
obtaining corresponding labels according to the label authority, and returning the labels to the page for display;
receiving a filling request sent by a requester for any one of the returned labels;
and filling the label on the corresponding object.
In the manual tag filling mode, different persons have different authorities, so that the authorities of the persons can be determined according to the identity of the applicant and the tags with the corresponding authorities can be obtained and returned to the page for the applicant to select to fill.
Of course, all the tags can be returned, and the filling or rejecting can be further performed according to the permission of the requester to determine whether the tag has the filling authority. However, in this way, the applicant may perform many invalid operations, resulting in resource waste.
The automatic filling comprises the following steps:
acquiring object information of a label to be filled;
judging a label corresponding to the object according to the value of a preset field of the object information;
and filling the corresponding label for the object to be filled with the label.
Taking the object to be filled with the label as an agent or managed hardware equipment as an example, automatically filling the contract time label comprises the following steps:
judging a time tag corresponding to the agent or the managed hardware equipment according to the relation between the preset field of the agent or the managed hardware equipment, namely the contract expiration time and the current time; the time tag includes: expiration, about to expire, unexpired;
if the current time exceeds the contract expiration time, filling an expiration label for the agent or the managed hardware equipment;
if the difference value of the current time and the contract expiration time is smaller than a preset time threshold value, filling a label to be expired for an agent or managed hardware equipment;
if the difference between the current time and the contract expiration time is greater than a preset time threshold, filling the unexpired label for the agent or the managed hardware equipment.
For filling other labels, a similar method is applicable, a corresponding relation between the labels and a preset field is pre-stored by the system, such as a corresponding relation between contract expiration time and the time labels, information of the preset field is obtained in real time or periodically by the system, whether to fill and which label is specifically filled are judged according to preset rules and the information of the preset field, and automatic filling is completed according to a judging result.
The system can preset an automatic filling tag library, log record or mark the automatic filling information, and can facilitate subsequent manual verification.
In order to set the label of the object, the system presets a label library, sets father and son labels and corresponding relations in the label library, sets a rule for using the label, and uses information such as authority of a person. The tag library is generally set manually, and the types of tags are sometimes difficult to meet demands.
In this regard, the present application provides a method for automatically enriching a tag library, comprising:
acquiring historical tag search words in a certain period;
matching the search word in a pre-stored tag library;
and analyzing and counting all the search words which are not successfully matched, and placing the search words which are not successfully matched and meet a certain condition as labels in the label library.
That is, the labels which are frequently appeared but not set in the label library are automatically filled into the label library by utilizing the search history of the applicant. To ensure correctness, the tags can be used after further manual verification.
Example 2
In response to the above method, embodiment 2 of the present application further provides a tag processing apparatus, as shown in fig. 3, where the apparatus includes:
a tag combination receiving unit 31 for receiving a tag combination for searching; the label combination comprises at least one sub-label and parent labels corresponding to all the sub-labels;
a search term generation unit 32, configured to generate a search term according to the union of all the sub-tags;
a search unit 33, configured to search for a corresponding object according to the search statement;
and the target object determining unit 34 is configured to determine, according to the parent tags of the objects, the objects corresponding to all the parent tags in the tag combination as target object returns.
Preferably, the apparatus further comprises:
an object tag information obtaining unit configured to receive a search request for the object and obtain tag information of the object according to an identification of the object;
the label superposition judging unit is used for classifying the label information according to the father and son labels, labeling the son labels under the corresponding father labels, judging whether the father labels are superposed or not and judging whether the son labels are superposed or not under the same father label or not;
and the label information returning unit is used for returning the object and the label information after the duplication is removed when the duplication exists.
Preferably, the apparatus further comprises:
the object information obtaining unit is used for obtaining object information of the label to be filled;
the label judging unit is used for judging the label corresponding to the object according to the value of the preset field of the object information;
if the object to be filled with the tag is an agent or managed hardware equipment; the label judging unit comprises a time label judging unit which is used for judging the time label corresponding to the object according to the relation between the expiration time of the preset field contract in the object information and the current time; the time tag includes: expiration, about to expire, unexpired;
the label filling unit is used for filling the corresponding label for the object to be filled with the label, and is specifically used for:
the current time exceeds the contract expiration time, and the expiration label is filled for the object to be filled with the label;
the difference value of the current time and the contract expiration time is smaller than a preset time threshold value, and the label to be filled is filled with the label to be filled;
and the difference value between the current time and the contract expiration time is larger than a preset time threshold value, and the label to be filled is filled with the label which is about to be unexpired.
In a preferred embodiment, the device further comprises:
the label filling request unit is used for obtaining a label filling request, and the label filling request comprises an identity mark of a requester;
the permission judging unit is used for judging the label permission of the applicant according to the identity;
and the label returning unit is used for obtaining the corresponding label according to the label authority and returning the label to the page for display.
In another preferred embodiment, the apparatus further comprises:
the history tag search word acquisition unit is used for acquiring history tag search words in a certain period;
the matching unit is used for matching the search word in a pre-stored tag library;
and the tag library filling unit is used for carrying out analysis statistics on all the search words which are not successfully matched, and placing the search words which are not successfully matched and meet certain conditions in the tag library as tags.
Example 3
Corresponding to the above method and device, embodiment 3 of the present application further discloses a computer system, including:
one or more processors; and
a memory associated with the one or more processors, the memory for storing program instructions that, when read for execution by the one or more processors, perform the operations of:
receiving a tag combination for searching; the label combination comprises at least one sub-label and parent labels corresponding to all the sub-labels;
generating a search statement according to the union of all the sub-tags;
searching the obtained corresponding object according to the search statement;
and determining the objects corresponding to all the parent tags in the tag combination as target objects to return according to the parent tags of the objects.
FIG. 4 illustrates an architecture of a computer system, which may include a processor 1510, a video display adapter 1511, a disk drive 1512, an input/output interface 1513, a network interface 1514, and a memory 1520, among others. The processor 1510, the video display adapter 1511, the disk drive 1512, the input/output interface 1513, the network interface 1514, and the memory 1520 may be communicatively connected by a communication bus 1530.
The processor 1510 may be implemented by a general-purpose CPU (Central ProcElasticsearchsing Unit, central processing unit), a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc., for executing related programs to implement the technical scheme provided by the present application.
The Memory 1520 may be implemented in the form of ROM (Read Only Memory), RAM (Random AccElasticsearchs Memory, random access Memory), a static storage device, a dynamic storage device, or the like. Memory 1520 may store an operating system 1521 for controlling the operation of computer system 1500, a Basic Input Output System (BIOS) for controlling the low-level operation of computer system 1500. In addition, a web browser 1523, a data storage management system 1524, an icon font processing system 1525, and the like may also be stored. The icon font processing system 1525 may be an application program that implements the operations of the foregoing steps in the embodiment of the present application. In general, when the present application is implemented in software or firmware, the relevant program code is stored in the memory 1520 and executed by the processor 1510.
The input/output interface 1513 is used for connecting with an input/output module to realize information input and output. The input/output module may be configured as a component in a device (not shown) or may be external to the device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various types of sensors, etc., and the output devices may include a display, speaker, vibrator, indicator lights, etc.
The network interface 1514 is used to connect communication modules (not shown) to enable communication interactions of the present device with other devices. The communication module may implement communication through a wired manner (such as USB, network cable, etc.), or may implement communication through a wireless manner (such as mobile network, WIFI, bluetooth, etc.).
Bus 1530 includes a path for transporting information between various components of the device (e.g., processor 1510, video display adapter 1511, disk drive 1512, input/output interface 1513, network interface 1514, and memory 1520).
In addition, the computer system 1500 may also obtain information of specific acquisition conditions from the virtual resource object acquisition condition information database 1541 for making condition judgment, and so on.
It is noted that although the above devices illustrate only the processor 1510, video display adapter 1511, disk drive 1512, input/output interface 1513, network interface 1514, memory 1520, bus 1530, etc., the device may include other components necessary to achieve proper functioning in a particular implementation. Furthermore, it will be appreciated by those skilled in the art that the apparatus may include only the components necessary to implement the present application, and not all of the components shown in the drawings.
From the above description of embodiments, it will be apparent to those skilled in the art that the present application may be implemented in software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a cloud server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present application.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for a system or system embodiment, since it is substantially similar to a method embodiment, the description is relatively simple, with reference to the description of the method embodiment being made in part. The systems and system embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present application without undue burden.
The tag processing method, platform and system provided by the application are described in detail, and specific examples are applied to illustrate the principle and implementation of the application, and the description of the above examples is only used for helping to understand the method and core idea of the application; also, it is within the scope of the present application to be modified by those of ordinary skill in the art in light of the present teachings. In view of the foregoing, this description should not be construed as limiting the application.

Claims (10)

1. A method of label processing, the method comprising:
receiving a tag combination for searching; the label combination comprises at least one sub-label and parent labels corresponding to all the sub-labels;
generating a search statement according to the union of all the sub-tags;
searching the obtained corresponding object according to the search statement;
and determining the objects with the same number as the parent tags in the tag combination as target object returns according to the parent tags of the objects.
2. The method of claim 1, wherein the method further comprises:
receiving a search request for the object and obtaining tag information of the object according to the identification of the object;
classifying the tag information according to father and son tags, marking the son tags under the corresponding father tags, judging whether the father tags overlap or not, and judging whether the son tags overlap or not under the same father tag or not;
if yes, the object and the label information after the duplication is removed are returned after the duplication is removed.
3. The method of claim 1, wherein the method further comprises: acquiring object information of a label to be filled;
judging a label corresponding to the object according to the value of a preset field of the object information; and filling the corresponding label for the object to be filled with the label.
4. The method of claim 3, wherein,
the object to be filled with the label is an agent or managed hardware equipment;
judging the label corresponding to the object according to the value of the preset field of the object information comprises the following steps:
judging a time tag corresponding to the object according to the relation between the contract expiration time and the current time of the object information; the time tag includes: expiration, about to expire, unexpired;
filling the corresponding tag for the object to be filled with the tag comprises:
if the current time exceeds the contract expiration time, filling an expiration label for the object to be filled with the label;
if the difference value of the current time and the contract expiration time is smaller than a preset time threshold value, filling the label to be filled with the object to be filled with the label to be expired;
and if the difference value between the current time and the contract expiration time is larger than a preset time threshold value, filling the label to be filled with the label to be not expired.
5. The method of claim 1, wherein the method further comprises:
obtaining a label filling request, wherein the label filling request comprises an identity mark of a requester; judging the label authority of the applicant according to the identity;
and obtaining a corresponding label according to the label authority, and returning the label to the page for display.
6. The method of claim 1, wherein the method further comprises: acquiring historical tag search words in a certain period;
matching the search word in a pre-stored tag library;
and analyzing and counting all the search words which are not successfully matched, and placing the search words which are not successfully matched and meet a certain condition as labels in the label library.
7. A label processing apparatus, the apparatus comprising:
a tag combination receiving unit for receiving a tag combination for searching; the label combination comprises at least one sub-label and parent labels corresponding to all the sub-labels;
the search statement generation unit is used for generating a search statement according to the union set of all the sub-labels; the searching unit is used for searching and obtaining a corresponding object according to the search statement;
and the target object determining unit is used for determining the objects with the same number as the parent tags in the tag combination as target object returns according to the parent tags of the objects.
8. The apparatus of claim 7, wherein the apparatus further comprises:
an object tag information obtaining unit configured to receive a search request for the object and obtain tag information of the object according to an identification of the object;
the label superposition judging unit is used for classifying the label information according to the father and son labels, labeling the son labels under the corresponding father labels, judging whether the father labels are superposed or not and judging whether the son labels are superposed or not under the same father label or not;
and the label information returning unit is used for returning the object and the label information after the duplication is removed when the duplication exists.
9. The apparatus of claim 7, wherein the apparatus further comprises:
the object information obtaining unit is used for obtaining object information of the label to be filled; the object to be filled with the label is an agent or managed hardware equipment;
the time tag judging unit is used for judging the time tag corresponding to the object according to the relation between the preset field contract expiration time and the current time in the object information; the time tag includes: expiration, about to expire, unexpired;
a label filling unit for:
the current time exceeds the contract expiration time, and the expiration label is filled for the object to be filled with the label;
the difference value of the current time and the contract expiration time is smaller than a preset time threshold value, and the label to be filled is filled with the label to be filled;
and the difference value between the current time and the contract expiration time is larger than a preset time threshold value, and the label to be filled is filled with the label which is about to be unexpired.
10. A computer system, comprising: one or more processors; and a memory associated with the one or more processors, the memory for storing program instructions that, when read for execution by the one or more processors, perform the following:
receiving a tag combination for searching; the label combination comprises at least one sub-label and parent labels corresponding to all the sub-labels;
generating a search statement according to the union of all the sub-tags; searching the obtained corresponding object according to the search statement;
and determining the objects with the same number as the parent tags in the tag combination as target object returns according to the parent tags of the objects.
CN201911284122.7A 2019-12-13 2019-12-13 Label processing method, device and system Active CN111177501B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911284122.7A CN111177501B (en) 2019-12-13 2019-12-13 Label processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911284122.7A CN111177501B (en) 2019-12-13 2019-12-13 Label processing method, device and system

Publications (2)

Publication Number Publication Date
CN111177501A CN111177501A (en) 2020-05-19
CN111177501B true CN111177501B (en) 2023-11-17

Family

ID=70653891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911284122.7A Active CN111177501B (en) 2019-12-13 2019-12-13 Label processing method, device and system

Country Status (1)

Country Link
CN (1) CN111177501B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114295A (en) * 2007-08-11 2008-01-30 腾讯科技(深圳)有限公司 Method for searching on-line advertisement resource and device thereof
US8244749B1 (en) * 2009-06-05 2012-08-14 Google Inc. Generating sibling query refinements
CN103339597A (en) * 2010-10-30 2013-10-02 布雷克公司 Transforming search engine queries
CN104750781A (en) * 2015-03-06 2015-07-01 合一信息技术(北京)有限公司 Advertisement retrieval method
CN104992356A (en) * 2015-07-30 2015-10-21 北京工商大学 Digital signage advertisement screen selecting method based on multidimensional labels
CN105302560A (en) * 2015-11-05 2016-02-03 北京工商大学 Digital signage-oriented multi-dimensional label realization method
CN105677723A (en) * 2015-12-30 2016-06-15 合肥城市云数据中心股份有限公司 Method for establishing and searching data labels for industrial signal source
CN108170719A (en) * 2017-12-05 2018-06-15 深圳市金立通信设备有限公司 A kind of search method, server and computer readable storage medium
CN108984735A (en) * 2018-07-12 2018-12-11 广州资宝科技有限公司 Label Word library updating method, apparatus and electronic equipment
CN110351387A (en) * 2019-07-25 2019-10-18 腾讯科技(深圳)有限公司 Broadcasting, transmission method and the device of media resource, storage medium and electronic device
CN110543477A (en) * 2019-07-16 2019-12-06 武汉烽火众智数字技术有限责任公司 label construction system and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7457810B2 (en) * 2002-05-10 2008-11-25 International Business Machines Corporation Querying markup language data sources using a relational query processor
WO2013131061A1 (en) * 2012-03-01 2013-09-06 Linkies, Llc Inline hierarchy method and software, and business methods therefore
US10180989B2 (en) * 2015-07-24 2019-01-15 International Business Machines Corporation Generating and executing query language statements from natural language
US10698936B2 (en) * 2017-12-19 2020-06-30 Hireteammate, Inc. Generating and using multiple representations of data objects in computing systems and environments

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114295A (en) * 2007-08-11 2008-01-30 腾讯科技(深圳)有限公司 Method for searching on-line advertisement resource and device thereof
US8244749B1 (en) * 2009-06-05 2012-08-14 Google Inc. Generating sibling query refinements
CN103339597A (en) * 2010-10-30 2013-10-02 布雷克公司 Transforming search engine queries
CN104750781A (en) * 2015-03-06 2015-07-01 合一信息技术(北京)有限公司 Advertisement retrieval method
CN104992356A (en) * 2015-07-30 2015-10-21 北京工商大学 Digital signage advertisement screen selecting method based on multidimensional labels
CN105302560A (en) * 2015-11-05 2016-02-03 北京工商大学 Digital signage-oriented multi-dimensional label realization method
CN105677723A (en) * 2015-12-30 2016-06-15 合肥城市云数据中心股份有限公司 Method for establishing and searching data labels for industrial signal source
CN108170719A (en) * 2017-12-05 2018-06-15 深圳市金立通信设备有限公司 A kind of search method, server and computer readable storage medium
CN108984735A (en) * 2018-07-12 2018-12-11 广州资宝科技有限公司 Label Word library updating method, apparatus and electronic equipment
CN110543477A (en) * 2019-07-16 2019-12-06 武汉烽火众智数字技术有限责任公司 label construction system and method
CN110351387A (en) * 2019-07-25 2019-10-18 腾讯科技(深圳)有限公司 Broadcasting, transmission method and the device of media resource, storage medium and electronic device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"协同标签系统中基于标签组合效应的推荐算法";蔡毅 等;《华南理工大学学报(自然科学版)》;第41卷(第09期);65-70 *
"基于细粒度标签的在线视频广告投放机制研究";陆枫 等;《计算机研究与发展》;第51卷(第12期);2733-2745 *

Also Published As

Publication number Publication date
CN111177501A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
CN111125343A (en) Text analysis method and device suitable for human-sentry matching recommendation system
CN112836018A (en) Method and device for processing emergency plan
US20220019742A1 (en) Situational awareness by fusing multi-modal data with semantic model
CN109740129B (en) Report generation method, device and equipment based on blockchain and readable storage medium
CN111598541A (en) Enterprise business reporting method, device, equipment and storage medium
CN112836020A (en) Method, device and equipment for querying house source information and computer storage medium
CN114594927A (en) Low code development method, device, system, server and storage medium
CN113434542B (en) Data relationship identification method and device, electronic equipment and storage medium
CN111737443B (en) Answer text processing method and device and key text determining method
JP5206268B2 (en) Rule creation program, rule creation method and rule creation device
CN111177501B (en) Label processing method, device and system
CN108549722B (en) Multi-platform data publishing method, system and medium
CN111143404A (en) Service processing method and device
CN114780688A (en) Text quality inspection method, device and equipment based on rule matching and storage medium
CN115168509A (en) Processing method and device of wind control data, storage medium and computer equipment
CN115203435A (en) Entity relation generation method and data query method based on knowledge graph
US20210406469A1 (en) Management of concepts and intents in conversational systems
CN114138243A (en) Function calling method, device, equipment and storage medium based on development platform
KR102217092B1 (en) Method and apparatus for providing quality information of application
CN108132940A (en) A kind of application data extracting method and device
CN112527609A (en) Early warning information pushing method and device, electronic equipment and storage medium
CN111651362A (en) Test case generation method and device, storage medium and computer equipment
CN111177496B (en) Data object management method, device and system
CN115659182B (en) Model updating method, device and equipment
CN111311329B (en) Tag data acquisition method, device, equipment and readable storage medium

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