linkedpipes / visualizations

LinkedPipes Visualization offers vocabulary based Linked Data visualizations
https://visualization.linkedpipes.com
GNU General Public License v2.0
1 stars 0 forks source link

SPARQL Endpoint visualization not working #43

Open jakubklimek opened 8 years ago

jakubklimek commented 8 years ago

Try http://statistics.gov.scot/sparql

When I click Visualize, it returns to homescreen

jirihelmich commented 8 years ago

{"message":"ERROR: Endpoint returned Content-Type: text/html which is not currently supported for ASK queries"}

jakubklimek commented 8 years ago

Hmm... so... a better error message and check whats wrong?

On Tue, Mar 8, 2016, 13:17 Jirka Helmich notifications@github.com wrote:

{"message":"ERROR: Endpoint returned Content-Type: text/html which is not currently supported for ASK queries"}

— Reply to this email directly or view it on GitHub https://github.com/linkedpipes/visualizations/issues/43#issuecomment-193760885 .

jirihelmich commented 8 years ago

Yep, working on it. But it seems that the URL you provide is not an endpoint, just some interface to it.

jirihelmich commented 8 years ago
<input type="hidden" name="authenticity_token" value="ymUL2+ehXIqznkE1Sr/jUbLNoDlpXDjLOkGNfhH6Iq9FTxjQWQEMCcLBzQ3e6tn0sSVbtBL8L3hBfgNpKLsUDw==">
jakubklimek commented 8 years ago

The API is described there in the API tab, so we should be able to use it. What content-type do we request?

jirihelmich commented 8 years ago
Option 2: GET
Issue a GET to the following URL (note the .json extension - see the formats section for more detail on this):

ASK queries return a boolean result:

Format  Extensions  Accept Headers
XML .xml    application/xml,
application/sparql-results+xml
JSON    .json   application/json,
application/sparql-results+json
Text    .txt, .text text/plain

As the ASK query is short, Jena decides to fire a GET request. But to URL http://statistics.gov.scot/sparql, not http://statistics.gov.scot/sparql.xml.

That is highly unusual... it's not a standard SPARQL endpoint.

jirihelmich commented 8 years ago

Any thoughts for this?

jakubklimek commented 8 years ago

Well.. tried http://statistics.gov.scot/sparql.xml and it discovers DCV pipeline, which results in error that no dataset is found... which is weird.

So far, I would not do anything automatic with the endpoint if it will not display anything anyway

jirihelmich commented 8 years ago

We use all ask, construct and select and they have different extensions for these. For construct, you need to query sparql.rdf instead of sparql.xml. Thu, 10 Mar 2016 v 18:43 odesílatel Jakub Klímek notifications@github.com napsal:

Well.. tried http://statistics.gov.scot/sparql.xml and it discovers DCV pipeline, which results in error that no dataset is found... which is weird.

So far, I would not do anything automatic with the endpoint if it will not display anything anyway

— Reply to this email directly or view it on GitHub https://github.com/linkedpipes/visualizations/issues/43#issuecomment-194972084 .