MeasuresDocBuilder
Created: 2013-10-28 15:34:44
Last updated: 2014-07-23 08:52:57
Move the type list splitting into the component.
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
Titles (1)
SCAPE Metric Document Builder |
Descriptions (1)
Builds a metric document (with a single subject) out of the individual types and values. |
Dependencies (0)
Inputs (3)
Name |
Description |
subject |
The thing which the metrics were measured upon.
|
types |
The types (as extracted from the ontology) for the metrics.
There must be the same number of types as there are values.
|
values |
The values (in formats conforming to the ontology) for the metrics.
There must be the same number of values as there are types.
|
Processors (1)
Name |
Type |
Description |
Beanshell |
beanshell |
Scriptimport javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.OutputKeys;
doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
root = doc.createElement("measures");
List t = Arrays.asList(type.split(","));
doc.appendChild(root);
if (t.size() != value.size()) {
throw new Exception("must be same number of types and values");
}
for (int i=0; i |
Beanshells (1)
Name |
Description |
Inputs |
Outputs |
Beanshell |
|
subject
types
value
|
metric
|
Outputs (1)
Name |
Description |
metricDocument |
The constructed metric document.
|
Datalinks (4)
Source |
Sink |
values |
Beanshell:value |
subject |
Beanshell:subject |
types |
Beanshell:types |
Beanshell:metric |
metricDocument |
Uploader
Component Validity
Loading
License
All versions of this Workflow are
licensed under:
Version 2
(of 4)
Credits (0)
(People/Groups)
None
Attributions (0)
(Workflows/Files)
None
Shared with Groups (1)
Featured In Packs (1)
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