Mercurial > repos > mikel-egana-aranguren > sparql_galaxy
comparison galaxy-dist/tools/sparql_galaxy/SPARQLGalaxy.xml @ 4:6501986529b0 draft
HTML or tabular option added
author | mikel-egana-aranguren <mikel.egana.aranguren@gmail.com> |
---|---|
date | Mon, 28 Apr 2014 16:11:05 +0200 |
parents | 24ad2706526c |
children |
comparison
equal
deleted
inserted
replaced
3:24ad2706526c | 4:6501986529b0 |
---|---|
1 <tool id="SPARQLGalaxy" name="Execute an SPARQL query against an RDF file" version="1.0.1"> | 1 <tool id="SPARQLGalaxy" name="Execute an SPARQL query against an RDF file" version="1.0.1"> |
2 <description>It executes an SPARQL query against the input RDF file and generates an HTML file with the variables and bound entities</description> | 2 <description>It executes an SPARQL query against the input RDF file and generates an HTML file with the variables and bound entities</description> |
3 <command interpreter="python"> | 3 <command interpreter="python"> |
4 sparql.py $ontology "$pasted_query" > $output 2>/dev/null | 4 sparql.py $ontology "$pasted_query" $out_format > $output 2>/dev/null |
5 </command> | 5 </command> |
6 <inputs> | 6 <inputs> |
7 <param name="ontology" type="data" format="rdf" label="Input RDF file"/> | 7 <param name="ontology" type="data" format="rdf" label="Input RDF file"/> |
8 <param name="pasted_query" type="text" area="True" size="10x50" label="SPARQL Query" value="SELECT * WHERE { ?s ?p ?o }"> | 8 <param name="pasted_query" type="text" area="True" size="10x50" label="SPARQL Query" value="SELECT * WHERE { ?s ?p ?o }"> |
9 <sanitizer sanitize="False"/> | 9 <sanitizer sanitize="False"/> |
10 </param> | |
11 <param name="out_format" type="select" label="Output format" help=""> | |
12 <option value="html" selected="true">HTML</option> | |
13 <option value="tab">TABULAR</option> | |
10 </param> | 14 </param> |
15 | |
11 </inputs> | 16 </inputs> |
12 <outputs> | 17 <outputs> |
13 <data format="html" name="output" /> | 18 <data format="html" name="output"> |
19 <change_format> | |
20 <when input="out_format" value="tab" format="tabular" /> | |
21 </change_format> | |
22 </data> | |
14 </outputs> | 23 </outputs> |
15 <help> | 24 <help> |
25 | |
16 | 26 |
17 **Important note** | 27 **Important note** |
18 | 28 |
19 RDFLib must be installed on the system (http://github.com/RDFLib/rdflib). | 29 RDFLib must be installed on the system (http://github.com/RDFLib/rdflib). |
20 | 30 |