Triply-Dev / YASGUI.YASQE-deprecated

Deprecated, see https://github.com/TriplyDB/Yasgui for the Yasgui monorepo
MIT License
73 stars 36 forks source link

acceptHeaderGraph apparently not working #27

Closed jneubert closed 10 years ago

jneubert commented 10 years ago

I've tried a construct query with the default value of acceptHeaderGraph, and also setting explicitely

var yasqe = YASQE(document.getElementById("yasqe"), {
  sparql: {
    showQueryButton: true,
    acceptHeaderGraph: "text/turtle,*/*;q=0.9"
  },
  consumeShareLink: consumeUrl
});

but it looks like "application/sparql-results+json" is requested (and my endpoint choses to return rdf/xml).

LaurensRietveld commented 10 years ago

On what YASQE version did you try this? (you can get the version by accessing YASQE.version in js)

jneubert commented 10 years ago

I used the current version from the cdn as 1.5.2, and verified that it has loaded from http://cdnjs.cloudflare.com/ajax/libs/yasqe/1.5.2/yasqe.bundled.min.js. Yet, YASQE.version shows 1.5.1. My code is at http://zbw.eu/beta/sparql-gui.

LaurensRietveld commented 10 years ago

Ah, good to know. My guess is the accept header issue is resolved, but an invalid version is somehow pushed to cdnjs. I'll check it out tonight

gr Laurens

On Mon, Oct 27, 2014 at 11:46 AM, Joachim Neubert notifications@github.com wrote:

I used the current version from the cdn as 1.5.2, and verified that it has loaded from http://cdnjs.cloudflare.com/ajax/libs/yasqe/1.5.2/yasqe.bundled.min.js. Yet, YASQE.version shows 1.5.1. My code is at http://zbw.eu/beta/sparql-gui.

— Reply to this email directly or view it on GitHub https://github.com/YASGUI/YASQE/issues/27#issuecomment-60575161.

LaurensRietveld commented 10 years ago

Could you check again with the new version? The 1.5.3 version should be available on cdnjs within 15 minutes

LaurensRietveld commented 10 years ago

hmm, issues with the cdnjs autoupdate functionality. If the 1.5.3 version is still not available via cdn tomorrow, you might better try it by downloading the files from github

jneubert commented 10 years ago

It work now perfectly! Thanks a lot - Joachim

LaurensRietveld commented 10 years ago

ok, excellent ;)