34 | | == レスポンスサンプル == |
| 47 | == レスポンス仕様 == |
| 48 | * return (OnlineResource): 検索結果単体 ( REST の場合は online_resource ) |
| 49 | * id: リソースの ID |
| 50 | * title: オンラインリソースタイトル |
| 51 | * average_stars: レーティング平均値 |
| 52 | * mesh_term_list: MeSH リスト |
| 53 | * item: MeSH 単体 ( REST の場合は mesh_term ) |
| 54 | * url: オンラインリソース URL |
| 55 | * pages: 参照リンク検索 URL リスト |
| 56 | * google: google による参照リンク検索 URL |
| 57 | * altavista: altavista による参照リンク検索 URL |
| 58 | * papers: 参照文献検索 URI リスト |
| 59 | * biomed_central: !BioMed Central による参照文献検索 URL |
| 60 | * scirus: scirus による参照文献検索 URL |
| 61 | * highwire_press: high wire press による参照文献検索 URL |
| 62 | * google_scholar: google scholar による参照文献検索 URL |
| 63 | * pmid_list: 参照 !PubMed の PMID リスト |
| 64 | * item: 参照 !PubMed の pmid ( REST の場合は pmid ) |
| 65 | == リクエスト / レスポンスサンプル == |
| 66 | 以下のクエリで Web API を呼び出すリクエストとその結果のレスポンスを SOAP / REST の二つでサンプルとして示す。 |
| 67 | * リクエスト内容 |
| 68 | * オンラインリソース ID : 4980 |
| 69 | === SOAP === |
| 70 | * リクエスト |
| 71 | {{{ |
| 72 | <?xml version="1.0" encoding="UTF-8"?> |
| 73 | |
| 74 | <SOAP-ENV:Envelope |
| 75 | |
| 76 | xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| 77 | |
| 78 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 79 | |
| 80 | xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" |
| 81 | |
| 82 | SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" |
| 83 | |
| 84 | xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> |
| 85 | |
| 86 | <SOAP-ENV:Body> |
| 87 | |
| 88 | <m:GetResourceInfoById xmlns:m="urn:ActionWebService"> |
| 89 | |
| 90 | <id xsi:type="xsd:int">4980</id> |
| 91 | |
| 92 | </m:GetResourceInfoById> |
| 93 | |
| 94 | </SOAP-ENV:Body> |
| 95 | |
| 96 | </SOAP-ENV:Envelope> |
| 97 | |
| 98 | }}} |
| 99 | * レスポンス |
| 100 | {{{ |
| 101 | <?xml version="1.0" encoding="UTF-8" ?> |
| 102 | <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| 103 | xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" |
| 104 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 105 | <env:Body> |
| 106 | <n1:GetResourceInfoByIdResponse xmlns:n1="urn:ActionWebService" |
| 107 | env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> |
| 108 | <return xsi:type="n1:Resource..OnlineResource"> |
| 109 | <id xsi:type="xsd:int">4980</id> |
| 110 | <mesh_term_list n2:arrayType="xsd:string[28]" |
| 111 | xmlns:n2="http://schemas.xmlsoap.org/soap/encoding/" |
| 112 | xsi:type="n2:Array"> |
| 113 | <item>Abnormalities, Multiple</item> |
| 114 | <item>Carbamoyl-Phosphate Synthase I Deficiency Disease</item> |
| 115 | <item>Chickens</item> |
| 116 | <item>Chromosome Deletion</item> |
| 117 | <item>Chromosome Mapping</item> |
| 118 | <item>Chromosomes, Human, Pair 2</item> |
| 119 | <item>Computational Biology</item> |
| 120 | <item>DNA Primers</item> |
| 121 | <item>Database Management Systems</item> |
| 122 | <item>Databases, Genetic</item> |
| 123 | <item>Databases, Nucleic Acid</item> |
| 124 | <item>Databases, Protein</item> |
| 125 | <item>Exons</item> |
| 126 | <item>Genome</item> |
| 127 | <item>Genome, Human</item> |
| 128 | <item>Genomics</item> |
| 129 | <item>Information Storage and Retrieval</item> |
| 130 | <item>Internet</item> |
| 131 | <item>Linkage (Genetics)</item> |
| 132 | <item>Microsatellite Repeats</item> |
| 133 | <item>Polymorphism, Single Nucleotide</item> |
| 134 | <item>Proteins</item> |
| 135 | <item>Proteome</item> |
| 136 | <item>Proteomics</item> |
| 137 | <item>RNA, Messenger</item> |
| 138 | <item>Sequence Alignment</item> |
| 139 | <item>Software</item> |
| 140 | <item>Zebrafish</item> |
| 141 | </mesh_term_list> |
| 142 | <pmid_list xmlns:n3="http://schemas.xmlsoap.org/soap/encoding/" |
| 143 | xsi:type="n3:Array" |
| 144 | n3:arrayType="xsd:string[15]"> |
| 145 | <item>16888352</item> |
| 146 | <item>16381938</item> |
| 147 | <item>12045153</item> |
| 148 | <item>15216554</item> |
| 149 | <item>17151077</item> |
| 150 | <item>16888348</item> |
| 151 | <item>16372332</item> |
| 152 | <item>11932250</item> |
| 153 | <item>16722777</item> |
| 154 | <item>12519945</item> |
| 155 | <item>16500937</item> |
| 156 | <item>17142222</item> |
| 157 | <item>15554057</item> |
| 158 | <item>15608236</item> |
| 159 | <item>16888346</item> |
| 160 | </pmid_list> |
| 161 | <average_stars xsi:type="xsd:double">+4.25</average_stars> |
| 162 | <papers xsi:type="n1:Resource..Papers"> |
| 163 | <highwire_press xsi:type="xsd:string">http://highwire.org/cgi/searchresults?fulltext=genome.ucsc.edu%2F&amp;andorexactfulltext=and&amp;author1=&amp;pubdate_year=&amp;volume=&amp;firstpage=&amp;src=hw&amp;searchsubmit=redo&amp;resourcetype=1&amp;search=Search&amp;fmonth=Jan&amp;fyear=1844&amp;tmonth=Dec&amp;tyear=2007&amp;fdatedef=1+January+1844&amp;tdatedef=31+Dec+2007</highwire_press> |
| 164 | <scirus xsi:type="xsd:string">http://www.scirus.com/srsapp/search?q=genome.ucsc.edu%2F&amp;ds=jnl&amp;g=s&amp;t=all</scirus> |
| 165 | <biomed_central xsi:type="xsd:string">http://www.biomedcentral.com/search/results.asp?txtSearch1=genome.ucsc.edu%2F&amp;chkBMCJournals=true&amp;chkCurrentOpinion=true&amp;drpFromDate=&amp;drpToDate=&amp;chkNSP=true&amp;drpAddedInLast=&amp;drpOrderBy=by+date&amp;drpPerPage=20&amp;drpAbstract=no+abstract&amp;strTempString=&amp;strSearchBoxType=bmc_boolean_results&amp;Search.x=10&amp;jou_id=&amp;Search.x=0&amp;Search.y=0&amp;Search=Search</biomed_central> |
| 166 | <google_scholar xsi:type="xsd:string">http://scholar.google.com/scholar?hl=en&amp;lr=&amp;q=genome.ucsc.edu%2F&amp;btnG=Search</google_scholar> |
| 167 | </papers> |
| 168 | <url xsi:type="xsd:string">http://genome.ucsc.edu/</url> |
| 169 | <title xsi:type="xsd:string">UCSC Genome Browser Home</title> |
| 170 | <pages xsi:type="n1:Resource..Pages"> |
| 171 | <google xsi:type="xsd:string">http://www.google.com/search?hl=en&amp;q=link%3ahttp%3A%2F%2Fgenome.ucsc.edu%2F&amp;btnG=Google+Search</google> |
| 172 | <altavista xsi:type="xsd:string">http://www.altavista.com/web/results?itag=ody&amp;q=link:http%3A%2F%2Fgenome.ucsc.edu%2F&amp;kgs=0&amp;kls=1</altavista> |
| 173 | </pages> |
| 174 | </return> |
| 175 | </n1:GetResourceInfoByIdResponse> |
| 176 | </env:Body> |
| 177 | </env:Envelope> |
| 178 | }}} |
| 179 | === REST === |
| 180 | * リクエスト |
| 181 | {{{ |
| 182 | /online_resource/4980.xml |
| 183 | }}} |
| 184 | * レスポンス |