EBI Home Page

Martservices usage:


(a) Querying BioMart

To submit a query using our webservices generate an XML document conforming to our Query XML syntax. This can be achieved simply by building up your query using MartView and hitting the XML button. This XML should be posted to http://test.biomart.org:9002/martservice attached to a single parameter of query. For example you could either:

- save your query as Query.xml and then POST this using the webExample.pl script in our biomart-perl/scripts installation.
- submit using wget: wget -O results.txt 'http://test.biomart.org:9002/biomart/martservice?query=MY_XML' replacing MY_XML with the XML obtained above, first removing any new lines.

(b) Retrieving Meta Data

- to retrieve registry information: http://test.biomart.org:9002/biomart/martservice?type=registry
- to retrieve datasets available for a mart: http://test.biomart.org:9002/biomart/martservice?type=datasets&mart=phytozome_mart
- to retrieve attributes available for a dataset: http://test.biomart.org:9002/biomart/martservice?type=attributes&datatset=phytozome
- to retrieve filters available for a dataset: http://test.biomart.org:9002/biomart/martservice?type=filters&datatset=phytozome
- to retrieve configuration for a dataset: http://test.biomart.org:9002/biomart/martservice?type=configuration&datatset=phytozome

For more information see the webservices section of our documentation.