-
Notifications
You must be signed in to change notification settings - Fork 36
Script: cache queries.sh
timrdf edited this page Mar 2, 2011
·
16 revisions
See Querying datasets created by csv2rdf4lod.
Path: $CSV2RDF4LOD_HOME/bin/util/cache-queries.sh
usage: cache-queries.sh <endpoint> [-p {output,format}] [-o {sparql,gvds,xml,exhibit,csv}+] [-q a.sparql b.sparql ...]*
execute SPARQL queries against an endpoint requesting the given output formats
-p : the URL parameter name used to request a different output/format.
default -p : output
-o : the URL parameter value(s) to request.
default -o : sparql xml
default -q : *.sparql *.rq
Generalized to handle LOGD's SparqlProxy and DBpedia (they use different att-vars to control output).
bash-3.2$ cat types.sparql
SELECT distinct ?type
WHERE {
GRAPH <http://logd.tw.rpi.edu/vocab/Dataset> {
[] a ?type
}
} order by ?type
cache-queries.sh http://logd.tw.rpi.edu/sparql -o csv -q types.sparql