Spaces:
Running
Running
Update src/ontology_manager.py
Browse files- src/ontology_manager.py +2 -1
src/ontology_manager.py
CHANGED
|
@@ -19,7 +19,8 @@ class OntologyManager:
|
|
| 19 |
"""
|
| 20 |
self.ontology_path = ontology_path
|
| 21 |
self.ontology_data = self._load_ontology()
|
| 22 |
-
self.graph =
|
|
|
|
| 23 |
|
| 24 |
def _load_ontology(self) -> Dict:
|
| 25 |
"""Load the ontology from the JSON file."""
|
|
|
|
| 19 |
"""
|
| 20 |
self.ontology_path = ontology_path
|
| 21 |
self.ontology_data = self._load_ontology()
|
| 22 |
+
self.graph = nx.MultiDiGraph()
|
| 23 |
+
self._build_graph()
|
| 24 |
|
| 25 |
def _load_ontology(self) -> Dict:
|
| 26 |
"""Load the ontology from the JSON file."""
|