-
Notifications
You must be signed in to change notification settings - Fork 12
Description
I'm having a issue when requesting to a graphdb endpoint, the reponse is always in srx format (application/sparql-results+xml) instead of srj format (application/sparql-results+xml).
I think the issue is caused because in the GET request LD-VOWL sends the parameter 'format=' instead of 'Accept='. This is what an appache2 server shows in access.log when it recieves the request from LD-VOWL:
27.0.0.1 - - [11/Mar/2021:11:11:11 +0100] "GET /repositories/phages?debug=on&format=application%2Fsparql-results%2Bjson&query=PREFIX+rdfs:+%3Chttp:%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E+PREFIX+skos:+%3Chttp:%2F%2Fwww.w3.org%2F2004%2F02%2Fskos%2Fcore%23%3E+SELECT+DISTINCT+%3Fclass+(count(%3Fsub)+AS+%3FinstanceCount)+WHERE+%7B+%3Fsub+a+%3Fclass.+%7D+GROUP+BY+%3Fclass+ORDER+BY+DESC(%3FinstanceCount)+LIMIT+10+OFFSET+0&timeout=30000 HTTP/1.1" 404 488 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0"
In order to test it with graphdb I wrote that URL in a browser replacing format with Accept in following way, and graphddb served a JSON file as response:
In this way, graphdb serves a response in srj format as it should be. ¿Would be possible to add the possibility to work with graphdb endpoints?
Thanks so much.