self._unabbreviate_d[storid]

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

self._unabbreviate_d[storid]

Arciniegas
Hi, it's me again
I'm working on align parts of ontologies according to its relationships with keyworks, so
 
    onto1.MedicalTest must be related to onto2.CovidTest for keyword "Test"

and then:

    OntoGenerada.MadicalTest
    OntoGenerada.CovidTest

all is fine in this part, but i wanna use the reasoner (Pellet or Hermit, both fails) and i get this:

example:
* Owlready2 * Warning: Cannot find new parent '1915'
* Owlready2 * Warning: Cannot find new parent '3616'
...
OntoGenerada.save(RDF)
  File "...\owlready2\namespace.py", line 871, in save
    self.graph.save(file, format, **kargs)
  File "...\owlready2\driver.py", line 219, in save
    _save(f, format, self, **kargs)
  File "...\owlready2\driver.py", line 494, in _save
    o = _unabbreviate(o)
  File "\owlready2\driver.py", line 286, in _unabbreviate
    r = graph._unabbreviate(storid).replace("&", "&")
  File "...\owlready2\triplelite.py", line 489, in _unabbreviate_dict
    return self._unabbreviate_d[storid]
KeyError: 9709

Please, what's happening? what's the cause of the error? what can i do?
Reply | Threaded
Open this post in threaded view
|

Re: self._unabbreviate_d[storid]

Jiba
Administrator
Hi,

The error means that some class has been reclassified as belonging to another class, but this other class does not exist / is unknown to Owlready.

Could you send me some working example to reproduce the problem, please?

Jiba