|
As mention in the subject, World#get does not try to load entities missing from World#_entities, which leads to confusing behavior. For example:
world.get(<some valid IRI of a class>)
fails, while
world[<some valid IRI of a class>]
and
print([c for c in world.classes()]) # fill the World#_entities cache
world.get(<some valid IRI of a class>)
succeeds (assuming all three are run on a fresh world with a freshly loaded ontology).
|