Bio2RDF: CPath search in taxon
Created: 2009-02-19 07:20:36
No description has been set
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
Titles (2)
Bio2RDF: Search in CPath interaction from Pathway Commons |
Bio2RDF: Full text search in CPath interactions from Pathway Commons for a specific taxon |
Descriptions (1)
SELECT ?s
FROM <http://www.pathwaycommons.org/pc/webservice.do>
WHERE {
?s, ?p, ?o .
?s, <http://bio2rdf.org/bio2rdf#xTaxon>, <<http://bio2rdf.org/taxon:TAXON> .
FILTER ( regex(?o, "QUERY")) .
} |
Dependencies (0)
Inputs (2)
Name |
Description |
query |
|
taxon_id |
|
Processors (7)
Name |
Type |
Description |
taxon_mouse_for_test |
stringconstant |
Value10090 |
Get_Web_Page_from_url |
localworker |
ScriptURL inputURL = null;
if (base != void) {
inputURL = new URL(new URL(base), url);
}
else {
inputURL = new URL(url);
}
URLConnection con = inputURL.openConnection();
InputStream in = con.getInputStream();
InputStreamReader isr = new InputStreamReader(in);
Reader inReader = new BufferedReader(isr);
StringBuffer buf = new StringBuffer();
int ch;
while ((ch = inReader.read()) > -1) {
buf.append((char)ch);
}
inReader.close();
contents = buf.toString();
//String NEWLINE = System.getProperty("line.separator");
//
//URL inputURL = null;
//if (base != void) {
// inputURL = new URL(new URL(base), url);
//} else {
// inputURL = new URL(url);
//}
//StringBuffer result = new StringBuffer();
//BufferedReader reader = new BufferedReader(new InputStreamReader(inputURL.openStream()));
//String line = null;
//while ((line = reader.readLine()) != null) {
// result.append(line);
// result.append(NEWLINE);
//}
//
//contents = result.toString();
|
Concatenate_pc_search_url |
beanshell |
Scriptpc_url = "http://www.pathwaycommons.org/pc/webservice.do?version=2.0&format=xml&cmd=search&q=" + query + "&organism=" + taxon_id; |
Split_string_into_string_list |
localworker |
ScriptList split = new ArrayList();
if (!string.equals("")) {
String regexString = ",";
if (regex != void) {
regexString = regex;
}
String[] result = string.split(regexString);
for (int i = 0; i < result.length; i++) {
split.add(result[i]);
}
}
|
eol |
stringconstant |
Value\n |
Filter_list_of_pc_bmuri |
beanshell |
Scriptimport java.util.regex.*;
cpath_bmuris = new ArrayList();
Pattern thePat = Pattern.compile("");
for (Iterator i = stringlist.iterator(); i.hasNext();) {
String item = (String) i.next();
Matcher matcher = thePat.matcher(item);
if (matcher.find()) {
cpath_bmuris.add("urn:bm:cpath:"+matcher.group(1));
}
}
|
query_gene_name_for_test |
stringconstant |
ValueIGF1 |
Beanshells (2)
Name |
Description |
Inputs |
Outputs |
Concatenate_pc_search_url |
|
taxon_id
query
|
pc_url
|
Filter_list_of_pc_bmuri |
|
stringlist
|
cpath_bmuris
|
Outputs (1)
Name |
Description |
cpath_bmuris |
|
Datalinks (7)
Source |
Sink |
Concatenate_pc_search_url:pc_url |
Get_Web_Page_from_url:url |
taxon_id |
Concatenate_pc_search_url:taxon_id |
query |
Concatenate_pc_search_url:query |
Get_Web_Page_from_url:contents |
Split_string_into_string_list:string |
eol:value |
Split_string_into_string_list:regex |
Split_string_into_string_list:split |
Filter_list_of_pc_bmuri:stringlist |
Filter_list_of_pc_bmuri:cpath_bmuris |
cpath_bmuris |
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 (2)
Log in to make a comment
It might help if example inputs were included in the workflow.
cheers,
Jun
Hi, I figured out later that you can use the value given in the two other string_constant processors to run the workflow. However, I don't quite understand the results, which seem to me just a collection of URIs. What should I do with them?