Hi,
The problem is related to the IRI of your ontology. You need to pass either a full IRI (for example
http://server.com/onto.owl) to get_ontology() when you want to create a new ontology. Passing a filename is only allowed when loading an ontology.
For example you can use:
onto = get_ontology("
http://test.org/onto.owl")
Jiba