4
|
1 <tool id="tab2rdf" name="Tab-to-RDF" version="0.1">
|
|
2 <description>Converter</description>
|
|
3 <command interpreter="python">
|
|
4 tab2rdf.py $input_file $output_file $output_format $namespace
|
|
5 #for $i in $triples
|
|
6 ${i.s_col} ${i.p_val} ${i.o_col} ${i.o_type}
|
|
7 #end for
|
|
8 </command>
|
|
9 <inputs>
|
|
10 <param name="input_file" type="data" format="tabular" label="Input File (tabular)"/>
|
|
11 <param name="namespace" type="text" size="50" value="http://" label="Namespace (Subject)" />
|
|
12 <param name="output_format" type="select" label="Output Format">
|
|
13 <option value="ntriples">N-Triples</option>
|
|
14 <option value="turtle">Turtle</option>
|
|
15 <option value="rdfxml">RDF/XML</option>
|
|
16 </param>
|
|
17 <repeat name="triples" title="Triples">
|
|
18 <param name="s_col" type="data_column" data_ref="input_file" label="Column (Subject)" />
|
|
19 <param name="p_val" type="text" size="50" value="a" label="Namespace (Subject)" />
|
|
20 <param name="o_col" type="data_column" data_ref="input_file" label="Column (Object)" />
|
|
21 <param name="o_type" label="Check if o is URI (Uncheck if o is Leteral)" type="boolean" truevalue="1" falsevalue="0" checked="False"/>
|
|
22 </repeat>
|
|
23 </inputs>
|
|
24 <outputs>
|
|
25 <data name="output_file" format="tabular" label="${tool.name} on ${on_string}"/>
|
|
26 </outputs>
|
|
27 <help>
|
|
28 **What it does**
|
|
29 </help>
|
|
30 </tool>
|