@@ -1067,12 +1067,12 @@ def write_ofn(self, path: str | Path) -> None:
10671067
10681068 def write_owl (self , path : str | Path ) -> None :
10691069 """Write OWL, by first outputting OFN then converting with ROBOT."""
1070- from bioontologies import robot
1070+ import robot_obo_tool
10711071
10721072 with tempfile .TemporaryDirectory () as directory :
10731073 ofn_path = Path (directory ).joinpath ("tmp.ofn" )
10741074 self .write_ofn (ofn_path )
1075- robot .convert (ofn_path , path )
1075+ robot_obo_tool .convert (ofn_path , path )
10761076
10771077 def write_rdf (self , path : str | Path ) -> None :
10781078 """Write as Turtle RDF."""
@@ -1312,19 +1312,19 @@ def write_default(
13121312 tqdm .write (f"[{ self ._prefix_version } ] writing OBO Graph to { self ._obograph_path } " )
13131313 self .write_obograph (self ._obograph_path )
13141314 else :
1315- import bioontologies . robot
1315+ import robot_obo_tool
13161316
13171317 tqdm .write (
13181318 f"[{ self .ontology } ] converting OFN to OBO Graph at { self ._obograph_path } "
13191319 )
1320- bioontologies . robot .convert (
1320+ robot_obo_tool .convert (
13211321 self ._ofn_path , self ._obograph_path , debug = True , merge = False , reason = False
13221322 )
13231323 if write_owl and (not self ._owl_path .is_file () or force ):
13241324 tqdm .write (f"[{ self ._prefix_version } ] writing OWL to { self ._owl_path } " )
1325- import bioontologies . robot
1325+ import robot_obo_tool
13261326
1327- bioontologies . robot .convert (
1327+ robot_obo_tool .convert (
13281328 self ._ofn_path , self ._owl_path , debug = True , merge = False , reason = False
13291329 )
13301330 if write_ttl and (not self ._ttl_path .is_file () or force ):
0 commit comments