nichtich / wdq

Command line interface to Wikidata Query Service
https://metacpan.org/pod/distribution/App-wdq/script/wdq
Other
54 stars 4 forks source link

Support additional formats and check format before submission #2

Closed nichtich closed 8 years ago

nichtich commented 8 years ago

Right now the format value is blindly passed to the SPARQL endpoint which only supports xml and json by now. wdq should also support at least csv and tsv.

The documentation should further tell how to postprocess XML and JSON output, for instance with jq (see http://matthewlincoln.net/2015/06/04/jq-and-sparql.html and also http://blog.johl.io/blog/2015/09/29/wikidata-cli/ for similar postprocessing of Wikidata API response)