File size: 55,050 Bytes
ad674f8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 |
---
license: mit
---
# SoAyBench
> by WangYC
We've based SoAyBench creation on AMiner. To really understand how well LLMs can use SoAPI, we need to make AMiner's basic SoAPIs available for LLMs to use. We also need a test set made up of academic (question, solution, answer) triplets for checking how they're doing. The tricky part is, academic data keeps changing fast – stuff like info on scholars and their publications. So, keeping a test set with fixed answers is tough.
To tackle this, what we've done is clone AMiner's SoAPIs as they were at a certain moment (Sep 15th 2023). This way, we've got a static version of the service. From there, we create a matching test set that doesn't change.
[toc]
## Dataset Overview
You can find 44 jsonl files in SoAyBench.
Each of the jsonl file contains 18 lines.
Each line is a query-answer data like :
```json
{
"Query": "Query in Chinese",
"Query_en": "Query in English",
"Answer": "Answer to the Query",
"Base_Question_zh": "Template query in Chinese",
"Base_Question_en": "Template query in English",
"Inputs": "Information which serves as the inputs of the APIs",
"Outputs": "The key of the answer at the API's response",
"Entity_Information": "Information that is filled into the template query"
}
```
For example:
```json
{
"Query": "Mutual Information领域的Jean Barbier的代表作的pdf链接是?",
"Query_en": "What is the PDF link of the representative work of Jean Barbier in Mutual Information field?",
"Answer": "//static.aminer.cn/misc/pdf/NIPS/2018/5b3d98cc17c44a510f801b5c.pdf", "Base_Question_zh": "XX领域的XXX的代表作的pdf链接是?",
"Base_Question_en": "What is the PDF link of the representative work of XXX in XX field?",
"Inputs": "name, interest",
"Outputs": "pdf_link",
"Entity_Information":
{
"name": "Jean Barbier",
"organization": "International Centre for Theoretical Physics",
"interest": "Mutual Information"
}
}
```
## How to use AMiner APIs that is included in SoAyBench?
In addition to providing a substantial amount of QA data, SoAyBench also includes a set of SoAPI services, encompassing a total of 7 APIs from AMiner. SoAy has filtered and wrapped the input and output of the original APIs into 7 functions.
You can find this details in https://github.com/RUCKBReasoning/SoAy/model.py
You can try all these APIs with SoAy/api_test.py
```python
class aminer_soay:
def __init__(self):
self.addr = 'https://soay.aminer.cn/'
def searchPersonComp(self, **kwargs):
personList = []
addr = self.addr + 'searchPerson'
headers = {
'Content-Type' : 'application/json'
}
searchKeyWordList = []
if 'name' in kwargs:
searchKeyWordList.append({
"operate": "0",
"wordType": 4,
"keyword": kwargs['name'],
"advanced": True,
"needTranslate": True
})
if 'interest' in kwargs:
searchKeyWordList.append({
"operate": "0",
"wordType": 2,
"keyword": kwargs['interest'],
"advanced": True,
"needTranslate": True
})
if 'organization' in kwargs:
searchKeyWordList.append({
"operate": "0",
"wordType": 5,
"keyword": kwargs['organization'],
"advanced": True,
"needTranslate": True
})
json_content = json.dumps({
"sort": [{'asc': False, 'field' : 'n_citation'}],
"searchKeyWordList": searchKeyWordList,
"needDetails" : True
})
response = requests.post(
url=addr,
headers = headers,
data = json_content
)
result = response.json()
for each in result['data']['hitList']:
# print(each)
try:
personList.append(
{
'person_id' : each['id'],
'name' : each['name'],
'interests' : [each['interests'][i]['t'] for i in range(min(len(each['interests']), 10))],
# 'nation': each['nation'],
'num_citation' : each['ncitation'],
'num_pubs': each['npubs'],
'organization' : each['contact']['affiliation']
}
)
except:
continue
return personList
def searchPublication(self, publication_info):
addr = self.addr + 'searchPublication'
pubList = []
headers = {
'Content-Type' : 'application/json'
}
json_content = json.dumps({
"query" : publication_info,
'needDetails' : True,
'page' : 0,
'size' : 10,
"sort": [{'asc': False, 'field' : 'n_citation'}],
})
response = requests.post(
url=addr,
headers = headers,
data = json_content
)
result = response.json()
for each in result['data']['hitList']:
try:
pubList.append({
'pub_id' : each['id'],
'title' : each['title'],
'year' : each['year']
})
except:
continue
return pubList
def getPublication(self, pub_id):
addr = self.addr + 'getPublication'
addr = wrapUrlParameter(addr, id = pub_id)
# addr = addr + '?AppCode=' + self.appcode + '&id=' + id
response = requests.get(url = addr)
result = response.json()['data'][0]['pub']
info_dict = {}
try:
info_dict['abstract'] = result['abstract']
except:
info_dict['abstract'] = 'paper abstract'
author_list = []
for each in result['authors']:
try:
author_list.append({'person_id' : each['id'], 'name' : each['name']})
except:
continue
if author_list != []:
info_dict['author_list'] = author_list
try:
info_dict['num_citation'] = result['num_citation']
except:
pass
try:
info_dict['year'] = result['year']
except:
pass
try:
info_dict['pdf_link'] = result['pdf']
except:
pass
try:
info_dict['venue'] = result['venue']
except:
pass
return info_dict
def getPersonInterest(self, person_id):
addr = self.addr + 'getPersonInterest'
addr = wrapUrlParameter(addr, id = person_id)
# addr = addr + '?AppCode=' + self.appcode + '&id=' + id
response = requests.get(url = addr)
try:
result = response.json()['data'][0]['data']['data']['data']
except:
return []
interest_list = [result[i]['t'] for i in range(len(result))]
return interest_list
def getCoauthors(self, person_id):
addr = self.addr + 'getCoauthors'
addr = wrapUrlParameter(addr, id = person_id)
response = requests.get(url=addr)
result = response.json()['data'][0]['data']['crs']
coauthorsList = []
for each in result:
try:
coauthorsList.append({
'person_id' : each['id'],
'name' : each['name'],
'relation' : each['relation']
})
except:
continue
# coauthorsList = [{'person_id' : result[i]['id'], 'relation' : result[i]['relation']} for i in range(min(len(result), 10))]
return coauthorsList
def getPersonPubs(self, person_id):
addr = self.addr + 'getPersonPubs'
addr = wrapUrlParameter(addr, id = person_id, offset = 0, size = 10, order = 'citation')
response = requests.get(url=addr)
result = response.json()['data'][0]['data']['pubs']
pub_list = []
for each in result:
try:
pub_list.append({
# 'abstract' : result[i]['abstract'],
'pub_id' : each['id'],
'title' : each['title'],
'num_citation' : each['ncitation'],
'year' : each['year'],
'authors_name_list' : [each['authors'][j]['name']for j in range(len(each['authors']))]
})
except:
continue
return pub_list
def getPersonBasicInfo(self, person_id):
addr = self.addr + 'getPersonBasicInfo'
addr = wrapUrlParameter(addr, id = person_id)
response = requests.get(url=addr)
result = response.json()['data'][0]['data']
# print(response)
info_dic = {
'person_id' : person_id,
'name' : result['name'],
'gender' : result['gender'],
'organization' : result['aff'],
'position' : result['position'],
'bio' : result['bio'],
'education_experience' : result['edu'],
'email' : result['email']
# 'ncitation' : result['num_citation']
}
return info_dic
```
## Original Service
We list all the original AMiner APIs below, which you can use to create new applications.
### searchPerson
#### Information
**Path:** /soay.aminer.cn/searchPerson
**Method:** POST
**Description:**
Examples:
1.Basic Searching
```
{
"query": "jiawei han",
"needDetails": true,
"page": 0,
"size": 10
}
```
2.Complecated Searching
```
{
"searchKeyWordList": [
{
"operate": "0",
"wordType": 5,
"keyword": "University of Illinois at Urbanan",
"advanced": true
},
{
"operate": "0",
"wordType": 4,
"keyword": "jiawei han",
"advanced": true
}
],
"filters": [
{
"boolOperator": "3",
"type": "term",
"field": "gender",
"value": "male"
}
],
"page": 0,
"size": 10,
"needDetails": true,
"aggregations": [
{
"field": "gender",
"type": "terms",
"size": 2
},
{
"field": "nation",
"type": "terms",
"size": 10
},
{
"field": "lang",
"type": "terms",
"size": 10
},
{
"field": "h_index",
"type": "range",
"rangeList": [
{
"from": 0,
"to": 10
},
{
"from": 11,
"to": 20
},
{
"from": 21,
"to": 30
},
{
"from": 31,
"to": 40
},
{
"from": 41,
"to": 50
},
{
"from": 51,
"to": 60
},
{
"from": 61,
"to": 99999
}
],
"size": 1
}
]
}
```
#### Parameters
**Headers**
| Name | Value | Necessary | Example | Note |
| ------------ | ---------------- | --------- | ------- | ---- |
| Content-Type | application/json | Y | | |
**Body**
| Name | Type | Necessary | Default | Note | Others |
| --------------------- | --------- | --------- | ------- | ------------------------------------------------------------ | ----------------- |
| aggregations | object [] | N | | 聚合配置 | item type: object |
| ├─ field | string | N | | 属性: h_index-h指数; lang-语言; nation-国家和地区; gender-性别; | |
| ├─ order | object | N | | 聚合排序参数(termstype,filed不为_key及_count时为要排序的子聚合的路径) | |
| ├─ asc | boolean | Y | | 升序排序 | |
| ├─ field | string | Y | | 字段 | |
| ├─ rangeList | object [] | N | | 分段列表(rangtype) | item type: object |
| ├─ from | number | N | | 起始,gte | |
| ├─ to | number | N | | 截止,lte | |
| ├─ size | number | N | | 聚合结果大小(termstype) | |
| ├─ subAggregationList | object [] | N | | 子聚合参数列表 | item type: object |
| ├─ type | string | N | | type(terms,range,max,min,avg) | |
| filters | object [] | N | | 过滤配置 | item type: object |
| ├─ boolOperator | number | N | | bool操作type: 0-must;(参与分数计算,如无特殊需求,不推荐使用) 1-should; 2-mustNot; 3-filter;(不参与分数计算,推荐) | |
| ├─ field | string | N | | 过滤字段: h_index-h指数; lang-语言; nation-国家和地区; gender-性别; | |
| ├─ rangeOperator | string | N | | 判断符(rangetype使用:gt-大于;gte-大于等于;lt-小于;lte-小于等于;eq-等于) | |
| ├─ type | string | N | | type: term-关键词过滤; terms-多关键词过滤; range-数值范围过滤; | |
| ├─ value | object | N | | 过滤值 | |
| ├─ valueList | string [] | N | | 多关键词过滤列表(termstype使用) | item type: string |
| ├─ | | N | | | |
| needDetails | boolean | N | | 查询属性 | |
| page | number | N | | 分页(起始页为0) | |
| query | string | N | | 通用查询词 | |
| searchKeyWordList | object [] | N | | 高级搜索词列表 | item type: object |
| ├─ advanced | boolean | N | | 是否高级搜索 | |
| ├─ fieldMap | object | N | | 字段映射及字段权重(如无特殊需求,参数请勿添加此字段) | |
| ├─ keyword | string | Y | | 关键词 | |
| ├─ language | number | N | | 词语言(如无特殊需求,参数请勿添加此字段) | |
| ├─ needTranslate | boolean | N | | 是否翻译(非必填,默认为false) | |
| ├─ operate | number | Y | | 搜索运算type: 0-并且; 1-或者; 2-且非; | |
| ├─ segmentationWord | boolean | N | | 是否分词(非必填,默认为false) | |
| ├─ userInput | boolean | N | | 是否用户输入(非必填,默认为true) | |
| ├─ weight | number | N | | 词权重(如无特殊需求,参数请勿添加此字段) | |
| ├─ wordType | number | Y | | 词type: 0-术语; 4-作者; 5-组织; | |
| size | number | Y | | 页长(最小为1) | |
| sort | object [] | N | | 排序 | item type: object |
| ├─ asc | boolean | Y | | 升序排序 | |
| ├─ field | string | Y | | 字段: h_index-h指数; activity-学术活跃度; rising_star-领域新星; n_citation-引用数; n_pubs-论文数; | |
#### Return
| name | type | necessary | default | notes | Other Information |
| ----------------- | --------- | --------- | ------- | ------------------------------------------------------------ | ----------------- |
| code | number | Y | | 错误码 | |
| success | boolean | Y | | 接口成功信息 | |
| data | object | Y | | Return | |
| ├─ hitList | object [] | N | | 命中列表 | item type: object |
| ├─ id | string | Y | | id | |
| ├─ name | string | N | | 英文姓名 | |
| ├─ nameZh | string | N | | 中文姓名 | |
| ├─ gender | string | N | | 性别 | |
| ├─ org | string | N | | 组织 | |
| ├─ orgZh | string | N | | 中文组织 | |
| ├─ interests | string [] | N | | 研究兴趣 | item type: string |
| ├─ | | N | | | |
| ├─ avatar | string | N | | 头像 | |
| ├─ language | string | N | | 语言( "chinese" "english" "french" "german" "greek" "japanese" "unknown" "korean" "indian" "hindi" "italian" "spanish" "dutch" "russian" "swedish" "arabic" "portuguese" "hebrew" "bengali" "turkish") | |
| ├─ location | string | N | | | |
| ├─ nation | string | N | | 国家或地区 | |
| ├─ activity | number | N | | | |
| ├─ contact | object | N | | 人为标注信息 | |
| ├─ gindex | number | N | | | |
| ├─ hindex | number | N | | | |
| ├─ npubs | number | N | | 论文数 | |
| ├─ ncitation | number | N | | 引用数 | |
| ├─ hitsTotal | number | N | | 命中数 | |
| ├─ aggregationMap | object | N | | 聚合信息 | |
| msg | string | Y | | 接口成功说明 | |
### searchPublication
#### Information
**Path:** /soay.aminer.cn/searchPublication
**Method:** POST
**Description:**
Examples:
1.Basic Searching
```
{
"query": "data mining",
"needDetails": true,
"page": 0,
"size": 10
}
```
2.Complecated Searching
```
{
"needDetails": true,
"page": 0,
"size": 20,
"aggregations": [
{
"field": "keywords.keyword",
"size": 20,
"type": "terms"
},
{
"field": "authors.orgid",
"size": 20,
"type": "terms"
},
{
"field": "year",
"size": 100,
"type": "terms"
}
],
"filters": [
{
"boolOperator": 3,
"type": "term",
"value": "data structure",
"field": "keywords.keyword"
}
],
"searchKeyWordList": [
{
"advanced": true,
"keyword": "jiawei han",
"operate": "0",
"wordType": 4
},
{
"advanced": true,
"keyword": "Mining frequent patterns without candidate generation",
"operate": "0",
"wordType": 1
}
]
}
```
#### Parameters
**Headers**
| name | 参数值 | necessary | examples | notes |
| ------------ | ---------------- | --------- | -------- | ----- |
| Content-Type | application/json | Y | | |
**Body**
| name | type | necessary | default | notes | Other Information |
| --------------------- | --------- | --------- | ------- | ------------------------------------------------------------ | ----------------- |
| aggregations | object [] | N | | 聚合配置 | item type: object |
| ├─ field | string | N | | 属性: keywords.keyword-关键词; authors.orgid-作者机构id; year-发表年份; | |
| ├─ order | object | N | | 聚合排序参数(termstype,filed不为_key及_count时为要排序的子聚合的路径) | |
| ├─ asc | boolean | Y | | 升序排序 | |
| ├─ field | string | Y | | 字段 | |
| ├─ rangeList | object [] | N | | 分段列表(rangtype) | item type: object |
| ├─ from | number | N | | 起始,gte | |
| ├─ to | number | N | | 截止,lte | |
| ├─ size | number | N | | 聚合结果大小(termstype) | |
| ├─ subAggregationList | object [] | N | | 子聚合参数列表 | item type: object |
| ├─ type | string | N | | type(terms,range,max,min,avg) | |
| filters | object [] | N | | 过滤配置 | item type: object |
| ├─ boolOperator | number | N | | bool操作type: 0-must;(参与分数计算,且与should互斥,如无特殊需求,不推荐使用) 1-should; 2-mustNot; 3-filter;(不参与分数计算,推荐) | |
| ├─ field | string | N | | 过滤字段: keywords.keyword-关键词; authors.orgid-作者机构id; year-发表年份; | |
| ├─ rangeOperator | string | N | | 判断符(rangetype使用:gt-大于;gte-大于等于;lt-小于;lte-小于等于;eq-等于) | |
| ├─ type | string | N | | type: term-关键词过滤; terms-多关键词过滤; range-数值范围过滤; | |
| ├─ value | object | N | | 过滤值 | |
| ├─ valueList | string [] | N | | 多关键词过滤列表(termstype使用) | item type: string |
| ├─ | | N | | | |
| needDetails | boolean | N | | 查询属性 | |
| page | number | Y | | 分页(起始页为0) | |
| query | string | N | | 通用查询词 | |
| searchKeyWordList | object [] | N | | 高级搜索词列表 | item type: object |
| ├─ advanced | boolean | N | | 是否高级搜索 | |
| ├─ fieldMap | object | N | | 字段映射及字段权重(如无特殊需求,参数请勿添加此字段) | |
| ├─ keyword | string | Y | | 关键词 | |
| ├─ language | number | N | | 词语言(如无特殊需求,参数请勿添加此字段) | |
| ├─ needTranslate | boolean | N | | 是否翻译(非必填,默认为false) | |
| ├─ operate | number | Y | | 搜索运算type: 0-并且; 1-或者; 2-且非; | |
| ├─ segmentationWord | boolean | N | | 是否分词(非必填,默认为false) | |
| ├─ userInput | boolean | N | | 是否用户输入(非必填,默认为true) | |
| ├─ weight | number | N | | 词权重(如无特殊需求,参数请勿添加此字段) | |
| ├─ wordType | number | Y | | 词type: 0-术语; 1-标题; 2-关键词; 3-摘要; 4-作者; 5-组织; 6-期刊; | |
| size | number | Y | | 页长(最小为1) | |
| sort | object [] | N | | 排序 | item type: object |
| ├─ asc | boolean | Y | | 升序排序 | |
| ├─ field | string | Y | | 字段: year-发表年份; n_citation-引用数; | |
#### Return
| name | type | necessary | default | notes | Other Information |
| ----------------- | --------- | --------- | ------- | ---------------------- | ----------------- |
| code | number | Y | | 错误码 | |
| success | boolean | Y | | 接口成功信息 | |
| data | object | Y | | Return | |
| ├─ hitList | object [] | N | | 结果列表 | item type: object |
| ├─ id | string | Y | | | |
| ├─ title | string | N | | 论文标题 | |
| ├─ titleZh | string | N | | 中文标题 | |
| ├─ authors | string [] | N | | 作者 | item type: string |
| ├─ | | N | | | |
| ├─ language | string | N | | 语言 | |
| ├─ year | number | N | | 发表年份 | |
| ├─ pdf | string | N | | | |
| ├─ doi | string | N | | | |
| ├─ issn | string | N | | | |
| ├─ isbn | string | N | | | |
| ├─ pubAbstract | string | N | | 摘要 | |
| ├─ pubAbstractZh | string | N | | 中文摘要 | |
| ├─ url | string [] | N | | | item type: string |
| ├─ | | N | | | |
| ├─ keywords | string [] | N | | 关键词 | item type: string |
| ├─ | | N | | | |
| ├─ keywordsZh | string [] | N | | 中文关键词 | item type: string |
| ├─ | | N | | | |
| ├─ venue | object | N | | 期刊 | |
| ├─ _id | string | N | | 期刊id | |
| ├─ raw | string | N | | 期刊name | |
| ├─ pageStart | string | N | | 起始页 | |
| ├─ pageEnd | string | N | | 截止页 | |
| ├─ pageString | string | N | | 起始页截止页字符串表示 | |
| ├─ volume | string | N | | 期刊卷册号 | |
| ├─ createDate | string | N | | | |
| ├─ ncitation | number | N | | 引用量 | |
| ├─ hitsTotal | number | N | | 命中数量 | |
| ├─ aggregationMap | object | N | | 聚合信息 | |
| msg | string | Y | | 接口成功信息 | |
### getPublication
#### Information
**Path:** /soay.aminer.cn/getPublication
**Method:** GET
**Description:**
#### Parameters
**Query**
| name | necessary | examples | notes |
| ---- | --------- | -------- | ----- |
| id | 是 | | |
#### Return
| name | type | necessary | default | notes | Other Information |
| --------------- | --------- | --------- | ------- | ------------------------ | ----------------- |
| data | object [] | N | | | item type: object |
| ├─ cited_pubs | object | N | | | |
| ├─ total | number | N | | | |
| ├─ meta | object | N | | | |
| ├─ context | string | N | | | |
| ├─ time | string | N | | | |
| ├─ times | object [] | N | | | item type: object |
| ├─ d | number | N | | | |
| ├─ n | string | N | | | |
| ├─ s | string | N | | | |
| ├─ pub | object | N | | | |
| ├─ abstract | string | N | | 摘要 | |
| ├─ authors | object [] | N | | 作者列表 | item type: object |
| ├─ name | string | Y | | 作者姓名 | |
| ├─ id | string | N | | 作者id | |
| ├─ org | string | N | | 作者机构 | |
| ├─ orgid | string | N | | 机构id | |
| ├─ orgs | string [] | N | | | item type: string |
| ├─ | | N | | | |
| ├─ create_time | string | N | | | |
| ├─ doi | string | N | | | |
| ├─ hashs | object | N | | | |
| ├─ h1 | string | N | | | |
| ├─ h3 | string | N | | | |
| ├─ id | string | Y | | | |
| ├─ issn | string | N | | | |
| ├─ keywords | string [] | N | | 关键词 | item type: string |
| ├─ | | N | | | |
| ├─ lang | string | N | | 语言 | |
| ├─ num_citation | number | N | | 引用量 | |
| ├─ pages | object | N | | 发表期刊所在页码 | |
| ├─ end | string | N | | | |
| ├─ start | string | N | | | |
| ├─ title | string | Y | | 论文标题 | |
| ├─ pdf | string | N | | pdf文件链接 | |
| ├─ update_times | object | N | | | |
| ├─ u_v_t | string | N | | | |
| ├─ u_a_t | string | N | | | |
| ├─ u_c_t | string | N | | 创建时间 | |
| ├─ urls | string [] | N | | 原文url | item type: string |
| ├─ | | N | | | |
| ├─ venue | object | N | | 期刊信息(未对齐实体信息) | |
| ├─ info | object | N | | | |
| ├─ name | string | N | | | |
| ├─ issue | string | N | | | |
| ├─ volume | string | N | | | |
| ├─ venue_hhb_id | string | N | | 期刊id | |
| ├─ versions | object [] | N | | 合并版本信息 | item type: object |
| ├─ id | string | N | | | |
| ├─ sid | string | N | | | |
| ├─ src | string | N | | | |
| ├─ vsid | string | N | | | |
| ├─ year | number | N | | | |
| ├─ year | number | N | | 发表年份 | |
| ├─ succeed | boolean | N | | | |
| ├─ total_ref | number | N | | | |
| ├─ total_sim | number | N | | | |
### getPersonBasicInfo
#### Information
**Path:** /soay.aminer.cn/getPersonBasicInfo
**Method:** GET
**Description:**
学者个人基础信息
#### Parameters
**Query**
| name | necessary | examples | notes |
| ---- | --------- | -------- | ------ |
| id | Y | | 学者ID |
#### Return
| name | type | necessary | default | notes | Other Information |
| -------------------------- | --------- | --------- | ------- | ------------------------------------ | ----------------- |
| data | object [] | N | | | item type: object |
| ├─ data | object | N | | | |
| ├─ aff | string | N | | 机构 | |
| ├─ aff_details | object | N | | 机构信息 | |
| ├─ id | string | N | | 机构ID | |
| ├─ name_en | string | N | | 机构英文name | |
| ├─ name_zh | string | N | | 机构中文name | |
| ├─ aff_zh | string | N | | 机构(中文) | |
| ├─ bio | string | N | | 个人简介 | |
| ├─ edu | string | N | | 教育经历 | |
| ├─ email | string | N | | 邮箱 | |
| ├─ first_paper_time | number | N | | 第一篇论文时间 | |
| ├─ gender | string | N | | 性别 | |
| ├─ geo_info | object | N | | 流动信息 | |
| ├─ administrative_division | object | N | | | |
| ├─ country | string | N | | | |
| ├─ en0 | string | N | | | |
| ├─ en1 | string | N | | | |
| ├─ en2 | string | N | | | |
| ├─ formatted_address | string | N | | | |
| ├─ geo | object | N | | | |
| ├─ lat | number | N | | | |
| ├─ lng | number | N | | | |
| ├─ id | string | N | | | |
| ├─ name | string | N | | | |
| ├─ org_id | string | N | | | |
| ├─ homepage | string | N | | 个人主页 | |
| ├─ id | string | N | | | |
| ├─ labels | string [] | N | | 标签 | item type: string |
| ├─ | | N | | | |
| ├─ language | string | N | | 语言 | |
| ├─ links | object | N | | 个人主页链接 | |
| ├─ gs | object | N | | GoogleScholar个人主页 | |
| ├─ creator | string | N | | 标注人员 | |
| ├─ id | string | N | | | |
| ├─ type | string | N | | 连接type | |
| ├─ url | string | N | | 个人主页url | |
| ├─ resource | object | N | | | |
| ├─ resource_link | object [] | N | | 个人主页链接 | item type: object |
| ├─ id | string | N | | 连接type:hp(个人主页),dblp(dblp主页) | |
| ├─ url | string | N | | 主页连接 | |
| ├─ name | string | N | | 姓名 | |
| ├─ name_zh | string | N | | 中文姓名 | |
| ├─ position | string | N | | 职称 | |
| ├─ position_zh | string | N | | 职称(中文) | |
| ├─ work_details | object | N | | 工作经历 | |
| ├─ id | string | N | | | |
| ├─ name_en | string | N | | | |
| ├─ name_zh | string | N | | | |
| ├─ works | string | N | | 工作经历 | |
| ├─ meta | object | N | | | |
| ├─ context | string | N | | | |
| ├─ time | string | N | | | |
| ├─ succeed | boolean | N | | | |
### getPersonlnterest
#### Information
**Path:** /soay.aminer.cn/getPersonlnterest
**Method:** GET
#### Parameters
**Query**
| name | necessary | examples | notes |
| ------- | --------- | ------------------------ | ---------- |
| id | Y | 53f46a3edabfaee43ed05f08 | 学者id |
| is_year | N | true | 按年份分组 |
#### Return
| name | type | necessary | default | notes | Other Information |
| ---------- | --------- | --------- | ------- | ---------- | ----------------- |
| data | object [] | N | | | item type: object |
| ├─ data | object | N | | | |
| ├─ data | object | N | | | |
| ├─ data | object [] | N | | | item type: object |
| ├─ n | number | Y | | 兴趣程度 | |
| ├─ t | string | Y | | 领域关键词 | |
| ├─ year | array [] | Y | | 年份 | item type: array |
| ├─ | | N | | | |
| ├─ | | N | | | |
| ├─ edited | boolean | N | | | |
| ├─ num | number | N | | | |
| ├─ succeed | boolean | N | | | |
| ├─ meta | object | N | | | |
| ├─ context | string | N | | | |
| ├─ time | string | N | | | |
| ├─ succeed | boolean | N | | | |
### getCoauthors
#### Information
**Path:** /soay.aminer.cn/getCoauthors
**Method:** GET
**Description:**
学者网络关系
#### Parameters
**Query**
| name | necessary | examples | notes |
| ---- | --------- | -------- | ------ |
| id | 是 | | 学者ID |
#### Return
| name | type | necessary | default | notes | Other Information |
| ----------- | --------- | --------- | ------- | ---------------- | ----------------- |
| data | object [] | N | | | item type: object |
| ├─ data | object | N | | | |
| ├─ crs | object [] | N | | 关联学者列表 | item type: object |
| ├─ id | string | Y | | | |
| ├─ name | string | Y | | 姓名 | |
| ├─ relation | string | Y | | 学者关系 | |
| ├─ w | number | Y | | 关系紧密度 | |
| ├─ id | string | N | | | |
| ├─ name | string | N | | 学者姓名 | |
| ├─ name_zh | string | N | | 学者姓名(中文) | |
| ├─ meta | object | N | | | |
| ├─ context | string | N | | | |
| ├─ time | string | N | | | |
| ├─ succeed | boolean | N | | | |
### getPersonPubs
#### Information
**Path:** /soay.aminer.cn/getPersonPubs
**Method:** GET
**Description:**
学者论文信息
#### Parameters
**Query**
| name | necessary | examples | notes |
| ------ | --------- | -------- | ---------------------------------------------- |
| id | Y | | 学者id |
| offset | Y | | 偏移量 |
| size | Y | | 每次获取条目数量 |
| order | N | citation | 排序方式,支持year和citation,未传默认为year, |
#### Return
| name | type | necessary | default | notes | Other Information |
| -------------- | --------- | --------- | ------- | ------------ | ----------------- |
| data | object [] | N | | | item type: object |
| ├─ data | object | N | | | |
| ├─ gindex | number | N | | g-index | |
| ├─ hindex | number | N | | h-index | |
| ├─ id | string | N | | | |
| ├─ name | string | N | | 姓名 | |
| ├─ name_zh | string | N | | 姓名(中文) | |
| ├─ ncitation | number | N | | 论文引用量 | |
| ├─ npubs | number | N | | 论文数 | |
| ├─ pubs | object [] | N | | 论文列表 | item type: object |
| ├─ abstract | string | Y | | 摘要 | |
| ├─ id | string | Y | | | |
| ├─ link | string [] | Y | | | item type: string |
| ├─ | | N | | | |
| ├─ ncitation | number | Y | | 引用量 | |
| ├─ title | string | Y | | 标题 | |
| ├─ venue | string | Y | | 期刊 | |
| ├─ year | number | Y | | 年份 | |
| ├─ source_link | object [] | Y | | | item type: object |
| ├─ desc | string | Y | | | |
| ├─ link | string | Y | | | |
| ├─ peek | string | Y | | | |
| ├─ meta | object | N | | | |
| ├─ context | string | N | | | |
| ├─ time | string | N | | | |
| ├─ succeed | boolean | N | | | |
|