mirror of https://gitlab.com/bashrc2/epicyon
json extension not strictly enforced
parent
1c510beae7
commit
d3e7cc89f7
|
@ -6489,7 +6489,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
ontologyFileType = 'application/rdf+xml'
|
ontologyFileType = 'application/rdf+xml'
|
||||||
if ontologyStr.startswith('DFC_'):
|
if ontologyStr.startswith('DFC_'):
|
||||||
ontologyFilename = baseDir + '/ontology/DFC/' + ontologyStr
|
ontologyFilename = baseDir + '/ontology/DFC/' + ontologyStr
|
||||||
elif ontologyStr.endswith('.json'):
|
else:
|
||||||
ontologyStr = ontologyStr.replace('/data/', '')
|
ontologyStr = ontologyStr.replace('/data/', '')
|
||||||
ontologyFilename = baseDir + '/ontology/' + ontologyStr
|
ontologyFilename = baseDir + '/ontology/' + ontologyStr
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue