I tried:

 curl -g -H 'Accept: application/rdf+xml'
    'http://localhost:3030/ds/query?query=CONSTRUCTWHERE{}'

returned

<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; >
</rdf:RDF>

so Fuseki does conneg.

What client are you using?
Are you sending the request direct or via a reverse proxy.

On your site there seems to be a reverse proxy (nginx) not letting curl/wget through.

But using s-query and changing it to force "application/rdf+xml"
($accept_rdf="application/rdf+xml") does not work where is does work with a local 3.14.0 server.

It looks like the reverse proxy.

If you run fuseki with "-v" it print the headers it receives and sends.

Adding "?format=xml" is another way to get application/rdf+xml. Some client libraries aren't very good with HTTP hearers, and it's a non-standard way to ask the server.

    Andy

On 10/03/2020 15:09, Pietro Liuzzo wrote:
Sorry, this is the url 
<https://betamasaheft2.aai.uni-hamburg.de/fuseki/betamasaheft/query?query=PREFIX%20rdf:%20%3Chttp://www.w3.org/1999/02/22-rdf-syntax-ns#%3E%20PREFIX%20rdfs:%20%3Chttp://www.w3.org/2000/01/rdf-schema%23%3E%20PREFIX%20lawd:%20%3Chttp://lawd.info/ontology/%3E%20PREFIX%20oa:%20%3Chttp://www.w3.org/ns/oa%23%3E%20PREFIX%20ecrm:%20%3Chttp://erlangen-crm.org/current/%3E%20PREFIX%20crm:%20%3Chttp://www.cidoc-crm.org/cidoc-crm/%3E%20PREFIX%20gn:%20%3Chttp://www.geonames.org/ontology%23%3E%20PREFIX%20agrelon:%20%3Chttp://d-nb.info/standards/elementset/agrelon.owl%23%3E%20PREFIX%20rel:%20%3Chttp://purl.org/vocab/relationship/%3E%20PREFIX%20dcterms:%20%3Chttp://purl.org/dc/terms/%3E%20PREFIX%20bm:%20%3Chttps://betamasaheft.eu/%3E%20PREFIX%20pelagios:%20%3Chttp://pelagios.github.io/vocab/terms%23%3E%20PREFIX%20syriaca:%20%3Chttp://syriaca.org/documentation/relations.html%23%3E%20PREFIX%20saws:%20%3Chttp://purl.org/saws/ontology%23%3E%20PREFIX%20snap:%20%3Chttp://data.snapdrgn.net/ontology/snap%23%3E%20PREFIX%20pleiades:%20%3Chttps://pleiades.stoa.org/%3E%20PREFIX%20wd:%20%3Chttps://www.wikidata.org/%3E%20PREFIX%20dc:%20%3Chttp://purl.org/dc/elements/1.1/%3E%20PREFIX%20skos:%20%3Chttp://www.w3.org/2004/02/skos/core%23%3E%20PREFIX%20xsd:%20%3Chttp://www.w3.org/2001/XMLSchema%23%3E%20PREFIX%20t:%20%3Chttp://www.tei-c.org/ns/1.0%3E%20PREFIX%20geo:%20%3Chttp://www.w3.org/2003/01/geo/wgs84_pos%23%3E%20PREFIX%20foaf:%20%3Chttp://xmlns.com/foaf/0.1/%3E%20PREFIX%20sdc:%20%3Chttps://w3id.org/sdc/ontology%23%3ECONSTRUCT%20%7B%3Chttps://betamasaheft.eu/LIT4230Conclusion/title/t1%3E%20?p1%20?o1%20.%20?s2%20?p2%20%3Chttps://betamasaheft.eu/LIT4230Conclusion/title/t1%3E%20.%7D%20WHERE%20%7B%7B%3Chttps://betamasaheft.eu/LIT4230Conclusion/title/t1%3E%20?p1%20?o1%20.%7DUNION%7B?s2%20?p2%20%3Chttps://betamasaheft.eu/LIT4230Conclusion/title/t1%3E%20.%7D%7D>
 I am using with Postman to try and get rdf+xml. It was actually generated in a 
script, so it has many more prefixes than it needs. Thank you very much for your 
help. the request I send with Accept:application/rdf+xml return as response 
Content-Type:text/turtle;charset=utf-8


Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
ORCID: https://orcid.org/0000-0001-5714-4011
Academia: https://uni-hamburg.academia.edu/PietroMariaLiuzzo




Il giorno 10 mar 2020, alle ore 16:04, Andy Seaborne <a...@apache.org> ha 
scritto:



On 10/03/2020 14:17, Pietro Liuzzo wrote:
Dear all,
I am probably missing something basic, but I am not sure how I can manage to 
get RDF-XML as a format for my response from Apache Jena Fuseki.
I have tried sending in the request the Header Accept and Content-Type with 
value application/rdf+xml,

"Accept:"

"Content-Type" refers to the request bod, not the response.

What request are you making? URL?


but in the first case I am returned turtle nevertheless, in the second I am 
told in the response that The origin server is refusing to service the request 
because the payload is in a format not supported by this method on the target 
resource.
I am really not sure what this means and what I am getting wrong.
Thanks a lot for any hint!
Pietro
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
ORCID: https://orcid.org/0000-0001-5714-4011
Academia: https://uni-hamburg.academia.edu/PietroMariaLiuzzo


Reply via email to