This notebook serves to document an error when reloading the owlready2 module due to the access to nonexisting dictionary entries.
import importlib
import owlready2 as owl2
# this works:
# createing dummy values for some dictionary entries
owl2.owl_world._props["Property"] = None
owl2.owl_world._props["ObjectProperty"] = None
owl2.owl_world._props["DatatypeProperty"] = None
owl2.owl_world._props["FunctionalProperty"] = None
owl2.owl_world._props["InverseFunctionalProperty"] = None
owl2.owl_world._props["TransitiveProperty"] = None
owl2.owl_world._props["SymmetricProperty"] = None
owl2.owl_world._props["AsymmetricProperty"] = None
owl2.owl_world._props["ReflexiveProperty"] = None
owl2.owl_world._props["IrreflexiveProperty"] = None
owl2.owl_world._props["AnnotationProperty"] = None
importlib.reload(owl2)
# this works not (KeyError):
importlib.reload(owl2)