0
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
1 <tool id="SADI-Docker-SPARQLGalaxy" name="SADI - Execute an SPARQL query against an RDF file" version="0.1">
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
2 <description>It executes an SPARQL query against the input RDF file and generates an HTML file with the variables and bound entities</description>
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
3 <requirements>
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
4 <container type="docker">mikeleganaaranguren/sadi:v6</container>
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
5 </requirements>
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
6 <command>
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
7 python /sadi/sparql.py $ontology "$pasted_query" $out_format > $output 2>/dev/null
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
8 </command>
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
9 <inputs>
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
10 <param name="ontology" type="data" format="rdf" label="Input RDF file"/>
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
11 <param name="pasted_query" type="text" area="True" size="10x50" label="SPARQL Query" value="SELECT * WHERE { ?s ?p ?o }">
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
12 <sanitizer sanitize="False"/>
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
13 </param>
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
14 <param name="out_format" type="select" label="Output format" help="">
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
15 <option value="html" selected="true">HTML</option>
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
16 <option value="tab">TABULAR</option>
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
17 </param>
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
18
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
19 </inputs>
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
20 <outputs>
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
21 <data format="html" name="output">
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
22 <change_format>
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
23 <when input="out_format" value="tab" format="tabular" />
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
24 </change_format>
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
25 </data>
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
26 </outputs>
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
27 <help>
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
28
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
29 **Usage**
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
30
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
31 An RDF file (in any format that RDFLib can accept) and a SPARQL query are needed.
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
32
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
33 **About**
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
34
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
35 More information and contact: http://github.com/mikel-egana-aranguren/SADI-Docker-Galaxy.
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
36
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
37 </help>
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
38
|
Mikel Egana <mikel.egana.aranguren@gmail.com>
parents:
diff
changeset
|
39 </tool>
|