owlready2 icon indicating copy to clipboard operation
owlready2 copied to clipboard

AttributeError: 'str' object has no attribute 'storid'

Open tommycarstensen opened this issue 1 year ago • 2 comments

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.

tommycarstensen avatar Sep 06 '22 12:09 tommycarstensen