Comments and suggestions are welcome, please send an email to yayamamo AT cb DOT k DOT u-tokyo DOT ac DOT jp.
Name | Description | Must/Optional | Default Value | Allowable Values |
id | Online resource ID | Must | - | Integer |
<?xml version="1.0" encoding="UTF-8"?> <errors> <error> <http_status_code>401</http_status_code> <code>40401</code> <name>Orefil::InvalidOnlineResourceId</name> <message>Entry not Found. (:id => 99999)</message> </error> </errors>
Here are samples of requests and their corresponding responses in SOAP and REST.
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <m:GetResourceInfoById xmlns:m="urn:ActionWebService"> <id xsi:type="xsd:int">4980</id> </m:GetResourceInfoById> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
<?xml version="1.0" encoding="UTF-8" ?> <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <env:Body> <n1:GetResourceInfoByIdResponse xmlns:n1="urn:ActionWebService" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <return xsi:type="n1:Resource..OnlineResource"> <url xsi:type="xsd:string">http://genome.ucsc.edu/</url> <updated_at xsi:type="xsd:dateTime">2008-02-20T00:00:00+09:00</updated_at> <pmid_list n2:arrayType="xsd:string[15]" xmlns:n2="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="n2:Array"> <item>16888352</item> <item>16381938</item> <item>12045153</item> <item>15216554</item> <item>17151077</item> <item>16888348</item> <item>16372332</item> <item>11932250</item> <item>16722777</item> <item>12519945</item> <item>16500937</item> <item>17142222</item> <item>15554057</item> <item>15608236</item> <item>16888346</item> </pmid_list> <mesh_term_list xmlns:n3="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="n3:Array" n3:arrayType="xsd:string[28]"> <item>Abnormalities, Multiple</item> <item>Carbamoyl-Phosphate Synthase I Deficiency Disease</item> <item>Chickens</item> <item>Chromosome Deletion</item> <item>Chromosome Mapping</item> <item>Chromosomes, Human, Pair 2</item> <item>Computational Biology</item> <item>DNA Primers</item> <item>Database Management Systems</item> <item>Databases, Genetic</item> <item>Databases, Nucleic Acid</item> <item>Databases, Protein</item> <item>Exons</item> <item>Genome</item> <item>Genome, Human</item> <item>Genomics</item> <item>Information Storage and Retrieval</item> <item>Internet</item> <item>Linkage (Genetics)</item> <item>Microsatellite Repeats</item> <item>Polymorphism, Single Nucleotide</item> <item>Proteins</item> <item>Proteome</item> <item>Proteomics</item> <item>RNA, Messenger</item> <item>Sequence Alignment</item> <item>Software</item> <item>Zebrafish</item> </mesh_term_list> <title xsi:type="xsd:string">UCSC Genome Browser Home</title> <papers n4:arrayType="n1:Resource..Paper[4]" xmlns:n4="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="n4:Array"> <item> <url xsi:type="xsd:string">http://www.biomedcentral.com/search/results.asp?txtSearch1=http%3A%2F%2Fgenome.ucsc.edu%2F&chkBMCJournals=true&chkCurrentOpinion=true&drpFromDate=&drpToDate=&chkNSP=true&drpAddedInLast=&drpOrderBy=by+date&drpPerPage=20&drpAbstract=no+abstract&strTempString=&strSearchBoxType=bmc_boolean_results&Search.x=10&jou_id=&Search.x=0&Search.y=0&Search=Search</url> <name xsi:type="xsd:string">BioMed Central</name> </item> <item> <url xsi:type="xsd:string">http://www.scirus.com/srsapp/search?q=http%3A%2F%2Fgenome.ucsc.edu%2F&ds=jnl&g=s&t=all</url> <name xsi:type="xsd:string">Scirus</name> </item> <item> <url xsi:type="xsd:string">http://highwire.org/cgi/searchresults?fulltext=http%3A%2F%2Fgenome.ucsc.edu%2F</url> <name xsi:type="xsd:string">HighWire Press</name> </item> <item> <url xsi:type="xsd:string">http://scholar.google.com/scholar?hl=en&lr=&q=http%3A%2F%2Fgenome.ucsc.edu%2F&btnG=Search</url> <name xsi:type="xsd:string">Google Scholar</name> </item> </papers> <pages n5:arrayType="n1:Resource..Page[2]" xmlns:n5="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="n5:Array"> <item> <url xsi:type="xsd:string">http://www.google.com/search?hl=en&q=link%3ahttp%3A%2F%2Fgenome.ucsc.edu%2F&btnG=Google+Search</url> <name xsi:type="xsd:string">Google</name> </item> <item> <url xsi:type="xsd:string">http://siteexplorer.search.yahoo.com/search?p=http%3A%2F%2Fgenome.ucsc.edu%2F</url> <name xsi:type="xsd:string">Yahoo</name> </item> </pages> <average_stars xsi:type="xsd:double">+3.285714285714286</average_stars> <id xsi:type="xsd:int">4980</id> <related_resources n6:arrayType="xsd:string[2]" xmlns:n6="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="n6:Array"> <item>http://example.com/resource1</item> <item>http://noicondomain.com/resource1</item> </related_resources> </return> </n1:GetResourceInfoByIdResponse> </env:Body> </env:Envelope>
/online_resource/4980.xml
<?xml version="1.0" encoding="UTF-8"?> <online_resource> <id>4980</id> <title>UCSC Genome Browser Home</title> <updated_at>2008-02-20T00:00:00+09:00</updated_at> <average_stars>3.28571428571429</average_stars> <mesh_term_list> <mesh_term>Abnormalities, Multiple</mesh_term> <mesh_term>Carbamoyl-Phosphate Synthase I Deficiency Disease</mesh_term> <mesh_term>Chickens</mesh_term> <mesh_term>Chromosome Deletion</mesh_term> <mesh_term>Chromosome Mapping</mesh_term> <mesh_term>Chromosomes, Human, Pair 2</mesh_term> <mesh_term>Computational Biology</mesh_term> <mesh_term>DNA Primers</mesh_term> <mesh_term>Database Management Systems</mesh_term> <mesh_term>Databases, Genetic</mesh_term> <mesh_term>Databases, Nucleic Acid</mesh_term> <mesh_term>Databases, Protein</mesh_term> <mesh_term>Exons</mesh_term> <mesh_term>Genome</mesh_term> <mesh_term>Genome, Human</mesh_term> <mesh_term>Genomics</mesh_term> <mesh_term>Information Storage and Retrieval</mesh_term> <mesh_term>Internet</mesh_term> <mesh_term>Linkage (Genetics)</mesh_term> <mesh_term>Microsatellite Repeats</mesh_term> <mesh_term>Polymorphism, Single Nucleotide</mesh_term> <mesh_term>Proteins</mesh_term> <mesh_term>Proteome</mesh_term> <mesh_term>Proteomics</mesh_term> <mesh_term>RNA, Messenger</mesh_term> <mesh_term>Sequence Alignment</mesh_term> <mesh_term>Software</mesh_term> <mesh_term>Zebrafish</mesh_term> </mesh_term_list> <url>http://genome.ucsc.edu/</url> <related_resources> <url>http://example.com/resource1</url> <url>http://noicondomain.com/resource1</url> </related_resources> <pages> <page> <name>Google</name> <url> http://www.google.com/search?hl=en&q=link%3ahttp%3A%2F%2Fgenome.ucsc.edu%2F&btnG=Google+Search </url> </page> <page> <name>Yahoo</name> <url> http://siteexplorer.search.yahoo.com/search?p=http%3A%2F%2Fgenome.ucsc.edu%2F </url> </page> </pages> <papers> <paper> <name>BioMed Central</name> <url> http://www.biomedcentral.com/search/results.asp?txtSearch1=http%3A%2F%2Fgenome.ucsc.edu%2F&chkBMCJournals=true&chkCurrentOpinion=true&drpFromDate=&drpToDate=&chkNSP=true&drpAddedInLast=&drpOrderBy=by+date&drpPerPage=20&drpAbstract=no+abstract&strTempString=&strSearchBoxType=bmc_boolean_results&Search.x=10&jou_id=&Search.x=0&Search.y=0&Search=Search </url> </paper> <paper> <name>Scirus</name> <url> http://www.scirus.com/srsapp/search?q=http%3A%2F%2Fgenome.ucsc.edu%2F&ds=jnl&g=s&t=all </url> </paper> <paper> <name>HighWire Press</name> <url> http://highwire.org/cgi/searchresults?fulltext=http%3A%2F%2Fgenome.ucsc.edu%2F </url> </paper> <paper> <name>Google Scholar</name> <url> http://scholar.google.com/scholar?hl=en&lr=&q=http%3A%2F%2Fgenome.ucsc.edu%2F&btnG=Search </url> </paper> </papers> <pmid_list> <pmid>16888352</pmid> <pmid>16381938</pmid> <pmid>12045153</pmid> <pmid>15216554</pmid> <pmid>17151077</pmid> <pmid>16888348</pmid> <pmid>16372332</pmid> <pmid>11932250</pmid> <pmid>16722777</pmid> <pmid>12519945</pmid> <pmid>16500937</pmid> <pmid>17142222</pmid> <pmid>15554057</pmid> <pmid>15608236</pmid> <pmid>16888346</pmid> </pmid_list> </online_resource>