Rdfise Riken SciNes Database Repository [myexperiment:scines2rdf]
Created: 2010-02-01 20:10:43
Last updated: 2010-02-01 20:13:51
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 (3)
scines2rdf |
Rdfise Riken SciNes Database Repository [myexperiment:scines2rdf] |
Rdfise Riken SciNes Database Repository [myexperiment:scines_database2rdf] |
![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 (4)
This workflow rdfise Riken database available at https://database.riken.jp/sw/links/en/crib151s2i/ |
This workflow rdfise Riken Hub database available at https://database.riken.jp/sw/links/en/crib151s2i/ |
This workflow rdfise Riken SciNes Database Repository available at https://database.riken.jp/sw/links/en/crib151s2i/
There is a bug with main page listing databases: version 2p and 3p are similar to 1p. |
This workflow rdfise Riken SciNes Database Repository available at https://database.riken.jp/sw/links/en/crib151s2i/ |
![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)
Processors (14)
Name |
Type |
Description |
Riken_databases_url |
stringconstant |
Valuehttps://database.riken.jp/sw/links/en/crib151s2i/ |
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();
|
_1p_2p_3p |
stringconstant |
Value1p,2p,3p |
Concatenate_two_strings |
localworker |
Scriptoutput = string1 + string2; |
Split_string_into_string_list_by_regular_expression |
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]);
}
}
|
parse_riken_html |
beanshell |
Scriptimport java.util.regex.*;
String line, id;
namespace = "";
Pattern thePat = Pattern.compile("(?m) |
Split_string_into_string_list_by_regular_expression_2 |
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]);
}
}
|
String_constant_2 |
stringconstant |
Valuehttp://database.riken.jp/sw/image/ |
build_rdf_url |
localworker |
Scriptrdf_url = "https://database.riken.jp/sw/rdf/"+id+"/"; |
jena_read_ntriples_from_url |
beanshell |
Scriptimport com.hp.hpl.jena.rdf.model.*;
Model model = ModelFactory.createDefaultModel();
model.read(rdf_url, "RDF/XML");
StringWriter writer = new StringWriter () ;
model.write( writer, "N-TRIPLE");
model.close();
ntriples = writer.toString () ; |
normalise_uri |
beanshell |
|
Sesame_insert_ntriples |
workflow |
|
mem_rdf_db |
stringconstant |
Valuemem-rdf-db |
_1p |
stringconstant |
Value1p |
Beanshells (3)
Name |
Description |
Inputs |
Outputs |
parse_riken_html |
|
in
|
namespace
|
jena_read_ntriples_from_url |
|
rdf_url
|
ntriples
|
normalise_uri |
|
in
|
out
|
Outputs (3)
Name |
Description |
scines_database_ntriples |
|
rdf_url |
|
log |
|
Datalinks (15)
Source |
Sink |
Concatenate_two_strings:output |
Get_Web_Page_from_URL:url |
Riken_databases_url:value |
Concatenate_two_strings:string1 |
Split_string_into_string_list_by_regular_expression:split |
Concatenate_two_strings:string2 |
_1p:value |
Split_string_into_string_list_by_regular_expression:string |
Split_string_into_string_list_by_regular_expression_2:split |
parse_riken_html:in |
Get_Web_Page_from_URL:contents |
Split_string_into_string_list_by_regular_expression_2:string |
String_constant_2:value |
Split_string_into_string_list_by_regular_expression_2:regex |
parse_riken_html:namespace |
build_rdf_url:id |
build_rdf_url:rdf_url |
jena_read_ntriples_from_url:rdf_url |
jena_read_ntriples_from_url:ntriples |
normalise_uri:in |
normalise_uri:out |
Sesame_insert_ntriples:triples |
mem_rdf_db:value |
Sesame_insert_ntriples:repository |
normalise_uri:out |
scines_database_ntriples |
build_rdf_url:rdf_url |
rdf_url |
Sesame_insert_ntriples:sesame_insert_ntriples_log |
log |
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.
No comments yet
Log in to make a comment