content negotiation for the ontobee sparql endpoint
0
0
Entering edit mode
3.6 years ago
mk ▴ 290

I'm using both the format query parameter (SPARQL standard) and the HTTP Accept header (HTTP content negotiation) to specify my desired results format (application/sparql-results+xml) and it only returns the full web page with an embedded html table of results. Is there any documentation on this behavior?

Here is the request header included in the response from the endpoint for one of my queries which seems to indicate that the Accept-portion of the request has been properly understood (and ignored?):

   GET /sparql?timeout=0&format=application%2Fsparql-results%2Bxml&query=PREFIX%20obo- term%3A%20%3Chttp%3A%2F%2Fpurl.obolibrary.org%2Fobo%2F%3E%0ASELECT%20%3Flabel%0Afrom%20%3Chttp%3A%2F%2Fpurl.obolibrary.org%2Fobo%2Fmerged%2FGO%3E%0AWHERE%0A%7B%0A%20%20%20%3Fannotation%20rdfs%3Alabel%20%3Flabel%20.%0A%20%20%20VALUES%20%3Fannotation%20%20%7B%3Chttp%3A%2F%2Fpurl.obolibrary.org%2Fobo%2FGO_0005829%3E%20%3Chttp%3A%2F%2Fpurl.obolibrary.org%2Fobo%2FGO_0005886%3E%20%3Chttp%3A%2F%2Fpurl.obolibrary.org%2Fobo%2FGO_0005654%3E%7D%20.%0A%7D%0A&debug=on HTTP/1.1

   Accept: application/sparql-results+xml
   Host: www.ontobee.org
   User-Agent: HTTP.jl/1.4.2
   Content-Length: 0

The response (which I am omitting for brevity) includes the desired results for this query but they are embedded in the source for the full human-readable page, how can I just get the xml?

ontobee sparql obofoundry • 1.0k views
ADD COMMENT
1
Entering edit mode

How is this related to bioinformatics?

ADD REPLY
1
Entering edit mode

Ontobee is the default ontology for the Open Biomedical Ontology Foundry .

If there is a 'more standard' access point for the OBO I would be happy to try that instead!

ADD REPLY
1
Entering edit mode

Would posting to Ontobee google group be easier/appropriate?

ADD REPLY
0
Entering edit mode

I can't post without a mod accepting my join-request, which is currently pending :I

edit: see comment by @genomax and reply

ADD REPLY
1
Entering edit mode

Cool. If you get an answer there come back and update this thread with it. Would help someone in future.

ADD REPLY
0
Entering edit mode

Whoops, thanks for the link @genomax, somehow I missed that (my above reply concerned obo-discuss)

This question is now mirrored on ontobee-discuss, once a solution is tested I will post here

ADD REPLY

Login before adding your answer.

Traffic: 2549 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6