UnboundLocalError. The ontology file originally comes from an n-triples file which I converted to rdf/xml with rdflib. It might be the case that something is wrong with that file, but I find it strange that sometimes there is an error and sometimes not.
import owlready2 as owl2 onto = owl2.get_ontology("ontology_data/base.rdf.xml").load()
Free forum by Nabble | Edit this page |