Content Negotiation error in Protege

Hello,
I am encounters an error when trying to get DPV from its url http://w3.org/ns/dpv in Protege 5.5.
Inspecting the error (Manchester tab has most info), it seems that Protege is not performing content negotiation as intended, and is loading the HTML page of the specification.

Error text: Encountered '<!DOCTYPE html><html dir="ltr" lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="content-type"><meta name="generator" content="ReSpec 24.27.1"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><style>/* --- EXAMPLES --- */' at line 1 column 1. Expected either 'Ontology:' or 'Prefix:' (Line 1)

Using the URL of the file http://w3.org/ns/dpv.ttl works as intended.
Content negotiation against the URL also works correctly, as verified using cURL:
$ curl -L -H "Accept: text/turtle" w3.org/ns/dpv

Most likely, this is an error with Protege itself. Am sending this to the mailing list to record this as an ‘issue’ as most people use Protege to interact with ontologies.
Maybe this can be an open issue on Github to provide more chance for public comments.

Regards,
Harsh

Received on Tuesday, 1 October 2019 19:15:41 UTC