instruments in sxr and euv spectrum
Created: 2010-08-20 15:39:20
Last updated: 2010-08-20 15:39:22
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
![header=[] body=[This is the author information extracted from the workflow version] cssheader=[boxoverTooltipHeader] cssbody=[boxoverTooltipBody] delay=[200] Information](/images/famfamfam_silk/information.png?1680607579)
Authors (1)
![header=[] body=[These are the descriptive titles embedded within the workflow version] cssheader=[boxoverTooltipHeader] cssbody=[boxoverTooltipBody] delay=[200] Information](/images/famfamfam_silk/information.png?1680607579)
Titles (1)
instruments in sxr and euv spectrum |
![header=[] body=[These are the descriptions embedded within the workflow version] cssheader=[boxoverTooltipHeader] cssbody=[boxoverTooltipBody] delay=[200] Information](/images/famfamfam_silk/information.png?1680607579)
Descriptions (1)
![header=[] body=[These are the listed dependencies of the workflow] cssheader=[boxoverTooltipHeader] cssbody=[boxoverTooltipBody] delay=[200] Information](/images/famfamfam_silk/information.png?1680607579)
Dependencies (0)
Inputs (1)
Name |
Description |
Query_query_WHERE |
1) ins_obs_position,in-situ
2) ins_obs_position,in-situ;ins_obs_ent_element,fields;ins_obs_ent_type,magnetic
|
Processors (15)
Name |
Type |
Description |
Query |
wsdl |
Wsdlhttp://msslxw.mssl.ucl.ac.uk:8080/helio-ics-test/HelioTavernaService?wsdlWsdl OperationQuery |
Query_query |
xmlsplitter |
|
STARTTIME_value |
stringconstant |
Value1900-01-01T00:00:00 |
ENDTIME_value |
stringconstant |
Value2100-01-01T00:00:00 |
FROM_value |
stringconstant |
Valueinstruments |
Extracting_data_from_VOTable_format_by_using_XPath_query |
workflow |
|
VOTable_columnName_value |
stringconstant |
Valueins_obs_id |
Remove_String_Duplicates |
localworker |
ScriptList strippedlist = new ArrayList();
for (Iterator i = stringlist.iterator(); i.hasNext();) {
String item = (String) i.next();
if (strippedlist.contains(item) == false) {
strippedlist.add(item);
}
}
|
String_List_Intersection |
localworker |
ScriptList intersection = new ArrayList();
for (Iterator i = list.get(0).iterator(); i.hasNext();) {
Object o = i.next();
if (list.get(1).contains(o)) {
intersection.add(o);
}
}
|
XPath_From_Text |
localworker |
Scriptimport org.dom4j.*;
import org.dom4j.io.SAXReader;
import org.dom4j.xpath.*;
SAXReader reader = new SAXReader(false);
reader.setIncludeInternalDTDDeclarations(false);
reader.setIncludeExternalDTDDeclarations(false);
XPath xpathObj = new DefaultXPath(xpath);
HashMap map = new HashMap();
map.put(abbrevation,namespace);
xpathObj.setNamespaceURIs(map);
Document document = reader.read(new StringReader(xmltext));
List nodelist = xpathObj.selectNodes(document);
// 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; |
Beanshell |
beanshell |
ScriptxPath="//h:VOTABLE[1]/h:RESOURCE/h:TABLE/h:DATA/h:TABLEDATA/h:TR[h:TD = \""+columnName+"\"]"; |
namespace |
stringconstant |
Valuehttp://www.ivoa.net/xml/VOTable/v1.1 |
abbrevation_value |
stringconstant |
Valueh |
Beanshell_2 |
beanshell |
ScriptoutFirst = inlist.get(0); |
combineVOTables |
beanshell |
ScriptString source = VOTable.get(0);
String searchInfo="=0) {
lastInfo=source.indexOf(searchInfoEnd,lastInfo)+searchInfoEnd.length();
}
else {
lastInfo=source.indexOf(end,lastInfo)+end.length();
}
VOTableOut = source.substring(0,lastInfo);
//add additional info node
VOTableOut += "This VOTable was modified by a Taverna Workflow. It is the combination of several queries those details are in previouse INFO nodes";
//add data
VOTableOut += source.substring(lastInfo, (firstTableData+searchTD1.length()));
for(int i=0;i |
Beanshells (4)
Name |
Description |
Inputs |
Outputs |
Beanshell |
|
columnName
|
xPath
|
Beanshell_2 |
|
inlist
|
outFirst
|
combineVOTables |
|
VOTable
data
|
VOTableOut
|
Beanshell |
|
columnName
|
xPath
|
Outputs (2)
Name |
Description |
Query_response |
|
combineVOTables_VOTableOut |
|
Datalinks (19)
Source |
Sink |
Query_query:output |
Query:query |
STARTTIME_value:value |
Query_query:STARTTIME |
ENDTIME_value:value |
Query_query:ENDTIME |
FROM_value:value |
Query_query:FROM |
Query_query_WHERE |
Query_query:WHERE |
Query:response |
Extracting_data_from_VOTable_format_by_using_XPath_query:VOTable |
VOTable_columnName_value:value |
Extracting_data_from_VOTable_format_by_using_XPath_query:VOTable_columnName |
Extracting_data_from_VOTable_format_by_using_XPath_query:VOTable_value_list |
Remove_String_Duplicates:stringlist |
Remove_String_Duplicates:strippedlist |
String_List_Intersection:list |
Beanshell:xPath |
XPath_From_Text:xpath |
namespace:value |
XPath_From_Text:namespace |
abbrevation_value:value |
XPath_From_Text:abbrevation |
Query:response |
XPath_From_Text:xmltext |
String_List_Intersection:intersection |
Beanshell:columnName |
Query:response |
Beanshell_2:inlist |
Beanshell_2:outFirst |
combineVOTables:VOTable |
XPath_From_Text:nodelistAsXML |
combineVOTables:data |
Query:response |
Query_response |
combineVOTables:VOTableOut |
combineVOTables_VOTableOut |
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 (1)
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.
No comments yet
Log in to make a comment