NAME

App::wdq - command line access to Wikidata Query Service

INSTALLATION

Either install from CPAN with all dependencies:

cpanm App::wdq

or install dependencies as prebuild packages (for instance Debian) and copy the wdq script to some place in your $PATH:

apt-get install libhttp-tiny-perl librdf-query-perl
wget https://github.com/nichtich/wdq/raw/master/bin/wdq
chmod +x wdq

USAGE

wdq --help

EXAMPLES

# get all parts of the solar system
wdq -q '{ ?c wdt:P361 wd:Q544 }'

# print expanded SPARQL query 
wdq -n -q '{ ?c wdt:P361 wd:Q544 }'

# execute query and return tab-separated values
wdq -f tsv < query

# execute query, abbreviate Wikidata identifier, emit simple JSON
wdq -f simple --ids < query

COPYRIGHT AND LICENSE

Copyright Jakob Voss, 2015-

GPL 2.0