OntDoc() cannot initialize from a Graph
dwinston opened this issue · comments
This is because load_ontology
in OntDoc.__init__
calls cast(ontology, Graph)
if isinstance(ontology, Graph)
, and cast
from python's stdlib has a sygnature of def cast(typ, val):
, so the arguments to the call are reversed.
Fixed by #158