Skip to content

Commit 38deff4

Browse files
committed
is ontology available
1 parent 6e4c081 commit 38deff4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nb2workflow/nbadapter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@
6464
oda_api_available = False
6565
class Ontology:
6666
def __init__(self, ontology_path):
67-
self._is_ontology_available = False
67+
pass
6868

6969

7070
# TODO: will be configurable
7171
oda_ontology_path = "http://odahub.io/ontology/ontology.ttl"
7272
class ModOntology(Ontology):
7373
def __init__(self, ontology_path):
74-
self._is_ontology_available = True
7574
super().__init__(ontology_path)
75+
self._is_ontology_available = oda_api_available # TODO: will be properly implemented in the ontology helper, this is just a quick solution to be able to test the workflow without ontology available
7676
self.lock = Lock()
7777

7878
def get_datatype_restriction(self, param_uri):

0 commit comments

Comments
 (0)