view tab2rdf.xml @ 9:2c9827b61b71 draft

Uploaded
author sem4j
date Fri, 27 Sep 2013 03:00:22 -0400
parents 8c7a1b951bb3
children 6d2424f16a83
line wrap: on
line source

<tool id="tab2rdf" name="Tab-to-RDF" version="0.1">
  <description>Converter</description>
  <command interpreter="python">
    tab2rdf.py $input_file $output_file $output_format $namespace
    #for $i in $triples
      ${i.s_col} ${i.p_val} ${i.o_col} ${i.o_type}
    #end for
  </command>
  <inputs>
    <param name="input_file" type="data" format="tabular" label="Input File (tabular)"/>
    <param name="namespace" type="text" size="50" value="http://" label="Namespace (Subject)" />
    <param name="output_format" type="select" label="Output Format">
      <option value="ntriples">N-Triples</option>
      <option value="turtle">Turtle</option>
      <option value="rdfxml">RDF/XML</option>
    </param>
    <repeat name="triples" title="Triples">
      <param name="s_col" type="data_column" data_ref="input_file" label="Column (Subject)" />
      <param name="p_val" type="text" size="50" value="a" label="Namespace (Subject)" />
      <param name="o_col" type="data_column" data_ref="input_file" label="Column (Object)" />
      <param name="o_type" label="Check if o is URI (Uncheck if o is Leteral)" type="boolean" truevalue="1" falsevalue="0" checked="False"/>
    </repeat>
  </inputs>
  <outputs>
    <data name="output_file" format="tabular" label="${tool.name} on ${on_string}"/>
  </outputs>
  <help>
**What it does**
  </help>
</tool>