Allow json ontologies

This commit is contained in:
bashrc committed 2021-09-12 11:59:29 +01:00
1 parent f62ff5e748
commit 028f4897bb
1 file changed
+1 -1
+1 -1
View File
@@ -6485,7 +6485,7 @@ class PubServer(BaseHTTPRequestHandler):
GETstartTime, GETtimings: {}) -> None:
"""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('#', '')
ontologyFilename = baseDir + '/ontology/DFC/' + ontologyStr
if os.path.isfile(ontologyFilename):