Re: [Dbpedia-discussion] Cross Domain Sparql Requests

2010-06-24 Thread Joe Presbrey
Hi Manuel, yes. You should use JSON-P aka. JSON w/ callback. DBpedia/Virtuoso's JSON output module supports ?callback=foobar query string parameter, eg. http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&should-sponge=&query=SELECT+DISTINCT+%3Fs+WHERE+%7B%0D%0A%3Fs+%3Chttp%3A%2F

[Dbpedia-discussion] Cross Domain Sparql Requests

2010-06-24 Thread Manuel Schölling
Hi, is there any possibility to access dbpedia from another domian? This code snippet does not work, because the dbpedia server does not support Access-Control-Allow-Origin in the response header: var req = new XMLHttpRequest(); req.open("GET", "http://dbpedia.org/sparql";); req.send