Hello, I'm using the tool as a component of a web app, where the user has to upload an ontology file. Classes and properties are extracted with owlready and mapped to Java classes and attributes using an annotation tool.
1) I would like to place in my java source code also the pairs "xlmns:prefix = uri" that occur at the beginning of the ontology file. Is there a way to extract them in some sort of way? onto._namespaces containes only the base URI
2) Most importantly, I noticed that owlready2 stores some properties lying on the base namespace with a qualified name like this : "filename.propertyName" but I don't want to deal with filenames. An example: