1 | <!DOCTYPE html |
---|
2 | PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
---|
3 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
4 | <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> |
---|
5 | <head> |
---|
6 | <title>OReFiL: Help</title> |
---|
7 | <style type="text/css"> |
---|
8 | <!--/* <![CDATA[ */ |
---|
9 | .a {color: green} |
---|
10 | .b {border: thin dotted #888; font-size:18px} |
---|
11 | .e {background: #eee} |
---|
12 | .m {text-decoration: none; background: #eef; margin: .1ex .1em .1ex .1em} |
---|
13 | .n {background: #ddd} |
---|
14 | a.m:link {color: #00f} |
---|
15 | a.m:visited {color: #00f} |
---|
16 | a.m:hover {color: #770} |
---|
17 | a.m:active {color: #00f} |
---|
18 | h1 {text-indent: .2em; border-color: black; border-width: 0 0 1px 4px; border-style: none none solid double} |
---|
19 | h2 {margin-bottom: 20px; padding: 8px 0; border-top: 6px solid #444; border-bottom: 6px solid #444; text-indent: .2em;} |
---|
20 | h3 {padding: .2em .3em .2em .3em; margin: 0 0 .5em 0; color: white; background: #444} |
---|
21 | ul {margin-top: 0; margin-bottom: 3ex} |
---|
22 | li {margin-bottom: .7ex} |
---|
23 | body {font-family: Arial, sans-serif; margin: 1.5ex; padding: 0; line-height: 1.4; color: #333; font-size: 0.9em} |
---|
24 | html {overflow-y:scroll;} |
---|
25 | p {margin: .7ex .7em .7ex .7em} |
---|
26 | table { |
---|
27 | margin: 0 0 3ex 7ex; |
---|
28 | border: 1px solid #CCCCCC; |
---|
29 | border-collapse: separate; |
---|
30 | border-spacing: 1px; |
---|
31 | } |
---|
32 | td { |
---|
33 | border: 1px solid #CCCCCC; |
---|
34 | border-collapse: separate; |
---|
35 | border-spacing: 1px; |
---|
36 | } |
---|
37 | pre { |
---|
38 | width: 500px; |
---|
39 | padding: 2em; |
---|
40 | overflow: auto; |
---|
41 | border: 1px solid #CCCCCC; |
---|
42 | border-collapse: separate; |
---|
43 | border-spacing: 1px; |
---|
44 | } |
---|
45 | /* ]]> */--> |
---|
46 | </style> |
---|
47 | </head> |
---|
48 | <body> |
---|
49 | <h1>Specification of the OReFiL WebAPI for obtaining online resource information</h1> |
---|
50 | <ul> |
---|
51 | <li><a href="#sec_1">SOAP Interface</a></li> |
---|
52 | <li><a href="#sec_2">REST Interface</a></li> |
---|
53 | <li><a href="#sec_3">Responses</a></li> |
---|
54 | <li><a href="#sec_4">SOAP Request / Response Sample</a></li> |
---|
55 | <li><a href="#sec_5">REST Request / Response Sample</a></li> |
---|
56 | </ul> |
---|
57 | <center><p><a href="/">Begin a search</a></p> |
---|
58 | <p>Comments and suggestions are welcome, please send an email to yayamamo AT cb DOT k DOT u-tokyo DOT ac DOT jp.</p></center> |
---|
59 | |
---|
60 | <h2>Interface Specifications</h2> |
---|
61 | |
---|
62 | <a id="sec_1"></a> |
---|
63 | <h3 id="SOAP">SOAP</h3> |
---|
64 | <ul><li>WSDL |
---|
65 | <ul><li>/online_resource/service.wsdl |
---|
66 | </li></ul></li><li>Entry Point |
---|
67 | <ul><li>/online_resource/api |
---|
68 | </li></ul></li><li>SOAPAction |
---|
69 | <ul><li>/online_resource/api/GetResourceInfoById |
---|
70 | </li></ul></li><li>Parameters |
---|
71 | </li></ul><table class="wiki"> |
---|
72 | <tr><td> Name </td><td> Description </td><td> Must/Optional </td><td> Default Value </td><td> Allowable Values |
---|
73 | </td></tr><tr><td> id </td><td> Online resource ID </td><td> Must </td><td> - </td><td> Integer |
---|
74 | </td></tr></table> |
---|
75 | <ul><li>Errors |
---|
76 | <ul><li>Follows the SOAP error specification as much as possible. |
---|
77 | </li></ul></li></ul> |
---|
78 | |
---|
79 | <a id="sec_2"></a> |
---|
80 | <h3 id="REST">REST</h3> |
---|
81 | <ul><li>URI |
---|
82 | <ul><li>/online_resource/< id >.xml |
---|
83 | <ul><li>Specifying an online resource id at < id > |
---|
84 | </li></ul></li></ul></li><li>Errors |
---|
85 | <ul><li>Basically users need to handle errors based on HTTP statuses. |
---|
86 | </li><li>The error description is given in an XML format as much as possible if there is an error in user parameters. |
---|
87 | <ul><li>Error description |
---|
88 | <ul><li>errors: a list of errors |
---|
89 | <ul><li>error: description of each error |
---|
90 | <ul><li>http_status_code: HTTP status code |
---|
91 | </li><li>code: application error code |
---|
92 | </li><li>name: error name |
---|
93 | </li><li>message: error message |
---|
94 | </li></ul></li></ul></li></ul></li><li>Error sample |
---|
95 | <pre class="wiki"><?xml version="1.0" encoding="UTF-8"?> |
---|
96 | <errors> |
---|
97 | <error> |
---|
98 | <http_status_code>401</http_status_code> |
---|
99 | <code>40401</code> |
---|
100 | <name>Orefil::InvalidOnlineResourceId</name> |
---|
101 | <message>Entry not Found. (:id => 99999)</message> |
---|
102 | </error> |
---|
103 | </errors> |
---|
104 | </pre></li></ul></li></ul></li></ul> |
---|
105 | |
---|
106 | <a id="sec_3"></a> |
---|
107 | <h2>Response</h2> |
---|
108 | <ul><li>return (OnlineResource): Online resource ( online_resource if REST ) |
---|
109 | <ul><li>id: Online resource ID |
---|
110 | </li><li>title: Title of the online resource |
---|
111 | </li><li>updated_at: Update time ( XML Schema format ) |
---|
112 | </li><li>average_stars: Average rating |
---|
113 | </li><li>mesh_term_list: A list of MeSH terms |
---|
114 | <ul><li>item: A MeSH term ( mesh_term if REST ) |
---|
115 | </li></ul></li><li>url: Online resource's URL |
---|
116 | </li><li>pages: A list of URLs that search for referring links |
---|
117 | <ul><li>item: Referring link search ( `page` if REST ) |
---|
118 | <ul><li>name: Name of the search engine |
---|
119 | </li><li>url: URL for search |
---|
120 | </li></ul></li></ul></li><li>papers: A list of URLs that search for citing papers |
---|
121 | <ul><li>item: Citing paper search ( `paper` if REST ) |
---|
122 | <ul><li>name: Name of the search engine |
---|
123 | </li><li>url: URL for search |
---|
124 | </li></ul></li></ul></li><li>pmid_list: A ilst of PMIDs that cite the resource |
---|
125 | <ul><li>item: pmid ( pmid if REST ) |
---|
126 | </li></ul></li></ul></li></ul> |
---|
127 | |
---|
128 | <h2>Request / Response Sample</h2> |
---|
129 | <p> |
---|
130 | Here are samples of requests and their corresponding responses in SOAP and REST. |
---|
131 | </p> |
---|
132 | <ul><li>Request |
---|
133 | <ul><li>Online resource ID : 4980 |
---|
134 | </li></ul></li></ul> |
---|
135 | |
---|
136 | <a id="sec_4"></a> |
---|
137 | <h3 id="SOAP1">SOAP</h3> |
---|
138 | <ul><li>Request |
---|
139 | <pre class="wiki"><?xml version="1.0" encoding="UTF-8"?> |
---|
140 | |
---|
141 | <SOAP-ENV:Envelope |
---|
142 | |
---|
143 | xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
---|
144 | |
---|
145 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
---|
146 | |
---|
147 | xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" |
---|
148 | |
---|
149 | SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" |
---|
150 | |
---|
151 | xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> |
---|
152 | |
---|
153 | <SOAP-ENV:Body> |
---|
154 | |
---|
155 | <m:GetResourceInfoById xmlns:m="urn:ActionWebService"> |
---|
156 | |
---|
157 | <id xsi:type="xsd:int">4980</id> |
---|
158 | |
---|
159 | </m:GetResourceInfoById> |
---|
160 | |
---|
161 | </SOAP-ENV:Body> |
---|
162 | |
---|
163 | </SOAP-ENV:Envelope> |
---|
164 | </pre></li><li>Response |
---|
165 | <pre class="wiki"><?xml version="1.0" encoding="UTF-8" ?> |
---|
166 | <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
---|
167 | xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" |
---|
168 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
---|
169 | <env:Body> |
---|
170 | <n1:GetResourceInfoByIdResponse xmlns:n1="urn:ActionWebService" |
---|
171 | env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> |
---|
172 | <return xsi:type="n1:Resource..OnlineResource"> |
---|
173 | <id xsi:type="xsd:int">4980</id> |
---|
174 | <mesh_term_list n2:arrayType="xsd:string[28]" |
---|
175 | xmlns:n2="http://schemas.xmlsoap.org/soap/encoding/" |
---|
176 | xsi:type="n2:Array"> |
---|
177 | <item>Abnormalities, Multiple</item> |
---|
178 | <item>Carbamoyl-Phosphate Synthase I Deficiency Disease</item> |
---|
179 | <item>Chickens</item> |
---|
180 | <item>Chromosome Deletion</item> |
---|
181 | <item>Chromosome Mapping</item> |
---|
182 | <item>Chromosomes, Human, Pair 2</item> |
---|
183 | <item>Computational Biology</item> |
---|
184 | <item>DNA Primers</item> |
---|
185 | <item>Database Management Systems</item> |
---|
186 | <item>Databases, Genetic</item> |
---|
187 | <item>Databases, Nucleic Acid</item> |
---|
188 | <item>Databases, Protein</item> |
---|
189 | <item>Exons</item> |
---|
190 | <item>Genome</item> |
---|
191 | <item>Genome, Human</item> |
---|
192 | <item>Genomics</item> |
---|
193 | <item>Information Storage and Retrieval</item> |
---|
194 | <item>Internet</item> |
---|
195 | <item>Linkage (Genetics)</item> |
---|
196 | <item>Microsatellite Repeats</item> |
---|
197 | <item>Polymorphism, Single Nucleotide</item> |
---|
198 | <item>Proteins</item> |
---|
199 | <item>Proteome</item> |
---|
200 | <item>Proteomics</item> |
---|
201 | <item>RNA, Messenger</item> |
---|
202 | <item>Sequence Alignment</item> |
---|
203 | <item>Software</item> |
---|
204 | <item>Zebrafish</item> |
---|
205 | </mesh_term_list> |
---|
206 | <pmid_list xmlns:n3="http://schemas.xmlsoap.org/soap/encoding/" |
---|
207 | xsi:type="n3:Array" |
---|
208 | n3:arrayType="xsd:string[15]"> |
---|
209 | <item>16888352</item> |
---|
210 | <item>16381938</item> |
---|
211 | <item>12045153</item> |
---|
212 | <item>15216554</item> |
---|
213 | <item>17151077</item> |
---|
214 | <item>16888348</item> |
---|
215 | <item>16372332</item> |
---|
216 | <item>11932250</item> |
---|
217 | <item>16722777</item> |
---|
218 | <item>12519945</item> |
---|
219 | <item>16500937</item> |
---|
220 | <item>17142222</item> |
---|
221 | <item>15554057</item> |
---|
222 | <item>15608236</item> |
---|
223 | <item>16888346</item> |
---|
224 | </pmid_list> |
---|
225 | <papers n4:arrayType="n1:Resource..Paper[4]" |
---|
226 | xmlns:n4="http://schemas.xmlsoap.org/soap/encoding/" |
---|
227 | xsi:type="n4:Array"> |
---|
228 | <item> |
---|
229 | <name xsi:type="xsd:string">BioMed Central</name> |
---|
230 | <url xsi:type="xsd:string">http://www.biomedcentral.com/search/results.asp?txtSearch1=genome.ucsc.edu%2F&amp;amp;chkBMCJournals=true&amp;amp;chkCurrentOpinion=true&amp;amp;drpFromDate=&amp;amp;drpToDate=&amp;amp;chkNSP=true&amp;amp;drpAddedInLast=&amp;amp;drpOrderBy=by+date&amp;amp;drpPerPage=20&amp;amp;drpAbstract=no+abstract&amp;amp;strTempString=&amp;amp;strSearchBoxType=bmc_boolean_results&amp;amp;Search.x=10&amp;amp;jou_id=&amp;amp;Search.x=0&amp;amp;Search.y=0&amp;amp;Search=Search</url> |
---|
231 | </item> |
---|
232 | <item> |
---|
233 | <name xsi:type="xsd:string">Scirus</name> |
---|
234 | <url xsi:type="xsd:string">http://www.scirus.com/srsapp/search?q=genome.ucsc.edu%2F&amp;amp;ds=jnl&amp;amp;g=s&amp;amp;t=all</url> |
---|
235 | </item> |
---|
236 | <item> |
---|
237 | <name xsi:type="xsd:string">HighWire Press</name> |
---|
238 | <url xsi:type="xsd:string">http://highwire.org/cgi/searchresults?fulltext=genome.ucsc.edu%2F&amp;amp;andorexactfulltext=and&amp;amp;author1=&amp;amp;pubdate_year=&amp;amp;volume=&amp;amp;firstpage=&amp;amp;src=hw&amp;amp;searchsubmit=redo&amp;amp;resourcetype=1&amp;amp;search=Search&amp;amp;fmonth=Jan&amp;amp;fyear=1844&amp;amp;tmonth=Dec&amp;amp;tyear=2007&amp;amp;fdatedef=1+January+1844&amp;amp;tdatedef=31+Dec+2007</url> |
---|
239 | </item> |
---|
240 | <item> |
---|
241 | <name xsi:type="xsd:string">Google Scholar</name> |
---|
242 | <url xsi:type="xsd:string">http://scholar.google.com/scholar?hl=en&amp;amp;lr=&amp;amp;q=genome.ucsc.edu%2F&amp;amp;btnG=Search</url> |
---|
243 | </item> |
---|
244 | </papers> |
---|
245 | <average_stars xsi:type="xsd:double">+3.5</average_stars> |
---|
246 | <url xsi:type="xsd:string">http://genome.ucsc.edu/</url> |
---|
247 | <updated_at xsi:type="xsd:dateTime">2008-02-20T00:00:00+09:00</updated_at> |
---|
248 | <pages n5:arrayType="n1:Resource..Page[2]" |
---|
249 | xmlns:n5="http://schemas.xmlsoap.org/soap/encoding/" |
---|
250 | xsi:type="n5:Array"> |
---|
251 | <item> |
---|
252 | <name xsi:type="xsd:string">Google</name> |
---|
253 | <url xsi:type="xsd:string">http://www.google.com/search?hl=en&amp;amp;q=link%3ahttp%3A%2F%2Fgenome.ucsc.edu%2F&amp;amp;btnG=Google+Search</url> |
---|
254 | </item> |
---|
255 | <item> |
---|
256 | <name xsi:type="xsd:string">Altavista</name> |
---|
257 | <url xsi:type="xsd:string">http://www.altavista.com/web/results?itag=ody&amp;amp;q=link:http%3A%2F%2Fgenome.ucsc.edu%2F&amp;amp;kgs=0&amp;amp;kls=1</url> |
---|
258 | </item> |
---|
259 | </pages> |
---|
260 | <title xsi:type="xsd:string">UCSC Genome Browser Home</title> |
---|
261 | </return> |
---|
262 | </n1:GetResourceInfoByIdResponse> |
---|
263 | </env:Body> |
---|
264 | </env:Envelope> |
---|
265 | </pre></li></ul> |
---|
266 | |
---|
267 | <a id="sec_5"></a> |
---|
268 | <h3 id="REST1">REST</h3> |
---|
269 | <ul><li>Request |
---|
270 | <pre class="wiki">/online_resource/4980.xml |
---|
271 | </pre></li><li>Response |
---|
272 | <pre class="wiki"><?xml version="1.0" encoding="UTF-8"?> |
---|
273 | <online_resource> |
---|
274 | <id>4980</id> |
---|
275 | <title>UCSC Genome Browser Home</title> |
---|
276 | <updated_at>2008-02-20T00:00:00+09:00</updated_at> |
---|
277 | <average_stars>3.5</average_stars> |
---|
278 | <mesh_term_list> |
---|
279 | <mesh_term>Abnormalities, Multiple</mesh_term> |
---|
280 | <mesh_term>Carbamoyl-Phosphate Synthase I Deficiency Disease</mesh_term> |
---|
281 | <mesh_term>Chickens</mesh_term> |
---|
282 | <mesh_term>Chromosome Deletion</mesh_term> |
---|
283 | <mesh_term>Chromosome Mapping</mesh_term> |
---|
284 | <mesh_term>Chromosomes, Human, Pair 2</mesh_term> |
---|
285 | <mesh_term>Computational Biology</mesh_term> |
---|
286 | <mesh_term>DNA Primers</mesh_term> |
---|
287 | <mesh_term>Database Management Systems</mesh_term> |
---|
288 | <mesh_term>Databases, Genetic</mesh_term> |
---|
289 | <mesh_term>Databases, Nucleic Acid</mesh_term> |
---|
290 | <mesh_term>Databases, Protein</mesh_term> |
---|
291 | <mesh_term>Exons</mesh_term> |
---|
292 | <mesh_term>Genome</mesh_term> |
---|
293 | <mesh_term>Genome, Human</mesh_term> |
---|
294 | <mesh_term>Genomics</mesh_term> |
---|
295 | <mesh_term>Information Storage and Retrieval</mesh_term> |
---|
296 | <mesh_term>Internet</mesh_term> |
---|
297 | <mesh_term>Linkage (Genetics)</mesh_term> |
---|
298 | <mesh_term>Microsatellite Repeats</mesh_term> |
---|
299 | <mesh_term>Polymorphism, Single Nucleotide</mesh_term> |
---|
300 | <mesh_term>Proteins</mesh_term> |
---|
301 | <mesh_term>Proteome</mesh_term> |
---|
302 | <mesh_term>Proteomics</mesh_term> |
---|
303 | <mesh_term>RNA, Messenger</mesh_term> |
---|
304 | <mesh_term>Sequence Alignment</mesh_term> |
---|
305 | <mesh_term>Software</mesh_term> |
---|
306 | <mesh_term>Zebrafish</mesh_term> |
---|
307 | </mesh_term_list> |
---|
308 | <url>http://genome.ucsc.edu/</url> |
---|
309 | <pages> |
---|
310 | <page> |
---|
311 | <name>Google</name> |
---|
312 | <url> |
---|
313 | http://www.google.com/search?hl=en&amp;q=link%3ahttp%3A%2F%2Fgenome.ucsc.edu%2F&amp;btnG=Google+Search |
---|
314 | </url> |
---|
315 | </page> |
---|
316 | <page> |
---|
317 | <name>Altavista</name> |
---|
318 | <url> |
---|
319 | http://www.altavista.com/web/results?itag=ody&amp;q=link:http%3A%2F%2Fgenome.ucsc.edu%2F&amp;kgs=0&amp;kls=1 |
---|
320 | </url> |
---|
321 | </page> |
---|
322 | </pages> |
---|
323 | <papers> |
---|
324 | <paper> |
---|
325 | <name>BioMed Central</name> |
---|
326 | <url> |
---|
327 | 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 |
---|
328 | </url> |
---|
329 | </paper> |
---|
330 | <paper> |
---|
331 | <name>Scirus</name> |
---|
332 | <url> |
---|
333 | http://www.scirus.com/srsapp/search?q=genome.ucsc.edu%2F&amp;ds=jnl&amp;g=s&amp;t=all |
---|
334 | </url> |
---|
335 | </paper> |
---|
336 | <paper> |
---|
337 | <name>HighWire Press</name> |
---|
338 | <url> |
---|
339 | 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 |
---|
340 | </url> |
---|
341 | </paper> |
---|
342 | <paper> |
---|
343 | <name>Google Scholar</name> |
---|
344 | <url> |
---|
345 | http://scholar.google.com/scholar?hl=en&amp;lr=&amp;q=genome.ucsc.edu%2F&amp;btnG=Search |
---|
346 | </url> |
---|
347 | </paper> |
---|
348 | </papers> |
---|
349 | <pmid_list> |
---|
350 | <pmid>16888352</pmid> |
---|
351 | <pmid>16381938</pmid> |
---|
352 | <pmid>12045153</pmid> |
---|
353 | <pmid>15216554</pmid> |
---|
354 | <pmid>17151077</pmid> |
---|
355 | <pmid>16888348</pmid> |
---|
356 | <pmid>16372332</pmid> |
---|
357 | <pmid>11932250</pmid> |
---|
358 | <pmid>16722777</pmid> |
---|
359 | <pmid>12519945</pmid> |
---|
360 | <pmid>16500937</pmid> |
---|
361 | <pmid>17142222</pmid> |
---|
362 | <pmid>15554057</pmid> |
---|
363 | <pmid>15608236</pmid> |
---|
364 | <pmid>16888346</pmid> |
---|
365 | </pmid_list> |
---|
366 | </online_resource> |
---|
367 | </pre></li></ul> |
---|
368 | |
---|
369 | </body> |
---|
370 | </html> |
---|