Differences

This shows you the differences between two versions of the page.

projs:clans:docs:functions [2014/01/26 22:42]
jfeng0
projs:clans:docs:functions [2014/02/12 17:59] (current)
jfeng0
Line 3: Line 3:
^  API  ^  Description  ^ ^  API  ^  Description  ^
|  [[projs:clans:docs:getrelatedpeople|getRelatedPeople(people_name,[reuqired_page])]]  |  Return a list of people whose name is related with people_name  |   |  [[projs:clans:docs:getrelatedpeople|getRelatedPeople(people_name,[reuqired_page])]]  |  Return a list of people whose name is related with people_name  |  
-|  getRelatedCompany(company_name)  |  Return a list of companies whose name is related with company_name  |  +|  [[projs:clans:docs:getrelatedcompany|getRelatedCompany(company_name)]] |  Return a list of companies whose name is related with company_name  |  
|  getRelatedPeople(people_name1, people_name2, [including_people_list, excluding_people_list])  |  Return 2 list of people whose name is related with people_name1 and people_name2  |   |  getRelatedPeople(people_name1, people_name2, [including_people_list, excluding_people_list])  |  Return 2 list of people whose name is related with people_name1 and people_name2  |  
|  getRelatedCompany(company_name1, company_name2, [including_company_list, excluding_company_list])  |  Return 2 list of companies whose name is related with company_name1 and company_name2  |   |  getRelatedCompany(company_name1, company_name2, [including_company_list, excluding_company_list])  |  Return 2 list of companies whose name is related with company_name1 and company_name2  |  
Line 21: Line 21:
|  getGraphStatistics(social_network_type)  |  return radius, spectral_radius, average_clustering_coefficient, average_shortest_path_length, center, density, periphery, is_strongly_connected, number_of_strongly_connected_components, strongly_connected_components, is_weakly_connected, number_of_weakly_connected_components, weakly_connected_components  |   |  getGraphStatistics(social_network_type)  |  return radius, spectral_radius, average_clustering_coefficient, average_shortest_path_length, center, density, periphery, is_strongly_connected, number_of_strongly_connected_components, strongly_connected_components, is_weakly_connected, number_of_weakly_connected_components, weakly_connected_components  |  
|  getGraphStatistics(social_network_type, unique_node_id)  |  return closeness, betweenness, in_degree_centrality, out_degree_centrality, in_degree, out_degree, eccentricity  |   |  getGraphStatistics(social_network_type, unique_node_id)  |  return closeness, betweenness, in_degree_centrality, out_degree_centrality, in_degree, out_degree, eccentricity  |  
-|  getShortestPath(pid1, pid2, [including_pid_list, excluding_pid_list]) |  return shortest path between two people  |  +|  getShortestPath(pid1, pid2, [including_pid_list, excluding_pid_list]) |  return shortest path between two people  |  
|  getShortestPath(stock_id1, stock_id2, [including_stock_id_list, excluding_stock_id_list])  |  return shortest path between two companies  |   |  getShortestPath(stock_id1, stock_id2, [including_stock_id_list, excluding_stock_id_list])  |  return shortest path between two companies  |  
|  getShortestPath(stock_id, pid, [including_stock_id_list, excluding_stock_id_list, including_pid_list, excluding_pid_list])  |  return shortest path between people and company  |   |  getShortestPath(stock_id, pid, [including_stock_id_list, excluding_stock_id_list, including_pid_list, excluding_pid_list])  |  return shortest path between people and company  |  
|  getRelationBridge(stock_id1, stock_id2, [duration])  |  return bridge between companies  |   |  getRelationBridge(stock_id1, stock_id2, [duration])  |  return bridge between companies  |  
|  getPeopleBridge(stock_id1, stock_id2, [duration])  |  return people who connect two companies  |   |  getPeopleBridge(stock_id1, stock_id2, [duration])  |  return people who connect two companies  |  
 +| [[projs:clans:docs:snd:getindustrydistribution|GetSubIndustyD(subIndustry)]]| return colleges which alumnus are most common working in sub industry. |
 +| [[projs:clans:docs:snd:getindistryd|GetIndistryD(industry,top)]] | return a list of colleges which alumnus are most common working in this industry. |
 +| [[projs:clans:docs:snd:getcompanydistribution|GetCompanyDistribution(college,top)]]| return the most common companies which are most alumnus of this college work in. |
 +| [[projs:clans:docs:snd:gettitledistribution|GetTitleDistribution(college,top)]] |  return a sorted list of title which alumnus of this college most get. |
 +
===== Social Networth ===== ===== Social Networth =====
Line 76: Line 81:
  - [[projs:clans:docs:data_schema|Data schema structure of v1]]   - [[projs:clans:docs:data_schema|Data schema structure of v1]]
  - [[projs:clans:docs:data_schema|Description file of v1]]   - [[projs:clans:docs:data_schema|Description file of v1]]
-  - Data schema structure of v2+  - [[projs:clans:docs:data_schema_v2|Data schema structure of v2]]
  - Description file of v2   - Description file of v2
==== People ==== ==== People ====
^  API  ^  Description  ^   ^  API  ^  Description  ^  
-|  ifNewPersonExistInXML(person,information_list) |  whether the new person exist in the current data  | +|  [[projs:clans:docs:ifnewpersonexistinxml|ifNewPersonExistInXML(person,information_list)]]  |  whether the new person exist in the current data  |
|  [[projs:clans:docs:addnewperson|addNewRecord(person,information_list, update_date, source)]]  |  add new person  |   |  [[projs:clans:docs:addnewperson|addNewRecord(person,information_list, update_date, source)]]  |  add new person  |  
-|  mergeNewPersonInXML(person, information_list, update_date, source)  |  merge perple's information in the current xml file  |   +|  [[projs:clans:docs:mergenewpersoninxml|mergeNewPersonInXML(person, information_list, update_date, source)]] |  merge people's information in the current xml file  |   
-|  updatePerson(pid, information_list, update_date, source)  |  update exist person's information  |  +|  [[projs:clans:docs:updateperson|updatePerson(pid, information_list, update_date, source)]] |  update exist person's information  |  
==== Company ==== ==== Company ====
^  API  ^  Description  ^   ^  API  ^  Description  ^  
|  addNewCompany(company, information_list, update_date, source)  |  add new company in xml file  |   |  addNewCompany(company, information_list, update_date, source)  |  add new company in xml file  |  
-|  addNewRecord(stcok_id, information_list, update_date, source)  |  add new record in xml file  |  +|  [[projs:clans:docs:addnewrecord|addNewRecord(stcok_id, information_list, update_date, source)]] |  add new record in xml file  |  
|  updateRecord(stock_id, information_list, update_date, source)  |  update record in the xml file  |   |  updateRecord(stock_id, information_list, update_date, source)  |  update record in the xml file  |  
 
projs/clans/docs/functions.1390747342.txt.gz · Last modified: 2014/01/26 22:42 by jfeng0     Back to top