annotate sparql_import.xml @ 3:4b4bbcf5db31 draft

Uploaded
author saml
date Wed, 21 Nov 2012 12:46:24 -0500
parents 62cfd14e2520
children eee537fd4600
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
62cfd14e2520 Uploaded
saml
parents:
diff changeset
1 <tool id="sparql_import" name="SPARQL Import" version="1.0.0">
62cfd14e2520 Uploaded
saml
parents:
diff changeset
2 <description>Import data from a SPARQL Endpoint</description>
62cfd14e2520 Uploaded
saml
parents:
diff changeset
3 <command interpreter="python">sparql_import.py -u $url -q "$sparqlquery" -o $outfile</command>
62cfd14e2520 Uploaded
saml
parents:
diff changeset
4 <inputs>
62cfd14e2520 Uploaded
saml
parents:
diff changeset
5 <param name="url" type="text" format="text" size="80" label="SPARQL Endpoint URL"/>
62cfd14e2520 Uploaded
saml
parents:
diff changeset
6 <param name="sparqlquery" type="text" format="text" area="True" size="5x80" label="SPARQL Query"/>
62cfd14e2520 Uploaded
saml
parents:
diff changeset
7 </inputs>
62cfd14e2520 Uploaded
saml
parents:
diff changeset
8 <outputs>
62cfd14e2520 Uploaded
saml
parents:
diff changeset
9 <data name="outfile" format="tabular"/>
62cfd14e2520 Uploaded
saml
parents:
diff changeset
10 </outputs>
62cfd14e2520 Uploaded
saml
parents:
diff changeset
11 <help>
62cfd14e2520 Uploaded
saml
parents:
diff changeset
12 **What it does**
62cfd14e2520 Uploaded
saml
parents:
diff changeset
13
62cfd14e2520 Uploaded
saml
parents:
diff changeset
14 The SPARQL import executes a SPARQL query against a SPARQL endpoint and returns the results in tabular format, with one column per variable in the SPARQL query.
62cfd14e2520 Uploaded
saml
parents:
diff changeset
15
62cfd14e2520 Uploaded
saml
parents:
diff changeset
16 -------
62cfd14e2520 Uploaded
saml
parents:
diff changeset
17
62cfd14e2520 Uploaded
saml
parents:
diff changeset
18 **Example**
62cfd14e2520 Uploaded
saml
parents:
diff changeset
19
62cfd14e2520 Uploaded
saml
parents:
diff changeset
20 You could for example use this SPARQL Endpoint URL:
62cfd14e2520 Uploaded
saml
parents:
diff changeset
21
62cfd14e2520 Uploaded
saml
parents:
diff changeset
22 http://sparql.wikipathways.org/
62cfd14e2520 Uploaded
saml
parents:
diff changeset
23
62cfd14e2520 Uploaded
saml
parents:
diff changeset
24 and the following SPARQL query, which will select 25 sets of "subject", "predicate" and "object" out of the database, with no filtering at all::
62cfd14e2520 Uploaded
saml
parents:
diff changeset
25
62cfd14e2520 Uploaded
saml
parents:
diff changeset
26 SELECT ?s ?p ?o
62cfd14e2520 Uploaded
saml
parents:
diff changeset
27 WHERE { ?s ?p ?o }
62cfd14e2520 Uploaded
saml
parents:
diff changeset
28 LIMIT 10
62cfd14e2520 Uploaded
saml
parents:
diff changeset
29
62cfd14e2520 Uploaded
saml
parents:
diff changeset
30 This will generate a 3-column tabular output like this::
62cfd14e2520 Uploaded
saml
parents:
diff changeset
31
62cfd14e2520 Uploaded
saml
parents:
diff changeset
32 http://identifiers.org/pubmed/12860264 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://vocabularies.wikipathways.org/wp#PublicationReference
62cfd14e2520 Uploaded
saml
parents:
diff changeset
33 http://identifiers.org/pubmed/15782111 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://vocabularies.wikipathways.org/wp#PublicationReference
62cfd14e2520 Uploaded
saml
parents:
diff changeset
34 http://identifiers.org/pubmed/11017945 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://vocabularies.wikipathways.org/wp#PublicationReference
62cfd14e2520 Uploaded
saml
parents:
diff changeset
35 http://identifiers.org/pubmed/10997684 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://vocabularies.wikipathways.org/wp#PublicationReference
62cfd14e2520 Uploaded
saml
parents:
diff changeset
36 http://identifiers.org/pubmed/19635799 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://vocabularies.wikipathways.org/wp#PublicationReference
62cfd14e2520 Uploaded
saml
parents:
diff changeset
37 http://identifiers.org/pubmed/16480962 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://vocabularies.wikipathways.org/wp#PublicationReference
62cfd14e2520 Uploaded
saml
parents:
diff changeset
38 http://identifiers.org/pubmed/15976321 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://vocabularies.wikipathways.org/wp#PublicationReference
62cfd14e2520 Uploaded
saml
parents:
diff changeset
39 http://identifiers.org/pubmed/17218259 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://vocabularies.wikipathways.org/wp#PublicationReference
62cfd14e2520 Uploaded
saml
parents:
diff changeset
40 http://identifiers.org/pubmed/17215298 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://vocabularies.wikipathways.org/wp#PublicationReference
62cfd14e2520 Uploaded
saml
parents:
diff changeset
41 http://identifiers.org/pubmed/11177571 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://vocabularies.wikipathways.org/wp#PublicationReference
62cfd14e2520 Uploaded
saml
parents:
diff changeset
42
62cfd14e2520 Uploaded
saml
parents:
diff changeset
43 </help>
62cfd14e2520 Uploaded
saml
parents:
diff changeset
44 </tool>