Closed carueda closed 4 years ago
@lewismc I think we need to update the apache rule to only use pyLODE for ontologies, not terms . Let me try that.
@lewismc
(I noted the triple store was empty (probably some recent restart of the containers?); I just reloaded it. )
I changed the rule so pyLODE is dispatched only for ontologies
while terms are dispatched via the COR as before:
Content-negotiation involving semantic serialization should continue to work as usual, eg:
$ curl -i -H 'Accept: text/turtle' http://sweetontology.net/matrWater
$ curl -i -H 'Accept: text/turtle' http://sweetontology.net/matrWater/Hydrate
(btw, no need to send any Content-Type header as no payload is being included in the request.)
We now also have a rather confusing situation where if the client wishes to Accept: text|application/html they CAN obtain an HTML response if they reference the Label which appears as an <h3> element on the page e.g. http://sweetontology.net/matrWater#hydrate
This is interesting ... I'll see if I can adjust the "term" rule so it takes advantage of this, assuming it is a feature in pyLODE.
No luck trying to take advantage of the "hash feature" in pyLODE (assuming that's what it is). What I tried is commented out in /etc/httpd/conf.d/sweetontology.conf
(on the previous amazon instance).
So, for now, the change remains that (under the HTML case), ontologies are dispatched via pyLODE, and everything else via COR.
@carueda this issue is now resolved. Thanks for updating the rules.
No luck trying to take advantage of the "hash feature" in pyLODE...
The <h3>
element uses the rdfs:label
, which is lowercase.
Excellent work @carueda
Looks better, great that it's it's now resolving! I still think some terms are missing definitions but that's a separate issue.
-Kai
The <h3> element uses the rdfs:label, which is lowercase.
Ah I see, thanks for the clarification. So, maybe not worth trying to enable any automatic redirection for that as any rule here would be rather weak (not general); in particular, it would assume that the value of rdfs:label is exactly as the piece after the slash (ignoring case).
(moved from https://github.com/mmisw/orr-portal/issues/167 as this is an issue on the COR machine instance)
@lewismc entered:
Kai Blumberg reported the following
I can verify that whilst the nested http://sweetontology.net/matrWater/Hydrate URI does not resolve (HTTP 500 internal server error) that the parent URI (physically the parent file) does resolve http://sweetontology.net/matrWater.
What is more, the following
GET
is fine... whereas although the following returns HTTP 200 with the TTL prefixes...
...no other data is included in the response I expect to see the TTL relations for the Class.
It would therefore appears that file-level content is being returned not other logic contructs e.g.
owl:Class
orowl:ObjectProperty
are!I don't think that this was always the case and this may simply relate to some of the HTTPD virtual host rules that we have set up on the COR machine but this ticket enables us to investigate it.
We now also have a rather confusing situation where if the client wishes to Accept: text|application\/html they CAN obtain an HTML response if they reference the Label which appears as an <h3> element on the page e.g. http://sweetontology.net/matrWater#hydrate