mmisw/orr-ont

cannot load external http://w3c.github.io/sdw/ssn/

Closed this issue · 2 comments

Looks like a bad or lack of proper content negotiation in the Jena call to retrieve the ontology so unexpected HTML is being returned as the representation:

http get 'http://cor.esipfed.org/ont3/api/v0/ont/sbjs/external?uri=http://w3c.github.io/sdw/ssn/'
HTTP/1.1 400 Bad Request
Access-Control-Allow-Origin: *
Connection: close
Content-Length: 352
Content-Type: application/json;charset=UTF-8
Date: Sun, 26 Jun 2016 00:15:19 GMT
Server: Apache-Coyote/1.1
X-Content-Type-Options: nosniff
X-Frame-Options: sameorigin
X-XSS-Protection: 1; mode=block
{
    "detail": "org.xml.sax.SAXParseException; systemId: http://w3c.github.io/sdw/ssn/; lineNumber: 55; columnNumber: 5; 
The element type \"meta\" must be terminated by the matching end-tag \"</meta>\".",
    "error": "cannot load external ontology",
    "exceptionClassName": "com.hp.hpl.jena.shared.JenaException",
    "uri": "http://w3c.github.io/sdw/ssn/"
}

Well, closing as invalid: the actual ontology URI is: http://www.w3.org/ns/ssn/ as indicated in the Abstract at https://www.w3.org/TR/vocab-ssn/

However, will enter another issue re better error reporting when the provided URL does not resolve to acceptable ontology serialization formats.