CN107451285A - A kind of analysis method of kinship, device, storage medium and intelligent terminal - Google Patents

A kind of analysis method of kinship, device, storage medium and intelligent terminal Download PDF

Info

Publication number
CN107451285A
CN107451285A CN201710683559.2A CN201710683559A CN107451285A CN 107451285 A CN107451285 A CN 107451285A CN 201710683559 A CN201710683559 A CN 201710683559A CN 107451285 A CN107451285 A CN 107451285A
Authority
CN
China
Prior art keywords
relatives
kinship
family
node location
short
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.)
Pending
Application number
CN201710683559.2A
Other languages
Chinese (zh)
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.)
New Chi Chi (beijing) Technology Services Co Ltd
Original Assignee
New Chi Chi (beijing) Technology Services Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New Chi Chi (beijing) Technology Services Co Ltd filed Critical New Chi Chi (beijing) Technology Services Co Ltd
Priority to CN201710683559.2A priority Critical patent/CN107451285A/en
Publication of CN107451285A publication Critical patent/CN107451285A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/83Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Health & Medical Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Cosmetics (AREA)

Abstract

The embodiment of the invention discloses a kind of analysis method of kinship, device, storage medium and intelligent terminal.This method includes:Obtain relatives' annexation between the member and member of user's input;According to relatives' annexation between the member and the relatives' dictionary table prestored, relatives node location of the member in patrilineal family virtual tree is determined;According to relatives' node location and the patrilineal family virtual tree, most short relatives' path code corresponding to kinship to be analyzed is determined;According to relatives' dictionary table and most short relatives' path code, the analysis result of the kinship to be analyzed is determined.Technical scheme provided in an embodiment of the present invention, it not only can accurately and rapidly realize the analysis of kinship in patrilineal family system, determine, and the treatment effeciency of system when determining kinship can be greatly improved.

Description

A kind of analysis method of kinship, device, storage medium and intelligent terminal
Technical field
The present embodiments relate to technical field of information processing, more particularly to a kind of analysis method of kinship, device, Storage medium and intelligent terminal.
Background technology
With the recovery of traditional culture, look for one's roots and recognize the upsurge of ancestral and grow to even greater heights, look for one's roots recognize ancestral during unavoidably climb Attached calculating kinship.However, as the foundation of after liberation complete registered permanent residence system, traditional agnation are incoherent. After several generations and several layers of kinships, most people just can not tell correct Kinship Terms, and this phenomenon is in city Showed in city particularly evident.
Moreover, screen kinship not only has corresponding demand in common people, more have in terms of government's associated mechanisms Actual business demand.For example, demand of the police field in terms of kinship is screened is the most clearly and strong.Public security it is main Work is the safety of custodian, is crime prevention, the government organs that fight crime.The data of public security system both are from family substantially Mouth notebook data, and the only lineal relative at this family and the conjugal relation of residence booklet data record, other related relatives are simultaneously It is not recorded in case.This just control and investigate a crime to public security cause it is very big unfavorable.If can be according to current residence booklet number It is believed that breath and history registered permanent residence data message, excavate the nine degrees of kindred five according to close and distant distance and take interior all kinships, then for Public security lifting case handling efficiency has immeasurable effect.And for example, industrial and commercial bureau and customs are equally between excavation business entity Kinship has strong business demand.At present, industrial and commercial bureau and customs can discriminate whether it is straight according to residence booklet data message It is the enterprise that relatives found.But when positioning distant close legal person relatives, the mode using desk checking is typically only capable to, It is extremely inefficient in the presence of great difficulty.Obviously, if it is possible to believed using current residence booklet data message and history registered permanent residence data Breath quickly excavates the enterprise that all distant relative legal persons found, and has clearly to effective management and control subordinate enterprise of industrial and commercial bureau and customs Help.
Although being implicitly present in some kinship calculation procedures and scheme on the market, such as Chinese family appellation calculator, parent Category relation appellation calculates inquiry and millet relatives' calculator.However, these programs are typically only capable to enough meet that personal user's is simple The demand that kinship calculates, is only applicable to personal or recreational application.Fig. 1 is the relatives inside millet relatives' calculator Calculate interface.As shown in figure 1, pertained only in millet relatives' calculator husband, wife, father, mother, siblings, children this Several input items.And for that can not be handled comprising complicated relatives' input item such as uncle, father's younger male cousin, younger brother's wife.In the prior art, The numerical procedure of complicated kinship uses enumerated arrangements, it usually needs safeguards a huge enumerated table.Due to relatives The identification of relation, generally all it is to need desk checking., it is necessary to which that safeguards enumerates item at 100 when input item is fewer Hereinafter, can also manually safeguard, but if adding the nine degrees of kindred five takes all kinds of relatives as input item, that to be safeguarded enumerates an information It is incremented by the order of magnitude, the cost of manual maintenance and verification is generally difficult to bear.Moreover, complicated relatives are being determined by enumeration During relation, system resource is wasted significantly, has had a strong impact on the treatment effeciency of system when determining kinship.
The content of the invention
The present invention provides a kind of analysis method of kinship, device, storage medium and intelligent terminal, with accurate, quick Ground is realized the analysis of kinship in patrilineal family system, determined, greatly improves the treatment effeciency of system when determining kinship.
In a first aspect, the embodiments of the invention provide a kind of analysis method of kinship, including:
Obtain relatives' annexation between the member and member of user's input;
According to relatives' annexation between the member and the relatives' dictionary table prestored, determine the member in paternal line Relatives' node location in family's virtual tree;
According to relatives' node location and the patrilineal family virtual tree, determine most short corresponding to kinship to be analyzed Relatives' path code;
According to relatives' dictionary table and most short relatives' path code, the analysis of the kinship to be analyzed is determined As a result.
Second aspect, the embodiment of the present invention additionally provide a kind of analytical equipment of kinship, including:
Relatives' annexation acquisition module, obtain relatives' annexation between the member and member of user's input;
Relatives' node location determining module, for according to relatives' annexation between the member and the relatives prestored Dictionary table, determine relatives node location of the member in patrilineal family virtual tree;
Most short relatives' path code acquisition module, for virtual according to relatives' node location and the patrilineal family Tree, determines most short relatives' path code corresponding to kinship to be analyzed;
Analysis result determining module, for according to relatives' dictionary table and most short relatives' path code, determining institute State the analysis result of kinship to be analyzed.
The third aspect, the embodiments of the invention provide a kind of computer-readable recording medium, is stored thereon with computer journey Sequence, the analysis method of kinship as described in the present embodiment of the invention is realized when the program is executed by processor.
Fourth aspect, the embodiments of the invention provide a kind of intelligent terminal, including memory, processor and it is stored in storage On device and it can be realized in the computer program of processor operation described in the computing device during computer program as the present invention is real Apply the analysis method of the kinship described in example.
The analysis method of kinship provided in an embodiment of the present invention, the parent between the member and member of user's input is obtained When belonging to annexation, according to relatives' annexation between member and the relatives' dictionary table prestored, determine the member in father It is relatives' node location in family's virtual tree, and according to relatives' node location and patrilineal family virtual tree, it is determined that treating point Most short relatives' path code corresponding to kinship is analysed, then short relatives' path code according to relatives' dictionary table and most, determines institute State the analysis result of kinship to be analyzed.By using above-mentioned technical proposal, paternal family not only can be accurately and rapidly realized Analysis, the determination of kinship in race's system, and the treatment effeciency of system when determining kinship can be greatly improved.
Brief description of the drawings
Fig. 1 is the schematic diagram that the relatives inside millet relatives calculator calculate interface in the prior art;
Fig. 2 a are a kind of schematic flow sheets of the analysis method for kinship that the embodiment of the present invention one provides;
Fig. 2 b are the structural representations for the patrilineal family virtual tree that the embodiment of the present invention one provides;
Fig. 2 c are the partial schematic diagrams of the relatives' node location of member A, member B and member C in patrilineal family virtual tree;
Fig. 3 is a kind of schematic flow sheet of the analysis method for kinship that the embodiment of the present invention two provides;
Fig. 4 is a kind of schematic flow sheet of the analysis method for kinship that the embodiment of the present invention three provides;
Fig. 5 is a kind of schematic flow sheet of the analysis method for kinship that the embodiment of the present invention four provides;
Fig. 6 is a kind of structured flowchart of the analytical equipment for kinship that the embodiment of the present invention five provides;
Fig. 7 is a kind of structural representation for intelligent terminal that the embodiment of the present invention seven provides.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that in order to just Part related to the present invention rather than entire infrastructure are illustrate only in description, accompanying drawing.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing described as flow chart or method.Although each step is described as the processing of order, many of which by flow chart Step can be implemented concurrently, concomitantly or simultaneously.In addition, the order of each step can be rearranged.When its operation The processing can be terminated during completion, it is also possible to the additional step being not included in accompanying drawing.The processing can be with Corresponding to method, function, code, subroutine, subprogram etc..
Embodiment one
Fig. 2 a are a kind of schematic flow sheet of the analysis method of kinship provided in an embodiment of the present invention, and this method can be with Performed by the analytical equipment of kinship, wherein the device can be realized by software and/or hardware, can typically be integrated in intelligent terminal In.As shown in Figure 2 a, this method includes:
Relatives' annexation between member and member that S101, acquisition user input.
In the present embodiment, the information about firms inputted according to user obtains the parent between all members and member that user inputs Belong to annexation.Wherein, the kinship between two members of relatives' annexation reflection between member, for example, user's input Relatives' annexation between member is A->B (uncle), then it represents that member A and member B kinship is uncle and nephew relation, or Represent that member A addresses member B is uncle.Exemplary, user, which inputs member, includes member A, B and C, wherein, the parent between member Category annexation is A->B (uncle), B->C (grandfather).Wherein, relatives' annexation between the member of user's input can be father It is that the nine degrees of kindred five take interior all kinships in family's system.
S102, according to relatives' annexation between member and the relatives' dictionary table prestored, determine the member in father It is relatives' node location in family's virtual tree.
In the present embodiment, relatives' dictionary table is that user is write according to the brief basic coding of relatives, contains father It is that the nine degrees of kindred five take brief coding corresponding to interior call cousin with family's system.First, user is it needs to be determined that the brief base of relatives Plinth encodes, i.e., represents the foundation class relation in kinship with letter.It is exemplary, it is determined that the brief basic coding of relatives such as Shown in table 1:
Table 1
Kinship The brief basic coding of relatives
Father F
Mother M
Son S
Daughter D
Husband H
Wife W
Six brief basic codings of relatives in table 1 are most basic codings in being called cousin with, patrilineal family system The middle nine degrees of kindred five take interior all kinships can be combined expression by this six brief basic codings of relatives.It is exemplary , coding is as shown in table 2 corresponding to other kinships:
Table 2
Kinship Coding Explain
Great-grandson's SSS The son of the son of son
Uncle FFS The son of the father of father
It should be noted that it is the same, it is necessary to carry out area according to age size to have coding corresponding to the kinship of part Point, such as coding of " uncle " and " uncle " is FFS, therefore, it is necessary to first left F (father) and S (youngsters in FFS Son) age size distinguish specifically " uncle ", still " uncle ".
In the present embodiment, patrilineal family virtual tree is one and contains the nine degrees of kindred five in patrilineal family system and take interior all parents The virtual network system of category relation.Wherein, patrilineal family virtual tree can be the virtual network being stored in advance in intelligent terminal System or the virtual network system that acquisition is inputted according to user, patrilineal family virtual tree can be xml forms.Example Property, it shown below is the part sample of the patrilineal family virtual tree of xml forms:
The nine degrees of kindred five in one patrilineal family system of structure, which can be extended, by the data of above-mentioned xml forms takes interior all relatives The virtual network system of relation.Each one patrilineal family of node on behalf in patrilineal family virtual tree, set under each node There are two child nodes, two child nodes represent a son and a daughter respectively.It should be noted that according to user's need Will, the child node under each patrilineal family node can be expanded to multiple.Fig. 2 b are paternal family provided in an embodiment of the present invention The structural representation of race's virtual tree.As shown in Figure 2 b, the relatives that each circle (zero) is represented in patrilineal family system are closed Set section point.
Optionally, according to relatives' annexation between member and the relatives' dictionary table prestored, determine member in paternal line Relatives' node location in family's virtual tree, can include:Relatives' annexation pair between member is searched in relatives' dictionary table The kinship coding answered;The seniority in the family of the member is calculated according to kinship coding;By the minimum seniority in the family in the seniority in the family Member be positioned over default relatives' node location in patrilineal family virtual tree;According to relatives' annexation between the member and The kinship coding, determines relatives node location of other members in the patrilineal family virtual tree, until complete successively Into the determination of relatives node location of all members in patrilineal family virtual tree;Wherein, other described members are except minimum generation Member beyond the member divided.
Exemplary, relatives' annexation between the member of user's input is A->B (cousinship younger sister), A->C (grandfather).From pre- In the relatives' dictionary table first stored, find cousinship younger sister corresponding to kinship be encoded to FFDD, kinship corresponding to grandfather It is encoded to FF.I.e. according to relatives' dictionary table for prestoring, it is determined that the corresponding relatives of relatives' annexation between the member Relation is encoded to:A->B (FFDD, cousinship younger sister), A->C (FF, grandfather).According to relatives corresponding to relatives' annexation between member Relation is encoded to:A->B (FFDD, cousinship younger sister), A->C (FF, grandfather), member A, member B and member C identity are determined, such as table 3 It is shown:
Member Identity
A Grandson
B Granddaughter
C Grandfather
According to table 3, member A, member B and member the C seniority in the family can be calculated, wherein, member A and member B are in same The seniority in the family, and the seniority in the family is minimum, member's C seniority in the family highests, and it is higher by two seniority in the family than the seniority in the family residing for member A and member B.By the minimum seniority in the family Member be positioned over default relatives' node location in patrilineal family virtual tree, wherein, default relatives' node location be according to Family needs what is set, the node location at the most lower-left end of patrilineal family virtual tree as shown in Figure 2 b.Exemplary, by member A Relatives' node location at the most lower-left end of patrilineal family virtual tree is positioned over, and according to relatives' annexation between member and relatives Relation is encoded, and member B and member C are positioned over into relatives' node location corresponding to patrilineal family virtual tree successively.Fig. 2 c are member A, the partial schematic diagram of the relatives' node location of member B and member C in patrilineal family virtual tree.
S103, according to relatives' node location and patrilineal family virtual tree, determine corresponding to kinship to be analyzed most Short relatives' path code.
In the present embodiment, relatives' annexation between the member and member that are inputted according to user determines that relatives to be analyzed are closed System, wherein, kinship to be analyzed is in all members of user's input, except the annexation between the member of user input Outside, the kinship between other members.Exemplary, the member of user's input is member A, member B and member C, input into Annexation between member is A->B and A->Kinship between C, then kinship to be analyzed is B->Kinship between C.
Optionally, according to relatives' node location and patrilineal family virtual tree, determine corresponding to kinship to be analyzed Most short relatives' path code, can include:The starting point member in kinship to be analyzed is obtained in patrilineal family virtual tree Relatives' node location is as starting point relatives' node location;The terminal member obtained in kinship to be analyzed is virtual in patrilineal family Relatives' node location in tree is as terminal relatives' node location;Based on figure calculating method in patrilineal family virtual tree, it is determined that from Starting point relatives node location is to the most short relatives path of terminal relatives' node location;Encoded corresponding to the most short relatives path by described in As most short relatives' path code.
Exemplary, relatives' annexation between the member of user's input is A->B (cousinship younger sister), A->C (grandfather), is treated point Analysis kinship is B->Kinship between C.Then, it is kinship B- to be analyzed to determine member B>Starting point member in C, into Member C is kinship B- to be analyzed>Terminal member in C.According to the member determined in S102 in patrilineal family virtual tree Relatives' node location, will be into using relatives node locations of the member B in patrilineal family virtual tree as starting point relatives' node location Relatives node locations of the member C in patrilineal family virtual tree is as terminal relatives' node location.Based on figure calculating method in paternal family In race's virtual tree, relatives' node location residing for member B and the most short relatives path of relatives' node location residing for member C are searched. Wherein it is possible to determine starting point relatives node location and terminal using the dijkstra's algorithm in figure calculating method or Warshall algorithms Most short relatives path between node location.By from starting point relatives node location to the most short relatives road terminal relatives' node location Coding is used as most short relatives' path code corresponding to footpath.As shown in Figure 2 c, kinship B- to be analyzed>Most short relatives corresponding to C Path is as shown in the arrow in Fig. 2 c, then kinship B- to be analyzed>Most short relatives' path code is MF corresponding to C.
S104, according to relatives' dictionary table and most short relatives' path code, determine the analysis knot of the kinship to be analyzed Fruit.
Optionally, the first Kinship Terms corresponding to most short relatives' path code described in being searched in relatives' dictionary table;By institute State analysis result of first Kinship Terms as the kinship to be analyzed.Wherein, the relatives in relatives' dictionary table Search whether most short relatives' path code be present in relation coding, exist when in the kinship coding in relatives' dictionary table During most short relatives' path code, using Kinship Terms corresponding to kinship coding as most short relatives' path code pair The first Kinship Terms answered.After most short relatives' path code corresponding to the kinship to be analyzed determined by S103 steps, Found in relatives' dictionary table Kinship Terms corresponding to most short relatives' path code include it is multiple when, by the most short relatives road Analysis result of all Kinship Terms as kinship to be analyzed corresponding to the coding of footpath.Exemplary, when relatives to be analyzed are closed When most short relatives' path code corresponding to system is FFS, in relatives' dictionary table, Kinship Terms corresponding to FFS include father, uncle And uncle, then the analysis result using father/uncle/uncle as kinship to be analyzed.
The analysis method of kinship provided in an embodiment of the present invention, the parent between the member and member of user's input is obtained When belonging to annexation, according to relatives' annexation between member and the relatives' dictionary table prestored, determine the member in father It is relatives' node location in family's virtual tree, and according to relatives' node location and patrilineal family virtual tree, it is determined that treating point Most short relatives' path code corresponding to kinship is analysed, then short relatives' path code according to relatives' dictionary table and most, determines institute State the analysis result of kinship to be analyzed.By using above-mentioned technical proposal, paternal family not only can be accurately and rapidly realized Analysis, the determination of kinship in race's system, and the treatment effeciency of system when determining kinship can be greatly improved.
Embodiment two
Fig. 3 is a kind of flow chart of the analysis method of kinship provided in an embodiment of the present invention, and the present embodiment is above-mentioned On the basis of embodiment, by according to relatives' annexation between the member and the relatives' dictionary table prestored, it is determined that described Relatives node location of the member in patrilineal family virtual tree, is optimized for:Searched in relatives' dictionary table between the member Relatives' annexation corresponding to kinship coding;The seniority in the family of the member is calculated according to kinship coding;By institute The member for stating the minimum seniority in the family in the seniority in the family is positioned over default relatives' node location in the patrilineal family virtual tree;According to it is described into Relatives' annexation and kinship coding between member, determine other members in the patrilineal family virtual tree successively Relatives' node location, until completing the determination of relatives node location of all members in patrilineal family virtual tree;Wherein, it is described Other members are the member in addition to the member of the minimum seniority in the family.
As shown in figure 3, the method for the present embodiment comprises the following steps:
Relatives' annexation between member and member that S201, acquisition user input.
S201, search in relatives' dictionary table kinship coding corresponding to relatives' annexation between the member.
S203, the seniority in the family according to the kinship coding calculating member.
S204, the default relatives' node position being positioned over the member of the minimum seniority in the family in the seniority in the family in patrilineal family virtual tree Put.
S205, encoded according to relatives' annexation between member and the kinship, determine other members in father successively It is relatives' node location in family's virtual tree, until completing relatives node location of all members in patrilineal family virtual tree Determination.
Wherein, other described members are the member in addition to the member of the minimum seniority in the family.
S206, according to relatives' node location and patrilineal family virtual tree, determine corresponding to kinship to be analyzed most Short relatives' path code.
S207, according to relatives' dictionary table and most short relatives' path code, determine the analysis knot of the kinship to be analyzed Fruit.
The analysis method of kinship provided in an embodiment of the present invention, by searching the parent between member in relatives' dictionary table Belong to kinship coding corresponding to annexation, the seniority in the family for calculating member is encoded according to kinship, will be minimum in the seniority in the family The member of the seniority in the family is positioned over default relatives' node location in patrilineal family virtual tree, according to relatives' annexation between member and Kinship encodes, and determines relatives node location of other members in the patrilineal family virtual tree successively, until completing institute There is the determination of relatives node location of the member in patrilineal family virtual tree, be advantageous to subsequently virtual in patrilineal family according to member Relatives' node location in tree, accurately determine most short relatives' path code corresponding to kinship to be analyzed, so as to it is accurate, Rapidly realize that the nine degrees of kindred five take the interior analysis called cousin with, determined in patrilineal family system, and can greatly improve really Determine the treatment effeciency of system during kinship.
Embodiment three
Fig. 4 is a kind of flow chart of the analysis method of kinship provided in an embodiment of the present invention, and the present embodiment is above-mentioned On the basis of embodiment, kinship to be analyzed will be determined according to relatives' node location and the patrilineal family virtual tree Corresponding most short relatives' path code, is optimized for:The starting point member in the kinship to be analyzed is obtained in the paternal family Relatives' node location in race's virtual tree is as starting point relatives' node location;Obtain terminal in the kinship to be analyzed into Relatives node location of the member in the patrilineal family virtual tree is as terminal relatives' node location;Based on figure calculating method described In patrilineal family virtual tree, it is determined that from the starting point relatives node location to the most short relatives road of the terminal relatives node location Footpath;Most short relatives' path code described in coding conduct corresponding to the most short relatives path by described in;And will be according to relatives' dictionary Table and most short relatives' path code, determine the analysis result of the kinship to be analyzed, are optimized for:In relatives' word First Kinship Terms corresponding to most short relatives' path code described in being searched in allusion quotation table;First Kinship Terms are treated as described in Analyze the analysis result of kinship.
As shown in figure 4, the method for the present embodiment comprises the following steps:
Relatives' annexation between member and member that S301, acquisition user input.
S302, search in relatives' dictionary table relatives' annexation between the member corresponding to kinship compile Code.
S303, the seniority in the family according to the kinship coding calculating member.
S304, the default relatives that the member of the minimum seniority in the family in the seniority in the family is positioned in the patrilineal family virtual tree save Point position.
S305, encoded according to relatives' annexation between the member and the kinship, determine other members successively Relatives' node location in the patrilineal family virtual tree, until completing relatives of all members in patrilineal family virtual tree The determination of node location.
Relatives node position of the starting point member in the patrilineal family virtual tree in S306, acquisition kinship to be analyzed Put as starting point relatives' node location.
Relatives node position of the terminal member in the patrilineal family virtual tree in S307, acquisition kinship to be analyzed Put as terminal relatives' node location.
Need what is illustrated, the present embodiment is not construed as limiting to S306 and S307 execution sequence, can first carry out S306, after hold Row S307;S306 can also be first carried out, performs S307 afterwards;S306 and S307 can also be performed simultaneously, i.e., obtain simultaneously to be analyzed Relatives node location of the starting point member in patrilineal family virtual tree in kinship is as starting point relatives' node location, and treats Relatives node location of the terminal member in kinship in patrilineal family virtual tree is analyzed as terminal relatives' node location.
S308, based on figure calculating method in patrilineal family virtual tree, it is determined that from starting point relatives node location to terminal relatives The most short relatives path of node location.
S309, the most short relatives' path code of conduct will be encoded corresponding to most short relatives path.
S310, the first Kinship Terms corresponding to most short relatives' path code described in lookup in relatives' dictionary table.
S310, the analysis result using first Kinship Terms as kinship to be analyzed.
The analysis method of kinship provided in an embodiment of the present invention, by obtain the starting point in kinship to be analyzed into Relatives node location of the member in patrilineal family virtual tree is as the end in starting point relatives node location and kinship to be analyzed Relatives node location of the point member in patrilineal family virtual tree is based on figure calculating method in father as terminal relatives' node location It is in family's virtual tree, it is determined that being incited somebody to action from starting point relatives node location to the most short relatives path of the terminal relatives node location Coding is used as most short relatives' path code corresponding to most short relatives path, can accurately and rapidly obtain kinship to be analyzed Corresponding most short relatives' path code, so as to accurately and rapidly realize, the nine degrees of kindred five take interior all parents in patrilineal family system The analysis of category relation, determine, and the treatment effeciency of system when determining kinship can be greatly improved.
Example IV
Fig. 5 is a kind of flow chart of the analysis method of kinship provided in an embodiment of the present invention, and the present embodiment is above-mentioned On the basis of embodiment, increase step:Obtain the identity card ID of the member.And will according to relatives' dictionary table and it is described most Short relatives' path code, the analysis result of the kinship to be analyzed is determined, is optimized for:According to relatives' dictionary table, institute Most short relatives' path code and the identity card ID of the member are stated, determines the analysis result of the kinship to be analyzed.
As shown in figure 5, the method for the present embodiment comprises the following steps:
Relatives' annexation between member and member that S401, acquisition user input.
S402, the identity card ID for obtaining the member.
In the present embodiment, can also basis after relatives' annexation between obtaining the member and member of user's input User inputs the identity card ID for obtaining all members.The identity card ID of member not only includes the birthdate of member, also wraps Gender information containing member.Wherein, the birthdate in identity card ID reflects the age size of member;Identity card ID's 17th bit digital represents sex:Odd number represents male, and even number represents women.
Need what is illustrated, the present embodiment is not construed as limiting to S401 and S402 execution sequence, can first carry out S401, after hold Row S402;S402 can also be first carried out, performs S401 afterwards;S401 and S402 can also be performed simultaneously, i.e., it is defeated to obtain user simultaneously The identity card ID of relatives' annexation and the member between the member that enters, member.
Optionally, JSON (JavaScript Object Notation, JS object tag) form of standard can be passed through Data-interface, to obtain the identity card ID of the member of user's input, relatives' annexation between member and the member simultaneously. Wherein, JSON is a kind of data interchange format of lightweight, is a son based on ECMAScript (the js specifications that w3c is formulated) Collection, is to store and represent data using the text formatting for being totally independent of programming language.Succinct and clearly hierarchical structure So that JSON turns into preferable data interchange language.It is exemplary, user can the JSON forms of standard data-interface it is defeated Enter the content of following form:
Shown herein as two datasets conjunction, centre is separated with ", ", and each data acquisition system is in { }, each data The form of set is all the fixation of standard.
Wherein, fromID:The starting point member in relatives' annexation direction is represented, value below is body corresponding to starting point member Part card id number;toID:The terminal member in relatives' annexation direction is represented, value below is identity card corresponding to terminal member Id number;edgeLabel:The corresponding relatives' annexation (Kinship Terms) between starting point member and terminal member of value below. It should be noted that only listing two datasets here closes item, but any number of data set actually can be included in [] Close.
Exemplary, user can input following content in the data-interface of the JSON forms of standard:
Here member A, member B and tri- members of member C, member A and member B relatives' annexation and member are defined A and member C relatives' annexation.Specifically, it is represented by A->B (cousinship younger sister), A->C (grandfather).
S403, search in relatives' dictionary table kinship coding corresponding to relatives' annexation between the member.
In the present embodiment, relatives' dictionary tableau format can be xml forms so that relatives' dictionary table has good expansion Malleability, user is set to add the related content of new kinship in the configuration file of relatives' dictionary table at any time as needed.Parent Coding corresponding to Kinship Terms can not only be included by belonging to dictionary table, can also include other dictionary attributes.Exemplary, relatives' word Following dictionary Table Properties can be included in allusion quotation table:The ID number attribute of relatives, Kinship Terms attribute, relatives' path code attribute, pass Key position attribute, comparative result attribute, comparison position attribute, reverse relatives' path code attribute.Wherein, key position attribute, For representing position of the relatives at age to be compared in relatives' path code;Comparison position attribute, for expression and institute State the position of benchmark relatives that the relatives at age to be compared compare in relatives' path code;Comparative result attribute, is used for Represent the relatives at the age to be compared and the age size of the benchmark relatives.
Exemplary, the partial content of relatives' dictionary table is listed below, and the dictionary attribute in relatives' dictionary table is done It is corresponding to illustrate.
Wherein, what the Relative ID in above-mentioned relatives' dictionary table were represented is the ID number attribute of relatives;Name represent be Kinship Terms attribute, i.e., the title of specific kinship;What Path was represented is relatives' path code attribute, i.e., by Kinship Terms The coding that kinship in attribute is represented with the brief basic coding of relatives;KeyPos represents key position attribute, that is, represents to treat Compare position of the relatives at age in relatives' path code.For example, KeyPos=" 1 " is represented corresponding relatives path Relatives of the first corresponding relatives in the right as the age to be compared in coding, KeyPos=" 0 " represent relatives' path code with Kinship Terms (kinship) are one-to-one, it is not necessary to which the relatives in corresponding relatives' path code are carried out into age ratio Compared with;ComparePos represents comparison position attribute, that is, represents the benchmark relatives compared with the relatives at the age to be compared in institute State the position in relatives' path code.For example, ComparePos=" 1 " represent using first, the left side in relatives' path code as Benchmark relatives compared with the relatives at age to be compared, ComparePos=" 0 " represent in relatives' path code oneself to make For the benchmark relatives compared with the relatives at age to be compared;Compare represents comparative result attribute, that is, represents the age to be compared The age size of relatives and the benchmark relatives.Wherein, Compare value can be " being more than ", " being less than ", " being equal to " and " null " four kinds of situations.For example, Compare=" being more than " represents the age of the relatives than the benchmark relatives at age to be compared Greatly, Compare=" being less than " represents that the relatives at age to be compared are smaller than the age of the benchmark relatives, and Compare=" is equal to " Represent that the relatives at age to be compared are identical with the age of the benchmark relatives, the relatives at age to be compared and the benchmark relatives can Can be twins, it is also possible to represent same person, Compare=" null " represents the relatives and benchmark parent at age to be compared The age size of category is unknown;ReversePath represents reverse relatives' path code attribute, for example, Path represents A->B relatives Relatives' path code corresponding to relation, then ReversePath represent B->Relatives' path code, i.e., inverse corresponding to A kinship To relatives' path code.Exemplary, Name=" cousinship brother " Path=" FFDS " KeyPos=" 1 " Compare=" being more than " ComparePos=" 0 ", represent that comparative result is by the S in relatives' path code FFDS compared with oneself carries out age size The age of S in FFDS is more than oneself.Can also be by Name=" cousinship brother " Path=" FFDS " KeyPos=" 1 " Compare =" being more than " ComparePos=" 0 " is interpreted as A->Kinship attribute corresponding to B, then it represents that by relatives' path code FFDS In S and member A carry out age size compared with, comparative result is to be more than member A at the age of the S in FFDS, then member B is member A cousinship brother.And for example, three father, uncle and uncle kinships are represented by relatives' path code FFS, in parent FFS codings specifically represent any kinship in category dictionary table, can pass through the KeyPos (key positions in relatives' dictionary table Attribute), ComparePos (comparison position attribute) and Compare (comparative result attribute) determine.If Path=" FFS " KeyPos=" 1 " Compare=" is more than " ComparePos=" 1 ", then FFS coded representations uncle;If Path=" FFS " KeyPos=" 1 " Compare=" is less than " ComparePos=" 1 ", then FFS coded representations uncle;If Path=" FFS " KeyPos=" 1 " Compare=" is equal to " ComparePos=" 1 ", then FFS coded representations father;If Path=" FFS " KeyPos=" 1 " Compare=" null " ComparePos=" 1 ", then FFS coded representations father/uncle/uncle.
Exemplary, relatives' annexation between the member of user's input is A->B (grandfather), C->B (cousinship younger sister), is treated point Analysis kinship is A->Kinship between C.From the relatives' dictionary table prestored, relatives road corresponding to grandfather is found Footpath is encoded to FF, and relatives' path code corresponding to cousinship younger sister is FFDD.I.e. according to the relatives' dictionary table prestored, it is determined that and institute Kinship corresponding to stating relatives' annexation between member is encoded to:A->B (FF, grandfather), C->B (FFDD, cousinship younger sister).
S404, the seniority in the family according to the kinship coding calculating member.
S405, the default relatives' node position being positioned over the member of the minimum seniority in the family in the seniority in the family in patrilineal family virtual tree Put.
S406, encoded according to relatives' annexation between member and the kinship, determine other members in father successively It is relatives' node location in family's virtual tree, until completing relatives node location of all members in patrilineal family virtual tree Determination.
Wherein, other described members are the member in addition to the member of the minimum seniority in the family.
S407, relatives node location of the starting point member in patrilineal family virtual tree obtained in kinship to be analyzed are made For starting point relatives' node location.
S408, relatives node location of the terminal member in patrilineal family virtual tree obtained in kinship to be analyzed are made For terminal relatives' node location.
S409, based on figure calculating method in patrilineal family virtual tree, it is determined that from starting point relatives node location to terminal relatives The most short relatives path of node location.
S410, the most short relatives' path code of conduct will be encoded corresponding to most short relatives path.
S411, according to relatives' dictionary table, the identity card ID of most short relatives' path code and member, determine the parent to be analyzed The analysis result of category relation.
Optionally, the first Kinship Terms corresponding to most short relatives' path code described in being searched in relatives' dictionary table;According to The identity card ID of member, the second Kinship Terms are determined from first Kinship Terms;Wherein, the second Kinship Terms belong to first One of Kinship Terms in Kinship Terms;Analysis result using the second Kinship Terms as the kinship to be analyzed.
In the present embodiment, after determining most short relatives' path code corresponding to kinship to be analyzed by above-mentioned steps, Searched in relatives' dictionary table Kinship Terms corresponding to most short relatives' path code include it is multiple when, claim described in most short relatives road Multiple Kinship Terms corresponding to the coding of footpath are the second Kinship Terms.At this time, it may be necessary to further by the identity card ID of member, from In two Kinship Terms, it is determined which specific Kinship Terms are the first Kinship Terms corresponding to most short relatives' path code.Will It is used as the analysis knot of kinship to be analyzed by the identity card ID of the member unique Kinship Terms (the first Kinship Terms) determined Fruit.Exemplary, as kinship A- to be analyzed>When most short relatives' path code is FFS corresponding to B, in relatives' dictionary table, Kinship Terms corresponding to FFS include father, uncle and uncle.Identity card ID corresponding to needing to compare the F and S in FFS, that is, compare The age size of F and S in FFS.When being more than S age at the age of the F in FFS, FFS represents uncle, at this point it is possible to will treat Analyze kinship A analysis result A->B (uncle) feeds back to user;When being less than S age at the age of the F in FFS, FFS Uncle is represented, at this point it is possible to be analysed to kinship A analysis result A->B (uncle) feeds back to user;As the F in FFS Age be equal to S age, and identity card ID corresponding to the F in FFS with when identity card ID is identical corresponding to S, FFS expression father Parent, at this point it is possible to be analysed to kinship A analysis result A->B (father) feeds back to user.
The analysis method of kinship provided in an embodiment of the present invention, not only can be with by obtaining the identity card ID of member Unique most short relatives' path code and the identity card ID of member according to corresponding to relatives' dictionary table, the kinship to be analyzed, Unique Kinship Terms corresponding to the kinship to be analyzed are determined from multiple kinship appellations.But also can accurately, Rapidly realize that the nine degrees of kindred five take the interior analysis called cousin with, determined in patrilineal family system, further increase determination parent The treatment effeciency of system during category relation.
Embodiment five
Fig. 6 is a kind of structured flowchart of the analytical equipment of kinship provided in an embodiment of the present invention, and the device can be by soft Part and/or hardware are realized, are typically integrated in intelligent terminal, can be by performing the analysis method of kinship come to kinship Analyzed.As shown in fig. 6, the device includes:
Relatives' annexation acquisition module 501, obtain relatives' annexation between the member and member of user's input;
Relatives' node location determining module 502, for according to relatives' annexation between the member and prestoring Relatives' dictionary table, determine relatives node location of the member in patrilineal family virtual tree;
Most short relatives' path code acquisition module 503, for empty according to relatives' node location and the patrilineal family Intend tree, determine most short relatives' path code corresponding to kinship to be analyzed;
Analysis result determining module 504, for according to relatives' dictionary table and most short relatives' path code, it is determined that The analysis result of the kinship to be analyzed.
The analytical equipment of kinship provided in an embodiment of the present invention, the parent between the member and member of user's input is obtained When belonging to annexation, according to relatives' annexation between member and the relatives' dictionary table prestored, determine the member in father It is relatives' node location in family's virtual tree, and according to relatives' node location and patrilineal family virtual tree, it is determined that treating point Most short relatives' path code corresponding to kinship is analysed, then short relatives' path code according to relatives' dictionary table and most, determines institute State the analysis result of kinship to be analyzed.By using above-mentioned technical proposal, paternal family not only can be accurately and rapidly realized The nine degrees of kindred five take the interior analysis called cousin with, determined in race's system, and can greatly improve system when determining kinship Treatment effeciency.
Optionally, relatives' node location determining module, is used for:
Kinship corresponding to relatives' annexation between the member is searched in relatives' dictionary table to encode;
The seniority in the family of the member is calculated according to kinship coding;
The default relatives' node position member of the minimum seniority in the family in the seniority in the family being positioned in the patrilineal family virtual tree Put;
Encoded according to relatives' annexation between the member and the kinship, determine other members described successively Relatives' node location in patrilineal family virtual tree, until completing relatives node position of all members in patrilineal family virtual tree The determination put;Wherein, other described members are the member in addition to the member of the minimum seniority in the family.
Optionally, most short relatives' path code acquisition module, is used for:
Obtain relatives node position of the starting point member in the kinship to be analyzed in the patrilineal family virtual tree Put as starting point relatives' node location;
Obtain relatives node position of the terminal member in the kinship to be analyzed in the patrilineal family virtual tree Put as terminal relatives' node location;
Based on figure calculating method in the patrilineal family virtual tree, it is determined that from the starting point relatives node location to the end The most short relatives path of point relatives' node location;
Most short relatives' path code described in coding conduct corresponding to the most short relatives path by described in.
Optionally, the analysis result determining module, is used for:
First Kinship Terms corresponding to most short relatives' path code described in being searched in relatives' dictionary table;
Analysis result using first Kinship Terms as the kinship to be analyzed.
Further, the device also includes:
Identity card ID acquisition modules, for obtaining the identity card ID of the member;
The analysis result determining module, including:
Analysis result determining unit, for according to relatives' dictionary table, most short relatives' path code and it is described into The identity card ID of member, determine the analysis result of the kinship to be analyzed.
Optionally, the analysis result determining unit, is used for:
First Kinship Terms corresponding to most short relatives' path code described in being searched in relatives' dictionary table;
According to the identity card ID of the member, the second Kinship Terms are determined from first Kinship Terms;Wherein, it is described One of Kinship Terms that second Kinship Terms belong in first Kinship Terms;
Analysis result using second Kinship Terms as the kinship to be analyzed.
Optionally, relatives' dictionary table includes following dictionary Table Properties:The ID number attribute of relatives, Kinship Terms attribute, Relatives' path code attribute, key position attribute, comparative result attribute, comparison position attribute, reverse relatives' path code attribute;
Wherein, the key position attribute, for representing the relatives at age to be compared in relatives' path code Position;
The comparison position attribute, for representing the benchmark relatives compared with the relatives at the age to be compared in the parent Belong to the position in path code;
The comparative result attribute, for representing that the relatives at the age to be compared and the benchmark relatives' is older It is small.
Embodiment six
The embodiment of the present invention also provides a kind of storage medium for including computer executable instructions, and the computer can perform Instruct includes when being performed by computer processor for the analysis method for performing kinship, this method:
Obtain relatives' annexation between the member and member of user's input;
According to relatives' annexation between the member and the relatives' dictionary table prestored, determine the member in paternal line Relatives' node location in family's virtual tree;
According to relatives' node location and the patrilineal family virtual tree, determine most short corresponding to kinship to be analyzed Relatives' path code;
According to relatives' dictionary table and most short relatives' path code, the analysis of the kinship to be analyzed is determined As a result.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap Include:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetizing mediums (such as hard disk or optical storage);Memory component of register or other similar types etc..Storage medium can also include other The memory of type or its combination.In addition, storage medium can be located at program in the first computer system being wherein performed, Or can be located in different second computer systems, second computer system is connected to the by network (such as internet) One computer system.Second computer system can provide programmed instruction and be used to perform to the first computer." storage is situated between term Matter " can include may reside within diverse location two of (such as in different computer systems by network connection) or More storage mediums.Storage medium can store the programmed instruction that can be performed by one or more processors and (such as implement For computer program).
Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present invention is provided, its computer The analysis operation for the kinship that executable instruction is not limited to the described above, it can also carry out any embodiment of the present invention and provided Kinship analysis method in associative operation.
Embodiment seven
The embodiments of the invention provide a kind of intelligent terminal, parent provided in an embodiment of the present invention can be integrated in the intelligent terminal The analytical equipment of category relation.Fig. 7 is a kind of structural representation of intelligent terminal provided in an embodiment of the present invention.As shown in fig. 7, should Intelligent terminal can include:Housing (not shown), memory 601, central processing unit (Central Processing Unit, CPU) 602 (also known as processor, hereinafter referred to as CPU), circuit board (not shown) and power circuit (do not show in figure Go out).The circuit board is placed in the interior volume that the housing surrounds;The CPU602 and the memory 601 are arranged on institute State on circuit board;The power circuit, for each circuit or the device power supply for the intelligent terminal;The memory 601, For storing executable program code;The CPU602 is by reading the executable program code stored in the memory 601 To run computer program corresponding with the executable program code, to realize following steps:
Obtain relatives' annexation between the member and member of user's input;
According to relatives' annexation between the member and the relatives' dictionary table prestored, determine the member in paternal line Relatives' node location in family's virtual tree;
According to relatives' node location and the patrilineal family virtual tree, determine most short corresponding to kinship to be analyzed Relatives' path code;
According to relatives' dictionary table and most short relatives' path code, the analysis of the kinship to be analyzed is determined As a result.
The intelligent terminal also includes:Peripheral Interface 603, RF (Radio Frequency, radio frequency) circuit 605, audio-frequency electric Road 606, loudspeaker 611, power management chip 608, input/output (I/O) subsystem 609, touch-screen 612, other input/controls Control equipment 610 and outside port 604, these parts are communicated by one or more communication bus or signal wire 607.
It should be understood that diagram intelligent terminal 600 is only an example of intelligent terminal, and intelligent terminal 600 Can have than more or less parts shown in figure, can combine two or more parts, or can be with Configured with different parts.Various parts shown in figure can be including one or more signal transactings and/or special Hardware, software including integrated circuit are realized in the combination of hardware and software.
The intelligent terminal for being used to analyze kinship that the present embodiment provides is described in detail below, the intelligence is eventually End is by taking mobile phone as an example.
Memory 601, the memory 601 can be accessed by CPU602, Peripheral Interface 603 etc., and the memory 601 can Including high-speed random access memory, can also include nonvolatile memory, such as one or more disk memories, Flush memory device or other volatile solid-state parts.
The input of equipment and output peripheral hardware can be connected to CPU602 and deposited by Peripheral Interface 603, the Peripheral Interface 603 Reservoir 601.
I/O subsystems 609, the I/O subsystems 609 can be by the input/output peripherals in equipment, such as touch-screen 612 With other input/control devicess 610, Peripheral Interface 603 is connected to.I/O subsystems 609 can include the He of display controller 6091 For controlling one or more input controllers 6092 of other input/control devicess 610.Wherein, one or more input controls Device 6092 processed receives electric signal from other input/control devicess 610 or sends electric signal to other input/control devicess 610, Other input/control devicess 610 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole, click on roller.What deserves to be explained is input controller 6092 can with it is following any one be connected:Keyboard, infrared port, The instruction equipment of USB interface and such as mouse.
Touch-screen 612, the touch-screen 612 are the input interface and output interface between user's intelligent terminal and user, Visual output display can be included into figure, text, icon, video etc. to user, visual output.
Display controller 6091 in I/O subsystems 609 receives electric signal from touch-screen 612 or sent out to touch-screen 612 Electric signals.Touch-screen 612 detects the contact on touch-screen, and the contact detected is converted to and shown by display controller 6091 The interaction of user interface object on touch-screen 612, that is, realize man-machine interaction, the user interface being shown on touch-screen 612 Icon that object can be the icon of running game, be networked to corresponding network etc..What deserves to be explained is equipment can also include light Mouse, light mouse is not show the touch sensitive surface visually exported, or the extension of the touch sensitive surface formed by touch-screen.
RF circuits 605, it is mainly used in establishing the communication of mobile phone and wireless network (i.e. network side), realizes mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 605 receive and send RF letters Number, RF signals are also referred to as electromagnetic signal, and RF circuits 605 convert electrical signals to electromagnetic signal or electromagnetic signal is converted into telecommunications Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuits 605 can include being used to perform The known circuit of these functions, it includes but is not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one Individual or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identify mould Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 606, it is mainly used in receiving voice data from Peripheral Interface 603, the voice data is converted into telecommunications Number, and the electric signal is sent to loudspeaker 611.
Loudspeaker 611, for the voice signal for receiving mobile phone from wireless network by RF circuits 605, it is reduced to sound And play the sound to user.
Power management chip 608, the hardware for being connected by CPU602, I/O subsystem and Peripheral Interface are powered And power management.
The executable present invention of analytical equipment, storage medium and intelligent terminal of the kinship provided in above-described embodiment appoints The analysis method for the kinship that meaning embodiment is provided, possess and perform the corresponding functional module of this method and beneficial effect.Not The ins and outs of detailed description in the above-described embodiments, reference can be made to the analysis for the kinship that any embodiment of the present invention is provided Method.
Pay attention to, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.

Claims (16)

  1. A kind of 1. analysis method of kinship, it is characterised in that including:
    Obtain relatives' annexation between the member and member of user's input;
    According to relatives' annexation between the member and the relatives' dictionary table prestored, determine the member in patrilineal family Relatives' node location in virtual tree;
    According to relatives' node location and the patrilineal family virtual tree, most short relatives corresponding to kinship to be analyzed are determined Path code;
    According to relatives' dictionary table and most short relatives' path code, the analysis knot of the kinship to be analyzed is determined Fruit.
  2. 2. according to the method for claim 1, it is characterised in that relatives' annexation according between the member and pre- The relatives' dictionary table first stored, relatives node location of the member in patrilineal family virtual tree is determined, including:
    Kinship corresponding to relatives' annexation between the member is searched in relatives' dictionary table to encode;
    The seniority in the family of the member is calculated according to kinship coding;
    The default relatives' node location member of the minimum seniority in the family in the seniority in the family being positioned in the patrilineal family virtual tree;
    Encoded according to relatives' annexation between the member and the kinship, determine other members in the paternal line successively Relatives' node location in family's virtual tree, until completing relatives node location of all members in patrilineal family virtual tree It is determined that;Wherein, other described members are the member in addition to the member of the minimum seniority in the family.
  3. 3. according to the method for claim 2, it is characterised in that described according to relatives' node location and the paternal family Race's virtual tree, most short relatives' path code corresponding to kinship to be analyzed is determined, including:
    Relatives node location of the starting point member in the kinship to be analyzed in the patrilineal family virtual tree is obtained to make For starting point relatives' node location;
    Relatives node location of the terminal member in the kinship to be analyzed in the patrilineal family virtual tree is obtained to make For terminal relatives' node location;
    Based on figure calculating method in the patrilineal family virtual tree, it is determined that close from the starting point relatives node location to the terminal Belong to the most short relatives path of node location;
    Most short relatives' path code described in coding conduct corresponding to the most short relatives path by described in.
  4. 4. according to the method for claim 1, it is characterised in that described according to relatives' dictionary table and the most short relatives Path code, the analysis result of the kinship to be analyzed is determined, including:
    First Kinship Terms corresponding to most short relatives' path code described in being searched in relatives' dictionary table;
    Analysis result using first Kinship Terms as the kinship to be analyzed.
  5. 5. according to the method for claim 1, it is characterised in that also include:
    Obtain the identity card ID of the member;
    It is described according to relatives' dictionary table and most short relatives' path code, determine the analysis of the kinship to be analyzed As a result, including:
    According to the identity card ID of relatives' dictionary table, most short relatives' path code and the member, treated point it is determined that described Analyse the analysis result of kinship.
  6. 6. according to the method for claim 5, it is characterised in that described according to relatives' dictionary table, the most short relatives Path code and the identity card ID of the member, the analysis result of the kinship to be analyzed is determined, including:
    First Kinship Terms corresponding to most short relatives' path code described in being searched in relatives' dictionary table;
    According to the identity card ID of the member, the second Kinship Terms are determined from first Kinship Terms;Wherein, described second One of Kinship Terms that Kinship Terms belong in first Kinship Terms;
    Analysis result using second Kinship Terms as the kinship to be analyzed.
  7. 7. according to any described methods of claim 1-6, it is characterised in that relatives' dictionary table includes following dictionary table category Property:ID number attribute, Kinship Terms attribute, relatives' path code attribute, key position attribute, comparative result attribute, the ratio of relatives Compared with position attribution, reverse relatives' path code attribute;
    Wherein, the key position attribute, for representing position of the relatives at age to be compared in relatives' path code;
    The comparison position attribute, for representing the benchmark relatives compared with the relatives at the age to be compared on the relatives road Position in the coding of footpath;
    The comparative result attribute, for representing the relatives at the age to be compared and the age size of the benchmark relatives.
  8. A kind of 8. analytical equipment of kinship, it is characterised in that including:
    Relatives' annexation acquisition module, obtain relatives' annexation between the member and member of user's input;
    Relatives' node location determining module, for according to relatives' annexation between the member and the relatives' dictionary prestored Table, determine relatives node location of the member in patrilineal family virtual tree;
    Most short relatives' path code acquisition module, for according to relatives' node location and the patrilineal family virtual tree, really Most short relatives' path code corresponding to fixed kinship to be analyzed;
    Analysis result determining module, for according to relatives' dictionary table and most short relatives' path code, it is determined that described treat Analyze the analysis result of kinship.
  9. 9. device according to claim 8, it is characterised in that relatives' node location determining module, be used for:
    Kinship corresponding to relatives' annexation between the member is searched in relatives' dictionary table to encode;
    The seniority in the family of the member is calculated according to kinship coding;
    The default relatives' node location member of the minimum seniority in the family in the seniority in the family being positioned in the patrilineal family virtual tree;
    Encoded according to relatives' annexation between the member and the kinship, determine other members in the paternal line successively Relatives' node location in family's virtual tree, until completing relatives node location of all members in patrilineal family virtual tree It is determined that;Wherein, other described members are the member in addition to the member of the minimum seniority in the family.
  10. 10. device according to claim 9, it is characterised in that most short relatives' path code acquisition module, be used for:
    Relatives node location of the starting point member in the kinship to be analyzed in the patrilineal family virtual tree is obtained to make For starting point relatives' node location;
    Relatives node location of the terminal member in the kinship to be analyzed in the patrilineal family virtual tree is obtained to make For terminal relatives' node location;
    Based on figure calculating method in the patrilineal family virtual tree, it is determined that close from the starting point relatives node location to the terminal Belong to the most short relatives path of node location;
    Most short relatives' path code described in coding conduct corresponding to the most short relatives path by described in.
  11. 11. device according to claim 8, it is characterised in that the analysis result determining module, be used for:
    First Kinship Terms corresponding to most short relatives' path code described in being searched in relatives' dictionary table;
    Analysis result using first Kinship Terms as the kinship to be analyzed.
  12. 12. device according to claim 8, it is characterised in that also include:
    Identity card ID acquisition modules, for obtaining the identity card ID of the member;
    The analysis result determining module, including:
    Analysis result determining unit, for according to relatives' dictionary table, most short relatives' path code and the member Identity card ID, determine the analysis result of the kinship to be analyzed.
  13. 13. device according to claim 12, it is characterised in that the analysis result determining unit, be used for:
    First Kinship Terms corresponding to most short relatives' path code described in being searched in relatives' dictionary table;
    According to the identity card ID of the member, the second Kinship Terms are determined from first Kinship Terms;Wherein, described second One of Kinship Terms that Kinship Terms belong in first Kinship Terms;
    Analysis result using second Kinship Terms as the kinship to be analyzed.
  14. 14. according to any described devices of claim 8-13, it is characterised in that relatives' dictionary table includes following dictionary table Attribute:The ID number attribute of relatives, Kinship Terms attribute, relatives' path code attribute, key position attribute, comparative result attribute, Comparison position attribute, reverse relatives' path code attribute;
    Wherein, the key position attribute, for representing position of the relatives at age to be compared in relatives' path code;
    The comparison position attribute, for representing the benchmark relatives compared with the relatives at the age to be compared on the relatives road Position in the coding of footpath;
    The comparative result attribute, for representing the relatives at the age to be compared and the age size of the benchmark relatives.
  15. 15. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor The analysis method of the kinship as described in any in claim 1-7 is realized during execution.
  16. 16. a kind of intelligent terminal, it is characterised in that including memory, processor and storage are on a memory and can be in processor The computer program of operation, it is characterised in that realize that claim 1-7 such as appoints described in the computing device during computer program The analysis method of kinship described in one.
CN201710683559.2A 2017-08-11 2017-08-11 A kind of analysis method of kinship, device, storage medium and intelligent terminal Pending CN107451285A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710683559.2A CN107451285A (en) 2017-08-11 2017-08-11 A kind of analysis method of kinship, device, storage medium and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710683559.2A CN107451285A (en) 2017-08-11 2017-08-11 A kind of analysis method of kinship, device, storage medium and intelligent terminal

Publications (1)

Publication Number Publication Date
CN107451285A true CN107451285A (en) 2017-12-08

Family

ID=60491644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710683559.2A Pending CN107451285A (en) 2017-08-11 2017-08-11 A kind of analysis method of kinship, device, storage medium and intelligent terminal

Country Status (1)

Country Link
CN (1) CN107451285A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110334218A (en) * 2019-06-10 2019-10-15 王晟琦 Generation method, device, computer equipment and the readable storage medium storing program for executing of emotional affection tree
CN114840677A (en) * 2022-07-04 2022-08-02 南京华飞数据技术有限公司 Short text classification and intelligent analysis system for multi-granularity requirements

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064872A (en) * 2011-10-24 2013-04-24 斯凯普公司 Processing search queries in a network of interconnected nodes
CN105843923A (en) * 2016-03-25 2016-08-10 博康智能网络科技股份有限公司 Kinship analysis method based on household registration information data

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064872A (en) * 2011-10-24 2013-04-24 斯凯普公司 Processing search queries in a network of interconnected nodes
CN105843923A (en) * 2016-03-25 2016-08-10 博康智能网络科技股份有限公司 Kinship analysis method based on household registration information data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110334218A (en) * 2019-06-10 2019-10-15 王晟琦 Generation method, device, computer equipment and the readable storage medium storing program for executing of emotional affection tree
CN114840677A (en) * 2022-07-04 2022-08-02 南京华飞数据技术有限公司 Short text classification and intelligent analysis system for multi-granularity requirements

Similar Documents

Publication Publication Date Title
CN108491433B (en) Chat response method, electronic device and storage medium
EP4310695A1 (en) Data processing method and apparatus, computer device, and storage medium
CN115311730B (en) Face key point detection method and system and electronic equipment
CN112287069A (en) Information retrieval method and device based on voice semantics and computer equipment
CN113707299A (en) Auxiliary diagnosis method and device based on inquiry session and computer equipment
CN111611390B (en) Data processing method and device
CN111339784B (en) Automatic new topic mining method and system
CN112395391A (en) Concept graph construction method and device, computer equipment and storage medium
CN112084779A (en) Entity acquisition method, device, equipment and storage medium for semantic recognition
CN107451285A (en) A kind of analysis method of kinship, device, storage medium and intelligent terminal
CN109034199B (en) Data processing method and device, storage medium and electronic equipment
CN108111603A (en) Information recommendation method, device, terminal device and storage medium
CN112419312B (en) Similar house source information detection method and device, electronic equipment and readable medium
CN113220828B (en) Method, device, computer equipment and storage medium for processing intention recognition model
CN112528040B (en) Detection method for guiding drive corpus based on knowledge graph and related equipment thereof
CN111444321A (en) Question answering method, device, electronic equipment and storage medium
CN111553163A (en) Text relevance determining method and device, storage medium and electronic equipment
CN107451286A (en) A kind of analysis method of kinship, device, storage medium and intelligent terminal
CN114265835A (en) Data analysis method and device based on graph mining and related equipment
CN115809313A (en) Text similarity determination method and equipment
JP2018181008A (en) Server device
CN111753548A (en) Information acquisition method and device, computer storage medium and electronic equipment
CN112488157A (en) Dialog state tracking method and device, electronic equipment and storage medium
CN112949317B (en) Text semantic recognition method and device, computer equipment and storage medium
CN117093715B (en) Word stock expansion method, system, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20210806