owlready2
owlready2 copied to clipboard
AttributeError: 'str' object has no attribute 'storid'
This code:
import os
from owlready2 import onto_path
from owlready2 import get_ontology
onto_path.append(os.getcwd())
onto = get_ontology('http://purl.obolibrary.org/obo/bto.owl')
print(onto.search(subclass_of = 'obo.BTO_0000042'))
Gives this error:
AttributeError: 'str' object has no attribute 'storid'
It seems like a bug to me.