buda-base / lds-pdi

http://purl.bdrc.io BDRC Linked Data Server
Apache License 2.0
2 stars 0 forks source link

http://purl.bdrc.io/ontology/... fails to return proper contents #129

Closed xristy closed 5 years ago

xristy commented 5 years ago

For example,

curl --header 'Accept application/rdf+xml' http://purl.bdrc.io/ontology/types/Transliteration

Is now returning html which is breaking requests. Requesting text/turtle also fails.

This is now getting in the way of work on xmltoldmigration.

MarcAgate commented 5 years ago

curl -v -H "Accept:application/rdf+xml" http://purl.bdrc.io/ontology/admin/ is working just fine because its publicUri ends with a "/" in ont-policy.rdf.

Make sure that each ontology publicUri ends with a "/" and it should work just fine.

xristy commented 5 years ago

What is the semantics of the trailing / vs not?

MarcAgate commented 5 years ago

well, I don't know: sometimes you put one, sometimes you don't. if you want to leave things as is, I can do more testing including most common cases (trailer '/', trailer ' #', no trailer, etc...) . Just tell me.

xristy commented 5 years ago

I thought you might know the answer. I'll try to correct but would like to know. Things were working without / but I can adjust in all of the various includes and such.

In any event, ldspdi is responding incorrectly to:

curl --header 'Accept application/rdf+xml' http://purl.bdrc.io/ontology/types/Transliteration

since it is returning HTML rather than a 406 indication that the desired mime type is not available. See rfc2616, 14.1 Accept:

If an Accept header field is present, and if the server cannot send a response which is acceptable according to the combined Accept field value, then the server SHOULD send a 406 (not acceptable) response.

xristy commented 5 years ago

apparently fixed by a flurry of commits in ldspdi and owl-schema