|
Hi Jiba,
every time I execute
onto.save(file = "filename or fileobj", format = "rdfxml")
the ontology becomes bigger than usual and I have some problems. The command
onto.save()
doesn't work. I have the following error:
Traceback (most recent call last):
File "C:/Users/hamico/PycharmProjects/App/Part14/Test.py", line 477, in <module> main()
File "C:/Users/hamico/PycharmProjects/App/Part14/Test.py", line 441, in main
istanza.insert_element("name_element1", "description_element1")
File "C:/Users/hamico/PycharmProjects/App/Part14/Test.py", line 76, in inserisci_patologia
onto.save()
File "C:\Users\hamico\PycharmProjects\App\venv\lib\site-packages\owlready2\namespace.py", line 802, in save
file = _open_onto_file(self.base_iri, self.name, "wb")
File "C:\Users\hamico\PycharmProjects\App\venv\lib\site-packages\owlready2\namespace.py", line 1058, in _open_onto_file
if (mode.startswith("w")): return open(os.path.join(onto_path[0], "%s.owl" % name), mode)
IndexError: list index out of range
How is possible?
Many thanks.
Best regards,
Hamico
|