Check the content of the Registry for mismaches of content of UOC
Created: 2012-07-25 09:17:50
This workflow check for tables which are registered in the HELIO registry but not available in the UOC and for tables which are in the UOC but which are not registred.
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
Titles (1)
Check the content of the Registry for mismaches of content of UOC |
Descriptions (1)
This workflow check for tables which are registered in the HELIO registry but not available in the UOC and for tables which are in the UOC but which are not registred. |
Dependencies (0)
Processors (7)
Name |
Type |
Description |
registry |
localworker |
Scriptif ((url == void) || (url == null)) {
throw new RuntimeException("The url must be specified");
}
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();
StringBuffer result = new StringBuffer();
BufferedReader reader;
String encoding = con.getContentEncoding();
if (encoding == null) {
reader = new BufferedReader(new InputStreamReader(in));
} else {
reader = new BufferedReader(new InputStreamReader(in, encoding));
}
String line = null;
String NEWLINE = System.getProperty("line.separator");
while ((line = reader.readLine()) != null) {
result.append(line);
result.append(NEWLINE);
}
reader.close();
contents = result.toString();
|
url_value |
stringconstant |
Valuehttp://msslkz.mssl.ucl.ac.uk/helio_registry/viewResourceEntry_body.jsp?XML=true&IVORN=ivo%3A%2F%2Fhelio-vo.eu%2Fuoc |
XPath_Service |
xpath |
Xpath Expression/ri:Resource/table/name |
vosi |
localworker |
Scriptif ((url == void) || (url == null)) {
throw new RuntimeException("The url must be specified");
}
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();
StringBuffer result = new StringBuffer();
BufferedReader reader;
String encoding = con.getContentEncoding();
if (encoding == null) {
reader = new BufferedReader(new InputStreamReader(in));
} else {
reader = new BufferedReader(new InputStreamReader(in, encoding));
}
String line = null;
String NEWLINE = System.getProperty("line.separator");
while ((line = reader.readLine()) != null) {
result.append(line);
result.append(NEWLINE);
}
reader.close();
contents = result.toString();
|
url_value_1 |
stringconstant |
Valuehttp://festung1.oats.inaf.it:8080/helio-uoc/VOSI/tables |
XPath_Service_2 |
xpath |
Xpath Expression/tab:tables/table/name |
String_List_Difference |
localworker |
ScriptList notIn1 = new ArrayList();
List notIn2 = new ArrayList();
for (Iterator i = list1.iterator(); i.hasNext();) {
Object o = i.next();
if (!list2.contains(o)) {
notIn2.add(o);
}
}
for (Iterator i = list2.iterator(); i.hasNext();) {
Object o = i.next();
if (!list1.contains(o)) {
notIn1.add(o);
}
}
|
Outputs (2)
Name |
Description |
notInRegistry |
|
notInUOC |
|
Datalinks (8)
Source |
Sink |
url_value:value |
registry:url |
registry:contents |
XPath_Service:xml_text |
url_value_1:value |
vosi:url |
vosi:contents |
XPath_Service_2:xml_text |
XPath_Service:nodelist |
String_List_Difference:list1 |
XPath_Service_2:nodelist |
String_List_Difference:list2 |
String_List_Difference:notIn1 |
notInRegistry |
String_List_Difference:notIn2 |
notInUOC |
Uploader
License
All versions of this Workflow are
licensed under:
BSD License
Version 1
(of 1)
Credits (1)
(People/Groups)
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