Author's collaborators according to pubmed
Created: 2009-01-20 02:22:32
Last updated: 2009-01-20 03:41:26
SELECT distinct ?s2
FROM <http://atlas.bio2rdf.org/sparql>
WHERE {
?s1 ?p1 ?o1 .
?o1 bif:contains "author" .
?s2 ?p2 ?s1 .
FILTER( regex(?s1, "pubmed") )
}
followed by
SELECT ?creator, count()
FROM <http://localhost:8890/sparql>
WHERE {
?s1 ?p1 .
?s1 ?p2 ?o2 .
FILTER( regex(?o2, "author"))
?s1 ?creator .
}
ORDER BY DESC(count())
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
Titles (1)
Collaborators of an author |
Descriptions (4)
SELECT distinct ?s2
WHERE {
?s ?p ?o .
?o bif:contains "author" .
?s2 ?p2 ?s .
}
submitted at http://atlas.bio2rdf.org/sparql
SELECT ?creator, count()
WHERE {
?s1 ?p1 .
?s1 ?p2 ?o2 .
FILTER( regex(?o2, "author"))
?s1 ?creator .
}
ORDER BY DESC(count())
submitted at http://localhost:8890/sparql |
|
SELECT ?creator, count(*)
WHERE {
?s1 ?p1 <http://bio2rdf.org/bibtex#Article> .
?s1 ?p2 ?o2 .
FILTER( regex(?o2, "Labrie"))
?s1 <http://purl.org/dc/elements/1.1/creator> ?creator .
}
ORDER BY DESC(count(*)) |
SELECT ?creator, count(*)
WHERE {
?s1 ?p1 <http://bio2rdf.org/bibtex#Article> .
?s1 ?p2 ?o2 .
FILTER( regex(?o2, "Labrie"))
?s1 <http://purl.org/dc/elements/1.1/creator> ?creator .
}
ORDER BY DESC(count(*))
followed by
SELECT ?creator, count(*)
WHERE {
?s1 ?p1 <http://bio2rdf.org/bibtex#Article> .
?s1 ?p2 ?o2 .
FILTER( regex(?o2, "Labrie"))
?s1 <http://purl.org/dc/elements/1.1/creator> ?creator .
}
ORDER BY DESC(count(*)) |
Dependencies (0)
Processors (6)
Name |
Type |
Description |
text_search_in_pubmed_sparql_endpoint |
beanshell |
ScriptString url = "http://atlas.bio2rdf.org/sparql?default-graph-uri=&query=SELECT+distinct+%3Fs2%0D%0AWHERE+{%0D%0A++%3Fs+%3Fp+%3Fo+.+%0D%0A++%3Fo+bif%3Acontains+%22"+name+"%22+.%0D%0A++%3Fs2+%3Fp2+%3Fs+.%0D%0A}&format=text%2Fhtml&debug=on";
URL 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();
html = buf.toString();
html = html.replace("pubmed.bio2rdf","bio2rdf"); |
Nested_workflow |
workflow |
|
Filter_List_of_Strings_by_regex |
localworker |
Scriptfilteredlist = new ArrayList();
for (Iterator i = stringlist.iterator(); i.hasNext();) {
String item = (String) i.next();
if (item.matches(regex)) {
filteredlist.add(item);
}
}
|
pubmed |
stringconstant |
Valuepubmed.* |
sponge_uris |
workflow |
|
Get_Web_Page_from_URL |
beanshell |
ScriptString url = "http://localhost:8890/sparql?default-graph-uri=&should-sponge=&query=SELECT+%3Fcreator%2C+count(*)%0D%0AWHERE+{%0D%0A++%3Fs1+%3Fp1+%3Chttp%3A%2F%2Fbio2rdf.org%2Fbibtex%23Article%3E+.+%0D%0A++%3Fs1+%3Fp2+%3Fo2+.%0D%0A++FILTER(+regex(%3Fo2%2C+%22"+name+"%22))%0D%0A++%3Fs1+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2Fcreator%3E+%3Fcreator+.%0D%0A}%0D%0AORDER+BY+DESC(count(*))&format=text%2Fhtml&debug=on";
URL 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();
|
Beanshells (4)
Name |
Description |
Inputs |
Outputs |
text_search_in_pubmed_sparql_endpoint |
|
name
|
html
|
Get_Web_Page_from_URL |
|
name
|
contents
|
html2uri |
|
html
|
uris
|
sponge_uri |
|
uri
|
html
|
Outputs (5)
Name |
Description |
out1 |
|
out2 |
|
out3 |
|
out4 |
|
out5 |
|
Datalinks (11)
Source |
Sink |
Author |
text_search_in_pubmed_sparql_endpoint:name |
text_search_in_pubmed_sparql_endpoint:html |
Nested_workflow:html |
pubmed:value |
Filter_List_of_Strings_by_regex:regex |
Nested_workflow:uris |
Filter_List_of_Strings_by_regex:stringlist |
Filter_List_of_Strings_by_regex:filteredlist |
sponge_uris:uri |
Author |
Get_Web_Page_from_URL:name |
text_search_in_pubmed_sparql_endpoint:html |
out1 |
Nested_workflow:uris |
out2 |
Filter_List_of_Strings_by_regex:filteredlist |
out3 |
sponge_uris:html |
out4 |
Get_Web_Page_from_URL:contents |
out5 |
Coordinations (1)
Controller |
Target |
sponge_uris |
Get_Web_Page_from_URL |
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