mirror of https://gitlab.com/bashrc2/epicyon
Send ontology file
parent
3220049934
commit
f62ff5e748
|
@ -6493,9 +6493,13 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
with open(ontologyFilename, 'r') as fp:
|
with open(ontologyFilename, 'r') as fp:
|
||||||
ontologyFile = fp.read()
|
ontologyFile = fp.read()
|
||||||
if ontologyFile:
|
if ontologyFile:
|
||||||
|
ontologyFile = \
|
||||||
|
ontologyFile.replace('static.datafoodconsortium.org',
|
||||||
|
self.server.domainFull)
|
||||||
msg = ontologyFile.encode('utf-8')
|
msg = ontologyFile.encode('utf-8')
|
||||||
self._set_headers('application/rdf+xml', len(msg),
|
self._set_headers('application/rdf+xml', len(msg),
|
||||||
None, callingDomain, False)
|
None, callingDomain, False)
|
||||||
|
self._write(msg)
|
||||||
self._benchmarkGETtimings(GETstartTime, GETtimings,
|
self._benchmarkGETtimings(GETstartTime, GETtimings,
|
||||||
'show emoji done',
|
'show emoji done',
|
||||||
'get onotology')
|
'get onotology')
|
||||||
|
|
Loading…
Reference in New Issue