Last active
August 29, 2015 14:22
-
-
Save mdlincoln/0cbf4c12ddf3f389935e to your computer and use it in GitHub Desktop.
jq filter to turn RDF JSON into CSV
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.head.vars as $fields | ($fields | @csv), (.results.bindings[] | [.[$fields[]].value] | @csv) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Be sure to run jq using the
-r
flag to write out the results as properly escaped text.