|
RepresentationsThe are currently two different representation formats available at this website: HTML and XML. The HTML representation is intended for human viewing via a browser. The XML representation is intended for programmatic access. The two formats have been designed to be isomorphic, which means that they are similar in content, links and basic design. Format specificationThere are two different ways of specifying which format the response should have. The URL can be made to specify the format directly. A suffix '.xml' or '.html' is simply appended to the end of the URL. It must be added to the path part of the URL, i.e. before the query parameters, if any. This design was chosen to look like the file extension used in ordinary computer file systems. The alternative way is to rely on HTTP content negotiation. The client software sends an 'Accept' header to the server, which specifies what MIME types the client can handle. In our case, this is of interest only when the client is a user program. In most HTTP libraries it is possible to set the headers explicitly. If there is a conflict, i.e. both methods are used simultaneously, then the explicit URL specifier takes precedence. Some browsers send an 'Accept' header claiming they would prefer XML to HTML, which does not make sense. This is ignored; the response will be HTML if that format is mentioned (regardless of its priority) in the 'Accept' header. This is non-standard, but unfortunately necessary behaviour. Gzip compressionClient software may be configured to retrieve the representations in compressed form to save transfer bandwidth. The 'Accept-Encoding' and 'Content-Encoding' headers are supported, currently only for gzip compression. XML representationThe XML format was designed to be easy to traverse and search using standard technologies such as DOM, SAX and Xpath. The format currently has no formal definition, but it is likely that an XML Schema definition will be presented here at a later stage. In the meanwhile, a few excerpts of XML documents are shown below. For better viewing, the indentation has been edited slightly, and a few very long lines have been deleted. Index of genes in chromosome YpRequest URL: http://www.avatar.se/HGNC/wr/chromosome/Yp.xml <?xml version="1.0" encoding="ISO-8859-1"?> <HGNC-wr xmlns:xlink="http://www.w3.org/1999/xlink/" xml:base="http://www.avatar.se/" xmlns="http://www.avatar.se/HGNC/ns/0.9/"> <source xlink:title="HGNC" xlink:href="http://www.genenames.org/" updated="2007-11-22"/> <index> <title>Chromosome Yp gene index</title> <description>Index of all gene symbols for the chromosome in the HGNC database, based on the chromosomal location field for the gene. Each 'gene' entry is a link to the representation for all information about the gene.</description> <genes> <gene xlink:title="AMELY" acc="HGNC:462" xlink:href="/HGNC/wr/gene/AMELY"/> <gene xlink:title="CDY3P" acc="HGNC:23849" xlink:href="/HGNC/wr/gene/CDY3P"/> <gene xlink:title="CYorf16" acc="HGNC:18848" xlink:href="/HGNC/wr/gene/CYorf16"/> <gene xlink:title="FAM8A7P" acc="HGNC:23868" xlink:href="/HGNC/wr/gene/FAM8A7P"/> ... Index of genes with a symbol starting with GGRequest URL: http://www.avatar.se/HGNC/wr/genes;index.xml?value=GG&search=key <?xml version="1.0" encoding="ISO-8859-1"?> <HGNC-wr xmlns:xlink="http://www.w3.org/1999/xlink/" xml:base="http://www.avatar.se/" xmlns="http://www.avatar.se/HGNC/ns/0.9/"> <source xlink:title="HGNC" xlink:href="http://www.genenames.org/" updated="2007-11-22"/> <index> <title>Genes index</title> <query> <parameter> <key>search</key> <value>key</value> </parameter> <parameter> <key>value</key> <value>GG</value> </parameter> </query> <genes> <gene xlink:title="GGA1" acc="HGNC:17842" xlink:href="/HGNC/wr/gene/GGA1"/> <gene xlink:title="GGA2" acc="HGNC:16064" xlink:href="/HGNC/wr/gene/GGA2"/> <gene xlink:title="GGA3" acc="HGNC:17079" xlink:href="/HGNC/wr/gene/GGA3"/> <gene xlink:title="GGCX" acc="HGNC:4247" xlink:href="/HGNC/wr/gene/GGCX"/> <gene xlink:title="GGH" acc="HGNC:4248" xlink:href="/HGNC/wr/gene/GGH"/> <gene xlink:title="GGN" acc="HGNC:18869" xlink:href="/HGNC/wr/gene/GGN"/> ... Representation for gene FLT3Request URL: http://www.avatar.se/HGNC/wr/gene/FLT3.xml <?xml version="1.0" encoding="ISO-8859-1"?> <HGNC-wr xmlns:xlink="http://www.w3.org/1999/xlink/" xml:base="http://www.avatar.se/" xmlns="http://www.avatar.se/HGNC/ns/0.9/"> <source xlink:title="HGNC" xlink:href="http://www.genenames.org/" updated="2007-11-22"/> <Gene acc="HGNC:3765" symbol="FLT3" approved="1990-07-30" modified="2006-02-22"> <aliases> <alias>STK1</alias> <alias>FLK2</alias> <alias>CD135</alias> </aliases> <name>fms-related tyrosine kinase 3</name> <chromosome xlink:href="/HGNC/wr/chromosome/13q" xlink:title="13q">13q12</chromosome> <xrefs> <xref xkey="2.7.1.112" xdb="EC" mapped="false"> <link xlink:title="EC" xlink:href="http://www.chem.qmul.ac.uk/iubmb/enzyme/EC2/7/1/112.html" format="html" mimetype="text/html"/> <link xlink:title="Enzyme" xlink:href="http://www.expasy.ch/cgi-bin/nicezyme.pl?2.7.1.112" format="html" mimetype="text/html"/> </xref> <xref xkey="ENSG00000122025" xdb="Ensembl" mapped="true"> <link xlink:title="Ensembl" xlink:href="http://www.ensembl.org/Homo_sapiens/geneview?gene=ENSG00000122025" format="html" mimetype="text/html"/> </xref> <xref xkey="2322" xdb="EntrezGene" mapped="true"> <link xlink:title="EntrezGene" xlink:href="http://view.ncbi.nlm.nih.gov/gene/2322" format="html" mimetype="text/html"/> </xref> <xref xkey="125193" xdb="GDB" mapped="true"> <link xlink:title="GDB" xlink:href="http://www.gdb.org/gdb-bin/genera/accno?accessionNum=GDB:125193" format="html" mimetype="text/html"/> </xref> <xref xkey="FLT3" xdb="GENATLAS" mapped="false"> <link xlink:title="GENATLAS" xlink:href="http://www.dsi.univ-paris5.fr/genatlas/gensearch.php?type=0&SYMBOL=FLT3" format="html" mimetype="text/html"/> </xref> ... |
| HGNC/wr 1.0 copyright 2007-2008 © Avatar Software AB |