RDFLib / pyLODE

An OWL ontology documentation tool using Python and templating, based on LODE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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