Skip to content

Instantly share code, notes, and snippets.

@mdlincoln
Last active Aug 29, 2015
Embed
What would you like to do?
jq filter to turn RDF JSON into CSV
.head.vars as $fields | ($fields | @csv), (.results.bindings[] | [.[$fields[]].value] | @csv)
@mdlincoln

This comment has been minimized.

Copy link
Owner Author

@mdlincoln mdlincoln commented Jun 4, 2015

Be sure to run jq using the -r flag to write out the results as properly escaped text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment