Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPARQL Endpoint visualization not working #43

Open
jakubklimek opened this issue Mar 8, 2016 · 9 comments
Open

SPARQL Endpoint visualization not working #43

jakubklimek opened this issue Mar 8, 2016 · 9 comments
Assignees
Labels

Comments

@jakubklimek
Copy link
Member

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

When I click Visualize, it returns to homescreen

@jirihelmich
Copy link

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

@jakubklimek
Copy link
Member Author

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
#43 (comment)
.

@jirihelmich
Copy link

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

@jirihelmich
Copy link

<input type="hidden" name="authenticity_token" value="ymUL2+ehXIqznkE1Sr/jUbLNoDlpXDjLOkGNfhH6Iq9FTxjQWQEMCcLBzQ3e6tn0sSVbtBL8L3hBfgNpKLsUDw==">

@jakubklimek
Copy link
Member Author

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

@jakubklimek jakubklimek reopened this Mar 9, 2016
@jirihelmich
Copy link

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
Copy link

Any thoughts for this?

@jakubklimek
Copy link
Member Author

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
Copy link

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
#43 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants