NAME
wdq - command line access to Wikidata Query Service
USAGE
Access Wikidata Query Service via command line. A SPARQL query is read from STDIN or option sparql
. Default namespaces are added automatically. If a query starts with {
a SELECT
clause is added.
EXAMPLES
# get all parts of the solar system
wdq -s '{ ?c wdt:P361 wd:Q544 }'
OPTIONS
- --sparql|-s
-
File with SPARQL query (
-
for STDIN) or WHERE clause to construct SPARQL query from. - --format
-
Response format. Default value:
json
- --no-default-prefixes
-
Don't add default namespace prefixes to the SPARQL query
- --api
-
SPARQL endpoint. Default value:
https://query.wikidata.org/bigdata/namespace/wdq/sparql
- --dry
-
Don't execute query but show it
- --help|-h|-?
-
Show usage help
- --version
-
Show version if this script
COPYRIGHT AND LICENSE
Copyright by Jakob Voß voss@gbv.de
Based on a PHP script by Marius Hoch hoo@online.de
at https://github.com/mariushoch/asparagus.
Licensed under GPL 2.0+
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 183:
Non-ASCII character seen before =encoding in 'Voß'. Assuming UTF-8