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

Label processing method, device and system Download PDF

Info

Publication number
CN111177501A
CN111177501A CN201911284122.7A CN201911284122A CN111177501A CN 111177501 A CN111177501 A CN 111177501A CN 201911284122 A CN201911284122 A CN 201911284122A CN 111177501 A CN111177501 A CN 111177501A
Authority
CN
China
Prior art keywords
label
tag
parent
labels
information
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
CN201911284122.7A
Other languages
Chinese (zh)
Other versions
CN111177501B (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

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/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

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)
  • Computational Linguistics (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

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 a parent label corresponding to all the sub labels; generating a search statement according to the union of all the sub-labels; 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 method and the device save logic analysis time, shorten search sentences and improve search efficiency.

Description

Label processing method, device and system
Technical Field
The present application relates to the field of tags, and in particular, to a tag processing method, device and system.
Background
The service management system includes an object to be managed, and in order to better manage the management object, a corresponding tag is usually marked on the management object. If the enterprise manages the agent, the corresponding label is marked according to the attribute of the agent, so that the attribute of the agent can be known quickly according to the label in the following process, and meanwhile, the object with the same attribute can be determined according to the label.
Generally, the tags are divided into a plurality of levels, and there are common parent and child tags, as shown in fig. 1, an agent tag setting page, where the left "exhibition mode, age, and experience" are parent tags, each parent tag corresponds to several child tags, for example, the parent tag "age" corresponds to child tags "20-30 years old, 30-40 years old, 40-50 years old, and above 50 years old", and the parent tag "training personnel number" corresponds to child tags "1 person, 3-5 persons, 2-3 persons, 5-7 persons, 7-10 persons, above 10 persons, and online live link". When the multiple parent-child tags are subjected to combined search, search is carried out in a mode that the parent tags take intersection and the child tags of the same parent tag take union.
If the user searches for "ages" of 20-30 and 30-40 "and" number of trained people "of" 7-10 and more than 10 ", the computer will generate a search sentence as follows:
select*from xxx_table
where
age in ('20-30 years', '30-40 years')
and
Number of trainers in ('7-10 people', 'more than 10')
It can be seen that if the condition of the searched tag is many, the search sentence will be long and the logic is complex. Especially, when more tags are combined, the search statement and the search logic are more complicated, the time for generating the search statement needs to be longer, and the search efficiency is lower.
Disclosure of Invention
The application provides a tag processing method, a tag processing device and a tag processing system, which are used for solving the problem of low tag search efficiency in the prior art.
In view of the above, a first aspect of the present application provides a tag processing method, including:
receiving a tag combination for searching; the label combination comprises at least one sub label and a parent label corresponding to all the sub labels;
generating a search statement according to the union of all the sub-labels;
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 aiming at the object and obtaining the label information of the object according to the identification of the object;
judging whether the label information has label superposition;
and if so, returning the object and the tag information after the duplication of the tag information 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 first and second liquid crystal materials are,
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:
judging a time tag corresponding to the object according to the relation between the contract expiration time of the object information and the current time; the time tag includes: expiration, imminent expiration, unexpired;
filling the corresponding label for the object to be filled with the label 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 between the current time and the contract expiration time is smaller than a preset time threshold, filling the object to be filled with the tag to be expired;
and if the difference value between the current time and the contract expiration time is greater than a preset time threshold, filling the to-be-filled object with the unexpired labels.
Preferably, the method further comprises:
obtaining a tag filling request, wherein the tag filling request comprises an identity of a requester;
judging the label authority of the applicant according to the identity;
and obtaining a corresponding label according to the label authority, returning the label to a page and displaying the label.
Preferably, the method further comprises:
acquiring historical label search terms in a certain period;
matching the search terms in a pre-stored label library;
and analyzing and counting all search terms which are not successfully matched, and placing the search terms which are not successfully matched and meet certain conditions in the label library as labels.
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 search; the label combination comprises at least one sub label and a parent label corresponding to all the sub labels;
the search statement generating unit is used for generating a search statement according to the union of all the sub-labels;
the searching unit is used for searching and obtaining a corresponding object according to the searching 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 identifier of the object;
a label overlapping judgment unit for judging whether the label information has label overlapping;
and the label information returning unit is used for returning the object and the de-duplicated label information after the de-duplication of the label information is carried out when the label information is overlapped.
Preferably, the apparatus further comprises:
the object information acquisition unit is used for acquiring the 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 contract expiration time of the preset field in the object information and the current time; the time tag includes: expiration, imminent expiration, unexpired;
a label filling unit for:
filling an expiration label for the object to be filled with the label when the current time exceeds the contract expiration time;
filling the object to be filled with the tag to be expired when the difference value between the current time and the contract expiration time is smaller than a preset time threshold;
and filling the object to be filled with the label which is about to not expire when the difference value between the current time and the contract expiration time is greater than a preset time threshold.
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 for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
receiving a tag combination for searching; the label combination comprises at least one sub label and a parent label corresponding to all the sub labels;
generating a search statement according to the union of all the sub-labels;
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 embodiments provided herein, the present application discloses the following technical effects:
according to the technical scheme, all the sub-tags in the tag combination are extracted, all the sub-tag union sets are directly searched, then the parent tags of the searched objects are judged, the objects corresponding to the parent tags in all the tag combinations are determined to be target objects, therefore, no matter how many sub-tags and parent tags are combined, complex logics among the parent tags do not need to be considered when a search statement is generated, all the sub-tag union sets can be directly searched, the logic analysis time is saved, the search statement is shortened, and the search efficiency is improved.
Furthermore, when object information is displayed according to a user request, the tag information of the same object can be displayed after duplication is removed, and repeated tag display of the same object caused by the fact that multiple people make the same tag label on the same object is avoided.
Of course, it is not necessary for any product to achieve all of the above-described advantages at the same time for the practice of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used 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 it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic illustration of a parent-child tag presentation;
FIG. 2 is a flow chart of the method of example 1 of the present application;
FIG. 3 is a view showing the structure of an apparatus according to embodiment 2 of the present application;
FIG. 4 is a diagram of a computer system architecture provided by an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments that can be derived from the embodiments given herein by a person of ordinary skill in the art are intended to be within the scope of the present disclosure.
As described in the background art, when performing multi-tag joint search of parent and child tags, it is necessary to generate a logical search statement after performing logical analysis on a tag combination input by a user according to the logic of taking an intersection from a parent tag and taking a union from child tags. The analysis logic time is long, the search sentence is long, and the search efficiency is low.
Therefore, the application aims to provide a method for directly searching a union set of all sub tags without performing complex logic analysis on a tag combination input by a user, and further judging according to a parent tag of an object in a search result, wherein if one object corresponds to all the parent tags in the tag combination, the object meets a search condition and is returned as a target object. In the method, complex logic analysis among all groups of parent-child tags is not needed, the generated search statement is shorter, and the search efficiency is improved.
The application of the principle is as follows:
assume that the tag combination includes sub-tags a1, a2, a3 under parent tag A, sub-tags C1, C4 under parent tag C, and sub-tags D1, D2 under parent tag D. That is, the user is to search for objects that satisfy both child tags a1 or a2 or a3 under parent tag A, child tags C1 or C4 under parent tag C, and child tags D1 or D2 under parent tag D. In other words, the object to be searched needs to satisfy being simultaneously the parent tag A, C, D, being simultaneously any one of a1, a2, a3, any one of c1, c4, d1, d 2.
We can analyze that when an object satisfies any one of a1, a2, a3, c1, c4, d1 and d2, and the object satisfies all the corresponding parent tags A, C, D at the same time, it is necessary to prove that the object corresponds to A, C, D at least one of the above-mentioned child tags, that is, the search condition is satisfied. Based on this, we can search the union set of all the child tags, and then determine the target object by determining whether the object in the search result corresponds to the parent tag in all the tag combinations, i.e., whether the number of the parent tags is equal to the number of the parent tags in the tag combinations.
For example, an object X, Y is obtained by searching according to the union set of all the sub-tags in the tag combination, where the parent tag corresponding to the object X is A, C, D, and 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 using the method, the objects meeting the conditions can be searched without complex logic analysis and complex search sentences, time is saved compared with the prior art, and the search efficiency is improved.
The following is a search statement generated for the received label combination according to the above method, where the search object is an agent, namely agent, sub-label 1, and sub-label 2 is a sub-label appearing in the label 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 _ IN (sub-tag 1, sub-tag 2.)
GROUP BY a.agent_id,a.tag_parent_id
)t
GROUP BY t.agent _ id HAVING COUNT (1) is the number of parent tags;
in the above search sentence, first, the search sentence is searched by a sub search sentence
“SELECT a.agent_id,a.tag_parent_id FROM dp_tag_agent a
WHERE a.valid ═ 1 AND a.tag _ IN (child tag 1, child tag 2.) ", obtains the agent record containing all the child tags IN the combined tag, AND then GROUPs the GROUP BY a.agent _ id, a.tag _ parent _ id according to the agent AND parent tags, so that each agent has several parent tags.
In order to ensure that each parent tag has a child tag, it is only necessary to extract a set from the result of the child sql and the agents having all the parent tags in the tag combination, that is, after the agents are grouped, the extracted number is equal to the number of the parent tags BY grouping GROUP BY agent _ idhavingcount (1).
Example 1
In response to the foregoing solution, 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 a parent label corresponding to all the sub labels.
S22, generating a search statement according to the union of all the sub-labels;
s23, searching the corresponding object according to the search statement;
s24, according to the father label of the object, the object corresponding to all the father labels in the label combination is determined as the target object to return.
Specifically, whether the target object is determined according to whether the number of all parent tags in the tag combination is equal to the number of parent tags corresponding to the object in the search result. And if the two are equal, the target object is obtained, and the target object is returned to the user.
When the label combination comprises a plurality of parent-child labels, the method can solve the problems of logic analysis time and search statement length, and improves the search efficiency.
In actual business, users often need to acquire tag information of a certain object to know various attributes of the object.
For example, each enterprise manages its own agent, the enterprise often needs to know various label information of an agent to know about the agent, and is convenient to make various subsequent decisions such as whether to continue cooperation or not, whether to expand the cooperation range, and the like.
The labeling of the agent label can be performed by different people due to different situations, wherein repeated situations are inevitable. For this reason, before returning the tag information, a deduplication operation may be performed, specifically including:
receiving a search request aiming at the object and obtaining the label information of the object according to the identification of the object;
classifying the label information according to parent labels and child labels, marking the child labels under the corresponding parent labels, judging whether the parent labels are overlapped and judging whether the child labels are overlapped under the same parent label;
and if so, returning the object and the tag information after the duplication of the tag information is removed.
It should be noted that, considering that different people have different label labeling permissions for the same object, such as an agent, in order to facilitate the subsequent different people to query the labels labeled respectively, the above-mentioned deduplication operation does not delete the repeated label labeling in the server, but rather obtains the label information and deduplicates the information when returning to a specific person so as to display the deduplicated label information on the page.
Regarding filling and labeling of labels, the application provides two ways, one is manual label filling, and the other is automatic label filling of the system.
Manual label filling includes:
obtaining a tag filling request, wherein the tag filling request comprises an identity of a requester;
judging the label authority of the applicant according to the identity;
obtaining a corresponding label according to the label authority, returning the label to a page and displaying the label;
receiving a filling request which is sent by a requester and aims at any one of the returned labels;
and filling the label on the corresponding object.
In the manual label filling mode, different persons have different authorities, so that the authorities of the persons can be determined according to the identity of the requesters, the labels with the corresponding authorities are obtained and returned to the page for the requesters to select to fill.
Of course, all the tags can be returned, and whether the tag has the right to fill the tag or not is judged according to the tag selected by the applicant, so that filling or refusing is carried out. However, in this way, the requester may perform many invalid operations, which results in waste of resources.
The automatic filling includes:
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 tag as an agent or managed hardware equipment as an example, automatically filling the contract time tag comprises the following steps:
judging a time label 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 contract expiration time and the current time; the time tag includes: expiration, imminent expiration, unexpired;
if the current time exceeds the contract expiration time, filling an expiration tag for the agent or the managed hardware equipment;
if the difference value between the current time and the contract expiration time is smaller than a preset time threshold, filling an upcoming expiration label for an agent or managed hardware equipment;
and if the difference value between the current time and the contract expiration time is greater than the preset time threshold, filling the pending expiration tag for the agent or the managed hardware equipment.
And a similar method is applied to the filling of other labels, the system prestores the corresponding relation between the label and the preset field, for example, the corresponding relation between the contract expiration time and the time label, the system acquires the information of the preset field in real time or periodically, then judges whether to fill the label and which label to fill specifically according to the preset rule and the information of the preset field, and finishes automatic filling according to the judgment result.
The system can preset a label library for automatic filling, log records or labels the automatically filled information, and is convenient for subsequent manual verification.
In order to set the label of the object, the system presets a label library, and sets parent-child labels and corresponding relations, label use rules, label user rights and other information in the label library. The label library is generally set manually, and the types of labels are sometimes difficult to meet requirements.
In view of the above, the present application provides a method for automatically enriching a tag library, including:
acquiring historical label search terms in a certain period;
matching the search terms in a pre-stored label library;
and analyzing and counting all search terms which are not successfully matched, and placing the search terms which are not successfully matched and meet certain conditions in the label library as labels.
Namely, the labels which are frequently appeared but are not set in the label library are automatically filled in the label library by utilizing the search history of the applicant. To ensure correctness, this type of label can be used after further verification by human.
Example 2
Corresponding to the above method, embodiment 2 of the present application further provides a tag processing apparatus, as shown in fig. 3, the apparatus includes:
a tag combination receiving unit 31 for receiving a tag combination for search; the label combination comprises at least one sub label and a parent label corresponding to all the sub labels;
a search sentence generating unit 32, configured to generate a search sentence according to a union of all the sub tags;
a search unit 33, configured to search for and obtain a corresponding object according to the search statement;
and the target object determining unit 34 is configured to determine, according to the parent tag of the object, objects corresponding to all the parent tags in the tag combination as target objects to return.
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 identifier of the object;
the label coincidence judging unit is used for classifying the label information according to parent and child labels, marking the child labels under the corresponding parent labels, judging whether the parent labels coincide and judging whether the child labels coincide under the same parent label;
and the label information returning unit is used for returning the object and the de-duplicated label information after the de-duplication of the label information is carried out when the label information is overlapped.
Preferably, the apparatus further comprises:
the object information acquisition unit is used for acquiring the object information of the label to be filled;
the tag judging unit is used for judging a tag corresponding to the object according to the value of the preset field of the object information;
if the object to be filled with the label is an agent or managed hardware equipment; the tag judging unit comprises a time tag judging unit used for judging the time tag corresponding to the object according to the relation between the contract expiration time of the preset field in the object information and the current time; the time tag includes: expiration, imminent expiration, unexpired;
a tag filling unit, configured to fill the corresponding tag for the object to be filled with the tag, specifically configured to:
filling an expiration label for the object to be filled with the label when the current time exceeds the contract expiration time;
filling the object to be filled with the tag to be expired when the difference value between the current time and the contract expiration time is smaller than a preset time threshold;
and filling the object to be filled with the label which is about to not expire when the difference value between the current time and the contract expiration time is greater than a preset time threshold.
In a preferred embodiment, the apparatus further comprises:
the system comprises a tag filling request unit, a tag identification unit and a tag identification unit, wherein the tag filling request unit is used for obtaining a tag filling request which comprises an identity identification of a requester;
the authority judgment unit is used for judging the label authority 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 corresponding label to the page for displaying.
In another preferred embodiment, the apparatus further comprises:
a history tag search word acquisition unit configured to acquire a history tag search word within a certain period;
the matching unit is used for matching the search terms in a pre-stored label library;
and the tag library filling unit is used for analyzing and counting all search terms which are not successfully matched, and placing the search terms which are successfully matched and meet certain conditions in the tag library as tags.
Example 3
Corresponding to the above method and apparatus, 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 for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
receiving a tag combination for searching; the label combination comprises at least one sub label and a parent label corresponding to all the sub labels;
generating a search statement according to the union of all the sub-labels;
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, in particular, 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. The processor 1510, video display adapter 1511, disk drive 1512, input/output interface 1513, network interface 1514, and memory 1520 may be communicatively coupled via a communication bus 1530.
The processor 1510 may be implemented by a general-purpose CPU (Central processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits, and is configured to execute related programs to implement the technical solution provided by the present Application.
The Memory 1520 may be implemented in the form of a ROM (Read Only Memory), a RAM (random access Memory), a static storage device, a dynamic storage device, or the like. The memory 1520 may store an operating system 1521 for controlling the operation of the computer system 1500, a Basic Input Output System (BIOS) for controlling low-level operations of the computer system 1500. In addition, a web browser 1523, a data storage management system 1524, an icon font processing system 1525, and the like can also be stored. The icon font processing system 1525 may be an application program that implements the operations of the foregoing steps in this embodiment of the application. In summary, when the technical solution provided by the present application is implemented by software or firmware, the relevant program codes are stored in the memory 1520 and called for execution by the processor 1510.
The input/output interface 1513 is used for connecting an input/output module to realize information input and output. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The network interface 1514 is used to connect a communication module (not shown) to enable the device to communicatively interact with other devices. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
The bus 1530 includes a path to transfer information between the various components of the device, such as 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.
In addition, the computer system 1500 may also obtain information of specific extraction conditions from the virtual resource object extraction condition information database 1541 for performing condition judgment, and the like.
It should be noted that although the above devices only show the processor 1510, the video display adapter 1511, the disk drive 1512, the input/output interface 1513, the network interface 1514, the memory 1520, the bus 1530, etc., in a specific implementation, the devices may also include other components necessary for proper operation. Furthermore, it will be understood by those skilled in the art that the apparatus described above may also include only the components necessary to implement the solution of the present application, and not necessarily all of the components shown in the figures.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be embodied 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, or the like, and includes several instructions for enabling a computer device (which may be a personal computer, a cloud server, or a network device) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above detailed description is given to the tag processing method, platform and system provided by the present application, and a specific example is applied in the description to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, the specific embodiments and the application range may be changed. In view of the above, the description should not be taken as limiting the application.

Claims (10)

1. A method of tag processing, the method comprising:
receiving a tag combination for searching; the label combination comprises at least one sub label and a parent label corresponding to all the sub labels;
generating a search statement according to the union of all the sub-labels;
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.
2. The method of claim 1, wherein the method further comprises:
receiving a search request aiming at the object and obtaining the label information of the object according to the identification of the object;
classifying the label information according to parent labels and child labels, marking the child labels under the corresponding parent labels, judging whether the parent labels are overlapped and judging whether the child labels are overlapped under the same parent label;
and if so, returning the object and the tag information after the duplication of the tag information 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,
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:
judging a time tag corresponding to the object according to the relation between the contract expiration time of the object information and the current time; the time tag includes: expiration, imminent expiration, unexpired;
filling the corresponding label for the object to be filled with the label 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 between the current time and the contract expiration time is smaller than a preset time threshold, filling the object to be filled with the tag to be expired;
and if the difference value between the current time and the contract expiration time is greater than a preset time threshold, filling the to-be-filled object with the unexpired labels.
5. The method of claim 1, wherein the method further comprises:
obtaining a tag filling request, wherein the tag filling request comprises an identity of a requester;
judging the label authority of the applicant according to the identity;
and obtaining a corresponding label according to the label authority, returning the label to a page and displaying the label.
6. The method of claim 1, wherein the method further comprises:
acquiring historical label search terms in a certain period;
matching the search terms in a pre-stored label library;
and analyzing and counting all search terms which are not successfully matched, and placing the search terms which are not successfully matched and meet certain conditions in the label library as labels.
7. A label processing apparatus, characterized in that the apparatus comprises:
a tag combination receiving unit for receiving a tag combination for search; the label combination comprises at least one sub label and a parent label corresponding to all the sub labels;
the search statement generating unit is used for generating a search statement according to the union of all the sub-labels;
the searching unit is used for searching and obtaining a corresponding object according to the searching 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.
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 identifier of the object;
the label coincidence judging unit is used for classifying the label information according to parent and child labels, marking the child labels under the corresponding parent labels, judging whether the parent labels coincide and judging whether the child labels coincide under the same parent label;
and the label information returning unit is used for returning the object and the de-duplicated label information after the de-duplication of the label information is carried out when the label information is overlapped.
9. The apparatus of claim 7, wherein the apparatus further comprises:
the object information acquisition unit is used for acquiring the 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 contract expiration time of the preset field in the object information and the current time; the time tag includes: expiration, imminent expiration, unexpired;
a label filling unit for:
filling an expiration label for the object to be filled with the label when the current time exceeds the contract expiration time;
filling the object to be filled with the tag to be expired when the difference value between the current time and the contract expiration time is smaller than a preset time threshold;
and filling the object to be filled with the label which is about to not expire when the difference value between the current time and the contract expiration time is greater than a preset time threshold.
10. A computer system, comprising:
one or more processors; and
a memory associated with the one or more processors for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
receiving a tag combination for searching; the label combination comprises at least one sub label and a parent label corresponding to all the sub labels;
generating a search statement according to the union of all the sub-labels;
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.
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 true CN111177501A (en) 2020-05-19
CN111177501B 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 (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030212664A1 (en) * 2002-05-10 2003-11-13 Martin Breining Querying markup language data sources using a relational query processor
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
US20150112991A1 (en) * 2012-03-01 2015-04-23 Linkies, Llc Inline hierarchy method and software, and business methods therefore
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
US20170024431A1 (en) * 2015-07-24 2017-01-26 International Business Machines Corporation Generating and executing query language statements from natural language
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
US20190188318A1 (en) * 2017-12-19 2019-06-20 HireTeamMate Inc. Generating and using multiple representations of data objects in computing systems and environments
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

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030212664A1 (en) * 2002-05-10 2003-11-13 Martin Breining Querying markup language data sources using a relational query processor
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
US20150112991A1 (en) * 2012-03-01 2015-04-23 Linkies, Llc Inline hierarchy method and software, and business methods therefore
CN104750781A (en) * 2015-03-06 2015-07-01 合一信息技术(北京)有限公司 Advertisement retrieval method
US20170024431A1 (en) * 2015-07-24 2017-01-26 International Business Machines Corporation Generating and executing query language statements from natural language
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
US20190188318A1 (en) * 2017-12-19 2019-06-20 HireTeamMate Inc. Generating and using multiple representations of data objects in computing systems and environments
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
蔡毅 等: ""协同标签系统中基于标签组合效应的推荐算法"", 《华南理工大学学报(自然科学版)》, vol. 41, no. 09, pages 65 - 70 *
陆枫 等: ""基于细粒度标签的在线视频广告投放机制研究"", 《计算机研究与发展》, vol. 51, no. 12, pages 2733 - 2745 *

Also Published As

Publication number Publication date
CN111177501B (en) 2023-11-17

Similar Documents

Publication Publication Date Title
US11295085B2 (en) Navigating electronic documents using domain discourse trees
CN107992514B (en) Structured information card search and retrieval
CN113204621B (en) Document warehouse-in and document retrieval method, device, equipment and storage medium
CN111538816B (en) Question-answering method, device, electronic equipment and medium based on AI identification
CN105718533A (en) Information pushing method and device
CN111737443B (en) Answer text processing method and device and key text determining method
CN109409419B (en) Method and apparatus for processing data
CN116226494B (en) Crawler system and method for information search
CN108549722B (en) Multi-platform data publishing method, system and medium
WO2006009410A1 (en) Method and system for impressing knowledge advertisement using knowledge search service
CN111797633A (en) Feature submission deduplication engine
CN116362684A (en) Library cluster-based book management method, library cluster-based book management device, library cluster-based book management equipment and storage medium
CN107908724B (en) Data model matching method, device, equipment and storage medium
US20220164377A1 (en) Method and apparatus for distributing content across platforms, device and storage medium
CN111177496B (en) Data object management method, device and system
CN111177501A (en) Label processing method, device and system
CN114237588A (en) Code warehouse selection method, device, equipment and storage medium
CN103049525A (en) Method and device for providing object relevant information
CN112487277B (en) Data distribution method and device, readable storage medium and electronic equipment
CN114371969A (en) Page performance testing method and device, electronic equipment and storage medium
WO2017206604A1 (en) Processing and interaction method for use in data recommendation, device, and system
CN115659182B (en) Model updating method, device and equipment
CN116723175B (en) MAC (media access control) automatic application method and device for test equipment and storage medium
CN112015888B (en) Abstract information extraction method and abstract information extraction system
CN113793193B (en) Data search accuracy verification method, device, equipment and computer readable 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