You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i'm trying to let a ontology class inherit from a standard python class and also the Thing class. I want this to work, because the python class stores some function i use in a lot of other classes and i dont want to copy them all the time. If i transform my python class into an ontology class, almost every class is connected with them (which doesnt make sems imo).
where Thing is the ontology class and IdentityObject is the python class.
My errormessage is
line 162, in _add_is_a_triple
Class.namespace.ontology._add_obj_triple_spo(Class.storid, Class._rdfs_is_a, base.storid)
AttributeError: type object 'IdentityObject' has no attribute 'storid'
so i guess owlready2 wants the pythonclass to also be an ontologyclass.
Is there a workaround?
The text was updated successfully, but these errors were encountered:
Hi, i'm trying to let a ontology class inherit from a standard python class and also the Thing class. I want this to work, because the python class stores some function i use in a lot of other classes and i dont want to copy them all the time. If i transform my python class into an ontology class, almost every class is connected with them (which doesnt make sems imo).
I'm trying something like this:
where Thing is the ontology class and IdentityObject is the python class.
My errormessage is
so i guess owlready2 wants the pythonclass to also be an ontologyclass.
Is there a workaround?
The text was updated successfully, but these errors were encountered: