I've been struggling for a while trying to access classes through owlready in python. I have successfully imported the ontology using onto = get_ontology("file://ontologies/AnnotDoc.owl").load(), however I can't access the classes.
Calling onto.Document or onto.sciDeo returns a noneType, however the command "list(onto.classes())" displays all of the classes, and one of the classes is sciDeo.Document.
Any idea what is wrong, either with the ontology or what I am doing wrong? Help would be greatly appreciated.