Web services: Java library
We provide a library for convenient communication, within a Java program, with the Systems Biology Ontology's web services.
Two versions of the library are provided (distributed under the terms of the GNU Lesser General Public License) from the SourceForge project (latest release: 2.0.0).
- light version (you need a couple of external jars to use it, cf. below)
- standalone version (all the dependencies are included in the jar)
In case you want to use the light version.
- Most of them come from the JAX-WS RI:
A full sample program showing the usage of the library is available for download.
The results obtained should be similar to these ones.
Here is an overview of the usage of the library and some useful methods provided:
// creation of the link to the SBO Web Services SBOLink link = new SBOLink(); // is your library the latest available? boolean libraryUpdated = link.isLibraryUpdated(); // conversion of identifier (integer one into the official one) String id = link.convertId(192); // should return 'SBO:0000192' // term retrieval (with direct access to its details) Term term = link.getTerm("SBO:0000192"); String name = term.getName(); String mathml = term.getMathml(); // OWL retrieval String owl = link.getOWLTerm("SBO:0000144"); // generic search List<Term> terms = link.search("Henri-Michaelis-Menten"); // framework retrieval String frameworkId = link.getFramework("SBO:0000076"); // parents retrieval List<String> parentIds = link.getParents("SBO:0000028"); // and much more...