Allow json ontologies

main
Bob Mottram 2021-09-12 11:59:29 +01:00
parent f62ff5e748
commit 028f4897bb
1 changed files with 1 additions and 1 deletions

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):