mirror of https://gitlab.com/bashrc2/epicyon
Allow json ontologies
parent
f62ff5e748
commit
028f4897bb
|
@ -6485,7 +6485,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
GETstartTime, GETtimings: {}) -> None:
|
GETstartTime, GETtimings: {}) -> None:
|
||||||
"""Returns an ontology file
|
"""Returns an ontology file
|
||||||
"""
|
"""
|
||||||
if '.owl' in path or '.rdf' in path:
|
if '.owl' in path or '.rdf' in path or '.json' in path:
|
||||||
ontologyStr = path.split('/ontologies/')[1].replace('#', '')
|
ontologyStr = path.split('/ontologies/')[1].replace('#', '')
|
||||||
ontologyFilename = baseDir + '/ontology/DFC/' + ontologyStr
|
ontologyFilename = baseDir + '/ontology/DFC/' + ontologyStr
|
||||||
if os.path.isfile(ontologyFilename):
|
if os.path.isfile(ontologyFilename):
|
||||||
|
|
Loading…
Reference in New Issue