annotate tab2rdf.xml @ 6:c1f5078f2a46 draft

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