Skip to content
Permalink
Browse files

add csv and tsv examples

  • Loading branch information...
smurp committed Jun 10, 2019
1 parent eb34510 commit f034c56553ebe2ba89b618a9cffddbe25e3f2368
Showing with 8 additions and 0 deletions.
  1. +4 −0 lib/huviz.js
  2. +4 −0 src/huviz.coffee
@@ -9599,6 +9599,10 @@ OnceRunner.prototype.makeWrapper = function(callback) {
'Accept': 'application/sparql-results+json'
};
}
if (url.includes('wikidata')) {
ajax_settings.headers.Accept = "text/tab-separated-values";
ajax_settings.headers.Accept = "text/csv";
}
queryManager.xhr = $.ajax({
timeout: timeout,
method: ajax_settings.method,
@@ -3913,6 +3913,10 @@ class Huviz
ajax_settings.headers =
'Content-Type' : 'application/sparql-query'
'Accept': 'application/sparql-results+json'
if url.includes('wikidata')
# these don't solve CORS issues but could solve CORB issues
ajax_settings.headers.Accept = "text/tab-separated-values"
ajax_settings.headers.Accept = "text/csv"

queryManager.xhr = $.ajax
timeout: timeout

0 comments on commit f034c56

Please sign in to comment.
You can’t perform that action at this time.