OpenTox Apply Model On Dataset
Created: 2010-05-11 18:20:05
Last updated: 2010-05-11 18:20:06
Apply a model to predict a dataset
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (0)
Titles (0)
Descriptions (0)
Dependencies (0)
Inputs (7)
Name |
Description |
port |
|
model |
|
dataset_uri |
|
base |
|
prefix |
|
dataset_service |
|
result_dataset |
|
Processors (1)
Name |
Type |
Description |
query_server |
beanshell |
ScriptString postdata = "dataset_uri" + "=" + URLEncoder.encode(dataset_uri, "UTF-8");if(result_dataset !=void && result_dataset !=null && result_dataset.length()!=0){ postdata += "&result_dataset" + "=" + URLEncoder.encode(result_dataset, "UTF-8");}if(dataset_service !=void && dataset_service !=null && dataset_service.length()!=0){ postdata += "&dataset_service" + "=" + URLEncoder.encode(dataset_service, "UTF-8");}String path = "/"+prefix+"/model/"+ model;URL url = new URL("http://" +base+":"+port+path); URLConnection conn = url.openConnection(); conn.setRequestProperty("Content-Type","application/x-www-form-urlencoded");conn.setDoOutput(true); conn.setDoInput(true); OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream()); wr.write(postdata); wr.flush(); BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream())); String line; result = "";while ((line = rd.readLine()) != null) { result+=line;} wr.close(); rd.close(); |
Beanshells (1)
Name |
Description |
Inputs |
Outputs |
query_server |
|
port
dataset_uri
model
base
prefix
result_dataset
dataset_service
|
result
|
Outputs (1)
Name |
Description |
result_uri |
|
Datalinks (8)
Source |
Sink |
dataset_uri |
query_server:dataset_uri |
port |
query_server:port |
base |
query_server:base |
prefix |
query_server:prefix |
model |
query_server:model |
result_dataset |
query_server:result_dataset |
dataset_service |
query_server:dataset_service |
query_server:result |
result_uri |
Uploader
License
All versions of this Workflow are
licensed under:
Version 2
(of 3)
Credits (0)
(People/Groups)
None
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.
Comments (0)
No comments yet
Log in to make a comment