CN109828984A - A kind of method, apparatus, computer storage medium and the terminal of analysis processing - Google Patents
A kind of method, apparatus, computer storage medium and the terminal of analysis processing Download PDFInfo
- Publication number
- CN109828984A CN109828984A CN201910026449.8A CN201910026449A CN109828984A CN 109828984 A CN109828984 A CN 109828984A CN 201910026449 A CN201910026449 A CN 201910026449A CN 109828984 A CN109828984 A CN 109828984A
- Authority
- CN
- China
- Prior art keywords
- retrieval
- major key
- preset
- event
- 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
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
A kind of method, apparatus, computer storage medium and the terminal of analysis processing, comprising: the retrieval information that conversion input is currently retrieved judges information for retrieval;Retrieval is judged that information passes through preset adaptation rule, it is determined whether currently retrieved using online retrieving mode;When currently being retrieved by the way that adaptation rule is not determining using online retrieving mode, the retrieval mode used is currently retrieved according to the determination of preset cost evaluation strategy;Wherein, the retrieval information is used to describe the search condition of searched targets;The retrieval mode includes following one or more kinds of retrievals: online retrieving, offline retrieval.The embodiment of the present invention improves the ease for use of knowledge mapping system, enhances the stability of searching system.
Description
Technical field
Present document relates to but be not limited to knowledge mapping technology, espespecially it is a kind of analysis processing method, apparatus, computer storage be situated between
Matter and terminal.
Background technique
Knowledge mapping be used to describe the incidence relation between things.The describing mode of one of knowledge mapping includes fixed
Entity (point i.e. in figure), relationship (i.e. in figure while) in adopted map and point/while relevant attribute (attributed graph).And with
Each FIELD Data information is enriched constantly, and knowledge mapping data scale constantly increases, and has gradually formed huge magnanimity and has known
Know spectrum data library, and then biggish challenge is produced to the application of knowledge based map.In addition, with each vertical field application
Continuous refinement, abundant, defining point, side and attribute can no longer meet the demand that specific industry describes things.For example, some
Industry includes than more rich personnel time's sequence data or track data, these data can neither be defined as a little, also not generation
Association between table point is less point/side attribute.Therefore a kind of various dimensions knowledge mapping representation has been derived.In multidimensional
It spends in knowledge mapping, relationship, the space-time trajectory of entity either between entity or entity can be there are many different
Type, such as the type of entity can be " people ", " vehicle " etc., and the relationship between entity can be " people-vehicle holding relationship ", " parent
Category relationship " etc., track can be " train trip track ", " hotel ccommodation track " etc..The abundant and refinement of vertical field application,
The appearance of multidimensional knowledge map has been further exacerbated by the enforcement difficulty to the application of knowledge based spectrum data.
Retrieval, complicated analysis demand in face of increasingly complicated mass knowledge spectrum data;The relevant technologies, which mainly pass through, takes
Line and offline two systems are built in meet the calculating of different application scene and analyze demand.Currently, on-line analysis system, it is possible to provide
Real-time or intimate real-time interactive retrieval generally has the characteristics that high concurrent, response are fast, is not in bright for user of service
Aobvious pause sense, so being generally used for handling relatively simple retrieval, analysis scene.Off-line analysis system needs longer inspection
The rope response time, general concurrency is limited, system resources consumption is relatively high, thus apply in general to relative complex retrieval,
Analyze scene.
Currently, on-line analysis system and off-line analysis system are relatively independent, when operation, needs technical staff voluntarily to current
The analysis system that analysis application is suitble to makes a policy, and improve system uses threshold, and increases using complexity.And
In some scenarios once selection mistake, it is also possible to more serious result can be generated and (for example submitted certain complicated analysis demand
To on-line analysis system, stability and the response time of on-line analysis system may be will affect, and it is super to may cause the analysis
When fail).
Summary of the invention
It is the general introduction to the theme being described in detail herein below.This general introduction is not the protection model in order to limit claim
It encloses.
The embodiment of the present invention provides method, apparatus, computer storage medium and the terminal of a kind of analysis processing, is able to ascend
The ease for use and stability of knowledge mapping system.
The embodiment of the invention provides a kind of methods of analysis processing, comprising:
The retrieval information that conversion input is currently retrieved judges information for retrieval;
Retrieval is judged that information passes through preset adaptation rule, it is determined whether currently examined using online retrieving mode
Rope;
When currently being retrieved by the way that adaptation rule is not determining using online retrieving mode, according to preset cost evaluation plan
Slightly the retrieval mode used is currently retrieved in determination;
Wherein, the retrieval information is used to describe the search condition of searched targets;The retrieval mode includes following one kind
Or more than one retrievals: online retrieving, offline retrieval.
Optionally, the adaptation rule includes following one or more kinds of judgment rules:
Entity major key rule, event major key rule.
Optionally, when the adaptation rule includes entity major key rule, the entity major key rule includes:
When determining that the retrieval is judged in information comprising the input of entity major key, the entity major key quantity currently retrieved is determined;
When entity major key quantity is less than preset first threshold, determines and currently retrieved using online retrieving mode.
Optionally, when the adaptation rule includes event major key rule, the event major key rule includes:
When determining that the retrieval is judged in information comprising the input of event major key, the event major key quantity currently retrieved is determined;
When event major key quantity is less than preset second threshold, determines and currently retrieved using online retrieving mode;
Wherein the event major key includes following one or more kinds of information: main body major key, Time To Event, object
Major key.
Optionally, described to determine that currently retrieving the retrieval mode used includes: according to preset cost evaluation strategy
According to the product of the average duration of the object query hit record number and object query currently retrieved, determine that entity is examined
Rope cost;When determining entity retrieval cost is greater than preset online retrieving maximum delay, determine using offline retrieval;Determining
When entity retrieves cost less than or equal to preset online retrieving maximum delay, determine using offline retrieval;And/or
According to the product of the average duration of the event query hit record number and event query currently retrieved, determine that event is examined
Rope cost;When definite event retrieves cost greater than preset online retrieving maximum delay, determine using offline retrieval;Determining
When fact retrieval cost is less than or equal to preset online retrieving maximum delay, determine using offline retrieval;.
Optionally, after determining the retrieval mode currently retrieved, the method also includes:
It is currently retrieved according to determining retrieval mode, and search result is stored to preset storage region.
Optionally, when can not determine the retrieval mode currently retrieved and used according to preset cost evaluation strategy, the side
Method further include:
Determination is currently retrieved by the way of retrieving offline.
On the other hand, the embodiment of the present invention also provides a kind of device of analysis processing, comprising: converting unit, adaptation processing
Unit and cost evaluation unit;Wherein,
Converting unit is used for: the retrieval information that conversion input is currently retrieved judges information for retrieval;
Adaptation processing unit is used for: retrieval being judged that information passes through preset adaptation rule, it is determined whether using online inspection
Rope mode is currently retrieved;
Cost evaluation unit is used for: when currently being retrieved by the way that adaptation rule is not determining using online retrieving mode, root
The retrieval mode used is currently retrieved according to the determination of preset cost evaluation strategy;
Wherein, the retrieval information is used to describe the search condition of searched targets;The retrieval mode includes following one kind
Or more than one retrievals: online retrieving, offline retrieval.
Optionally, the adaptation rule includes following one or more kinds of judgment rules:
Entity major key rule, event major key rule.
Optionally, the adaptation processing unit is specifically used for:
When determining that the retrieval is judged in information comprising the input of entity major key, the entity major key quantity currently retrieved is determined;
When entity major key quantity is less than preset first threshold, determines and currently retrieved using online retrieving mode.
Optionally, the adaptation processing unit is specifically used for:
When determining that the retrieval is judged in information comprising the input of event major key, the event major key quantity currently retrieved is determined;
When event major key quantity is less than preset second threshold, determines and currently retrieved using online retrieving mode;
Wherein the event major key includes following one or more kinds of information: main body major key, Time To Event, object
Major key.
Optionally, the cost evaluation unit is specifically used for:
According to the product of the average duration of the object query hit record number and object query currently retrieved, determine that entity is examined
Rope cost;When determining entity retrieval cost is greater than preset online retrieving maximum delay, determine using offline retrieval;Determining
When entity retrieves cost less than or equal to preset online retrieving maximum delay, determine using offline retrieval;And/or
According to the product of the average duration of the event query hit record number and event query currently retrieved, determine that event is examined
Rope cost;When definite event retrieves cost greater than preset online retrieving maximum delay, determine using offline retrieval;Determining
When fact retrieval cost is less than or equal to preset online retrieving maximum delay, determine using offline retrieval;.
Optionally, described device further includes retrieval unit, is used for:
It is currently retrieved according to determining retrieval mode, and search result is stored to preset storage region.
In another aspect, the embodiment of the present invention also provides a kind of computer storage medium, deposited in the computer storage medium
Contain computer executable instructions, the method that above-mentioned analysis processing can be performed in the computer.
Also on the one hand, the embodiment of the present invention also provides a kind of terminal, comprising: memory and processor;Wherein,
Processor is configured as executing the program instruction in memory;
Program instruction reads in processor and executes following operation:
The retrieval information that conversion input is currently retrieved judges information for retrieval;
Retrieval is judged that information passes through preset adaptation rule, it is determined whether currently examined using online retrieving mode
Rope;
When currently being retrieved by the way that adaptation rule is not determining using online retrieving mode, according to preset cost evaluation plan
Slightly the retrieval mode used is currently retrieved in determination;
Wherein, the retrieval information is used to describe the search condition of searched targets;The retrieval mode includes following one kind
Or more than one retrievals: online retrieving, offline retrieval.
Compared with the relevant technologies, technical scheme includes: to convert the retrieval information that input is currently retrieved to sentence for retrieval
Disconnected information;Retrieval is judged that information passes through preset adaptation rule, it is determined whether currently retrieved using online retrieving mode;
When currently being retrieved by the way that adaptation rule is not determining using online retrieving mode, worked as according to the determination of preset cost evaluation strategy
It is preceding to retrieve the retrieval mode used;Wherein, the retrieval information is used to describe the search condition of searched targets;The retrieval mode
Including following one or more kinds of retrievals: online retrieving, offline retrieval.The embodiment of the present invention improves knowledge mapping system
Ease for use enhances the stability of searching system.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right
Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this
The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is the flow chart of the method for analysis processing of the embodiment of the present invention;
Fig. 2 is the structural block diagram of the device of analysis processing of the embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention
Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application
Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions
It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable
Sequence executes shown or described step.
Present inventor's analysis finds, on-line analysis system and off-line analysis system it is relatively independent, improve system
Use threshold, and increase using complexity, and in some scenarios once selection mistake, it is also possible to can generate more tight
The result of weight;Such as certain complicated analysis demand is committed to on-line analysis system, the stabilization of on-line analysis system may be will affect
Property and the response time, thereby increases and it is possible to cause the analysis time-out fail.
Fig. 1 is the flow chart of the method for analysis processing of the embodiment of the present invention, as shown in Figure 1, comprising:
The retrieval information that step 101, conversion input are currently retrieved judges information for retrieval;
It should be noted that retrieval of embodiment of the present invention information can be the first lattice of satisfaction of preset user's input
The information of formula, retrieval judge information can be meet as defined in internal system agreement, information is retrieved in parsing or the satisfaction of acquisition the
The information of two formats.
Retrieval is judged that information passes through preset adaptation rule by step 102, it is determined whether is carried out using online retrieving mode
Current retrieval;
Optionally, adaptation rule of the embodiment of the present invention includes following one or more kinds of judgment rules:
Entity major key rule, event major key rule.
It should be noted that the purpose of adaptation of adaptation rule of the embodiment of the present invention is to determine applicable inspection according to search condition
Rope mode;Adaptation rule can also include that other can determine the rule of retrieval mode, such as determine whether to use according to index
The mode of online retrieving is retrieved.
The embodiment of the present invention can first carry out the adaptation judgement that entity major key rule carries out retrieval mode, advise in entity major key
It can not then determine using after online retrieving, then be judged whether using event major key rule using online retrieving.
Optionally, when adaptation rule of the embodiment of the present invention includes entity major key rule, the entity major key rule includes:
When determining that the retrieval is judged in information comprising the input of entity major key, the entity major key quantity currently retrieved is determined;
When entity major key quantity is less than preset first threshold, determines and currently retrieved using online retrieving mode.
It should be noted that the embodiment of the present invention can obtain returned data amount according to determining entity major key quantity;Root
According to returned data amount information, it is determined whether currently retrieved by the way of online retrieving;Due to large batch of intensive retrieval
On-line system load can be increased moment, in order to which on-line system load is maintained at controlled range, and set first threshold.First
Threshold value can according to the design parameter of current system, environment, pressure testing results, system it is desirable to keep that workload etc., by
Those skilled in the art carry out analysis setting.
Optionally, when adaptation rule of the embodiment of the present invention includes event major key rule, the event major key rule includes:
When determining that the retrieval is judged in information comprising the input of event major key, the event major key quantity currently retrieved is determined;
When event major key quantity is less than preset second threshold, determines and currently retrieved using online retrieving mode;
Wherein the event major key includes following one or more kinds of information: main body major key, Time To Event, object
Major key.
It should be noted that the embodiment of the present invention can obtain returned data amount according to definite event major key quantity;Root
According to returned data amount information, it is determined whether currently retrieved by the way of online retrieving;Due to large batch of intensive retrieval
On-line system load can be increased moment, in order to which on-line system load is maintained at controlled range, and set second threshold.Second
Threshold value can according to the design parameter of current system, environment, pressure testing results, system it is desirable to keep that workload etc., by
Those skilled in the art carry out analysis setting.Event major key of the embodiment of the present invention describes main body and occurs at what time with object
What.By taking lodging event as an example, describe entity people (event body) when (Time To Event) moved in it is assorted
Hotel's (event object: hotel).
Step 103, by adaptation rule do not determine using online retrieving mode currently retrieved when, according to preset generation
The retrieval mode used is currently retrieved in the determination of valence assessment strategy;
Wherein, the retrieval information is used to describe the search condition of searched targets;The retrieval mode includes following one kind
Or more than one retrievals: online retrieving, offline retrieval.
Optionally, the embodiment of the present invention currently retrieves the retrieval mode packet used according to the determination of preset cost evaluation strategy
It includes:
According to the product of the average duration of the object query hit record number and object query currently retrieved, determine that entity is examined
Rope cost;When determining entity retrieval cost is greater than preset online retrieving maximum delay, determine using offline retrieval;Determining
When entity retrieves cost less than or equal to preset online retrieving maximum delay, determine using offline retrieval;And/or
According to the product of the average duration of the event query hit record number and event query currently retrieved, determine that event is examined
Rope cost;When definite event retrieves cost greater than preset online retrieving maximum delay, determine using offline retrieval;Determining
When fact retrieval cost is less than or equal to preset online retrieving maximum delay, determine using offline retrieval;.
It should be noted that the average duration of object query of the embodiment of the present invention and the average duration of event query can lead to
It crosses and is determined including following one or more kinds of information analyses: being obtained by performance test in specific deployed environment;Two, according to history
Query result statistical analysis obtains;Three, determination is rule of thumb analyzed by those skilled in the art.
In addition, information used in the progress cost calculating of cost evaluation strategy of the embodiment of the present invention can be by importing data
It obtains, some data targets of acquisition can be counted according to data are imported, comprising: the total number of records of certain tables of data, certain train value
Average value, maximum value, minimum value etc.;Importing data includes predefined knowledge mapping data (entity, event, relationship), with reality
For the gender attribute of body people, when importing by statistics of male, female ratio, the sex ratio of entity people can be obtained, that
In the entity people retrieval containing gender condition, it can show that the entity people that it is returned records the upper limit according to this condition.
Optionally, after determining the retrieval mode currently retrieved, present invention method further include:
It is currently retrieved according to determining retrieval mode, and search result is stored to preset storage region.
It should be noted that the preset storage region of the embodiment of the present invention includes: the platforms such as HDFS.In addition, if based on system
It counts and can determine that current search result for sky, then directly returns to empty set.
Optionally, when can not determine the retrieval mode currently retrieved and used according to preset cost evaluation strategy, the present invention
Embodiment method further include:
Determination is currently retrieved by the way of retrieving offline.
Compared with the relevant technologies, technical scheme includes: to convert the retrieval information that input is currently retrieved to sentence for retrieval
Disconnected information;Retrieval is judged that information passes through preset adaptation rule, it is determined whether currently retrieved using online retrieving mode;
When currently being retrieved by the way that adaptation rule is not determining using online retrieving mode, worked as according to the determination of preset cost evaluation strategy
It is preceding to retrieve the retrieval mode used;Wherein, the retrieval information is used to describe the search condition of searched targets;The retrieval mode
Including following one or more kinds of retrievals: online retrieving, offline retrieval.The embodiment of the present invention improves knowledge mapping system
Ease for use enhances the stability of searching system.
Fig. 2 is the structural block diagram of the device of analysis processing of the embodiment of the present invention, as shown in Figure 2, comprising: converting unit is fitted
With processing unit and cost evaluation unit;Wherein,
Converting unit is used for: the retrieval information that conversion input is currently retrieved judges information for retrieval;
Adaptation processing unit is used for: retrieval being judged that information passes through preset adaptation rule, it is determined whether using online inspection
Rope mode is currently retrieved;
Cost evaluation unit is used for: when currently being retrieved by the way that adaptation rule is not determining using online retrieving mode, root
The retrieval mode used is currently retrieved according to the determination of preset cost evaluation strategy;
Wherein, the retrieval information is used to describe the search condition of searched targets;The retrieval mode includes following one kind
Or more than one retrievals: online retrieving, offline retrieval.
It should be noted that retrieval of embodiment of the present invention information can be the first lattice of satisfaction of preset user's input
The information of formula, retrieval judge information can be meet as defined in internal system agreement, information is retrieved in parsing or the satisfaction of acquisition the
The information of two formats.
Optionally, adaptation rule of the embodiment of the present invention includes following one or more kinds of judgment rules:
Entity major key rule, event major key rule.
It should be noted that the purpose of adaptation of adaptation rule of the embodiment of the present invention is to determine applicable inspection according to search condition
Rope mode;Adaptation rule can also include that other can determine the rule of retrieval mode, such as determine whether to use according to index
The mode of online retrieving is retrieved.
The embodiment of the present invention can first carry out the adaptation judgement that entity major key rule carries out retrieval mode, advise in entity major key
It can not then determine using after online retrieving, then be judged whether using event major key rule using online retrieving.
Optionally, adaptation processing unit of the embodiment of the present invention is specifically used for:
When determining that the retrieval is judged in information comprising the input of entity major key, the entity major key quantity currently retrieved is determined;
When entity major key quantity is less than preset first threshold, determines and currently retrieved using online retrieving mode.
It should be noted that the embodiment of the present invention can obtain returned data amount according to determining entity major key quantity;Root
According to returned data amount information, it is determined whether currently retrieved by the way of online retrieving;Due to large batch of intensive retrieval
On-line system load can be increased moment, in order to which on-line system load is maintained at controlled range, and set first threshold.First
Threshold value can according to the design parameter of current system, environment, pressure testing results, system it is desirable to keep that workload etc., by
Those skilled in the art carry out analysis setting.
Optionally, adaptation processing unit of the embodiment of the present invention is specifically used for:
When determining that the retrieval is judged in information comprising the input of event major key, the event major key quantity currently retrieved is determined;
When event major key quantity is less than preset second threshold, determines and currently retrieved using online retrieving mode;
Wherein the event major key includes following one or more kinds of information: main body major key, Time To Event, object
Major key.
It should be noted that the embodiment of the present invention can obtain returned data amount according to definite event major key quantity;Root
According to returned data amount information, it is determined whether currently retrieved by the way of online retrieving;Due to large batch of intensive retrieval
On-line system load can be increased moment, in order to which on-line system load is maintained at controlled range, and set second threshold.Second
Threshold value can according to the design parameter of current system, environment, pressure testing results, system it is desirable to keep that workload etc., by
Those skilled in the art carry out analysis setting.Event major key of the embodiment of the present invention describes main body and occurs at what time with object
What.By taking lodging event as an example, describe entity people (event body) when (Time To Event) moved in it is assorted
Hotel's (event object: hotel).
Optionally, cost evaluation of embodiment of the present invention unit is specifically used for:
According to the product of the average duration of the object query hit record number and object query currently retrieved, determine that entity is examined
Rope cost;When determining entity retrieval cost is greater than preset online retrieving maximum delay, determine using offline retrieval;Determining
When entity retrieves cost less than or equal to preset online retrieving maximum delay, determine using offline retrieval;And/or
According to the product of the average duration of the event query hit record number and event query currently retrieved, determine that event is examined
Rope cost;When definite event retrieves cost greater than preset online retrieving maximum delay, determine using offline retrieval;Determining
When fact retrieval cost is less than or equal to preset online retrieving maximum delay, determine using offline retrieval;.
It should be noted that the average duration of object query of the embodiment of the present invention and the average duration of event query can lead to
It crosses and is determined including following one or more kinds of information analyses: being obtained by performance test in specific deployed environment;Two, according to history
Query result statistical analysis obtains;Three, determination is rule of thumb analyzed by those skilled in the art.
In addition, information used in the progress cost calculating of cost evaluation strategy of the embodiment of the present invention can be by importing data
It obtains, some data targets of acquisition can be counted according to data are imported, comprising: the total number of records of certain tables of data, certain train value
Average value, maximum value, minimum value etc.;Importing data includes predefined knowledge mapping data (entity, event, relationship), with reality
For the gender attribute of body people, when importing by statistics of male, female ratio, the sex ratio of entity people can be obtained, that
In the entity people retrieval containing gender condition, it can show that the entity people that it is returned records the upper limit according to this condition.
Optionally, the device of that embodiment of the invention further includes retrieval unit, is used for:
It is currently retrieved according to determining retrieval mode, and search result is stored to preset storage region.
It should be noted that the preset storage region of the embodiment of the present invention includes: the platforms such as HDFS.In addition, if based on system
It counts and can determine that current search result for sky, then directly returns to empty set.
Compared with the relevant technologies, technical scheme includes: to convert the retrieval information that input is currently retrieved to sentence for retrieval
Disconnected information;Retrieval is judged that information passes through preset adaptation rule, it is determined whether currently retrieved using online retrieving mode;
When currently being retrieved by the way that adaptation rule is not determining using online retrieving mode, worked as according to the determination of preset cost evaluation strategy
It is preceding to retrieve the retrieval mode used;Wherein, the retrieval information is used to describe the search condition of searched targets;The retrieval mode
Including following one or more kinds of retrievals: online retrieving, offline retrieval.The embodiment of the present invention improves knowledge mapping system
Ease for use enhances the stability of searching system.
The embodiment of the present invention also provides a kind of computer storage medium, is stored with computer in the computer storage medium
Executable instruction, the method that above-mentioned analysis processing can be performed in the computer.
The embodiment of the present invention also provides a kind of terminal, comprising: memory and processor;Wherein,
Processor is configured as executing the program instruction in memory;
Program instruction reads in processor and executes following operation:
The retrieval information that conversion input is currently retrieved judges information for retrieval;
Retrieval is judged that information passes through preset adaptation rule, it is determined whether currently examined using online retrieving mode
Rope;
When currently being retrieved by the way that adaptation rule is not determining using online retrieving mode, according to preset cost evaluation plan
Slightly the retrieval mode used is currently retrieved in determination;
Wherein, the retrieval information is used to describe the search condition of searched targets;The retrieval mode includes following one kind
Or more than one retrievals: online retrieving, offline retrieval.
Those of ordinary skill in the art will appreciate that all or part of the steps in the above method can be instructed by program
Related hardware (such as processor) is completed, and described program can store in computer readable storage medium, as read-only memory,
Disk or CD etc..Optionally, one or more integrated circuits also can be used in all or part of the steps of above-described embodiment
It realizes.Correspondingly, each module/unit in above-described embodiment can take the form of hardware realization, such as pass through integrated electricity
Its corresponding function is realized on road, can also be realized in the form of software function module, such as is stored in by processor execution
Program/instruction in memory realizes its corresponding function.The present invention is not limited to the hardware and softwares of any particular form
In conjunction with.
Although disclosed herein embodiment it is as above, the content only for ease of understanding the present invention and use
Embodiment is not intended to limit the invention.Technical staff in any fields of the present invention is taken off not departing from the present invention
Under the premise of the spirit and scope of dew, any modification and variation, but the present invention can be carried out in the form and details of implementation
Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.
Claims (15)
1. a kind of method of analysis processing characterized by comprising
The retrieval information that conversion input is currently retrieved judges information for retrieval;
Retrieval is judged that information passes through preset adaptation rule, it is determined whether currently retrieved using online retrieving mode;
It is true according to preset cost evaluation strategy when currently being retrieved by the way that adaptation rule is not determining using online retrieving mode
The retrieval mode that retrieval uses before settled;
Wherein, the retrieval information is used to describe the search condition of searched targets;The retrieval mode includes following one kind or one
Kind or more retrieval: online retrieving, offline retrieval.
2. the method according to claim 1, wherein the adaptation rule includes that following one or more are sentenced
Disconnected rule:
Entity major key rule, event major key rule.
3. described according to the method described in claim 2, it is characterized in that, when the adaptation rule includes entity major key rule
Entity major key rule includes:
When determining that the retrieval is judged in information comprising the input of entity major key, the entity major key quantity currently retrieved is determined;
When entity major key quantity is less than preset first threshold, determines and currently retrieved using online retrieving mode.
4. described according to the method described in claim 2, it is characterized in that, when the adaptation rule includes event major key rule
Event major key rule includes:
When determining that the retrieval is judged in information comprising the input of event major key, the event major key quantity currently retrieved is determined;
When event major key quantity is less than preset second threshold, determines and currently retrieved using online retrieving mode;
Wherein the event major key includes following one or more kinds of information: main body major key, Time To Event, object master
Key.
5. method according to any one of claims 1 to 4, which is characterized in that described according to preset cost evaluation strategy
Determine that currently retrieving the retrieval mode used includes:
According to the product of the average duration of the object query hit record number and object query currently retrieved, determine that entity retrieves generation
Valence;When determining entity retrieval cost is greater than preset online retrieving maximum delay, determine using offline retrieval;Determining entity
When retrieving cost less than or equal to preset online retrieving maximum delay, determine using offline retrieval;And/or
According to the product of the average duration of the event query hit record number and event query currently retrieved, fact retrieval generation is determined
Valence;When definite event retrieves cost greater than preset online retrieving maximum delay, determine using offline retrieval;Definite event
When retrieving cost less than or equal to preset online retrieving maximum delay, determine using offline retrieval;.
6. method according to any one of claims 1 to 4, which is characterized in that after determining the retrieval mode currently retrieved, institute
State method further include:
It is currently retrieved according to determining retrieval mode, and search result is stored to preset storage region.
7. method according to any one of claims 1 to 4, which is characterized in that can not according to preset cost evaluation strategy
When the retrieval mode used is currently retrieved in determination, the method also includes:
Determination is currently retrieved by the way of retrieving offline.
8. a kind of device of analysis processing characterized by comprising converting unit, adaptation processing unit and cost evaluation unit;
Wherein,
Converting unit is used for: the retrieval information that conversion input is currently retrieved judges information for retrieval;
Adaptation processing unit is used for: retrieval being judged that information passes through preset adaptation rule, it is determined whether use online retrieving side
Formula is currently retrieved;
Cost evaluation unit is used for: when currently being retrieved by the way that adaptation rule is not determining using online retrieving mode, according to pre-
If cost evaluation strategy determination currently retrieve the retrieval mode used;
Wherein, the retrieval information is used to describe the search condition of searched targets;The retrieval mode includes following one kind or one
Kind or more retrieval: online retrieving, offline retrieval.
9. device according to claim 8, which is characterized in that the adaptation rule includes that following one or more are sentenced
Disconnected rule:
Entity major key rule, event major key rule.
10. device according to claim 8, which is characterized in that the adaptation processing unit is specifically used for:
When determining that the retrieval is judged in information comprising the input of entity major key, the entity major key quantity currently retrieved is determined;
When entity major key quantity is less than preset first threshold, determines and currently retrieved using online retrieving mode.
11. device according to claim 8, which is characterized in that the adaptation processing unit is specifically used for:
When determining that the retrieval is judged in information comprising the input of event major key, the event major key quantity currently retrieved is determined;
When event major key quantity is less than preset second threshold, determines and currently retrieved using online retrieving mode;
Wherein the event major key includes following one or more kinds of information: main body major key, Time To Event, object master
Key.
12. according to the described in any item devices of claim 8~11, which is characterized in that the cost evaluation unit is specifically used for:
According to the product of the average duration of the object query hit record number and object query currently retrieved, determine that entity retrieves generation
Valence;When determining entity retrieval cost is greater than preset online retrieving maximum delay, determine using offline retrieval;Determining entity
When retrieving cost less than or equal to preset online retrieving maximum delay, determine using offline retrieval;And/or
According to the product of the average duration of the event query hit record number and event query currently retrieved, fact retrieval generation is determined
Valence;When definite event retrieves cost greater than preset online retrieving maximum delay, determine using offline retrieval;Definite event
When retrieving cost less than or equal to preset online retrieving maximum delay, determine using offline retrieval;.
13. according to the described in any item devices of claim 8~11, which is characterized in that described device further includes retrieval unit, is used
In:
It is currently retrieved according to determining retrieval mode, and search result is stored to preset storage region.
14. a kind of computer storage medium, computer executable instructions, the calculating are stored in the computer storage medium
Method of the machine executable instruction for analysis processing described in any one of perform claim requirement 1~9.
15. a kind of terminal, comprising: memory and processor;Wherein,
Processor is configured as executing the program instruction in memory;
Program instruction reads in processor and executes following operation:
The retrieval information that conversion input is currently retrieved judges information for retrieval;
Retrieval is judged that information passes through preset adaptation rule, it is determined whether currently retrieved using online retrieving mode;
It is true according to preset cost evaluation strategy when currently being retrieved by the way that adaptation rule is not determining using online retrieving mode
The retrieval mode that retrieval uses before settled;
Wherein, the retrieval information is used to describe the search condition of searched targets;The retrieval mode includes following one kind or one
Kind or more retrieval: online retrieving, offline retrieval.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910026449.8A CN109828984B (en) | 2019-01-11 | 2019-01-11 | Analysis processing method and device, computer storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910026449.8A CN109828984B (en) | 2019-01-11 | 2019-01-11 | Analysis processing method and device, computer storage medium and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109828984A true CN109828984A (en) | 2019-05-31 |
CN109828984B CN109828984B (en) | 2021-06-08 |
Family
ID=66860876
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910026449.8A Active CN109828984B (en) | 2019-01-11 | 2019-01-11 | Analysis processing method and device, computer storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109828984B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110532375A (en) * | 2019-08-28 | 2019-12-03 | 北京网思科平科技有限公司 | A kind of atlas analysis scene generating method, system and storage medium |
CN110737775A (en) * | 2019-08-27 | 2020-01-31 | 南京源涂信息技术有限公司 | comprehensive evaluation system based on knowledge graph and target ontology |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101841423A (en) * | 2009-03-19 | 2010-09-22 | 大唐移动通信设备有限公司 | Network management system history performance data query method, device and network management system |
CN102081626A (en) * | 2009-11-30 | 2011-06-01 | 中国移动通信集团北京有限公司 | Data inquiring method and data inquiring server |
CN103812881A (en) * | 2012-11-06 | 2014-05-21 | 腾讯科技(深圳)有限公司 | Offline downloading control method and apparatus |
US8736612B1 (en) * | 2011-07-12 | 2014-05-27 | Relationship Science LLC | Altering weights of edges in a social graph |
US20150269261A1 (en) * | 2008-05-12 | 2015-09-24 | Enpulz, Llc | Web browser accessible search engine that identifies search result maxima through user search flow and result content comparison |
CN105359140A (en) * | 2013-04-25 | 2016-02-24 | 脸谱公司 | Variable search query vertical access |
CN106599060A (en) * | 2016-11-16 | 2017-04-26 | 竹间智能科技(上海)有限公司 | Method and system for obtaining user portrait |
CN106951465A (en) * | 2017-02-28 | 2017-07-14 | 深圳市华傲数据技术有限公司 | System failure positioning data analysing method and device |
CN107395406A (en) * | 2017-07-12 | 2017-11-24 | 广州市百果园信息技术有限公司 | The presence data processing method of on-line system, apparatus and system |
CN107577531A (en) * | 2016-07-05 | 2018-01-12 | 阿里巴巴集团控股有限公司 | Load-balancing method and device |
CN108090078A (en) * | 2016-11-22 | 2018-05-29 | 北京京东尚科信息技术有限公司 | The online method for previewing of document and device |
CN108416006A (en) * | 2018-02-28 | 2018-08-17 | 百度在线网络技术(北京)有限公司 | Information off-line recommends method, apparatus, client, server and storage medium |
US20180276544A1 (en) * | 2017-03-24 | 2018-09-27 | Facebook, Inc. | Accounting for long-term user interaction with an application in selection of content associated with the application by an online system |
CN109145201A (en) * | 2018-07-26 | 2019-01-04 | 百度在线网络技术(北京)有限公司 | A kind of approaches to IM based on block chain, device, equipment and storage medium |
-
2019
- 2019-01-11 CN CN201910026449.8A patent/CN109828984B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150269261A1 (en) * | 2008-05-12 | 2015-09-24 | Enpulz, Llc | Web browser accessible search engine that identifies search result maxima through user search flow and result content comparison |
CN101841423A (en) * | 2009-03-19 | 2010-09-22 | 大唐移动通信设备有限公司 | Network management system history performance data query method, device and network management system |
CN102081626A (en) * | 2009-11-30 | 2011-06-01 | 中国移动通信集团北京有限公司 | Data inquiring method and data inquiring server |
US8736612B1 (en) * | 2011-07-12 | 2014-05-27 | Relationship Science LLC | Altering weights of edges in a social graph |
CN103812881A (en) * | 2012-11-06 | 2014-05-21 | 腾讯科技(深圳)有限公司 | Offline downloading control method and apparatus |
CN105359140A (en) * | 2013-04-25 | 2016-02-24 | 脸谱公司 | Variable search query vertical access |
CN107577531A (en) * | 2016-07-05 | 2018-01-12 | 阿里巴巴集团控股有限公司 | Load-balancing method and device |
CN106599060A (en) * | 2016-11-16 | 2017-04-26 | 竹间智能科技(上海)有限公司 | Method and system for obtaining user portrait |
CN108090078A (en) * | 2016-11-22 | 2018-05-29 | 北京京东尚科信息技术有限公司 | The online method for previewing of document and device |
CN106951465A (en) * | 2017-02-28 | 2017-07-14 | 深圳市华傲数据技术有限公司 | System failure positioning data analysing method and device |
US20180276544A1 (en) * | 2017-03-24 | 2018-09-27 | Facebook, Inc. | Accounting for long-term user interaction with an application in selection of content associated with the application by an online system |
CN107395406A (en) * | 2017-07-12 | 2017-11-24 | 广州市百果园信息技术有限公司 | The presence data processing method of on-line system, apparatus and system |
CN108416006A (en) * | 2018-02-28 | 2018-08-17 | 百度在线网络技术(北京)有限公司 | Information off-line recommends method, apparatus, client, server and storage medium |
CN109145201A (en) * | 2018-07-26 | 2019-01-04 | 百度在线网络技术(北京)有限公司 | A kind of approaches to IM based on block chain, device, equipment and storage medium |
Non-Patent Citations (3)
Title |
---|
CHAO YIN ET.AL: "Offline and Online Search: UAV Multiobjective Path Planning Under Dynamic Urban Environment", 《IEEE INTERNET OF THINGS JOURNAL》 * |
YAN CHEN ET.AL: "A day without a search engine: an experimental study of online and offline searches", 《EXPERIMENTAL ECONOMICS》 * |
蔡宏艳 等: "DETECTOR:基于关系数据库通用的在线关键词查询系统", 《计算机研究与发展》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110737775A (en) * | 2019-08-27 | 2020-01-31 | 南京源涂信息技术有限公司 | comprehensive evaluation system based on knowledge graph and target ontology |
CN110532375A (en) * | 2019-08-28 | 2019-12-03 | 北京网思科平科技有限公司 | A kind of atlas analysis scene generating method, system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109828984B (en) | 2021-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109240901B (en) | Performance analysis method, performance analysis device, storage medium, and electronic apparatus | |
US5021992A (en) | Method of translating data from knowledge base to data base | |
CN108446305A (en) | The system and method for various dimensions service data statistics | |
US20180336247A1 (en) | Estimated query performance | |
US7089238B1 (en) | Method and apparatus for incremental computation of the accuracy of a categorization-by-example system | |
CN112749330B (en) | Information pushing method, device, computer equipment and storage medium | |
CN115577114A (en) | Event detection method and device based on time sequence knowledge graph | |
CN102298663A (en) | Method for automatically identifying syndrome type in traditional Chinese medical science | |
WO2024067387A1 (en) | User portrait generation method based on characteristic variable scoring, device, vehicle, and storage medium | |
CN116561542B (en) | Model optimization training system, method and related device | |
CN109828984A (en) | A kind of method, apparatus, computer storage medium and the terminal of analysis processing | |
CN107180087A (en) | A kind of searching method and device | |
CN116821646A (en) | Data processing chain construction method, data reduction method, device, equipment and medium | |
CN113987139A (en) | Knowledge graph-based visual query management system for software defect cases of aircraft engine FADEC system | |
CN117035563B (en) | Product quality safety risk monitoring method, device, monitoring system and medium | |
CN110874366A (en) | Data processing and query method and device | |
CN110717318B (en) | Intention-driven competition and cooperation intention adaptive content filling method | |
US20040015471A1 (en) | System and method for analytically modeling data organized according to a referenced attribute | |
CN110516024B (en) | Map search result display method, device, equipment and storage medium | |
TWI626550B (en) | Processing system and method for predicting system defect hotspot prediction | |
Xu et al. | Understanding human mobility: A multi-modal and intelligent moving objects database | |
CN114579619B (en) | Data query method and device, electronic equipment and storage medium | |
CN116225882B (en) | Command information system state monitoring and evaluating method | |
CN116432205A (en) | Safe storage method of carbon asset data | |
CN116701730A (en) | Universal aircraft case-based reasoning system and method based on multiple dynamic characteristics |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220602 Address after: 15, second floor, east side of clean coal workshop, No. 68, Shijingshan Road, Shijingshan District, Beijing 100043 (cluster registration) Patentee after: Beijing Zhizhi Heshu Technology Co.,Ltd. Address before: 102218 5th floor, building 1, China Coal Construction Group building, 398 Zhongdong Road, Dongxiaokou Town, Changping District, Beijing Patentee before: MININGLAMP SOFTWARE SYSTEMS Co.,Ltd. |
|
TR01 | Transfer of patent right |