-
Notifications
You must be signed in to change notification settings - Fork 19
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
MeSH SPARQL endpoint does not seem to return HTTP Content-Type header #149
Comments
Thank you; these are errors that may be upstream in Lodestar, or at least in the version of Lodestar upon which we base MeSH RDF. I will follow-up shortly, at least by the time we have updated MeSH RDF so that 2021 is current and no longer interim. |
I wonder whether your Accept request header matches the SPARQL query. When I do a simple SELECT query I get Content-Type The content type returned is conceptually able to specified by the Accept request header (e.g. should support Content-Negotiation). In practice you have to be careful to match the Content-Type to what is returned via the Query Editor as you select the various formats. If that explains the what you experienced, let me know and I will close this Github issue. |
What I got was a SPARQL CONSTRUCT query response without an HTTP Content-Type header, which should be RDF, and therefore |
Thanks, I'll look into that. |
When issuing a SPARQL query to the endpoint by a curl tool, I've noticed that the response header didn't include an HTTP Content-Type header.
This may cause inappropriate behavior of a SPARQL client.
Below is the one I encountered. The query is a Construct SPARQL query.
In addition, when trying a query at MeSH RDF API, I noticed that there was mismatch between
Response content type
and the one in theResponse headers
.I set it to
application/ld+json
, but the response wascontent-type: application/rdf+xml;charset=utf-8
.Moreover,
text/turtle
andapplication/rdf+n3
also set no content-type as in the case ofapplication/rdf+xml
.The text was updated successfully, but these errors were encountered: