Mercurial > repos > mikel-egana-aranguren > sadi_generic
changeset 1:bb17b69a74c5 draft
RDF syntax converter added
author | Mikel Egana Aranguren <mikel-egana-aranguren@toolshed.g2.bx.psu.edu> |
---|---|
date | Thu, 05 Dec 2013 11:45:24 +0100 |
parents | 930ab9823773 |
children | 977c838e3442 |
files | RDFSyntaxConverter.jar RDFSyntaxConverter.xml README |
diffstat | 3 files changed, 36 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RDFSyntaxConverter.xml Thu Dec 05 11:45:24 2013 +0100 @@ -0,0 +1,30 @@ +<tool id="RDFSyntaxConverter" name="Converts RDF/XML to other formats" version="0.0.1"> + <description>Converts RDF/XML to one of RDF/XML-ABBREV, N3, N-TRIPLE, TURTLE or tabular</description> + + <!-- for debugging remove 2>/dev/null --> + + <command>java -Xmx2000M -Xms250M -jar ${__tool_data_path__}/shared/jars/sadi_generic_client.jar $url $input $format > $output 2>/dev/null</command> + + <inputs> + <param name="input" type="data" label="RDF input for SADI service"/> + <param name="format" type="select" label="Choose RDF output format"> + <option value="N3">N3</option> + <option value="N-TRIPLE">N-TRIPLE</option> + <option value="TAB" selected="true">Tab separated columns</option> + </param> + </inputs> + <outputs> + <data format="text" name="output" /> + </outputs> + <help> + + **What it does** + + Given an RDF input file, it converts it to any of the following formats: N3, N-TRIPLE or TAB (A tab delimited file containing three columns for -subjects, predicates and objects-, for other Galaxy tools to consume). + + **About** + + More information and contact: http://github.com/mikel-egana-aranguren/SADI-Galaxy + + </help> +</tool> \ No newline at end of file
--- a/README Wed Dec 04 09:01:28 2013 +0100 +++ b/README Thu Dec 05 11:45:24 2013 +0100 @@ -4,7 +4,8 @@ This is a client for SADI services. A SADI service consumes and ouputs RDF. Therefore, if you provide the service URI and a correct RDF input, this client will infer if the RDF is really compliant with the service -and submit it, obtaining the output RDF. +and submit it, obtaining the output RDF (Another tool, RDFSyntaxConverter, +is included to convert RDF to tab delimited files and other RDF syntaxes). This client is part of a larger project that provides SADI services as Galaxy tools, SADI-Galaxy. @@ -23,22 +24,23 @@ 1.- Stop Galaxy. -2.- Copy sadi_generic.jar galaxy-dist/tool-data/shared/jars/ +2.- Copy sadi_generic.jar and RDFSyntaxConverter.jar to galaxy-dist/tool-data/shared/jars/ 3.- Create directory galaxy-dist/tools/SADI/ -4.- Copy sadi_generic.xml to galaxy-dist/tools/SADI/ +4.- Copy sadi_generic.xml and RDFSyntaxConverter.xml to galaxy-dist/tools/SADI/ 5.- Add the following lines to /galaxy-dist/tool_conf.xml: <section name="SADI services" id="SADI"> <tool file="SADI/sadi_generic.xml"/> + <tool file="SADI/RDFSyntaxConverter.xml.xml"/> </section> 6.- Start Galaxy. (You can also install automatically from the tool shed but make -sure to copy the jar to right place) +sure to copy the jars to right place)