When I try to load the RDF Concepts Vocabulary (RDF) file ( "
http://www.w3.org/1999/02/22-rdf-syntax-ns#")(because I want to use rdf:List), I get an error :
UnboundLocalError: local variable 'entity' referenced before assignment
Following is my code:
from owlready2 import *
from os import path
onto_path.append(path.normpath(path.dirname(__file__)) + '/')
rdf_ont = get_ontology('rdf.rdf').load(only_local=True)
print(rdf_ont)
Any advise? thanks!