zazuko / vscode-sparql-notebook

Visual Studio Code SPARQL Notebook Extension
https://marketplace.visualstudio.com/items?itemName=Zazuko.sparql-notebook
Other
26 stars 8 forks source link

refactors simple-client.ts such that only one type of request heade is sent, depending on the type of query #55

Closed simonstey closed 1 year ago

simonstey commented 1 year ago

some SPARQL endpoint (e.g. https://github.com/vemonet/rdflib-endpoint) can't handle combined Accept headers like "application/sparql-results+json,text/turtle" and will return their default (xml in this case) instead. the proposed refactoring uses only one type, depending of the type of query used.

there's probably a more elegant and future proof way of doing that, but this does the job in most of the cases too