Example of how to use Sesame service and Virtual Observatory services
Created: 2012-07-14 18:23:39
This workflow needs as input a list of names of galaxies. Then it queries Sesame services to get the coordinates of this galaxies, and finally with this coordinates queries a Virtual Observatory Services (a cone service).
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
Titles (1)
Example of how to use Sesame service and Virtual Observatory services |
Descriptions (1)
This workflow needs as input a list of names of galaxies. Then it queries Sesame services to get the coordinates of this galaxies, and finally with this coordinates queries a Virtual Observatory Services (a cone service). |
Dependencies (0)
Inputs (1)
Name |
Description |
list_cig_name |
|
Processors (9)
Name |
Type |
Description |
SesameXML |
wsdl |
Wsdlhttp://cdsws.u-strasbg.fr/axis/services/Sesame?wsdlWsdl OperationSesameXML |
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_DEC |
stringconstant |
Value//jdedeg |
XPath_From_Text_2 |
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_RA |
stringconstant |
Value//jradeg |
Flatten_List |
localworker |
Scriptflatten(inputs, outputs, depth) {
for (i = inputs.iterator(); i.hasNext();) {
element = i.next();
if (element instanceof Collection && depth > 0) {
flatten(element, outputs, depth - 1);
} else {
outputs.add(element);
}
}
}
outputlist = new ArrayList();
flatten(inputlist, outputlist, 1); |
Flatten_List_2 |
localworker |
Scriptflatten(inputs, outputs, depth) {
for (i = inputs.iterator(); i.hasNext();) {
element = i.next();
if (element instanceof Collection && depth > 0) {
flatten(element, outputs, depth - 1);
} else {
outputs.add(element);
}
}
}
outputlist = new ArrayList();
flatten(inputlist, outputlist, 1); |
VII_237 |
rest |
|
SR_value |
stringconstant |
Value0.001 |
Outputs (4)
Name |
Description |
sesame_return |
|
RA |
|
DEC |
|
VO_output |
|
Datalinks (14)
Source |
Sink |
list_cig_name |
SesameXML:name |
SesameXML:return |
XPath_From_Text:xml-text |
xpath_DEC:value |
XPath_From_Text:xpath |
SesameXML:return |
XPath_From_Text_2:xml-text |
xpath_RA:value |
XPath_From_Text_2:xpath |
XPath_From_Text:nodelist |
Flatten_List:inputlist |
XPath_From_Text_2:nodelist |
Flatten_List_2:inputlist |
Flatten_List:outputlist |
VII_237:DEC |
Flatten_List_2:outputlist |
VII_237:RA |
SR_value:value |
VII_237:SR |
SesameXML:return |
sesame_return |
Flatten_List_2:outputlist |
RA |
Flatten_List:outputlist |
DEC |
VII_237:responseBody |
VO_output |
Uploader
License
All versions of this Workflow are
licensed under:
Version 1
(of 1)
Credits (0)
(People/Groups)
None
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