09.02.2013 Views

EMBL-EBI Powerpoint Presentation - BioModels

EMBL-EBI Powerpoint Presentation - BioModels

EMBL-EBI Powerpoint Presentation - BioModels

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Web Services<br />

Code:<br />

import uk.ac.ebi.biomodels.*;<br />

import java.util.ArrayList;<br />

import java.util.TreeMap;<br />

import java.util.Iterator;<br />

public class GetSimpleModelsByCh<strong>EBI</strong>Ids {<br />

}<br />

public static void main(String args[]) throws Exception {<br />

}<br />

<strong>BioModels</strong>WSClient client = new <strong>BioModels</strong>WSClient();<br />

TreeMap resultSet = client.getSimpleModelsByCh<strong>EBI</strong>Ids(new String[]{"CH<strong>EBI</strong>:15355", "CH<strong>EBI</strong>:27897"});<br />

Iterator iter = resultSet.keySet().iterator();<br />

while (iter.hasNext()) {<br />

}<br />

Result:<br />

CH<strong>EBI</strong>:15355<br />

CH<strong>EBI</strong>:27897<br />

// print result set out<br />

BIOMD0000000002 Edelstein1996_EPSP_AChSpecies 8983160 2007­01­04T23:01:47<br />

BIOMD0000000062 bhartiya2003 tryptophan operon 12787031 2007­02­22T23:11:55

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!