getTimololFromMassBank
Created: 2009-11-10 08:58:05
Last updated: 2009-11-10 08:59:56
This workflow will retrieve a peaklist from a fixed entry (Timolol) from the MassBank spectral library. Note, the API is still in alpha, as of 10.11.2009.
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (0)
Titles (0)
Descriptions (0)
Dependencies (0)
Processors (7)
Name |
Type |
Description |
getPeak |
wsdl |
Wsdlhttp://www.massbank.jp/api/services/MassBankAPI?wsdlWsdl OperationgetPeak |
getPeak_input |
xmlsplitter |
|
String_Constant |
stringconstant |
ValueKO009304 |
XPath_From_Text |
localworker |
Scriptimport org.dom4j.Document;
import org.dom4j.Node;
import org.dom4j.io.SAXReader;
SAXReader reader = new SAXReader(false);
reader.setIncludeInternalDTDDeclarations(false);
reader.setIncludeExternalDTDDeclarations(false);
Document document = reader.read(new StringReader(xmltext));
List nodelist = document.selectNodes(xpath);
// Process the elements in the nodelist
ArrayList outputList = new ArrayList();
ArrayList outputXmlList = new ArrayList();
String val = null;
String xmlVal = null;
for (Iterator iter = nodelist.iterator(); iter.hasNext();) {
Node element = (Node) iter.next();
xmlVal = element.asXML();
val = element.getStringValue();
if (val != null && !val.equals("")) {
outputList.add(val);
outputXmlList.add(xmlVal);
}
}
List nodelist=outputList;
List nodelistAsXML=outputXmlList; |
XPath_From_Text0 |
localworker |
Scriptimport org.dom4j.Document;
import org.dom4j.Node;
import org.dom4j.io.SAXReader;
SAXReader reader = new SAXReader(false);
reader.setIncludeInternalDTDDeclarations(false);
reader.setIncludeExternalDTDDeclarations(false);
Document document = reader.read(new StringReader(xmltext));
List nodelist = document.selectNodes(xpath);
// Process the elements in the nodelist
ArrayList outputList = new ArrayList();
ArrayList outputXmlList = new ArrayList();
String val = null;
String xmlVal = null;
for (Iterator iter = nodelist.iterator(); iter.hasNext();) {
Node element = (Node) iter.next();
xmlVal = element.asXML();
val = element.getStringValue();
if (val != null && !val.equals("")) {
outputList.add(val);
outputXmlList.add(xmlVal);
}
}
List nodelist=outputList;
List nodelistAsXML=outputXmlList; |
String_Constant0 |
stringconstant |
Value//ax21:intensities |
String_Constant1 |
stringconstant |
Value//ax21:mzs |
Outputs (2)
Name |
Description |
mzs |
|
intensities |
|
Datalinks (8)
Source |
Sink |
getPeak_input:output |
getPeak:parameters |
String_Constant:value |
getPeak_input:ids |
getPeak:parameters |
XPath_From_Text:xml-text |
String_Constant0:value |
XPath_From_Text:xpath |
getPeak:parameters |
XPath_From_Text0:xml-text |
String_Constant1:value |
XPath_From_Text0:xpath |
XPath_From_Text0:nodelist |
mzs |
XPath_From_Text:nodelist |
intensities |
Uploader
License
All versions of this Workflow are
licensed under:
Version 1
(of 1)
Credits (1)
(People/Groups)
Attributions (0)
(Workflows/Files)
None
Shared with Groups (0)
None
Featured In Packs (0)
None
Log in to add to one of your Packs
Attributed By (0)
(Workflows/Files)
None
Favourited By (0)
No one
Statistics
Other workflows that use similar services
(0)
There are no workflows in myExperiment that use similar services to this Workflow.
Comments (0)
No comments yet
Log in to make a comment