CN106649375A - Method and equipment for processing relational data - Google Patents

Method and equipment for processing relational data Download PDF

Info

Publication number
CN106649375A
CN106649375A CN201510729843.XA CN201510729843A CN106649375A CN 106649375 A CN106649375 A CN 106649375A CN 201510729843 A CN201510729843 A CN 201510729843A CN 106649375 A CN106649375 A CN 106649375A
Authority
CN
China
Prior art keywords
relation
main body
list item
type
data
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
CN201510729843.XA
Other languages
Chinese (zh)
Other versions
CN106649375B (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510729843.XA priority Critical patent/CN106649375B/en
Publication of CN106649375A publication Critical patent/CN106649375A/en
Application granted granted Critical
Publication of CN106649375B publication Critical patent/CN106649375B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/288Entity relationship models

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)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for processing relational data. The method comprises the steps that after main information of all main bodies and relational information between the main bodies in the relational data are determined, a relational main body table corresponding to the main body type of the first main body is acquired, and a first table item including the type ID of the first main body, a second table item including the corresponding relation of a relation ID and the type ID of the second main body and a third table item including the relational information are generated; finally, the corresponding relation among the first table item, the second table item, the third table item, the relational main body table and the main body value of the first main body is set up. According to the method, adaptation of any relation data can be achieved, the requirement on the specific environment can be reduced, therefore, the relational data is fast processed, resource expenses are reduced, and the resource utilization rate is increased.

Description

A kind of relation data processing method and equipment
Technical field
The application is related to communication technical field, more particularly to a kind of relation data processing method.The application also relates to a kind of relation data processing equipment.
Background technology
With the continuous development of internet, people increasingly tend to carry out activity and communication with other users by website and other platforms.For the network user, website or platform typically provide exclusive service by registering account number as it.The network user is mutually linked by its user name each oneself drafted in a network in internet, therefore the relational network and relation data of magnanimity are there is in internet.
Relational network is a kind of organizational form based on " network " (being connected with each other between node) rather than " colony " (clear and definite border and order), and this network is associated based on certain relation.For example, A, B are associated by relation one, B, and C is associated by relation two, and C, D are associated by relation three etc., then A, B, C, D etc. are based on various associations and are built into a network.In prior art generally by way of the visualization of implementation relation and network and static chart or interactive visual representing come implementation relation network, so as to further be excavated or matching treatment to data.
For platform operation business, with the development of its business, the data of accumulation will be more and more, and the various relations and structure relational network that contain in excavation mass data can preferably meet the analysis demand of business team.However, building for conventional relationship network generally is directed to the special relation data processing scheme of specific environment customisations, i.e., can only be processed for a certain relationship type.When new relationship type is occurred in that, need to develop again during expansion relation.Various uncertainty relationships in big data, because the species of relation is various, technical staff has often been difficult to energy for going to develop a set of code per class relation.
As can be seen here, it is higher that relation data processing scheme in the face of each conventional relationship network of the prior art customizes degree, need to arrange or develop different processing schemes for different relation datas, lack extensibility, in the case of in the face of massive relation data, prior art work disposal inefficiency.
The content of the invention
This application provides a kind of relation data processing method, to the quick horizontal extension of implementation relation network, so as to reducing resource overhead and lifting resource utilization.The method is comprised the following steps:
Determine the main information of each main body in relation data, and the relation information between the main body, the main body includes the first main body and the second main body, the main information at least includes main body value, body attribute and type ID corresponding with type of subject of the main body, and the relation information at least includes relations I D corresponding with relationship type;
Relation body table corresponding with the type of subject of first main body is obtained, the relation body table includes type ID of first main body and the corresponding relation of the body attribute of first main body;
The first list item, second list item comprising relations I D with the corresponding relation of type ID of second main body of type ID comprising first main body, and the 3rd list item comprising the relation information are generated respectively;
Set up the main body value corresponding relation of first list item, second list item, the 3rd list item, the relation body table and first main body.
Preferably, methods described is applied to the relational network adaptation layer in relational network system, and the relational network system also includes data Layer, relation Business Logic and front end presentation layer;
Wherein, the relational network adaptation layer is on the data Layer.
Preferably, first list item, second list item, the 3rd list item and the relation body table are configured at the relational network adaptation layer;Shown relation data is generated according to default total relation data interface protocol specification.
Preferably, the first list item corresponding with the type of subject is obtained, specially:
The current relation body table with the presence or absence of type ID comprising first main body of inquiry;
If existing, using the relation body table as first list item;
If not existing, the relation body table of type ID comprising first main body is created, and using the relation body table as first list item.
Preferably, after the main body value corresponding relation for setting up first list item, second list item, the 3rd list item, the relation body table and first main body, also include:
When the relational data access request for coming from user is received, according to the relation body table that there is currently, to the user currently valid type of subject is shown;
Corresponding relation according to corresponding to the main body value of the type of subject, relationship type and input that select with the user, obtains relation data corresponding with the corresponding relation;
According to the relation data production Methods network, and show the relational network to the user.
Preferably, the corresponding relation according to corresponding to the main body value of the type of subject, relationship type and input that select with the user obtains relation data corresponding with the corresponding relation, specially:
The type of subject selected according to the user and the main body value of input, obtain the first list item corresponding with type ID of the type of subject and main body value;
According to the corresponding relation, currently the second list item corresponding with first list item is obtained;
According to the second acquired list item to the user show currently with type ID and the main body corresponding relationship type of value;
According to the configuration information of the user input, and corresponding second list item of selected relationship type, it is determined that with second list item, first list item and the main body corresponding corresponding relation of value;
The relation data is generated according to the corresponding relation.
Preferably, the 4th list item and the 5th list item are also included in the relation data, the 4th list item includes the corresponding relation of relations I D and main body display properties, and the 5th list item includes the corresponding relation of type ID and relation display properties.
Preferably, according to the relation data production Methods network, and the relational network is shown to the user, specially:
Filtered and rendered according to the main body display properties of the 4th list item and the relation display properties of the 5th list item.
Correspondingly, present invention also provides a kind of relation data processing equipment, including:
Determining module, the main information of each main body in for determining relation data, and the relation information between the main body, the main body includes the first main body and the second main body, the main information at least includes main body value, body attribute and type ID corresponding with type of subject of the main body, and the relation information at least includes relations I D corresponding with relationship type;
Acquisition module, for obtaining relation body table corresponding with the type of subject of first main body, the relation body table includes type ID of first main body and the corresponding relation of the body attribute of first main body;
Generation module, for generating the first list item of type ID comprising first main body, the second list item comprising relations I D with the corresponding relation of type ID of second main body, and the 3rd list item comprising the relation information respectively;
Module is set up, for setting up first list item, second list item, the 3rd list item, the relation body table and the main body value corresponding relation of first main body.
Preferably, methods described is applied in relational network system as relational network adaptation layer, and the relational network system also includes data Layer, relation Business Logic and front end presentation layer;Wherein, the relational network adaptation layer is on the data Layer.
Preferably, first list item, second list item, the 3rd list item and the relation body table are configured at the relational network adaptation layer;Shown relation data is generated according to default total relation data interface protocol specification.
Preferably, the acquisition module obtains the first list item corresponding with the type of subject, specially:
The current relation body table with the presence or absence of type ID comprising first main body of inquiry;
If existing, using the relation body table as first list item;
If not existing, the relation body table of type ID comprising first main body is created, and using the relation body table as first list item.
Preferably, the module of setting up also includes after the main body value corresponding relation for setting up first list item, second list item, the 3rd list item, the relation body table and first main body:
When the relational data access request for coming from user is received, according to the relation body table that there is currently, to the user currently valid type of subject is shown;
Corresponding relation according to corresponding to the main body value of the type of subject, relationship type and input that select with the user, obtains relation data corresponding with the corresponding relation;
According to the relation data production Methods network, and show the relational network to the user.
Preferably, the corresponding relation for setting up module according to corresponding to the main body value of the type of subject, relationship type and input that select with the user obtains relation data corresponding with the corresponding relation, specially:
The type of subject selected according to the user and the main body value of input, obtain the first list item corresponding with type ID of the type of subject and main body value;
According to the corresponding relation, currently the second list item corresponding with first list item is obtained;
According to the second acquired list item to the user show currently with type ID and the main body corresponding relationship type of value;
According to the configuration information of the user input, and corresponding second list item of selected relationship type, it is determined that with second list item, first list item and the main body corresponding corresponding relation of value;
The relation data is generated according to the corresponding relation.
Preferably, described foundation in the relation data that module is generated according to the corresponding relation also includes the 4th list item and the 5th list item, 4th list item includes the corresponding relation of relations I D and main body display properties, and the 5th list item includes the corresponding relation of type ID and relation display properties.
Preferably, the module of setting up is according to the relation data production Methods network, and shows the relational network to the user, specially:
Filtered and rendered according to the main body display properties of the 4th list item and the relation display properties of the 5th list item.
By the technical scheme using the application, it is determined that after the relation information in relation data between the main information of each main body and the main body, obtain relation body table corresponding with the type of subject of first main body, and respectively generation includes the first list item of type ID of first main body, the second list item comprising relations I D with the corresponding relation of type ID of second main body, and the 3rd list item comprising the relation information, finally set up first list item, second list item, 3rd list item, the main body value corresponding relation of the relation body table and first main body.The method can not only realize the adaptation of any relation data, reduce the requirement to specific environment, so as to quickly be processed for relation data, reduce resource overhead and lift resource utilization.
Description of the drawings
Fig. 1 is a kind of schematic flow sheet of relation data processing method that the application is proposed;
Fig. 2 is a kind of structural representation of relation data processing equipment that the application is proposed;
Specific embodiment
In view of the technical problem proposed in background technology, present applicant proposes a kind of relation data processing method, the method can not only realize the adaptation processing of any relation data, so as to reducing the requirement to specific environment and providing the quick horizontal extension of relation, but also can decouple data and front end system, only different relation datas need to be provided, it is possible to different relational networks are quickly presented.
In current database development technology, the mode of three-tier architecture (3-tier architecture) is usually taken.Therefore an existing completeness relation network system mainly include three parts such as data Layer, relation Business Logic, front end presentation layer from processing function module to divide in the technical scheme of the application.The function of each layer is as follows:
(1) data access layer:Completed for each operation to data file using each function;
(2) Business Logic:The main operation being responsible for data Layer, and the operation of some data Layers is combined.
(3) front end presentation layer:The main request to user receives, and the return of data, for the access that client provides application program.
For the quick horizontal extension of implementation relation network, so as to reducing resource overhead and lifting resource utilization.Technical scheme with the addition of an adaptation layer on data Layer, referred to herein as " a kind of method and apparatus of the quick horizontal extension of relational network ", for decoupling data and business, to relation data quick extendible service be provided.
As shown in figure 1, a kind of schematic flow sheet of the relation data processing method proposed for the application, comprises the following steps:
Step S101, determine the main information of each main body in relation data, and the relation information between the main body, the main body includes the first main body and the second main body, the main information at least includes main body value, body attribute and type ID corresponding with type of subject of the main body, and the relation information at least includes relations I D corresponding with relationship type.
Quickly extended and decoupled because the application aims to existing relational network system, therefore relational network adaptation layer is provided with the relational network system including data Layer, relation Business Logic and front end presentation layer particular for property in the preferred embodiment of the application, the relational network adaptation layer is on data Layer.In further concrete application scene, the relational network adaptation layer is divided into by function services:Data-interface is serviced and system route service;From data base logic model partition:Including relation database table and route maintenance table two parts, route maintenance table contains the first list item involved in lower subsequent step, the second list item, the 3rd list item and relation body table and is configured at relational network adaptation layer.They are mainly used in safeguarding various relationship metadatas, and provide routing iinformation for front end system, and according to the different query analysis demands of user, by these routing iinformations, obtaining real relation data carries out visualization presentation.
Relation data is used for building the data of relational network, these data are organized according to the total relation data interface protocol that device is provided, for certain relation data, it generally comprises certain relation between multiple objects (generally two objects).For the object included in relation data, the application is classified as main body.One relation data is mainly made up of main body therein and relation.For each main body, the application is provided with unique corresponding mark for its type, value of the information that it is included at least including the main body, the attribute of the main body and with the ID corresponding to the type of the main body.Relationship type equally also has unique corresponding mark ID.Main body CODE is the unique mark of various relation main bodys, for distinguishing different main bodys in relational network;Relation CODE is the unique mark of various relations, for distinguishing different relations in relational network;Require unique.For example:Main body one:Mobile phone, main body two:People, relation:Binding relationship;Here can be defined as:The CODE of mobile phone body:phone;The CODE of user agent:user;The CODE of binding relationship:1001.
Meanwhile, in order to meet different relation scene and consider from versatility requirement, the value of the second main body is designed to the form of KEY-VALUE:K1=V1, K2=V2, K3=V3;The value of the associated plurality of main body two of K1=V4, K2=V5, K3=V6, one main body one, is all put into a field, is stitched together according to K-V format specifications above.
To build extendible relational network, the preferred embodiment of the application has been specifically designed for production Methods data general-purpose relation data interface protocol specification, and during specific use, the normative content is as shown in table 1 below:
Table 1
In order to make relation data evenly distributed as far as possible on the basis of ensureing that data are unique, the application is as follows for the setting protocol specification of the major key ROWKEY of the protocol specification table of relation above data:
It is MD5 (main body 1CODE+ main body 1VALUE+ relation CODE+ main body 2CODE+ date (digits of timestamp 10)+custom attributes (if there is)) (first 8) _ main body 1CODE_ main body 1VALUE_ relation CODE_ main body 2CODE_ dates (digits of timestamp 10) _ amount of money stepping (if there is), as shown in table 2 below:
Table 2
Step S102, obtains relation body table corresponding with the type of subject of first main body, and the relation body table includes type ID of first main body and the corresponding relation of the body attribute of first main body.
In a preferred embodiment, the application is provided with first relation body table, for recording relation data in primary body (the first main body) and its corresponding attribute.In concrete scene, relation body table is mainly used in decoupling the customized development of front end system, there is provided relation menu sheet first comprising the relation menu sheet shown in table 1 below, preserves the menu page content that foreground represents:
Table 3
Simultaneously, for the attribute of relation body table, relation body attribute allocation list can also be in addition set and stored, it is mainly used in preserving body attribute configuration information, code, front end page including main body needs attribute and display type for showing etc., as shown in table 4 below:
Table 4
It should be noted that being only a kind of preferred embodiment that the application specific embodiment is proposed as explanation " relation body table " with upper table 3 and table 4, other can realize that the scheme of effect same belongs to the protection domain of the application.
Step S103, generates respectively the first list item, second list item comprising relations I D with the corresponding relation of type ID of second main body of type ID comprising first main body, and the 3rd list item comprising the relation information.
When a new pending relation data is received, the application will determine that have recorded identical type of subject whether first, in a preferred embodiment, this step inquires about first the current relation body table with the presence or absence of type ID comprising first main body, if existing, using the relation body table as first list item;If not existing, the relation body table of type ID comprising first main body is created, and using the relation body table as first list item.
In specific implementation process, the application specific embodiment preserves the basic map information of various relations in the relational network of front end using relation routing table as shown in table 5 below, including information such as menu, relation, object table (HBase), current agent objects, the routing function of offer relation, is easy between various relations rapidly series connection and gets through.
Table 5
Simultaneously, the application specific embodiment also preserves the nodal information of various relation main bodys in the relational network of front end using relation body table as shown in table 6 below, code, description, icon including main body, whether effectively, body attribute details route target table (HBase) etc., the dynamic configuration of realization body, the exploitation of decoupling front end.
Table 6
Step S104, sets up the main body value corresponding relation of first list item, second list item, the 3rd list item, the relation body table and first main body.
Because relation data is the data for building relational network, these data are organized according to the total relation data interface protocol that device is provided, and route maintenance table is then, for safeguarding various relationship metadatas, and to provide routing iinformation for front end system.Therefore the application can be according to the different query analysis demands of user, and by these routing iinformations, obtaining real relation data carries out visualization presentation.
In the present embodiment, for the inquiry operation after corresponding relation foundation, i.e., when the relational data access request for coming from user is received, according to the relation body table that there is currently, to the user currently valid type of subject is shown;Subsequently the corresponding relation according to corresponding to the main body value of the type of subject, relationship type and input that select with the user, obtains relation data corresponding with the corresponding relation;Finally according to the relation data production Methods network, and show the relational network to the user.
Further, in the present embodiment, the generating mode of relation data is as follows:
Type of subject and the main body value of input that step a) is selected according to the user, obtain the first list item corresponding with type ID of the type of subject and main body value;
Step b) obtains currently the second list item corresponding with first list item according to the corresponding relation;
Step c) according to the second acquired list item to the user show currently with type ID and the main body corresponding relationship type of value;
Step d) is according to the configuration information of the user input, and corresponding second list item of selected relationship type, it is determined that with second list item, first list item and the main body corresponding corresponding relation of value;
Step e) generates the relation data according to the corresponding relation.
In order to preferably be shown to relation data, in a preferred embodiment of the application, also include the 4th list item and the 5th list item in the relation data, 4th list item includes the corresponding relation of relations I D and main body display properties, 5th list item includes the corresponding relation of type ID and relation display properties, and is filtered and rendered according to the main body display properties of the 4th list item and the relation display properties of the 5th list item.
In specific application scenarios, 4th list item can be configured according to relation nodal community allocation list as shown in table 7 below, the relation nodal community allocation list is used for preservation relation nodal community configuration information, including menu ID and NAME, KEY field attribute, measurement type, field are originated, whether need statistics, display type etc..
Table 7
5th list item can adopt relation custom attributes table as shown in table 8, the relation custom attributes table is used to preserve personalized customization attribute configuration information, in addition to general relational network shows related attribute, different demands may be directed to some special relationship nodes and provide personalized attribute, and this relation custom attributes table is just to provide for the demand of user individual and designs.
Table 8
Based on above-mentioned flow process, when needing to extend new relation toward relational network, it is only necessary to complete the exploitation of newly-increased relation data, the routing iinformation of newly-increased relation is then configured in dimension table.Specifically, the specification of total relation data interface protocol is first according to, new relation data is developed;Whether the main body that newly-increased relation is then inquired about in relation body table has been present, if it did not, needing relation main body newly-increased toward relation body table, if newly-increased main body has attribute information, needs newly-increased body attribute;Then configuration relation menu sheet, relation routing table, relation nodal community table successively, complete the addition of the routing iinformation of new relation;Finally, refresh the dimension table data buffer storage of front end system, the relation data of new extension so can be shown in relational network, it is achieved thereby that the diversity extension that relation data is processed.
Embodiment three
The same application design of flow process is realized based on above-mentioned relation data processing, a kind of relation data processing equipment is additionally provided in the embodiment of the present application, as shown in Fig. 2 the equipment includes:
Determining module 210, the main information of each main body in for determining relation data, and the relation information between the main body, the main body includes the first main body and the second main body, the main information at least includes main body value, body attribute and type ID corresponding with type of subject of the main body, and the relation information at least includes relations I D corresponding with relationship type.
Acquisition module 220, for obtaining relation body table corresponding with the type of subject of first main body, the relation body table includes type ID of first main body and the corresponding relation of the body attribute of first main body.
In the embodiment of the present application, methods described is applied in relational network system as relational network adaptation layer, and the relational network system also includes data Layer, relation Business Logic and front end presentation layer;
Wherein, the relational network adaptation layer is on the data Layer.
In the embodiment of the present application, first list item, second list item, the 3rd list item and the relation body table are configured at the relational network adaptation layer;Shown relation data is generated according to default total relation data interface protocol specification.
In the embodiment of the present application, the acquisition module obtains the first list item corresponding with the type of subject, specially:
The current relation body table with the presence or absence of type ID comprising first main body of inquiry;
If existing, using the relation body table as first list item;
If not existing, the relation body table of type ID comprising first main body is created, and using the relation body table as first list item.
Generation module 230, for generating the first list item of type ID comprising first main body, the second list item comprising relations I D with the corresponding relation of type ID of second main body, and the 3rd list item comprising the relation information respectively.
Module 240 is set up, the main body value corresponding relation of first list item, second list item, the 3rd list item, the relation body table and first main body is set up.
In specific application scenarios, the acquisition module, specifically for the current relation body table with the presence or absence of type ID comprising first main body of inquiry, and in the presence of using the relation body table as first list item, and establishment includes the relation body table of type ID of first main body when not existing, and using the relation body table as first list item.
In specific application scenarios, also include:
First display module, for when the relational data access for coming from user request is received, according to the relation body table that there is currently, to the user currently valid type of subject being shown,
Second display module, corresponding relation corresponding to the main body value of the type of subject, relationship type and the input that select with the user for basis, relation data corresponding with the corresponding relation is obtained, according to the relation data production Methods network, and shows the relational network to the user.
In specific application scenarios, it is described to set up module, the main body value acquisition of type of subject and input the first list item corresponding with type ID of the type of subject and main body value specifically for being selected according to the user, currently the second list item corresponding with first list item is obtained according to the corresponding relation, according to the second acquired list item to the user show currently with type ID and the main body corresponding relationship type of value, determined and second list item according to corresponding second list item of configuration information and selected relationship type of the user input, first list item and the main body are worth corresponding corresponding relation, the relation data is generated according to the corresponding relation.
In specific application scenarios, described foundation in the relation data that module is generated according to the corresponding relation also includes the 4th list item and the 5th list item, 4th list item includes the corresponding relation of relations I D and main body display properties, and the 5th list item includes the corresponding relation of type ID and relation display properties.
In specific application scenarios, the module of setting up shows the relational network according to the relation data production Methods network to the user, specially:
Filtered and rendered according to the main body display properties of the 4th list item and the relation display properties of the 5th list item.
Through the above description of the embodiments, those skilled in the art can be understood that the application can be realized by hardware, it is also possible to realize by the mode of software plus necessary general hardware platform.Based on such understanding, the technical scheme of the application can be embodied in the form of software product, it (can be CD-ROM that the software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, use including some instructions so that computer equipment (can be personal computer, server, or network equipment etc.) performs the method described in the application each implement scene.
It will be appreciated by those skilled in the art that accompanying drawing is a schematic diagram for being preferable to carry out scene, the module or flow process in accompanying drawing is not necessarily implemented necessary to the application.
It will be appreciated by those skilled in the art that the module in the device in implement scene can carry out being distributed in the device of implement scene according to implement scene description, it is also possible to carry out respective change and be disposed other than in one or more devices of this implement scene.The module of above-mentioned implement scene can merge into a module, it is also possible to be further split into multiple submodule.
Above-mentioned the application sequence number is for illustration only, does not represent the quality of implement scene.
Disclosed above is only that the several of the application are embodied as scene, but, the application is not limited to this, and the changes that any person skilled in the art can think of should all fall into the protection domain of the application.

Claims (16)

1. a kind of relation data processing method, it is characterised in that include:
Determine the relation information between the main information of each main body in relation data, and the main body, The main body includes the first main body and the second main body, and the main information is at least including the master of the main body Body value, body attribute and type ID corresponding with type of subject, the relation information at least includes and pass Corresponding relations I D of set type;
Obtain relation body table corresponding with the type of subject of first main body, the relation body table bag The corresponding relation of type ID containing first main body and the body attribute of first main body;
Respectively generate comprising first main body type ID the first list item, comprising relations I D with Second list item of the corresponding relation of type ID of second main body, and comprising the relation information Three list items;
Set up first list item, second list item, the 3rd list item, the relation body table with And the main body value corresponding relation of first main body.
2. the method as shown in claim 1, it is characterised in that methods described is applied to relational network system Relational network adaptation layer in system, the relational network system also includes data Layer, relation Business Logic And front end presentation layer;
Wherein, the relational network adaptation layer is on the data Layer.
3. method as claimed in claim 2, it is characterised in that first list item, second table Item, the 3rd list item and the relation body table are configured at the relational network adaptation layer;
Shown relation data is generated according to default total relation data interface protocol specification.
4. the method for claim 1, it is characterised in that obtain corresponding with the type of subject First list item, specially:
The current relation body table with the presence or absence of type ID comprising first main body of inquiry;
If existing, using the relation body table as first list item;
If not existing, the relation body table of type ID comprising first main body is created, and by the pass Owner's body surface is used as first list item.
5. the method for claim 1, it is characterised in that setting up first list item, described The main body value correspondence of the second list item, the 3rd list item, the relation body table and first main body After relation, also include:
When the relational data access request for coming from user is received, according to the relation main body that there is currently Table, to the user currently valid type of subject is shown;
According to corresponding to the main body value of the type of subject, relationship type and input that select with the user Corresponding relation, obtains relation data corresponding with the corresponding relation;
According to the relation data production Methods network, and show the relational network to the user.
6. method as claimed in claim 5, it is characterised in that according to the main body selected with the user Corresponding relation corresponding to the main body value of type, relationship type and input is obtained and the corresponding relation pair The relation data answered, specially:
The type of subject selected according to the user and the main body value of input, obtain and the type of subject Type ID and the main body be worth corresponding first list item;
According to the corresponding relation, currently the second list item corresponding with first list item is obtained;
According to the second acquired list item to the user show currently with type ID and the main body It is worth corresponding relationship type;
According to the configuration information of the user input, and corresponding second list item of selected relationship type, It is determined that with second list item, first list item and the main body corresponding corresponding relation of value;
The relation data is generated according to the corresponding relation.
7. the method as described in any one of claim 5 or 6, it is characterised in that in the relation data Also include the 4th list item and the 5th list item, the 4th list item includes that relations I D shows category with main body Property corresponding relation, the 5th list item includes the corresponding relation of type ID and relation display properties.
8. method as claimed in claim 7, it is characterised in that according to the relation data production Methods Network, and show the relational network to the user, specially:
Carried out according to the main body display properties of the 4th list item and the relation display properties of the 5th list item Filter and render.
9. a kind of relation data processing equipment, it is characterised in that include:
Determining module, for determining relation data in each main body main information, and the main body it Between relation information, the main body includes the first main body and the second main body, and the main information is at least wrapped Include main body value, body attribute and type ID corresponding with type of subject of the main body, the relation letter Breath at least includes relations I D corresponding with relationship type;
Acquisition module, for obtaining relation body table corresponding with the type of subject of first main body, institute State type ID of the relation body table comprising first main body corresponding with the body attribute of first main body Relation;
Generation module, for generating the first list item of type ID comprising first main body respectively, including Second list item of relations I D and the corresponding relation of type ID of second main body, and comprising institute State the 3rd list item of relation information;
Module is set up, first list item, second list item, the 3rd list item, the pass is set up The main body value corresponding relation of owner's body surface and first main body.
10. the equipment as shown in claim 9, it is characterised in that methods described is suitable as relational network It is applied in relational network system with layer, the relational network system also includes that data Layer, relation business are patrolled Collect layer and front end presentation layer;
Wherein, the relational network adaptation layer is on the data Layer.
11. equipment as claimed in claim 10, it is characterised in that
The configuration of first list item, second list item, the 3rd list item and the relation body table In the relational network adaptation layer;
Shown relation data is generated according to default total relation data interface protocol specification.
12. equipment as claimed in claim 9, it is characterised in that the acquisition module specifically for:
The current relation body table with the presence or absence of type ID comprising first main body of inquiry, and exist When using the relation body table as first list item, and when not existing create include described first The relation body table of type ID of main body, and using the relation body table as first list item.
13. equipment as claimed in claim 9, it is characterised in that also include:
First display module, for receive come from user relational data access ask when, according to The relation body table that there is currently, to the user currently valid type of subject is shown,
Second display module, for basis and the type of subject, relationship type that the user selects and defeated The corresponding relation corresponding to main body value for entering, obtains relation data corresponding with the corresponding relation, according to The relation data production Methods network, and show the relational network to the user.
14. equipment as claimed in claim 13, it is characterised in that
It is described to set up module, specifically for the type of subject that selected according to the user and the main body of input Value obtains the first list item corresponding with type ID of the type of subject and main body value, according to described Corresponding relation obtains currently the second list item corresponding with first list item, according to the second acquired list item To the user show currently with type ID and the main body corresponding relationship type of value, according to institute Corresponding second list item of configuration information and selected relationship type for stating user input determines and described the Two list items, first list item and the main body are worth corresponding corresponding relation, according to the corresponding relation Generate the relation data.
15. equipment as described in any one of claim 13 or 14, it is characterised in that described to set up mould Also include the 4th list item and the 5th list item in the relation data that root tuber is generated according to the corresponding relation, it is described 4th list item includes the corresponding relation of relations I D and main body display properties, and the 5th list item includes institute State the corresponding relation of type ID and relation display properties.
16. equipment as claimed in claim 15, it is characterised in that the module of setting up is according to the pass Coefficient shows the relational network according to production Methods network to the user, specially:
Carried out according to the main body display properties of the 4th list item and the relation display properties of the 5th list item Filter and render.
CN201510729843.XA 2015-10-31 2015-10-31 Relation data processing method and device Active CN106649375B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510729843.XA CN106649375B (en) 2015-10-31 2015-10-31 Relation data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510729843.XA CN106649375B (en) 2015-10-31 2015-10-31 Relation data processing method and device

Publications (2)

Publication Number Publication Date
CN106649375A true CN106649375A (en) 2017-05-10
CN106649375B CN106649375B (en) 2020-08-04

Family

ID=58810386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510729843.XA Active CN106649375B (en) 2015-10-31 2015-10-31 Relation data processing method and device

Country Status (1)

Country Link
CN (1) CN106649375B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060233325A1 (en) * 2005-04-14 2006-10-19 Cheng Wu System and method for management of call data using a vector based model and relational data structure
CN101276348A (en) * 2007-03-30 2008-10-01 上海众恒信息产业有限公司 Data processing system and method based on data property
CN101770479A (en) * 2008-12-31 2010-07-07 北京亿阳信通软件研究院有限公司 Association relationship query method and device
CN102521412A (en) * 2011-12-28 2012-06-27 用友软件股份有限公司 Data association device and data association method
CN104182410A (en) * 2013-05-24 2014-12-03 利德科技发展有限公司 Dynamic proxy system and method of target relation mapping system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060233325A1 (en) * 2005-04-14 2006-10-19 Cheng Wu System and method for management of call data using a vector based model and relational data structure
CN101276348A (en) * 2007-03-30 2008-10-01 上海众恒信息产业有限公司 Data processing system and method based on data property
CN101770479A (en) * 2008-12-31 2010-07-07 北京亿阳信通软件研究院有限公司 Association relationship query method and device
CN102521412A (en) * 2011-12-28 2012-06-27 用友软件股份有限公司 Data association device and data association method
CN104182410A (en) * 2013-05-24 2014-12-03 利德科技发展有限公司 Dynamic proxy system and method of target relation mapping system

Also Published As

Publication number Publication date
CN106649375B (en) 2020-08-04

Similar Documents

Publication Publication Date Title
JP5560367B2 (en) Method, system and server for managing dynamic information of friends in a network
CN106126521B (en) The social account method for digging and server of target object
CN102474529B (en) Collect the information about the connection in social networking service
CN102395993B (en) The method of human network management service is provided in the terminal
CN108959444A (en) Homepage cluster system management method and device based on tree
CN107526807A (en) Information recommendation method and device
CN103473238B (en) Dispense address location system and method
CN104102648A (en) User behavior data based interest recommending method and device
CN103810184A (en) Method for determining web page address velocity, optimization method and device of methods
CN107895038A (en) A kind of link prediction relation recommends method and device
CN103019730B (en) A kind of method of interface element display and electronic equipment
CN110765272A (en) Knowledge graph-based signing method and device, computer equipment and computer storage medium
CN104111981B (en) A kind of method and apparatus to release news for offer
CN106815274A (en) Daily record data method for digging and system based on Hadoop
CN103617221B (en) Software recommendation method and software recommendation system
CN104572932A (en) Method and device for determining interest label
CN107133339A (en) Circuit query method and apparatus and storage medium, processor
CN107241312A (en) A kind of right management method and device
CN114218291A (en) Portrait generation method, apparatus, device and storage medium based on target object
CN107070932A (en) The anonymous methods for preventing label neighbours from attacking in community network dynamic publishing
CN104166581B (en) A kind of virtual method towards increment manufacturing equipment
CN105654401A (en) Hotel quotation automation system and implementation method thereof
CN108648017A (en) It is easy to user demand matching process, device, equipment and the storage medium of extension
CN108628988A (en) A kind of clothing matching recommends method, apparatus, Intelligent clothes cabinet and storage medium
Saleem et al. Generic information system using sms gateway

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: 20201012

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201012

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.

TR01 Transfer of patent right