d3.request(endpoint + query)
.header('Accept', 'application/sparql-results+json')
.response(function(xhr){return JSON.parse(xhr.responseText)})
.get(callback);
Last active
April 24, 2017 01:25
-
-
Save dogrunjp/c1fc0294e1d6fae45fabbda4929914b1 to your computer and use it in GitHub Desktop.
D3 v4のd3-requestモジュールで、request headerを指定して(この例ではAcceptを指定して)SPARQL endpointを利用する場合の記述例。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment