From 028f4897bb6c3f4639dbcf91ceb2cf3a2864edc0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 12 Sep 2021 11:59:29 +0100 Subject: [PATCH] Allow json ontologies --- daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 6b7e940b9..3b2bf4812 100644 --- a/daemon.py +++ b/daemon.py @@ -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):