Insert in local triplestore GeneID and KEGG pathway
Created: 2009-04-28 07:55:10
No description has been set
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
Titles (1)
Insert graph of GeneID and KEGG pathway |
Descriptions (0)
Dependencies (0)
Processors (9)
Name |
Type |
Description |
_00010 |
stringconstant |
Value00010 |
Concatenate_two_strings |
localworker |
Scriptoutput = string1 + string2; |
html2uris |
beanshell |
ScriptList split = new ArrayList();
if (!html.equals("")) {
String regexString = "\n";
if (regex != void) {
regexString = regex;
}
String[] result = html.split(regexString);
for (int i = 0; i < result.length; i++) {
split.add(result[i]);
}
}
import java.util.regex.*;
uris = new ArrayList();
Pattern thePat = Pattern.compile("http://bio2rdf.org/(.*) | ");
int theGroup = 1;
for (Iterator i = split.iterator(); i.hasNext();) {
String item = (String) i.next();
Matcher matcher = thePat.matcher(item);
if (matcher.find()) {
uris.add("http://bio2rdf.org/"+matcher.group(theGroup));
}
}
|
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();
|
Get_Web_Page_from_URL0 |
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();
|
Nested_workflow |
workflow |
|
temp |
stringconstant |
Valuetemp |
sparql_pathway_by_id |
beanshell |
Scriptoutput = "http://localhost:8890/sparql?default-graph-uri=&query=SELECT+DISTINCT+%3Fs%0D%0AWHERE+{%0D%0A++%3Fs+%3Chttp%3A%2F%2Fbio2rdf.org%2Fns%2Fbio2rdf%23xGeneID%3E+%3Fo+.%0D%0A++FILTER(regex(%3Fs%2C+%22"+string1+"%22))+.%0D%0A}&format=text%2Fhtml&debug=on"; |
sparql_geneid_by_id |
beanshell |
Scriptoutput = "http://localhost:8890/sparql?default-graph-uri=&query=SELECT+DISTINCT+%3Fo%0D%0AWHERE+{%0D%0A++%3Fs+%3Chttp%3A%2F%2Fbio2rdf.org%2Fns%2Fbio2rdf%23xGeneID%3E+%3Fo+.%0D%0A++FILTER(regex(%3Fs%2C+%22"+string1+"%22))+.%0D%0A}&format=text%2Fhtml&debug=on"; |
Beanshells (5)
Name |
Description |
Inputs |
Outputs |
html2uris |
|
html
|
uris
|
sparql_pathway_by_id |
|
string1
|
output
|
sparql_geneid_by_id |
|
string1
|
output
|
sparql_describe_uri |
|
uri
|
output
|
sparql_insert_n3 |
|
n3
graph
|
html
|
Outputs (4)
Name |
Description |
o1 |
|
o2 |
|
o3 |
|
04 |
|
Datalinks (13)
Source |
Sink |
Get_Web_Page_from_URL:contents |
Concatenate_two_strings:string2 |
Get_Web_Page_from_URL0:contents |
Concatenate_two_strings:string1 |
Concatenate_two_strings:output |
html2uris:html |
sparql_geneid_by_id:output |
Get_Web_Page_from_URL:url |
sparql_pathway_by_id:output |
Get_Web_Page_from_URL0:url |
html2uris:uris |
Nested_workflow:uri |
temp:value |
Nested_workflow:graph |
_00010:value |
sparql_pathway_by_id:string1 |
_00010:value |
sparql_geneid_by_id:string1 |
html2uris:uris |
o1 |
Get_Web_Page_from_URL:contents |
o2 |
Get_Web_Page_from_URL0:contents |
o3 |
Nested_workflow:virtuoso_response |
04 |
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 (0)
No comments yet
Log in to make a comment