Re: UnboundLocalError: local variable 'entity' referenced before assignment
Posted by Jiba on
URL: http://owlready.306.s1.nabble.com/UnboundLocalError-local-variable-entity-referenced-before-assignment-tp2349p2365.html
Hi,
The fix is in the Owlready sources.
I load the ontology as follows (I put the ontology file in /tmp):
from owlready2 import *
import sys, os, time, types
onto_path.append("/tmp")
onto = get_ontology('/tmp/feordf.rdf').load()
sync_reasoner_pellet()
Jiba