Mercurial > repos > sem4j > sparql_tools
changeset 11:6d2424f16a83 draft
Uploaded
author | sem4j |
---|---|
date | Mon, 30 Sep 2013 23:21:40 -0400 |
parents | 360ae4d3d06c |
children | 30a553efb31e |
files | tab2rdf.xml |
diffstat | 1 files changed, 32 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/tab2rdf.xml Mon Sep 30 23:21:24 2013 -0400 +++ b/tab2rdf.xml Mon Sep 30 23:21:40 2013 -0400 @@ -8,23 +8,50 @@ </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="namespace" type="text" size="50" value="http://localhost/" 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"/> + <param name="s_col" type="data_column" data_ref="input_file" label="Subject (column)" /> + <param name="p_val" type="text" size="50" value="a" label="Predicate (text)" /> + <param name="o_col" type="data_column" data_ref="input_file" label="Object (column)" /> + <param name="o_type" label="Check if this object is Literal (Keep unchecked if this object is URI)" 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** + +Sample Input:: + + name age superviser + Micheal 42 John + Anne 30 Micheal + +Sample Parameters:: + + Namespace - 'http://localhost/' + Triple 1 - c1 'age' c2(literal) + Triple 2 - c3 'supervises' c1(URI) + +Sample Output:: + + <http://localhost/Michael> <http://localhost/age> "42" + <http://localhost/Anne> <http://localhost/age> "30" + <http://localhost/John> <http://localhost/supervises> <http://localhost/Micheal> + <http://localhost/Micheal> <http://localhost/supervises> <http://localhost/Anne> + +**Output Format** + +Output RDF format is N-Triples by default. + +Raptor's Rapper has to be installed to generate the output in Turtle or RDF/XML. + </help> </tool>