A kind of processing method of relational data, device, server and medium
Technical field
The present invention relates to Internet technical field more particularly to a kind of processing methods of relational data, device, server
And medium.
Background technique
In the network platform with mass data, data volume is huge, broad categories, it is desirable to check quickly fastly in numerous data
It finds target data and generally requires the plenty of time.
According to the correlation between data, one can be provided and be easy to observe comparison, it is excessively intensive efficiently to solve data
It is unfavorable for the scheme of observation.
Summary of the invention
The embodiment of the invention provides a kind of processing method of relational data, device, server and media.
In a first aspect, massive relation type data are obtained the present invention provides a kind of processing method of relational data, it is described
Massive relation type data include the first data and the second data;First data are determined as to the displaying position of first layer view
It sets;Second data are determined as to the display location of second layer view, wherein the first layer view and second layer view category
In different displaying views, and, the first layer view is the upper displaying view of second layer view.
Second aspect, the present invention provides a kind of processing unit of relational data, described device includes: massive relation type
Data acquiring unit, for obtaining massive relation type data, the massive relation type data include the first data and the second data;
First data determination unit, for first data to be determined as to the display location of first layer view;Second data determine single
Member, for second data to be determined as to the display location of second layer view, wherein the first layer view and second layer view
Figure belongs to different displaying views, and, the first layer view is the upper displaying view of second layer view.
The third aspect, this specification embodiment provide a kind of server, including memory, processor and are stored in memory
Computer program that is upper and can running on a processor, the processor is realized when executing described program to close described in any of the above-described
The step of being the processing method of type data.
Fourth aspect, this specification embodiment provide a kind of computer readable storage medium, are stored thereon with computer journey
Sequence, when which is executed by processor the step of the processing method of relational data described in realization any of the above-described.
Said one or multiple technical solutions in this specification embodiment at least have following one or more technology effects
Fruit:
This specification embodiment is classified as two-stage data, and two-stage data have by obtaining massive relation type data
There is the superior and the subordinate's incidence relation, is that first layer view and second layer view are shown by data link according to its relevance, it can be with
It solves the problems, such as that data are excessively intensively unfavorable for observation, reaches free switching between two-stage data, more conducively observation compares, efficiently
It solves relational graph net, show the source more segmented in its flow direction and the technical effect of whereabouts.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of the processing method of relational data in the embodiment of the present invention;
Fig. 2 is a kind of display schematic diagram of the processing method of relational data in the embodiment of the present invention;
Fig. 3 is a kind of another display schematic diagram of the processing method of relational data in the embodiment of the present invention;
Fig. 4 is a kind of default location display schematic diagram of the processing method of relational data in the embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of the processing unit of relational data in the embodiment of the present invention;
Fig. 6 is the structural schematic diagram of the processing unit of another relational data in the embodiment of the present invention
Specific embodiment
In order to better understand the above technical scheme, below by attached drawing and specific embodiment to this specification embodiment
Technical solution be described in detail, it should be understood that the specific features in this specification embodiment and embodiment are to this explanation
The detailed description of book embodiment technical solution, rather than the restriction to this specification technical solution, in the absence of conflict,
Technical characteristic in this specification embodiment and embodiment can be combined with each other.
The embodiment of the invention provides a kind of processing methods of relational data, are excessively intensively unfavorable for for solving data
The technical issues of observation.
In the technical solution of this specification embodiment, by acquisition massive relation type data, two-stage data are classified as,
And two-stage data have the superior and the subordinate's incidence relation, and according to its relevance, by data link be first layer view and the second layer is
Figure is shown, and be can solve the problem of data are excessively intensively unfavorable for observation, is reached free switching between two-stage data, more sharp
It is compared in observation, efficiently solves the technical effect of relational graph net.
The terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates that there may be three kinds of passes
System, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.In addition, herein
Middle character "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Embodiment one
Fig. 1 is the relational data application scenarios schematic diagram that this specification embodiment provides, in user, that is, user side packet
Include display equipment 10, mouse pointer equipment 20;It include server 30 in network side, server 30 sends data and view information
To the display equipment 10 of user side, user passes through the view and number in 20 pairs of mouse pointer equipment display equipment 10 in user side
According to being selected, server side carries out data processing for the selection that user side is made.
Fig. 1 is a kind of flow diagram of the processing method of relational data in the embodiment of the present invention.As shown in Figure 1, packet
It includes:
Step 110: obtaining massive relation type data, the massive relation type data include the first data and the second data;
Specifically, the processing method of this specification relational data as described in the examples is shown applied to web data
And data selection, relational data is the data with relation mathematic model to indicate.With the shape of bivariate table in relation mathematic model
Formula describes data, that is to say, that includes first data and the second number in these data there are mass data in the bivariate table
It is the two-dimentional relation for meeting bivariate table according to, first data and the second data, in other words, first data include described the
Two data, the set of second data belong to the set of first data.
For example, so, straight with homepage in place as shown in Fig. 2, by homepage is considered the first data in place in figure
Connect the associated secondary data for going help page to be considered homepage in place, i.e. the second data, that is to say, that remove the set category of help page
In the set of the data of homepage in place.
For another example, help page will be gone to be considered the first data in figure, then, with the lower series for going help page to be directly linked
It is the second data according to details page of seeking help, that is to say, that the data acquisition system of details of seeking help page belongs to the data knot of help page
It closes.,
It should be noted that the correlation between data is in massive relation type data in embodiments of the present invention
In contrast, for example, help page is gone to can be used as the first data, the second data be can also be used as, that is, if going help page phase
It is the first data for the data of its next stage;It is the if going help page for the data of upper level
Two data.
Step 120: first data are determined as to the display location of first layer view;
Step 130: second data are determined as to the display location of second layer view, wherein the first layer view
Belong to different displaying views with second layer view, and, the first layer view is the upper displaying view of second layer view.
Specifically, first layer view and second layer view are in contrast and nisi first layer view or the
Layer-2 View determines it as the display location of first layer view that is, if it is the first data that data, which are identified as,;If number
According to being identified as being the second data, then the display location of second layer view is determined it as.
For example, as shown in Fig. 2, by homepage is considered the first data in place in figure, then this of homepage in place is shown
Region is considered as first layer view, so, goes help page to be considered homepage in place with what homepage in place was directly linked
Secondary data, i.e. the second data, then it is considered as second layer view that this region of help page is gone in display.That is, display
This region of homepage is the upper displaying view that help this region of page is gone in display in place.
For another example, help page will be gone to be considered the first data in figure, then display goes to this region of help page to be considered
It is first layer view, then, details page of seeking help with the junior's data for going help page to be directly linked is the second data, then display is asked
This region for helping details page is considered as second layer view.That is, removing help page is the upper displaying of details page of seeking help
View.
It should be noted that the first layer view mentioned in step 120 is the displaying of the first data described in step 110
Position, the data information that the first data are linked as first layer view can obtain by the display location of first layer view
One data;The second layer view mentioned in step 130 is the display location of the second data described in step 110, the second data
As the data information of second layer view link, the second data can be obtained by the display location of second layer view.
Further, the first layer view can be selected by hover selector;The second layer view can be by
Selected by hover selector, wherein the method also includes: obtain the first position of mouse pointer;When the first position position
When the position of the first layer view, the first layer view is selected, and is highlighted;And/or when described
When one position is located at the position of the second layer view, the second layer view is selected, and is highlighted.
Specifically, hover selector is for selecting mouse pointer to float in element above.It can be used for all elements,
More than link.So hover selector equally can choose first layer view and second layer view.As shown in figure 3, if mouse
Mark pointer, which is located at, to be gone on help page, and help page is gone to be selected by mouse pointer, meanwhile, go help page to be highlighted, similarly
, if homepage is selected by mouse pointer in place, display is highlighted in homepage in place.That is, first of mouse pointer
When setting in first layer view or second layer view, display will be highlighted in the first layer view or second layer view,
Expression is selected by mouse pointer, and is not selected as distinguishing, while being also easy to observe.
Further, the method also includes: when the first layer view by hover selector select when, the second layer view
Figure is switched to display state from hidden state.Wherein, the second layer view has N number of display unit, wherein described N number of aobvious
Show that unit can be selected by hover selector, wherein when any one of described N number of display unit is by hover selector
When choosing, the display unit is highlighted.
Specifically, the second layer view is in front of the first layer view is not by the selection of hover selector
Hidden state, when the first layer view is selected, the second layer view is switched to display state from hidden state, citing
For, as shown in figure 3, if help page is gone to be selected by mouse pointer, removing help page when going help page as first layer view
The second layer view display state can be switched to from hidden state, for another example, when homepage is as first layer view in place, if arrived
Position homepage is selected by mouse pointer, and the second layer view of homepage will be converted to actual state from hidden state in place, wherein is needed
Illustrate, the second layer view may include N number of display unit, and different display units represent different classes of, work as first layer
When view is selected, this N number of display unit is switched to display state from hidden state, and mouse pointer is waited to select, such as to
When position homepage is selected as first layer view by mouse pointer, N number of display unit of second layer view includes to remove help page, hair
The display unit that existing service page, the discovery page, classification screening page etc. directly connect, these display units can be from hiding shape
State is switched to actual state, waits mouse pointer selection, if mouse pointer has selected to remove help page, goes help page that will become
Display is highlighted, at the same time, goes help page for its next layer of view, is existed in the form of first layer view
, above-mentioned display rule is equally followed, i.e., when going help page to be selected, second layer view seeks help details page can be from hiding change
For actual state.The view in such display mode prominent source more segmented illustrated in its flow direction and whereabouts, effectively solves
The case where intensive relational graph of having determined is blocked.
Further, before the first position for obtaining mouse pointer, the method also includes: it obtains and shows default position
It sets;When the displaying default location is the position of first layer view, the first layer view is selected, and is highlighted aobvious
Show.
Specifically, if mouse pointer does not make a choice, that is to say, that first layer view and second layer view do not have
It is selected by mouse pointer, displaying information in this way is at default conditions, is selected as shown in figure 4, the first layer view is in
State is highlighted simultaneously.
Further, when the hover selector chooses white space, cancel second layer view and be highlighted or the
The state that one layer of view is highlighted, wherein the white space is without display first layer view and second layer view
Region.
Specifically, if hover selector has selected the region for being not belonging to second layer view and first layer view, also
When being white space, at this moment if first layer view is selected, first layer view will become the viewstate of default location;Such as
Fruit is that second layer view is selected, and second layer view will be switched to hidden state by display state, reverts to default location
Viewstate.
Further, the method also includes: obtain the first data the first data volume;Obtain the second number of the second data
According to amount;When first data volume is greater than second data volume, the display area of the first layer view is greater than described the
The display area of Layer-2 View.
Specifically, the display area of the first layer view is related to the size of the data volume of the first data, the second layer
The display area of view is related to the size of the data volume of the second data, if the first data volume of the first data is greater than the second number
According to the second data volume, the display area of first layer view is greater than the display area of second layer view, can by display area
Intuitively to observe the size of data volume corresponding with display area, data are intuitively changed by way of view.
Further, the method also includes the modes of another access second layer view: obtain the first instruction, described the
One instruction is that the first data in first layer view are retrieved;It will be where the first layer view according to first instruction
It shows in page and shows the second layer view.
Specifically, the first instruction is the first data in the first layer view selected mouse pointer, retrieved, i.e.,
It, can be directly in its first layer if necessary to the data in some display unit in quickly direct access second layer view
It is retrieved in view, directly finds the display unit in the second layer view for needing to access.This mode can be more quick straight
The access target display unit connect.
Embodiment two
The processing method that this specification embodiment additionally provides a kind of relational data is directed to the operation instruction of user, tool
Body is as follows;
A kind of processing method for relational data that this specification embodiment provides, which can be applied to webpage, to be applied
In application program, user can access by web page access or by application program, after user's successful access,
Before not operated, the default view state in first layer view, i.e. first layer view are in and display shape are highlighted
State.It is described if mouse selects first layer view if user begins to use mouse pointer to select first layer view
First layer view will become that display is highlighted, and second layer view is switched to display state from hidden state, wherein the second layer
Include N number of display unit in view, respectively represent different classes of, be available for users to selection, if user's mouse selects second
One of display unit in layer view, then the display unit is for its next layer of view, with first layer view
Identity exist, at this moment, second layer view is switched to display state from hidden state, may include multiple displays similarly
Unit is available for users to the classification that selection more refines;If mouse selects white space, is selected cancelling, be restored to default shape
State.
This specification embodiment additionally provides another method for searching data, if the mesh required to look up known to user
Mark data, then it can be by carrying out retrieval to first layer view, it can be fast and accurately in the second layer by retrieval
The target data of user's needs is found in the numerous data of view,
Embodiment three
Based on inventive concept same as the processing method of relational data a kind of in previous embodiment, the present invention also provides
A kind of processing unit of relational data, as shown in Figure 4, comprising:
Massive relation type data acquiring unit, for obtaining massive relation type data, the massive relation type data include
First data and the second data;
First data determination unit, for first data to be determined as to the display location of first layer view;
Second data determination unit, for second data to be determined as to the display location of second layer view, wherein institute
It states first layer view and second layer view belongs to different displaying views, and, the first layer view is the upper of second layer view
Position shows view.
In a kind of optional implementation, the first layer view can be selected by hover selector;The second layer
View can be selected by hover selector, wherein described device further include:
Mouse pointer position obtaining unit, for obtaining the first position of mouse pointer;
Mouse pointer position first selecting unit, the institute for being located at the first layer view when the first position are in place
When setting, the first layer view is selected, and is highlighted;
And/or
The second selecting unit of mouse pointer position, the institute for being located at the second layer view when the first position are in place
When setting, the second layer view is selected, and is highlighted.
In a kind of optional implementation, before the first position for obtaining mouse pointer, described device further include:
It shows default location obtaining unit, shows default location for obtaining;
Show default location selecting unit, for when it is described displaying default location be first layer view position when,
The first layer view is selected, and is highlighted.
In a kind of optional implementation, described device further include:
Second layer view switch unit is used for when the first layer view is selected by hover selector, second layer view
Display state is switched to from hidden state.
In a kind of optional implementation, described device further include:
Wherein, the second layer view has N number of display unit, wherein N number of display unit can be selected by hover
It selects selected by device, wherein
Unit is highlighted, for when any one of described N number of display unit is chosen by hover selector, institute
Display unit is stated to be highlighted.
In a kind of optional implementation, described device further include:
Cancel display unit, is highlighted for when the hover selector chooses white space, cancelling second layer view
The state that display or first layer view are highlighted, wherein the white space is without display first layer view and second
The region of layer view.
In a kind of optional implementation, described device further include:
First data volume obtaining unit, for obtaining the first data volume of the first data;
Second data volume obtaining unit, for obtaining the second data volume of the second data;
When first data volume is greater than second data volume, the display area of the first layer view is greater than described
The display area of second layer view.
In a kind of optional implementation, described device further include:
First instruction obtaining unit, for obtaining the first instruction, first instruction is the first number in first layer view
According to being retrieved;
Second layer view display unit, will be in the displaying page where the first layer view for instructing according to described first
Show the second layer view.
The various change mode and specific example of one of 1 embodiment one of the earlier figures processing method of relational data are same
Sample is suitable for a kind of processing unit of relational data of the present embodiment, passes through a kind of aforementioned processing method to relational data
Detailed description, those skilled in the art are clear that a kind of reality of the processing unit of relational data in the present embodiment
Applying method, so this will not be detailed here in order to illustrate the succinct of book.
Example IV
Based on inventive concept same as the processing method of relational data a kind of in previous embodiment, the present invention also provides
A kind of server, as shown in figure 3, including memory 304, processor 302 and being stored on memory 304 and can be in processor
The computer program run on 302, the processor 302 realize abnormal transaction identification method described previously when executing described program
Either method the step of.
Wherein, in Fig. 3, bus architecture (is represented) with bus 300, and bus 300 may include any number of interconnection
Bus and bridge, bus 300 will include the one or more processors represented by processor 302 and what memory 304 represented deposits
The various circuits of reservoir link together.Bus 300 can also will peripheral equipment, voltage-stablizer and management circuit etc. it
Various other circuits of class link together, and these are all it is known in the art, therefore, no longer carry out further to it herein
Description.Bus interface 306 provides interface between bus 300 and receiver 301 and transmitter 303.Receiver 301 and transmitter
303 can be the same element, i.e. transceiver, provide the unit for communicating over a transmission medium with various other devices.
Processor 302 is responsible for management bus 300 and common processing, and memory 304 can be used for storage processor
302 when executing operation used data.
On the other hand, based on the inventive concept with transaction identification abnormal in previous embodiment, the present invention also provides a kind of meters
Calculation machine readable storage medium storing program for executing, is stored thereon with computer program, which realizes abnormal friendship described previously when being executed by processor
The step of either method easy to identify method.
This specification is referring to the method, equipment (system) and computer program product according to this specification embodiment
Flowchart and/or the block diagram describes.It should be understood that can be realized by computer program instructions every in flowchart and/or the block diagram
The combination of process and/or box in one process and/or box and flowchart and/or the block diagram.It can provide these computers
Processor of the program instruction to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices
To generate a machine, so that generating use by the instruction that computer or the processor of other programmable data processing devices execute
In setting for the function that realization is specified in one or more flows of the flowchart and/or one or more blocks of the block diagram
It is standby.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of equipment, the commander equipment realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment of this specification has been described, once a person skilled in the art knows basic wounds
The property made concept, then additional changes and modifications may be made to these embodiments.So the following claims are intended to be interpreted as includes
Preferred embodiment and all change and modification for falling into this specification range.
Obviously, those skilled in the art can carry out various modification and variations without departing from this specification to this specification
Spirit and scope.In this way, if these modifications and variations of this specification belong to this specification claim and its equivalent skill
Within the scope of art, then this specification is also intended to include these modifications and variations.